@deliverart/sdk-js-menu 2.5.15 → 2.5.17
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 -1
- package/dist/index.d.cts +60 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.js +5 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -11533,6 +11533,7 @@ var writableMenuItemCategorySchema = menuItemCategorySchema.pick({
|
|
|
11533
11533
|
});
|
|
11534
11534
|
var menuItemModifierSchema = external_exports.object({
|
|
11535
11535
|
id: external_exports.string(),
|
|
11536
|
+
targetItemType: import_sdk_js_global_types3.menuItemModifierTargetItemTypeSchema,
|
|
11536
11537
|
name: external_exports.array(localeItemSchema).nonempty(),
|
|
11537
11538
|
description: external_exports.array(localeItemSchema).min(0),
|
|
11538
11539
|
sorting: external_exports.coerce.number(),
|
|
@@ -11551,6 +11552,7 @@ var menuItemModifierDetailsSchema = menuItemModifierSchema.extend({
|
|
|
11551
11552
|
});
|
|
11552
11553
|
var writableMenuItemModifierSchema = menuItemModifierSchema.pick({
|
|
11553
11554
|
name: true,
|
|
11555
|
+
targetItemType: true,
|
|
11554
11556
|
description: true,
|
|
11555
11557
|
sorting: true,
|
|
11556
11558
|
minSelection: true,
|
|
@@ -11989,7 +11991,8 @@ var GetMenuItemModifiersFromPointOfSale = class extends import_sdk_js_core11.Abs
|
|
|
11989
11991
|
// src/requests/menu-item-modifiers/UpdateMenuItemModifier.ts
|
|
11990
11992
|
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
11991
11993
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11992
|
-
pointOfSale: true
|
|
11994
|
+
pointOfSale: true,
|
|
11995
|
+
targetItemType: true
|
|
11993
11996
|
}).partial();
|
|
11994
11997
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11995
11998
|
var UpdateMenuItemModifier = class extends import_sdk_js_core12.AbstractApiRequest {
|
package/dist/index.d.cts
CHANGED
|
@@ -176,6 +176,10 @@ declare const writableMenuItemCategorySchema: z.ZodObject<{
|
|
|
176
176
|
}, z.core.$strip>;
|
|
177
177
|
declare const menuItemModifierSchema: z.ZodObject<{
|
|
178
178
|
id: z.ZodString;
|
|
179
|
+
targetItemType: z.ZodEnum<{
|
|
180
|
+
ITEM: "ITEM";
|
|
181
|
+
BUNDLE: "BUNDLE";
|
|
182
|
+
}>;
|
|
179
183
|
name: z.ZodArray<z.ZodObject<{
|
|
180
184
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
181
185
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -198,6 +202,10 @@ declare const menuItemModifierSchema: z.ZodObject<{
|
|
|
198
202
|
type MenuItemModifier = z.infer<typeof menuItemModifierSchema>;
|
|
199
203
|
declare const menuItemModifierDetailsSchema: z.ZodObject<{
|
|
200
204
|
id: z.ZodString;
|
|
205
|
+
targetItemType: z.ZodEnum<{
|
|
206
|
+
ITEM: "ITEM";
|
|
207
|
+
BUNDLE: "BUNDLE";
|
|
208
|
+
}>;
|
|
201
209
|
name: z.ZodArray<z.ZodObject<{
|
|
202
210
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
203
211
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -230,6 +238,10 @@ declare const writableMenuItemModifierSchema: z.ZodObject<{
|
|
|
230
238
|
}, z.core.$strip>>;
|
|
231
239
|
sorting: z.ZodCoercedNumber<unknown>;
|
|
232
240
|
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>>>;
|
|
241
|
+
targetItemType: z.ZodEnum<{
|
|
242
|
+
ITEM: "ITEM";
|
|
243
|
+
BUNDLE: "BUNDLE";
|
|
244
|
+
}>;
|
|
233
245
|
minSelection: z.ZodCoercedNumber<unknown>;
|
|
234
246
|
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
235
247
|
repeatable: z.ZodBoolean;
|
|
@@ -1312,6 +1324,10 @@ declare const createMenuItemModifierInputSchema: z.ZodObject<{
|
|
|
1312
1324
|
}, z.core.$strip>>>;
|
|
1313
1325
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1314
1326
|
items: z.ZodNonOptional<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>>>>;
|
|
1327
|
+
targetItemType: z.ZodNonOptional<z.ZodEnum<{
|
|
1328
|
+
ITEM: "ITEM";
|
|
1329
|
+
BUNDLE: "BUNDLE";
|
|
1330
|
+
}>>;
|
|
1315
1331
|
minSelection: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1316
1332
|
maxSelection: z.ZodNonOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1317
1333
|
repeatable: z.ZodNonOptional<z.ZodBoolean>;
|
|
@@ -1321,6 +1337,10 @@ declare const createMenuItemModifierInputSchema: z.ZodObject<{
|
|
|
1321
1337
|
type CreateMenuItemModifierInput = z.input<typeof createMenuItemModifierInputSchema>;
|
|
1322
1338
|
declare const createMenuItemModifierResponseSchema: z.ZodObject<{
|
|
1323
1339
|
id: z.ZodString;
|
|
1340
|
+
targetItemType: z.ZodEnum<{
|
|
1341
|
+
ITEM: "ITEM";
|
|
1342
|
+
BUNDLE: "BUNDLE";
|
|
1343
|
+
}>;
|
|
1324
1344
|
name: z.ZodArray<z.ZodObject<{
|
|
1325
1345
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1326
1346
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1357,6 +1377,10 @@ declare class CreateMenuItemModifier extends AbstractApiRequest<typeof createMen
|
|
|
1357
1377
|
}, z.core.$strip>>>;
|
|
1358
1378
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1359
1379
|
items: z.ZodNonOptional<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>>>>;
|
|
1380
|
+
targetItemType: z.ZodNonOptional<z.ZodEnum<{
|
|
1381
|
+
ITEM: "ITEM";
|
|
1382
|
+
BUNDLE: "BUNDLE";
|
|
1383
|
+
}>>;
|
|
1360
1384
|
minSelection: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1361
1385
|
maxSelection: z.ZodNonOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1362
1386
|
repeatable: z.ZodNonOptional<z.ZodBoolean>;
|
|
@@ -1365,6 +1389,10 @@ declare class CreateMenuItemModifier extends AbstractApiRequest<typeof createMen
|
|
|
1365
1389
|
}, z.core.$strip>;
|
|
1366
1390
|
readonly outputSchema: z.ZodObject<{
|
|
1367
1391
|
id: z.ZodString;
|
|
1392
|
+
targetItemType: z.ZodEnum<{
|
|
1393
|
+
ITEM: "ITEM";
|
|
1394
|
+
BUNDLE: "BUNDLE";
|
|
1395
|
+
}>;
|
|
1368
1396
|
name: z.ZodArray<z.ZodObject<{
|
|
1369
1397
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1370
1398
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1410,6 +1438,10 @@ declare const getMenuItemModifierDetailsInputSchema: z.ZodUndefined;
|
|
|
1410
1438
|
type GetMenuItemModifierDetailsInput = z.infer<typeof getMenuItemModifierDetailsInputSchema>;
|
|
1411
1439
|
declare const getMenuItemModifierDetailsResponseSchema: z.ZodObject<{
|
|
1412
1440
|
id: z.ZodString;
|
|
1441
|
+
targetItemType: z.ZodEnum<{
|
|
1442
|
+
ITEM: "ITEM";
|
|
1443
|
+
BUNDLE: "BUNDLE";
|
|
1444
|
+
}>;
|
|
1413
1445
|
name: z.ZodArray<z.ZodObject<{
|
|
1414
1446
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1415
1447
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1438,6 +1470,10 @@ declare class GetMenuItemModifierDetails extends AbstractApiRequest<typeof getMe
|
|
|
1438
1470
|
readonly inputSchema: z.ZodUndefined;
|
|
1439
1471
|
readonly outputSchema: z.ZodObject<{
|
|
1440
1472
|
id: z.ZodString;
|
|
1473
|
+
targetItemType: z.ZodEnum<{
|
|
1474
|
+
ITEM: "ITEM";
|
|
1475
|
+
BUNDLE: "BUNDLE";
|
|
1476
|
+
}>;
|
|
1441
1477
|
name: z.ZodArray<z.ZodObject<{
|
|
1442
1478
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1443
1479
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1497,6 +1533,10 @@ type GetMenuItemModifiersInput = z.input<typeof getMenuItemModifiersInputSchema>
|
|
|
1497
1533
|
declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
1498
1534
|
data: z.ZodArray<z.ZodObject<{
|
|
1499
1535
|
id: z.ZodString;
|
|
1536
|
+
targetItemType: z.ZodEnum<{
|
|
1537
|
+
ITEM: "ITEM";
|
|
1538
|
+
BUNDLE: "BUNDLE";
|
|
1539
|
+
}>;
|
|
1500
1540
|
name: z.ZodArray<z.ZodObject<{
|
|
1501
1541
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1502
1542
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1534,6 +1574,10 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
1534
1574
|
readonly outputSchema: z.ZodObject<{
|
|
1535
1575
|
data: z.ZodArray<z.ZodObject<{
|
|
1536
1576
|
id: z.ZodString;
|
|
1577
|
+
targetItemType: z.ZodEnum<{
|
|
1578
|
+
ITEM: "ITEM";
|
|
1579
|
+
BUNDLE: "BUNDLE";
|
|
1580
|
+
}>;
|
|
1537
1581
|
name: z.ZodArray<z.ZodObject<{
|
|
1538
1582
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1539
1583
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1628,6 +1672,10 @@ type GetMenuItemModifiersFromPointOfSaleInput = z.input<typeof getMenuItemModifi
|
|
|
1628
1672
|
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1629
1673
|
data: z.ZodArray<z.ZodObject<{
|
|
1630
1674
|
id: z.ZodString;
|
|
1675
|
+
targetItemType: z.ZodEnum<{
|
|
1676
|
+
ITEM: "ITEM";
|
|
1677
|
+
BUNDLE: "BUNDLE";
|
|
1678
|
+
}>;
|
|
1631
1679
|
name: z.ZodArray<z.ZodObject<{
|
|
1632
1680
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1633
1681
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1665,6 +1713,10 @@ declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typ
|
|
|
1665
1713
|
readonly outputSchema: z.ZodObject<{
|
|
1666
1714
|
data: z.ZodArray<z.ZodObject<{
|
|
1667
1715
|
id: z.ZodString;
|
|
1716
|
+
targetItemType: z.ZodEnum<{
|
|
1717
|
+
ITEM: "ITEM";
|
|
1718
|
+
BUNDLE: "BUNDLE";
|
|
1719
|
+
}>;
|
|
1668
1720
|
name: z.ZodArray<z.ZodObject<{
|
|
1669
1721
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1670
1722
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1747,6 +1799,10 @@ declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
|
1747
1799
|
type UpdateMenuItemModifierInput = z.input<typeof updateMenuItemModifierInputSchema>;
|
|
1748
1800
|
declare const updateMenuItemModifierResponseSchema: z.ZodObject<{
|
|
1749
1801
|
id: z.ZodString;
|
|
1802
|
+
targetItemType: z.ZodEnum<{
|
|
1803
|
+
ITEM: "ITEM";
|
|
1804
|
+
BUNDLE: "BUNDLE";
|
|
1805
|
+
}>;
|
|
1750
1806
|
name: z.ZodArray<z.ZodObject<{
|
|
1751
1807
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1752
1808
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1790,6 +1846,10 @@ declare class UpdateMenuItemModifier extends AbstractApiRequest<typeof updateMen
|
|
|
1790
1846
|
}, z.core.$strip>;
|
|
1791
1847
|
readonly outputSchema: z.ZodObject<{
|
|
1792
1848
|
id: z.ZodString;
|
|
1849
|
+
targetItemType: z.ZodEnum<{
|
|
1850
|
+
ITEM: "ITEM";
|
|
1851
|
+
BUNDLE: "BUNDLE";
|
|
1852
|
+
}>;
|
|
1793
1853
|
name: z.ZodArray<z.ZodObject<{
|
|
1794
1854
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1795
1855
|
text: z.ZodNonOptional<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -176,6 +176,10 @@ declare const writableMenuItemCategorySchema: z.ZodObject<{
|
|
|
176
176
|
}, z.core.$strip>;
|
|
177
177
|
declare const menuItemModifierSchema: z.ZodObject<{
|
|
178
178
|
id: z.ZodString;
|
|
179
|
+
targetItemType: z.ZodEnum<{
|
|
180
|
+
ITEM: "ITEM";
|
|
181
|
+
BUNDLE: "BUNDLE";
|
|
182
|
+
}>;
|
|
179
183
|
name: z.ZodArray<z.ZodObject<{
|
|
180
184
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
181
185
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -198,6 +202,10 @@ declare const menuItemModifierSchema: z.ZodObject<{
|
|
|
198
202
|
type MenuItemModifier = z.infer<typeof menuItemModifierSchema>;
|
|
199
203
|
declare const menuItemModifierDetailsSchema: z.ZodObject<{
|
|
200
204
|
id: z.ZodString;
|
|
205
|
+
targetItemType: z.ZodEnum<{
|
|
206
|
+
ITEM: "ITEM";
|
|
207
|
+
BUNDLE: "BUNDLE";
|
|
208
|
+
}>;
|
|
201
209
|
name: z.ZodArray<z.ZodObject<{
|
|
202
210
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
203
211
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -230,6 +238,10 @@ declare const writableMenuItemModifierSchema: z.ZodObject<{
|
|
|
230
238
|
}, z.core.$strip>>;
|
|
231
239
|
sorting: z.ZodCoercedNumber<unknown>;
|
|
232
240
|
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>>>;
|
|
241
|
+
targetItemType: z.ZodEnum<{
|
|
242
|
+
ITEM: "ITEM";
|
|
243
|
+
BUNDLE: "BUNDLE";
|
|
244
|
+
}>;
|
|
233
245
|
minSelection: z.ZodCoercedNumber<unknown>;
|
|
234
246
|
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
235
247
|
repeatable: z.ZodBoolean;
|
|
@@ -1312,6 +1324,10 @@ declare const createMenuItemModifierInputSchema: z.ZodObject<{
|
|
|
1312
1324
|
}, z.core.$strip>>>;
|
|
1313
1325
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1314
1326
|
items: z.ZodNonOptional<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>>>>;
|
|
1327
|
+
targetItemType: z.ZodNonOptional<z.ZodEnum<{
|
|
1328
|
+
ITEM: "ITEM";
|
|
1329
|
+
BUNDLE: "BUNDLE";
|
|
1330
|
+
}>>;
|
|
1315
1331
|
minSelection: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1316
1332
|
maxSelection: z.ZodNonOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1317
1333
|
repeatable: z.ZodNonOptional<z.ZodBoolean>;
|
|
@@ -1321,6 +1337,10 @@ declare const createMenuItemModifierInputSchema: z.ZodObject<{
|
|
|
1321
1337
|
type CreateMenuItemModifierInput = z.input<typeof createMenuItemModifierInputSchema>;
|
|
1322
1338
|
declare const createMenuItemModifierResponseSchema: z.ZodObject<{
|
|
1323
1339
|
id: z.ZodString;
|
|
1340
|
+
targetItemType: z.ZodEnum<{
|
|
1341
|
+
ITEM: "ITEM";
|
|
1342
|
+
BUNDLE: "BUNDLE";
|
|
1343
|
+
}>;
|
|
1324
1344
|
name: z.ZodArray<z.ZodObject<{
|
|
1325
1345
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1326
1346
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1357,6 +1377,10 @@ declare class CreateMenuItemModifier extends AbstractApiRequest<typeof createMen
|
|
|
1357
1377
|
}, z.core.$strip>>>;
|
|
1358
1378
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1359
1379
|
items: z.ZodNonOptional<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>>>>;
|
|
1380
|
+
targetItemType: z.ZodNonOptional<z.ZodEnum<{
|
|
1381
|
+
ITEM: "ITEM";
|
|
1382
|
+
BUNDLE: "BUNDLE";
|
|
1383
|
+
}>>;
|
|
1360
1384
|
minSelection: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1361
1385
|
maxSelection: z.ZodNonOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1362
1386
|
repeatable: z.ZodNonOptional<z.ZodBoolean>;
|
|
@@ -1365,6 +1389,10 @@ declare class CreateMenuItemModifier extends AbstractApiRequest<typeof createMen
|
|
|
1365
1389
|
}, z.core.$strip>;
|
|
1366
1390
|
readonly outputSchema: z.ZodObject<{
|
|
1367
1391
|
id: z.ZodString;
|
|
1392
|
+
targetItemType: z.ZodEnum<{
|
|
1393
|
+
ITEM: "ITEM";
|
|
1394
|
+
BUNDLE: "BUNDLE";
|
|
1395
|
+
}>;
|
|
1368
1396
|
name: z.ZodArray<z.ZodObject<{
|
|
1369
1397
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1370
1398
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1410,6 +1438,10 @@ declare const getMenuItemModifierDetailsInputSchema: z.ZodUndefined;
|
|
|
1410
1438
|
type GetMenuItemModifierDetailsInput = z.infer<typeof getMenuItemModifierDetailsInputSchema>;
|
|
1411
1439
|
declare const getMenuItemModifierDetailsResponseSchema: z.ZodObject<{
|
|
1412
1440
|
id: z.ZodString;
|
|
1441
|
+
targetItemType: z.ZodEnum<{
|
|
1442
|
+
ITEM: "ITEM";
|
|
1443
|
+
BUNDLE: "BUNDLE";
|
|
1444
|
+
}>;
|
|
1413
1445
|
name: z.ZodArray<z.ZodObject<{
|
|
1414
1446
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1415
1447
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1438,6 +1470,10 @@ declare class GetMenuItemModifierDetails extends AbstractApiRequest<typeof getMe
|
|
|
1438
1470
|
readonly inputSchema: z.ZodUndefined;
|
|
1439
1471
|
readonly outputSchema: z.ZodObject<{
|
|
1440
1472
|
id: z.ZodString;
|
|
1473
|
+
targetItemType: z.ZodEnum<{
|
|
1474
|
+
ITEM: "ITEM";
|
|
1475
|
+
BUNDLE: "BUNDLE";
|
|
1476
|
+
}>;
|
|
1441
1477
|
name: z.ZodArray<z.ZodObject<{
|
|
1442
1478
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1443
1479
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1497,6 +1533,10 @@ type GetMenuItemModifiersInput = z.input<typeof getMenuItemModifiersInputSchema>
|
|
|
1497
1533
|
declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
1498
1534
|
data: z.ZodArray<z.ZodObject<{
|
|
1499
1535
|
id: z.ZodString;
|
|
1536
|
+
targetItemType: z.ZodEnum<{
|
|
1537
|
+
ITEM: "ITEM";
|
|
1538
|
+
BUNDLE: "BUNDLE";
|
|
1539
|
+
}>;
|
|
1500
1540
|
name: z.ZodArray<z.ZodObject<{
|
|
1501
1541
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1502
1542
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1534,6 +1574,10 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
1534
1574
|
readonly outputSchema: z.ZodObject<{
|
|
1535
1575
|
data: z.ZodArray<z.ZodObject<{
|
|
1536
1576
|
id: z.ZodString;
|
|
1577
|
+
targetItemType: z.ZodEnum<{
|
|
1578
|
+
ITEM: "ITEM";
|
|
1579
|
+
BUNDLE: "BUNDLE";
|
|
1580
|
+
}>;
|
|
1537
1581
|
name: z.ZodArray<z.ZodObject<{
|
|
1538
1582
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1539
1583
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1628,6 +1672,10 @@ type GetMenuItemModifiersFromPointOfSaleInput = z.input<typeof getMenuItemModifi
|
|
|
1628
1672
|
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1629
1673
|
data: z.ZodArray<z.ZodObject<{
|
|
1630
1674
|
id: z.ZodString;
|
|
1675
|
+
targetItemType: z.ZodEnum<{
|
|
1676
|
+
ITEM: "ITEM";
|
|
1677
|
+
BUNDLE: "BUNDLE";
|
|
1678
|
+
}>;
|
|
1631
1679
|
name: z.ZodArray<z.ZodObject<{
|
|
1632
1680
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1633
1681
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1665,6 +1713,10 @@ declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typ
|
|
|
1665
1713
|
readonly outputSchema: z.ZodObject<{
|
|
1666
1714
|
data: z.ZodArray<z.ZodObject<{
|
|
1667
1715
|
id: z.ZodString;
|
|
1716
|
+
targetItemType: z.ZodEnum<{
|
|
1717
|
+
ITEM: "ITEM";
|
|
1718
|
+
BUNDLE: "BUNDLE";
|
|
1719
|
+
}>;
|
|
1668
1720
|
name: z.ZodArray<z.ZodObject<{
|
|
1669
1721
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1670
1722
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1747,6 +1799,10 @@ declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
|
1747
1799
|
type UpdateMenuItemModifierInput = z.input<typeof updateMenuItemModifierInputSchema>;
|
|
1748
1800
|
declare const updateMenuItemModifierResponseSchema: z.ZodObject<{
|
|
1749
1801
|
id: z.ZodString;
|
|
1802
|
+
targetItemType: z.ZodEnum<{
|
|
1803
|
+
ITEM: "ITEM";
|
|
1804
|
+
BUNDLE: "BUNDLE";
|
|
1805
|
+
}>;
|
|
1750
1806
|
name: z.ZodArray<z.ZodObject<{
|
|
1751
1807
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1752
1808
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1790,6 +1846,10 @@ declare class UpdateMenuItemModifier extends AbstractApiRequest<typeof updateMen
|
|
|
1790
1846
|
}, z.core.$strip>;
|
|
1791
1847
|
readonly outputSchema: z.ZodObject<{
|
|
1792
1848
|
id: z.ZodString;
|
|
1849
|
+
targetItemType: z.ZodEnum<{
|
|
1850
|
+
ITEM: "ITEM";
|
|
1851
|
+
BUNDLE: "BUNDLE";
|
|
1852
|
+
}>;
|
|
1793
1853
|
name: z.ZodArray<z.ZodObject<{
|
|
1794
1854
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1795
1855
|
text: z.ZodNonOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
import {
|
|
9
9
|
booleanSchema,
|
|
10
10
|
datetimeSchema,
|
|
11
|
+
menuItemModifierTargetItemTypeSchema,
|
|
11
12
|
sortDirSchema,
|
|
12
13
|
timestampsFilterSchema
|
|
13
14
|
} from "@deliverart/sdk-js-global-types";
|
|
@@ -11373,6 +11374,7 @@ var writableMenuItemCategorySchema = menuItemCategorySchema.pick({
|
|
|
11373
11374
|
});
|
|
11374
11375
|
var menuItemModifierSchema = external_exports.object({
|
|
11375
11376
|
id: external_exports.string(),
|
|
11377
|
+
targetItemType: menuItemModifierTargetItemTypeSchema,
|
|
11376
11378
|
name: external_exports.array(localeItemSchema).nonempty(),
|
|
11377
11379
|
description: external_exports.array(localeItemSchema).min(0),
|
|
11378
11380
|
sorting: external_exports.coerce.number(),
|
|
@@ -11391,6 +11393,7 @@ var menuItemModifierDetailsSchema = menuItemModifierSchema.extend({
|
|
|
11391
11393
|
});
|
|
11392
11394
|
var writableMenuItemModifierSchema = menuItemModifierSchema.pick({
|
|
11393
11395
|
name: true,
|
|
11396
|
+
targetItemType: true,
|
|
11394
11397
|
description: true,
|
|
11395
11398
|
sorting: true,
|
|
11396
11399
|
minSelection: true,
|
|
@@ -11841,7 +11844,8 @@ var GetMenuItemModifiersFromPointOfSale = class extends AbstractApiRequest11 {
|
|
|
11841
11844
|
// src/requests/menu-item-modifiers/UpdateMenuItemModifier.ts
|
|
11842
11845
|
import { AbstractApiRequest as AbstractApiRequest12 } from "@deliverart/sdk-js-core";
|
|
11843
11846
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11844
|
-
pointOfSale: true
|
|
11847
|
+
pointOfSale: true,
|
|
11848
|
+
targetItemType: true
|
|
11845
11849
|
}).partial();
|
|
11846
11850
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11847
11851
|
var UpdateMenuItemModifier = class extends AbstractApiRequest12 {
|
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.5.
|
|
4
|
+
"version": "2.5.17",
|
|
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.5.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.5.17",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.5.17",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.17",
|
|
24
|
+
"@deliverart/sdk-js-sales-mode": "2.5.17",
|
|
25
|
+
"@deliverart/sdk-js-image": "2.5.17"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|