@deliverart/sdk-js-menu 2.5.17 → 2.5.18
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 +24 -58
- package/dist/index.d.cts +146 -53
- package/dist/index.d.ts +146 -53
- package/dist/index.js +24 -58
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -11392,71 +11392,37 @@ var menuItemCompleteBaseSchema = external_exports.object({
|
|
|
11392
11392
|
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11393
11393
|
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11394
11394
|
});
|
|
11395
|
-
var
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
type: external_exports.literal("ITEM")
|
|
11408
|
-
});
|
|
11409
|
-
var menuItemBundleSchemaBase = menuItemCompleteBaseSchema.omit({
|
|
11410
|
-
type: true
|
|
11411
|
-
}).extend({
|
|
11412
|
-
type: external_exports.literal("BUNDLE")
|
|
11413
|
-
});
|
|
11395
|
+
var menuItemVariantSchema = external_exports.lazy(
|
|
11396
|
+
() => external_exports.object({
|
|
11397
|
+
id: external_exports.string(),
|
|
11398
|
+
type: external_exports.literal("ITEM"),
|
|
11399
|
+
price: external_exports.string(),
|
|
11400
|
+
referenceItem: menuItemSchema,
|
|
11401
|
+
suspended: external_exports.boolean(),
|
|
11402
|
+
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11403
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11404
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11405
|
+
})
|
|
11406
|
+
);
|
|
11414
11407
|
var menuItemChoiceSchema = external_exports.lazy(
|
|
11415
|
-
() =>
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
referenceItem: menuItemSchema,
|
|
11422
|
-
suspended: external_exports.boolean(),
|
|
11423
|
-
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11424
|
-
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11425
|
-
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11426
|
-
})
|
|
11427
|
-
).min(0).default([])
|
|
11408
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, category: true, compositions: true, modifiers: true, variants: true }).extend({
|
|
11409
|
+
type: external_exports.literal("CHOICE"),
|
|
11410
|
+
category: menuItemCategoryNullableIriSchema,
|
|
11411
|
+
compositions: external_exports.array(external_exports.never()).default([]),
|
|
11412
|
+
modifiers: external_exports.array(external_exports.never()).default([]),
|
|
11413
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([])
|
|
11428
11414
|
})
|
|
11429
11415
|
);
|
|
11430
11416
|
var menuItemItemSchema = external_exports.lazy(
|
|
11431
|
-
() =>
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
id: external_exports.string(),
|
|
11435
|
-
type: external_exports.literal("ITEM"),
|
|
11436
|
-
price: external_exports.string(),
|
|
11437
|
-
referenceItem: menuItemSchema,
|
|
11438
|
-
suspended: external_exports.boolean(),
|
|
11439
|
-
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11440
|
-
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11441
|
-
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11442
|
-
})
|
|
11443
|
-
).min(0).default([])
|
|
11417
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11418
|
+
type: external_exports.literal("ITEM"),
|
|
11419
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([])
|
|
11444
11420
|
})
|
|
11445
11421
|
);
|
|
11446
11422
|
var menuItemBundleSchema = external_exports.lazy(
|
|
11447
|
-
() =>
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
id: external_exports.string(),
|
|
11451
|
-
type: external_exports.literal("ITEM"),
|
|
11452
|
-
price: external_exports.string(),
|
|
11453
|
-
referenceItem: menuItemSchema,
|
|
11454
|
-
suspended: external_exports.boolean(),
|
|
11455
|
-
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11456
|
-
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11457
|
-
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11458
|
-
})
|
|
11459
|
-
).min(0).default([])
|
|
11423
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11424
|
+
type: external_exports.literal("BUNDLE"),
|
|
11425
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([])
|
|
11460
11426
|
})
|
|
11461
11427
|
);
|
|
11462
11428
|
var menuItemSchema = external_exports.lazy(
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
2
|
+
import { menuChannelSchema, menuItemAllergenSchema, menuItemDietSchema, Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
3
|
export { MenuChannel, MenuItemAllergen, MenuItemDiet, MenuItemPriceOverrideType, MenuItemType, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes } from '@deliverart/sdk-js-global-types';
|
|
4
|
+
import { imageSchema } from '@deliverart/sdk-js-image';
|
|
5
|
+
import { pointOfSaleIriSchema } from '@deliverart/sdk-js-point-of-sale';
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
6
8
|
|
|
9
|
+
declare const menuItemIriSchema: 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>>;
|
|
10
|
+
type MenuItemIri = z.infer<typeof menuItemIriSchema>;
|
|
11
|
+
declare const menuItemNullableIriSchema: 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>>;
|
|
12
|
+
type MenuItemNullableIri = z.infer<typeof menuItemNullableIriSchema>;
|
|
13
|
+
declare const menuItemSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown>>;
|
|
14
|
+
type MenuItemSalesPriceIri = z.infer<typeof menuItemSalesPriceIriSchema>;
|
|
15
|
+
declare const menuItemSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown>>;
|
|
16
|
+
type MenuItemSalesPriceNullableIri = z.infer<typeof menuItemSalesPriceNullableIriSchema>;
|
|
17
|
+
declare const menuItemCategoryIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown>>;
|
|
18
|
+
type MenuItemCategoryIri = z.infer<typeof menuItemCategoryIriSchema>;
|
|
19
|
+
declare const menuItemCategoryNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>;
|
|
20
|
+
type MenuItemCategoryNullableIri = z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
21
|
+
declare const menuItemModifierIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown>>;
|
|
22
|
+
type MenuItemModifierIri = z.infer<typeof menuItemModifierIriSchema>;
|
|
23
|
+
declare const menuItemModifierNullableIriSchema: 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>>;
|
|
24
|
+
type MenuItemModifierNullableIri = z.infer<typeof menuItemModifierNullableIriSchema>;
|
|
25
|
+
declare const menuItemPriceOverrideIriSchema: 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>>;
|
|
26
|
+
type MenuItemPriceOverrideIri = z.infer<typeof menuItemPriceOverrideIriSchema>;
|
|
27
|
+
declare const menuItemPriceOverrideNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown>>;
|
|
28
|
+
type MenuItemPriceOverrideNullableIri = z.infer<typeof menuItemPriceOverrideNullableIriSchema>;
|
|
29
|
+
declare const menuItemPriceOverrideSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown>>;
|
|
30
|
+
type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSalesPriceIriSchema>;
|
|
31
|
+
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>>;
|
|
32
|
+
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
33
|
+
|
|
7
34
|
declare const localeItemSchema: z.ZodObject<{
|
|
8
35
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
9
36
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -21,16 +48,107 @@ declare const menuVersionSchema: z.ZodObject<{
|
|
|
21
48
|
updatedAt: z.ZodString;
|
|
22
49
|
}, z.core.$strip>;
|
|
23
50
|
type MenuVersion = z.infer<typeof menuVersionSchema>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
type MenuItemVariant = {
|
|
52
|
+
id: string;
|
|
53
|
+
type: 'ITEM';
|
|
54
|
+
price: string;
|
|
55
|
+
referenceItem: MenuItem;
|
|
56
|
+
suspended: boolean;
|
|
57
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
60
|
+
};
|
|
61
|
+
type MenuItemChoice = {
|
|
62
|
+
id: string;
|
|
63
|
+
channels: z.infer<typeof menuChannelSchema>[];
|
|
64
|
+
tags: string[];
|
|
65
|
+
category: z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
66
|
+
type: 'CHOICE';
|
|
67
|
+
name: z.infer<typeof localeItemSchema>[];
|
|
68
|
+
description: z.infer<typeof localeItemSchema>[];
|
|
69
|
+
allergens: z.infer<typeof menuItemAllergenSchema>[];
|
|
70
|
+
diets: z.infer<typeof menuItemDietSchema>[];
|
|
71
|
+
price: string;
|
|
72
|
+
taxRate: number;
|
|
73
|
+
containsAlcohol: boolean;
|
|
74
|
+
countable: boolean;
|
|
75
|
+
soldIndividually: boolean;
|
|
76
|
+
suspended: boolean;
|
|
77
|
+
compositions: never[];
|
|
78
|
+
modifiers: never[];
|
|
79
|
+
variants: MenuItemVariant[];
|
|
80
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
81
|
+
images: z.infer<typeof imageSchema>[];
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
|
+
};
|
|
85
|
+
type MenuItemItem = {
|
|
86
|
+
id: string;
|
|
87
|
+
channels: z.infer<typeof menuChannelSchema>[];
|
|
88
|
+
tags: string[];
|
|
89
|
+
category: z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
90
|
+
type: 'ITEM';
|
|
91
|
+
name: z.infer<typeof localeItemSchema>[];
|
|
92
|
+
description: z.infer<typeof localeItemSchema>[];
|
|
93
|
+
allergens: z.infer<typeof menuItemAllergenSchema>[];
|
|
94
|
+
diets: z.infer<typeof menuItemDietSchema>[];
|
|
95
|
+
price: string;
|
|
96
|
+
taxRate: number;
|
|
97
|
+
containsAlcohol: boolean;
|
|
98
|
+
countable: boolean;
|
|
99
|
+
soldIndividually: boolean;
|
|
100
|
+
suspended: boolean;
|
|
101
|
+
compositions: z.infer<typeof menuItemIriSchema>[];
|
|
102
|
+
modifiers: z.infer<typeof menuItemModifierIriSchema>[];
|
|
103
|
+
variants: MenuItemVariant[];
|
|
104
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
105
|
+
images: z.infer<typeof imageSchema>[];
|
|
106
|
+
createdAt: string;
|
|
107
|
+
updatedAt: string;
|
|
108
|
+
};
|
|
109
|
+
type MenuItemBundle = {
|
|
110
|
+
id: string;
|
|
111
|
+
channels: z.infer<typeof menuChannelSchema>[];
|
|
112
|
+
tags: string[];
|
|
113
|
+
category: z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
114
|
+
type: 'BUNDLE';
|
|
115
|
+
name: z.infer<typeof localeItemSchema>[];
|
|
116
|
+
description: z.infer<typeof localeItemSchema>[];
|
|
117
|
+
allergens: z.infer<typeof menuItemAllergenSchema>[];
|
|
118
|
+
diets: z.infer<typeof menuItemDietSchema>[];
|
|
119
|
+
price: string;
|
|
120
|
+
taxRate: number;
|
|
121
|
+
containsAlcohol: boolean;
|
|
122
|
+
countable: boolean;
|
|
123
|
+
soldIndividually: boolean;
|
|
124
|
+
suspended: boolean;
|
|
125
|
+
compositions: z.infer<typeof menuItemIriSchema>[];
|
|
126
|
+
modifiers: z.infer<typeof menuItemModifierIriSchema>[];
|
|
127
|
+
variants: MenuItemVariant[];
|
|
128
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
129
|
+
images: z.infer<typeof imageSchema>[];
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
};
|
|
133
|
+
type MenuItem = MenuItemChoice | MenuItemItem | MenuItemBundle;
|
|
134
|
+
type MenuItemChoiceDetails = MenuItemChoice & {
|
|
135
|
+
pointOfSale: z.infer<typeof pointOfSaleIriSchema>;
|
|
136
|
+
};
|
|
137
|
+
type MenuItemItemDetails = MenuItemItem & {
|
|
138
|
+
pointOfSale: z.infer<typeof pointOfSaleIriSchema>;
|
|
139
|
+
};
|
|
140
|
+
type MenuItemBundleDetails = MenuItemBundle & {
|
|
141
|
+
pointOfSale: z.infer<typeof pointOfSaleIriSchema>;
|
|
142
|
+
};
|
|
143
|
+
type MenuItemDetails = MenuItemChoiceDetails | MenuItemItemDetails | MenuItemBundleDetails;
|
|
144
|
+
declare const menuItemChoiceSchema: z.ZodType<MenuItemChoice>;
|
|
145
|
+
declare const menuItemItemSchema: z.ZodType<MenuItemItem>;
|
|
146
|
+
declare const menuItemBundleSchema: z.ZodType<MenuItemBundle>;
|
|
147
|
+
declare const menuItemSchema: z.ZodType<MenuItem>;
|
|
148
|
+
declare const menuItemChoiceDetailsSchema: z.ZodType<MenuItemChoiceDetails>;
|
|
149
|
+
declare const menuItemItemDetailsSchema: z.ZodType<MenuItemItemDetails>;
|
|
150
|
+
declare const menuItemBundleDetailsSchema: z.ZodType<MenuItemBundleDetails>;
|
|
151
|
+
declare const menuItemDetailsSchema: z.ZodType<MenuItemDetails>;
|
|
34
152
|
declare const writableMenuItemSchema: z.ZodObject<{
|
|
35
153
|
type: z.ZodEnum<{
|
|
36
154
|
ITEM: "ITEM";
|
|
@@ -2581,7 +2699,7 @@ declare const createMenuItemInputSchema: z.ZodObject<{
|
|
|
2581
2699
|
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>>>>>;
|
|
2582
2700
|
}, z.core.$strip>;
|
|
2583
2701
|
type CreateMenuItemInput = z.input<typeof createMenuItemInputSchema>;
|
|
2584
|
-
declare const createMenuItemResponseSchema: z.ZodType<
|
|
2702
|
+
declare const createMenuItemResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2585
2703
|
type CreateMenuItemResponse = z.output<typeof createMenuItemResponseSchema>;
|
|
2586
2704
|
declare class CreateMenuItem extends AbstractApiRequest<typeof createMenuItemInputSchema, typeof createMenuItemResponseSchema> {
|
|
2587
2705
|
readonly method = "POST";
|
|
@@ -2646,7 +2764,7 @@ declare class CreateMenuItem extends AbstractApiRequest<typeof createMenuItemInp
|
|
|
2646
2764
|
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>>>;
|
|
2647
2765
|
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>>>>>;
|
|
2648
2766
|
}, z.core.$strip>;
|
|
2649
|
-
readonly outputSchema: z.ZodType<
|
|
2767
|
+
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2650
2768
|
readonly querySchema: undefined;
|
|
2651
2769
|
readonly headersSchema: undefined;
|
|
2652
2770
|
constructor(input: CreateMenuItemInput);
|
|
@@ -2670,14 +2788,14 @@ declare class DeleteMenuItem extends AbstractApiRequest<typeof deleteMenuItemInp
|
|
|
2670
2788
|
|
|
2671
2789
|
declare const getMenuItemDetailsInputSchema: z.ZodUndefined;
|
|
2672
2790
|
type GetMenuItemDetailsInput = z.infer<typeof getMenuItemDetailsInputSchema>;
|
|
2673
|
-
declare const getMenuItemDetailsResponseSchema: z.ZodType<
|
|
2791
|
+
declare const getMenuItemDetailsResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2674
2792
|
type GetMenuItemDetailsResponse = z.infer<typeof getMenuItemDetailsResponseSchema>;
|
|
2675
2793
|
declare class GetMenuItemDetails extends AbstractApiRequest<typeof getMenuItemDetailsInputSchema, typeof getMenuItemDetailsResponseSchema> {
|
|
2676
2794
|
readonly method = "GET";
|
|
2677
2795
|
readonly contentType = "application/json";
|
|
2678
2796
|
readonly accept = "application/json";
|
|
2679
2797
|
readonly inputSchema: z.ZodUndefined;
|
|
2680
|
-
readonly outputSchema: z.ZodType<
|
|
2798
|
+
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2681
2799
|
readonly querySchema: undefined;
|
|
2682
2800
|
readonly headersSchema: undefined;
|
|
2683
2801
|
private readonly menuItemId;
|
|
@@ -2739,7 +2857,7 @@ type GetMenuItemsQueryParams = z.infer<typeof getMenuItemsQuerySchema>;
|
|
|
2739
2857
|
declare const getMenuItemsInputSchema: z.ZodUndefined;
|
|
2740
2858
|
type GetMenuItemsInput = z.input<typeof getMenuItemsInputSchema>;
|
|
2741
2859
|
declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
2742
|
-
data: z.ZodArray<z.ZodType<
|
|
2860
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2743
2861
|
pagination: z.ZodObject<{
|
|
2744
2862
|
from: z.ZodCoercedNumber<unknown>;
|
|
2745
2863
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -2756,7 +2874,7 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
2756
2874
|
readonly accept = "application/json";
|
|
2757
2875
|
readonly inputSchema: z.ZodUndefined;
|
|
2758
2876
|
readonly outputSchema: z.ZodObject<{
|
|
2759
|
-
data: z.ZodArray<z.ZodType<
|
|
2877
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2760
2878
|
pagination: z.ZodObject<{
|
|
2761
2879
|
from: z.ZodCoercedNumber<unknown>;
|
|
2762
2880
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -2877,14 +2995,14 @@ declare const getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: z.ZodObject<
|
|
|
2877
2995
|
type GetMenuItemsAsChoicesFromMenuItemModifierQueryParams = z.infer<typeof getMenuItemsAsChoicesFromMenuItemModifierQuerySchema>;
|
|
2878
2996
|
declare const getMenuItemsAsChoicesFromMenuItemModifierInputSchema: z.ZodUndefined;
|
|
2879
2997
|
type GetMenuItemsAsChoicesFromMenuItemModifierInput = z.input<typeof getMenuItemsAsChoicesFromMenuItemModifierInputSchema>;
|
|
2880
|
-
declare const getMenuItemsAsChoicesFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<
|
|
2998
|
+
declare const getMenuItemsAsChoicesFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2881
2999
|
type GetMenuItemsAsChoicesFromMenuItemModifierResponse = z.infer<typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema>;
|
|
2882
3000
|
declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsAsChoicesFromMenuItemModifierInputSchema, typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, GetMenuItemsAsChoicesFromMenuItemModifierQueryParams> {
|
|
2883
3001
|
readonly method = "GET";
|
|
2884
3002
|
readonly contentType = "application/json";
|
|
2885
3003
|
readonly accept = "application/json";
|
|
2886
3004
|
readonly inputSchema: z.ZodUndefined;
|
|
2887
|
-
readonly outputSchema: z.ZodArray<z.ZodType<
|
|
3005
|
+
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2888
3006
|
readonly querySchema: z.ZodObject<{
|
|
2889
3007
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2890
3008
|
soldIndividually: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -2998,7 +3116,7 @@ type GetMenuItemsFromMenuItemCategoryQueryParams = z.infer<typeof getMenuItemsFr
|
|
|
2998
3116
|
declare const getMenuItemsFromMenuItemCategoryInputSchema: z.ZodUndefined;
|
|
2999
3117
|
type GetMenuItemsFromMenuItemCategoryInput = z.input<typeof getMenuItemsFromMenuItemCategoryInputSchema>;
|
|
3000
3118
|
declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
3001
|
-
data: z.ZodArray<z.ZodType<
|
|
3119
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3002
3120
|
pagination: z.ZodObject<{
|
|
3003
3121
|
from: z.ZodCoercedNumber<unknown>;
|
|
3004
3122
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3015,7 +3133,7 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3015
3133
|
readonly accept = "application/json";
|
|
3016
3134
|
readonly inputSchema: z.ZodUndefined;
|
|
3017
3135
|
readonly outputSchema: z.ZodObject<{
|
|
3018
|
-
data: z.ZodArray<z.ZodType<
|
|
3136
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3019
3137
|
pagination: z.ZodObject<{
|
|
3020
3138
|
from: z.ZodCoercedNumber<unknown>;
|
|
3021
3139
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3137,14 +3255,14 @@ declare const getMenuItemsFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
|
3137
3255
|
type GetMenuItemsFromMenuItemModifierQueryParams = z.infer<typeof getMenuItemsFromMenuItemModifierQuerySchema>;
|
|
3138
3256
|
declare const getMenuItemsFromMenuItemModifierInputSchema: z.ZodUndefined;
|
|
3139
3257
|
type GetMenuItemsFromMenuItemModifierInput = z.input<typeof getMenuItemsFromMenuItemModifierInputSchema>;
|
|
3140
|
-
declare const getMenuItemsFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<
|
|
3258
|
+
declare const getMenuItemsFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3141
3259
|
type GetMenuItemsFromMenuItemModifierResponse = z.infer<typeof getMenuItemsFromMenuItemModifierResponseSchema>;
|
|
3142
3260
|
declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsFromMenuItemModifierInputSchema, typeof getMenuItemsFromMenuItemModifierResponseSchema, GetMenuItemsFromMenuItemModifierQueryParams> {
|
|
3143
3261
|
readonly method = "GET";
|
|
3144
3262
|
readonly contentType = "application/json";
|
|
3145
3263
|
readonly accept = "application/json";
|
|
3146
3264
|
readonly inputSchema: z.ZodUndefined;
|
|
3147
|
-
readonly outputSchema: z.ZodArray<z.ZodType<
|
|
3265
|
+
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3148
3266
|
readonly querySchema: z.ZodObject<{
|
|
3149
3267
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3150
3268
|
soldIndividually: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3258,7 +3376,7 @@ type GetMenuItemsFromPointOfSaleQueryParams = z.infer<typeof getMenuItemsFromPoi
|
|
|
3258
3376
|
declare const getMenuItemsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3259
3377
|
type GetMenuItemsFromPointOfSaleInput = z.input<typeof getMenuItemsFromPointOfSaleInputSchema>;
|
|
3260
3378
|
declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
3261
|
-
data: z.ZodArray<z.ZodType<
|
|
3379
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3262
3380
|
pagination: z.ZodObject<{
|
|
3263
3381
|
from: z.ZodCoercedNumber<unknown>;
|
|
3264
3382
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3275,7 +3393,7 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3275
3393
|
readonly accept = "application/json";
|
|
3276
3394
|
readonly inputSchema: z.ZodUndefined;
|
|
3277
3395
|
readonly outputSchema: z.ZodObject<{
|
|
3278
|
-
data: z.ZodArray<z.ZodType<
|
|
3396
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3279
3397
|
pagination: z.ZodObject<{
|
|
3280
3398
|
from: z.ZodCoercedNumber<unknown>;
|
|
3281
3399
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3403,7 +3521,7 @@ declare const updateMenuItemInputSchema: z.ZodObject<{
|
|
|
3403
3521
|
images: z.ZodOptional<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>>>>>;
|
|
3404
3522
|
}, z.core.$strip>;
|
|
3405
3523
|
type UpdateMenuItemInput = z.input<typeof updateMenuItemInputSchema>;
|
|
3406
|
-
declare const updateMenuItemResponseSchema: z.ZodType<
|
|
3524
|
+
declare const updateMenuItemResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
3407
3525
|
type UpdateMenuItemResponse = z.infer<typeof updateMenuItemResponseSchema>;
|
|
3408
3526
|
declare class UpdateMenuItem extends AbstractApiRequest<typeof updateMenuItemInputSchema, typeof updateMenuItemResponseSchema> {
|
|
3409
3527
|
readonly method = "PATCH";
|
|
@@ -3467,7 +3585,7 @@ declare class UpdateMenuItem extends AbstractApiRequest<typeof updateMenuItemInp
|
|
|
3467
3585
|
}, z.core.$strip>>>>;
|
|
3468
3586
|
images: z.ZodOptional<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>>>>>;
|
|
3469
3587
|
}, z.core.$strip>;
|
|
3470
|
-
readonly outputSchema: z.ZodType<
|
|
3588
|
+
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
3471
3589
|
readonly querySchema: undefined;
|
|
3472
3590
|
readonly headersSchema: undefined;
|
|
3473
3591
|
private readonly menuItemId;
|
|
@@ -3567,29 +3685,4 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3567
3685
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3568
3686
|
}
|
|
3569
3687
|
|
|
3570
|
-
|
|
3571
|
-
type MenuItemIri = z.infer<typeof menuItemIriSchema>;
|
|
3572
|
-
declare const menuItemNullableIriSchema: 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>>;
|
|
3573
|
-
type MenuItemNullableIri = z.infer<typeof menuItemNullableIriSchema>;
|
|
3574
|
-
declare const menuItemSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown>>;
|
|
3575
|
-
type MenuItemSalesPriceIri = z.infer<typeof menuItemSalesPriceIriSchema>;
|
|
3576
|
-
declare const menuItemSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown>>;
|
|
3577
|
-
type MenuItemSalesPriceNullableIri = z.infer<typeof menuItemSalesPriceNullableIriSchema>;
|
|
3578
|
-
declare const menuItemCategoryIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown>>;
|
|
3579
|
-
type MenuItemCategoryIri = z.infer<typeof menuItemCategoryIriSchema>;
|
|
3580
|
-
declare const menuItemCategoryNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>;
|
|
3581
|
-
type MenuItemCategoryNullableIri = z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
3582
|
-
declare const menuItemModifierIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown>>;
|
|
3583
|
-
type MenuItemModifierIri = z.infer<typeof menuItemModifierIriSchema>;
|
|
3584
|
-
declare const menuItemModifierNullableIriSchema: 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>>;
|
|
3585
|
-
type MenuItemModifierNullableIri = z.infer<typeof menuItemModifierNullableIriSchema>;
|
|
3586
|
-
declare const menuItemPriceOverrideIriSchema: 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>>;
|
|
3587
|
-
type MenuItemPriceOverrideIri = z.infer<typeof menuItemPriceOverrideIriSchema>;
|
|
3588
|
-
declare const menuItemPriceOverrideNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown>>;
|
|
3589
|
-
type MenuItemPriceOverrideNullableIri = z.infer<typeof menuItemPriceOverrideNullableIriSchema>;
|
|
3590
|
-
declare const menuItemPriceOverrideSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown>>;
|
|
3591
|
-
type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSalesPriceIriSchema>;
|
|
3592
|
-
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>>;
|
|
3593
|
-
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
3594
|
-
|
|
3595
|
-
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, GetMenuItemModifiersFromPointOfSale, type GetMenuItemModifiersFromPointOfSaleInput, type GetMenuItemModifiersFromPointOfSaleQueryParams, type GetMenuItemModifiersFromPointOfSaleResponse, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponse, GetMenuItemPriceOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesFromMenuItemModifierResponse, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsAsChoicesFromMenuItemModifier, type GetMenuItemsAsChoicesFromMenuItemModifierInput, type GetMenuItemsAsChoicesFromMenuItemModifierQueryParams, type GetMenuItemsAsChoicesFromMenuItemModifierResponse, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromMenuItemModifier, type GetMenuItemsFromMenuItemModifierInput, type GetMenuItemsFromMenuItemModifierQueryParams, type GetMenuItemsFromMenuItemModifierResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, 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, getMenuItemModifiersFromPointOfSaleInputSchema, getMenuItemModifiersFromPointOfSaleQuerySchema, getMenuItemModifiersFromPointOfSaleResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsAsChoicesFromMenuItemModifierInputSchema, getMenuItemsAsChoicesFromMenuItemModifierQuerySchema, getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, getMenuItemsFromMenuItemModifierInputSchema, getMenuItemsFromMenuItemModifierQuerySchema, getMenuItemsFromMenuItemModifierResponseSchema, getMenuItemsFromPointOfSaleInputSchema, getMenuItemsFromPointOfSaleQuerySchema, getMenuItemsFromPointOfSaleResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleDetailsSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceDetailsSchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, menuItemItemDetailsSchema, 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 };
|
|
3688
|
+
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, GetMenuItemModifiersFromPointOfSale, type GetMenuItemModifiersFromPointOfSaleInput, type GetMenuItemModifiersFromPointOfSaleQueryParams, type GetMenuItemModifiersFromPointOfSaleResponse, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponse, GetMenuItemPriceOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesFromMenuItemModifierResponse, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsAsChoicesFromMenuItemModifier, type GetMenuItemsAsChoicesFromMenuItemModifierInput, type GetMenuItemsAsChoicesFromMenuItemModifierQueryParams, type GetMenuItemsAsChoicesFromMenuItemModifierResponse, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromMenuItemModifier, type GetMenuItemsFromMenuItemModifierInput, type GetMenuItemsFromMenuItemModifierQueryParams, type GetMenuItemsFromMenuItemModifierResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, 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 MenuItemBundle, type MenuItemBundleDetails, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemChoice, type MenuItemChoiceDetails, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemItem, type MenuItemItemDetails, 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, getMenuItemModifiersFromPointOfSaleInputSchema, getMenuItemModifiersFromPointOfSaleQuerySchema, getMenuItemModifiersFromPointOfSaleResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsAsChoicesFromMenuItemModifierInputSchema, getMenuItemsAsChoicesFromMenuItemModifierQuerySchema, getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, getMenuItemsFromMenuItemModifierInputSchema, getMenuItemsFromMenuItemModifierQuerySchema, getMenuItemsFromMenuItemModifierResponseSchema, getMenuItemsFromPointOfSaleInputSchema, getMenuItemsFromPointOfSaleQuerySchema, getMenuItemsFromPointOfSaleResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleDetailsSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceDetailsSchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, menuItemItemDetailsSchema, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
2
|
+
import { menuChannelSchema, menuItemAllergenSchema, menuItemDietSchema, Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
3
|
export { MenuChannel, MenuItemAllergen, MenuItemDiet, MenuItemPriceOverrideType, MenuItemType, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes } from '@deliverart/sdk-js-global-types';
|
|
4
|
+
import { imageSchema } from '@deliverart/sdk-js-image';
|
|
5
|
+
import { pointOfSaleIriSchema } from '@deliverart/sdk-js-point-of-sale';
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
6
8
|
|
|
9
|
+
declare const menuItemIriSchema: 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>>;
|
|
10
|
+
type MenuItemIri = z.infer<typeof menuItemIriSchema>;
|
|
11
|
+
declare const menuItemNullableIriSchema: 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>>;
|
|
12
|
+
type MenuItemNullableIri = z.infer<typeof menuItemNullableIriSchema>;
|
|
13
|
+
declare const menuItemSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown>>;
|
|
14
|
+
type MenuItemSalesPriceIri = z.infer<typeof menuItemSalesPriceIriSchema>;
|
|
15
|
+
declare const menuItemSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown>>;
|
|
16
|
+
type MenuItemSalesPriceNullableIri = z.infer<typeof menuItemSalesPriceNullableIriSchema>;
|
|
17
|
+
declare const menuItemCategoryIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown>>;
|
|
18
|
+
type MenuItemCategoryIri = z.infer<typeof menuItemCategoryIriSchema>;
|
|
19
|
+
declare const menuItemCategoryNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>;
|
|
20
|
+
type MenuItemCategoryNullableIri = z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
21
|
+
declare const menuItemModifierIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown>>;
|
|
22
|
+
type MenuItemModifierIri = z.infer<typeof menuItemModifierIriSchema>;
|
|
23
|
+
declare const menuItemModifierNullableIriSchema: 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>>;
|
|
24
|
+
type MenuItemModifierNullableIri = z.infer<typeof menuItemModifierNullableIriSchema>;
|
|
25
|
+
declare const menuItemPriceOverrideIriSchema: 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>>;
|
|
26
|
+
type MenuItemPriceOverrideIri = z.infer<typeof menuItemPriceOverrideIriSchema>;
|
|
27
|
+
declare const menuItemPriceOverrideNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown>>;
|
|
28
|
+
type MenuItemPriceOverrideNullableIri = z.infer<typeof menuItemPriceOverrideNullableIriSchema>;
|
|
29
|
+
declare const menuItemPriceOverrideSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown>>;
|
|
30
|
+
type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSalesPriceIriSchema>;
|
|
31
|
+
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>>;
|
|
32
|
+
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
33
|
+
|
|
7
34
|
declare const localeItemSchema: z.ZodObject<{
|
|
8
35
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
9
36
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -21,16 +48,107 @@ declare const menuVersionSchema: z.ZodObject<{
|
|
|
21
48
|
updatedAt: z.ZodString;
|
|
22
49
|
}, z.core.$strip>;
|
|
23
50
|
type MenuVersion = z.infer<typeof menuVersionSchema>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
type MenuItemVariant = {
|
|
52
|
+
id: string;
|
|
53
|
+
type: 'ITEM';
|
|
54
|
+
price: string;
|
|
55
|
+
referenceItem: MenuItem;
|
|
56
|
+
suspended: boolean;
|
|
57
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
60
|
+
};
|
|
61
|
+
type MenuItemChoice = {
|
|
62
|
+
id: string;
|
|
63
|
+
channels: z.infer<typeof menuChannelSchema>[];
|
|
64
|
+
tags: string[];
|
|
65
|
+
category: z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
66
|
+
type: 'CHOICE';
|
|
67
|
+
name: z.infer<typeof localeItemSchema>[];
|
|
68
|
+
description: z.infer<typeof localeItemSchema>[];
|
|
69
|
+
allergens: z.infer<typeof menuItemAllergenSchema>[];
|
|
70
|
+
diets: z.infer<typeof menuItemDietSchema>[];
|
|
71
|
+
price: string;
|
|
72
|
+
taxRate: number;
|
|
73
|
+
containsAlcohol: boolean;
|
|
74
|
+
countable: boolean;
|
|
75
|
+
soldIndividually: boolean;
|
|
76
|
+
suspended: boolean;
|
|
77
|
+
compositions: never[];
|
|
78
|
+
modifiers: never[];
|
|
79
|
+
variants: MenuItemVariant[];
|
|
80
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
81
|
+
images: z.infer<typeof imageSchema>[];
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
|
+
};
|
|
85
|
+
type MenuItemItem = {
|
|
86
|
+
id: string;
|
|
87
|
+
channels: z.infer<typeof menuChannelSchema>[];
|
|
88
|
+
tags: string[];
|
|
89
|
+
category: z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
90
|
+
type: 'ITEM';
|
|
91
|
+
name: z.infer<typeof localeItemSchema>[];
|
|
92
|
+
description: z.infer<typeof localeItemSchema>[];
|
|
93
|
+
allergens: z.infer<typeof menuItemAllergenSchema>[];
|
|
94
|
+
diets: z.infer<typeof menuItemDietSchema>[];
|
|
95
|
+
price: string;
|
|
96
|
+
taxRate: number;
|
|
97
|
+
containsAlcohol: boolean;
|
|
98
|
+
countable: boolean;
|
|
99
|
+
soldIndividually: boolean;
|
|
100
|
+
suspended: boolean;
|
|
101
|
+
compositions: z.infer<typeof menuItemIriSchema>[];
|
|
102
|
+
modifiers: z.infer<typeof menuItemModifierIriSchema>[];
|
|
103
|
+
variants: MenuItemVariant[];
|
|
104
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
105
|
+
images: z.infer<typeof imageSchema>[];
|
|
106
|
+
createdAt: string;
|
|
107
|
+
updatedAt: string;
|
|
108
|
+
};
|
|
109
|
+
type MenuItemBundle = {
|
|
110
|
+
id: string;
|
|
111
|
+
channels: z.infer<typeof menuChannelSchema>[];
|
|
112
|
+
tags: string[];
|
|
113
|
+
category: z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
114
|
+
type: 'BUNDLE';
|
|
115
|
+
name: z.infer<typeof localeItemSchema>[];
|
|
116
|
+
description: z.infer<typeof localeItemSchema>[];
|
|
117
|
+
allergens: z.infer<typeof menuItemAllergenSchema>[];
|
|
118
|
+
diets: z.infer<typeof menuItemDietSchema>[];
|
|
119
|
+
price: string;
|
|
120
|
+
taxRate: number;
|
|
121
|
+
containsAlcohol: boolean;
|
|
122
|
+
countable: boolean;
|
|
123
|
+
soldIndividually: boolean;
|
|
124
|
+
suspended: boolean;
|
|
125
|
+
compositions: z.infer<typeof menuItemIriSchema>[];
|
|
126
|
+
modifiers: z.infer<typeof menuItemModifierIriSchema>[];
|
|
127
|
+
variants: MenuItemVariant[];
|
|
128
|
+
salesPrices: z.infer<typeof salesPriceDTOSchema>[];
|
|
129
|
+
images: z.infer<typeof imageSchema>[];
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
};
|
|
133
|
+
type MenuItem = MenuItemChoice | MenuItemItem | MenuItemBundle;
|
|
134
|
+
type MenuItemChoiceDetails = MenuItemChoice & {
|
|
135
|
+
pointOfSale: z.infer<typeof pointOfSaleIriSchema>;
|
|
136
|
+
};
|
|
137
|
+
type MenuItemItemDetails = MenuItemItem & {
|
|
138
|
+
pointOfSale: z.infer<typeof pointOfSaleIriSchema>;
|
|
139
|
+
};
|
|
140
|
+
type MenuItemBundleDetails = MenuItemBundle & {
|
|
141
|
+
pointOfSale: z.infer<typeof pointOfSaleIriSchema>;
|
|
142
|
+
};
|
|
143
|
+
type MenuItemDetails = MenuItemChoiceDetails | MenuItemItemDetails | MenuItemBundleDetails;
|
|
144
|
+
declare const menuItemChoiceSchema: z.ZodType<MenuItemChoice>;
|
|
145
|
+
declare const menuItemItemSchema: z.ZodType<MenuItemItem>;
|
|
146
|
+
declare const menuItemBundleSchema: z.ZodType<MenuItemBundle>;
|
|
147
|
+
declare const menuItemSchema: z.ZodType<MenuItem>;
|
|
148
|
+
declare const menuItemChoiceDetailsSchema: z.ZodType<MenuItemChoiceDetails>;
|
|
149
|
+
declare const menuItemItemDetailsSchema: z.ZodType<MenuItemItemDetails>;
|
|
150
|
+
declare const menuItemBundleDetailsSchema: z.ZodType<MenuItemBundleDetails>;
|
|
151
|
+
declare const menuItemDetailsSchema: z.ZodType<MenuItemDetails>;
|
|
34
152
|
declare const writableMenuItemSchema: z.ZodObject<{
|
|
35
153
|
type: z.ZodEnum<{
|
|
36
154
|
ITEM: "ITEM";
|
|
@@ -2581,7 +2699,7 @@ declare const createMenuItemInputSchema: z.ZodObject<{
|
|
|
2581
2699
|
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>>>>>;
|
|
2582
2700
|
}, z.core.$strip>;
|
|
2583
2701
|
type CreateMenuItemInput = z.input<typeof createMenuItemInputSchema>;
|
|
2584
|
-
declare const createMenuItemResponseSchema: z.ZodType<
|
|
2702
|
+
declare const createMenuItemResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2585
2703
|
type CreateMenuItemResponse = z.output<typeof createMenuItemResponseSchema>;
|
|
2586
2704
|
declare class CreateMenuItem extends AbstractApiRequest<typeof createMenuItemInputSchema, typeof createMenuItemResponseSchema> {
|
|
2587
2705
|
readonly method = "POST";
|
|
@@ -2646,7 +2764,7 @@ declare class CreateMenuItem extends AbstractApiRequest<typeof createMenuItemInp
|
|
|
2646
2764
|
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>>>;
|
|
2647
2765
|
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>>>>>;
|
|
2648
2766
|
}, z.core.$strip>;
|
|
2649
|
-
readonly outputSchema: z.ZodType<
|
|
2767
|
+
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2650
2768
|
readonly querySchema: undefined;
|
|
2651
2769
|
readonly headersSchema: undefined;
|
|
2652
2770
|
constructor(input: CreateMenuItemInput);
|
|
@@ -2670,14 +2788,14 @@ declare class DeleteMenuItem extends AbstractApiRequest<typeof deleteMenuItemInp
|
|
|
2670
2788
|
|
|
2671
2789
|
declare const getMenuItemDetailsInputSchema: z.ZodUndefined;
|
|
2672
2790
|
type GetMenuItemDetailsInput = z.infer<typeof getMenuItemDetailsInputSchema>;
|
|
2673
|
-
declare const getMenuItemDetailsResponseSchema: z.ZodType<
|
|
2791
|
+
declare const getMenuItemDetailsResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2674
2792
|
type GetMenuItemDetailsResponse = z.infer<typeof getMenuItemDetailsResponseSchema>;
|
|
2675
2793
|
declare class GetMenuItemDetails extends AbstractApiRequest<typeof getMenuItemDetailsInputSchema, typeof getMenuItemDetailsResponseSchema> {
|
|
2676
2794
|
readonly method = "GET";
|
|
2677
2795
|
readonly contentType = "application/json";
|
|
2678
2796
|
readonly accept = "application/json";
|
|
2679
2797
|
readonly inputSchema: z.ZodUndefined;
|
|
2680
|
-
readonly outputSchema: z.ZodType<
|
|
2798
|
+
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2681
2799
|
readonly querySchema: undefined;
|
|
2682
2800
|
readonly headersSchema: undefined;
|
|
2683
2801
|
private readonly menuItemId;
|
|
@@ -2739,7 +2857,7 @@ type GetMenuItemsQueryParams = z.infer<typeof getMenuItemsQuerySchema>;
|
|
|
2739
2857
|
declare const getMenuItemsInputSchema: z.ZodUndefined;
|
|
2740
2858
|
type GetMenuItemsInput = z.input<typeof getMenuItemsInputSchema>;
|
|
2741
2859
|
declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
2742
|
-
data: z.ZodArray<z.ZodType<
|
|
2860
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2743
2861
|
pagination: z.ZodObject<{
|
|
2744
2862
|
from: z.ZodCoercedNumber<unknown>;
|
|
2745
2863
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -2756,7 +2874,7 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
2756
2874
|
readonly accept = "application/json";
|
|
2757
2875
|
readonly inputSchema: z.ZodUndefined;
|
|
2758
2876
|
readonly outputSchema: z.ZodObject<{
|
|
2759
|
-
data: z.ZodArray<z.ZodType<
|
|
2877
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2760
2878
|
pagination: z.ZodObject<{
|
|
2761
2879
|
from: z.ZodCoercedNumber<unknown>;
|
|
2762
2880
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -2877,14 +2995,14 @@ declare const getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: z.ZodObject<
|
|
|
2877
2995
|
type GetMenuItemsAsChoicesFromMenuItemModifierQueryParams = z.infer<typeof getMenuItemsAsChoicesFromMenuItemModifierQuerySchema>;
|
|
2878
2996
|
declare const getMenuItemsAsChoicesFromMenuItemModifierInputSchema: z.ZodUndefined;
|
|
2879
2997
|
type GetMenuItemsAsChoicesFromMenuItemModifierInput = z.input<typeof getMenuItemsAsChoicesFromMenuItemModifierInputSchema>;
|
|
2880
|
-
declare const getMenuItemsAsChoicesFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<
|
|
2998
|
+
declare const getMenuItemsAsChoicesFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2881
2999
|
type GetMenuItemsAsChoicesFromMenuItemModifierResponse = z.infer<typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema>;
|
|
2882
3000
|
declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsAsChoicesFromMenuItemModifierInputSchema, typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, GetMenuItemsAsChoicesFromMenuItemModifierQueryParams> {
|
|
2883
3001
|
readonly method = "GET";
|
|
2884
3002
|
readonly contentType = "application/json";
|
|
2885
3003
|
readonly accept = "application/json";
|
|
2886
3004
|
readonly inputSchema: z.ZodUndefined;
|
|
2887
|
-
readonly outputSchema: z.ZodArray<z.ZodType<
|
|
3005
|
+
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
2888
3006
|
readonly querySchema: z.ZodObject<{
|
|
2889
3007
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2890
3008
|
soldIndividually: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -2998,7 +3116,7 @@ type GetMenuItemsFromMenuItemCategoryQueryParams = z.infer<typeof getMenuItemsFr
|
|
|
2998
3116
|
declare const getMenuItemsFromMenuItemCategoryInputSchema: z.ZodUndefined;
|
|
2999
3117
|
type GetMenuItemsFromMenuItemCategoryInput = z.input<typeof getMenuItemsFromMenuItemCategoryInputSchema>;
|
|
3000
3118
|
declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
3001
|
-
data: z.ZodArray<z.ZodType<
|
|
3119
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3002
3120
|
pagination: z.ZodObject<{
|
|
3003
3121
|
from: z.ZodCoercedNumber<unknown>;
|
|
3004
3122
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3015,7 +3133,7 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3015
3133
|
readonly accept = "application/json";
|
|
3016
3134
|
readonly inputSchema: z.ZodUndefined;
|
|
3017
3135
|
readonly outputSchema: z.ZodObject<{
|
|
3018
|
-
data: z.ZodArray<z.ZodType<
|
|
3136
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3019
3137
|
pagination: z.ZodObject<{
|
|
3020
3138
|
from: z.ZodCoercedNumber<unknown>;
|
|
3021
3139
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3137,14 +3255,14 @@ declare const getMenuItemsFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
|
3137
3255
|
type GetMenuItemsFromMenuItemModifierQueryParams = z.infer<typeof getMenuItemsFromMenuItemModifierQuerySchema>;
|
|
3138
3256
|
declare const getMenuItemsFromMenuItemModifierInputSchema: z.ZodUndefined;
|
|
3139
3257
|
type GetMenuItemsFromMenuItemModifierInput = z.input<typeof getMenuItemsFromMenuItemModifierInputSchema>;
|
|
3140
|
-
declare const getMenuItemsFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<
|
|
3258
|
+
declare const getMenuItemsFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3141
3259
|
type GetMenuItemsFromMenuItemModifierResponse = z.infer<typeof getMenuItemsFromMenuItemModifierResponseSchema>;
|
|
3142
3260
|
declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsFromMenuItemModifierInputSchema, typeof getMenuItemsFromMenuItemModifierResponseSchema, GetMenuItemsFromMenuItemModifierQueryParams> {
|
|
3143
3261
|
readonly method = "GET";
|
|
3144
3262
|
readonly contentType = "application/json";
|
|
3145
3263
|
readonly accept = "application/json";
|
|
3146
3264
|
readonly inputSchema: z.ZodUndefined;
|
|
3147
|
-
readonly outputSchema: z.ZodArray<z.ZodType<
|
|
3265
|
+
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3148
3266
|
readonly querySchema: z.ZodObject<{
|
|
3149
3267
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3150
3268
|
soldIndividually: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3258,7 +3376,7 @@ type GetMenuItemsFromPointOfSaleQueryParams = z.infer<typeof getMenuItemsFromPoi
|
|
|
3258
3376
|
declare const getMenuItemsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3259
3377
|
type GetMenuItemsFromPointOfSaleInput = z.input<typeof getMenuItemsFromPointOfSaleInputSchema>;
|
|
3260
3378
|
declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
3261
|
-
data: z.ZodArray<z.ZodType<
|
|
3379
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3262
3380
|
pagination: z.ZodObject<{
|
|
3263
3381
|
from: z.ZodCoercedNumber<unknown>;
|
|
3264
3382
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3275,7 +3393,7 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3275
3393
|
readonly accept = "application/json";
|
|
3276
3394
|
readonly inputSchema: z.ZodUndefined;
|
|
3277
3395
|
readonly outputSchema: z.ZodObject<{
|
|
3278
|
-
data: z.ZodArray<z.ZodType<
|
|
3396
|
+
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3279
3397
|
pagination: z.ZodObject<{
|
|
3280
3398
|
from: z.ZodCoercedNumber<unknown>;
|
|
3281
3399
|
to: z.ZodCoercedNumber<unknown>;
|
|
@@ -3403,7 +3521,7 @@ declare const updateMenuItemInputSchema: z.ZodObject<{
|
|
|
3403
3521
|
images: z.ZodOptional<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>>>>>;
|
|
3404
3522
|
}, z.core.$strip>;
|
|
3405
3523
|
type UpdateMenuItemInput = z.input<typeof updateMenuItemInputSchema>;
|
|
3406
|
-
declare const updateMenuItemResponseSchema: z.ZodType<
|
|
3524
|
+
declare const updateMenuItemResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
3407
3525
|
type UpdateMenuItemResponse = z.infer<typeof updateMenuItemResponseSchema>;
|
|
3408
3526
|
declare class UpdateMenuItem extends AbstractApiRequest<typeof updateMenuItemInputSchema, typeof updateMenuItemResponseSchema> {
|
|
3409
3527
|
readonly method = "PATCH";
|
|
@@ -3467,7 +3585,7 @@ declare class UpdateMenuItem extends AbstractApiRequest<typeof updateMenuItemInp
|
|
|
3467
3585
|
}, z.core.$strip>>>>;
|
|
3468
3586
|
images: z.ZodOptional<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>>>>>;
|
|
3469
3587
|
}, z.core.$strip>;
|
|
3470
|
-
readonly outputSchema: z.ZodType<
|
|
3588
|
+
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
3471
3589
|
readonly querySchema: undefined;
|
|
3472
3590
|
readonly headersSchema: undefined;
|
|
3473
3591
|
private readonly menuItemId;
|
|
@@ -3567,29 +3685,4 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3567
3685
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3568
3686
|
}
|
|
3569
3687
|
|
|
3570
|
-
|
|
3571
|
-
type MenuItemIri = z.infer<typeof menuItemIriSchema>;
|
|
3572
|
-
declare const menuItemNullableIriSchema: 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>>;
|
|
3573
|
-
type MenuItemNullableIri = z.infer<typeof menuItemNullableIriSchema>;
|
|
3574
|
-
declare const menuItemSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, unknown>>;
|
|
3575
|
-
type MenuItemSalesPriceIri = z.infer<typeof menuItemSalesPriceIriSchema>;
|
|
3576
|
-
declare const menuItemSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, unknown>>;
|
|
3577
|
-
type MenuItemSalesPriceNullableIri = z.infer<typeof menuItemSalesPriceNullableIriSchema>;
|
|
3578
|
-
declare const menuItemCategoryIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, unknown>>;
|
|
3579
|
-
type MenuItemCategoryIri = z.infer<typeof menuItemCategoryIriSchema>;
|
|
3580
|
-
declare const menuItemCategoryNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>;
|
|
3581
|
-
type MenuItemCategoryNullableIri = z.infer<typeof menuItemCategoryNullableIriSchema>;
|
|
3582
|
-
declare const menuItemModifierIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, unknown>>;
|
|
3583
|
-
type MenuItemModifierIri = z.infer<typeof menuItemModifierIriSchema>;
|
|
3584
|
-
declare const menuItemModifierNullableIriSchema: 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>>;
|
|
3585
|
-
type MenuItemModifierNullableIri = z.infer<typeof menuItemModifierNullableIriSchema>;
|
|
3586
|
-
declare const menuItemPriceOverrideIriSchema: 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>>;
|
|
3587
|
-
type MenuItemPriceOverrideIri = z.infer<typeof menuItemPriceOverrideIriSchema>;
|
|
3588
|
-
declare const menuItemPriceOverrideNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, unknown>>;
|
|
3589
|
-
type MenuItemPriceOverrideNullableIri = z.infer<typeof menuItemPriceOverrideNullableIriSchema>;
|
|
3590
|
-
declare const menuItemPriceOverrideSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, unknown>>;
|
|
3591
|
-
type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSalesPriceIriSchema>;
|
|
3592
|
-
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>>;
|
|
3593
|
-
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
3594
|
-
|
|
3595
|
-
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, GetMenuItemModifiersFromPointOfSale, type GetMenuItemModifiersFromPointOfSaleInput, type GetMenuItemModifiersFromPointOfSaleQueryParams, type GetMenuItemModifiersFromPointOfSaleResponse, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponse, GetMenuItemPriceOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesFromMenuItemModifierResponse, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsAsChoicesFromMenuItemModifier, type GetMenuItemsAsChoicesFromMenuItemModifierInput, type GetMenuItemsAsChoicesFromMenuItemModifierQueryParams, type GetMenuItemsAsChoicesFromMenuItemModifierResponse, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromMenuItemModifier, type GetMenuItemsFromMenuItemModifierInput, type GetMenuItemsFromMenuItemModifierQueryParams, type GetMenuItemsFromMenuItemModifierResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, 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, getMenuItemModifiersFromPointOfSaleInputSchema, getMenuItemModifiersFromPointOfSaleQuerySchema, getMenuItemModifiersFromPointOfSaleResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsAsChoicesFromMenuItemModifierInputSchema, getMenuItemsAsChoicesFromMenuItemModifierQuerySchema, getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, getMenuItemsFromMenuItemModifierInputSchema, getMenuItemsFromMenuItemModifierQuerySchema, getMenuItemsFromMenuItemModifierResponseSchema, getMenuItemsFromPointOfSaleInputSchema, getMenuItemsFromPointOfSaleQuerySchema, getMenuItemsFromPointOfSaleResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleDetailsSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceDetailsSchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, menuItemItemDetailsSchema, 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 };
|
|
3688
|
+
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, GetMenuItemModifiersFromPointOfSale, type GetMenuItemModifiersFromPointOfSaleInput, type GetMenuItemModifiersFromPointOfSaleQueryParams, type GetMenuItemModifiersFromPointOfSaleResponse, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponse, GetMenuItemPriceOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesFromMenuItemModifierResponse, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsAsChoicesFromMenuItemModifier, type GetMenuItemsAsChoicesFromMenuItemModifierInput, type GetMenuItemsAsChoicesFromMenuItemModifierQueryParams, type GetMenuItemsAsChoicesFromMenuItemModifierResponse, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromMenuItemModifier, type GetMenuItemsFromMenuItemModifierInput, type GetMenuItemsFromMenuItemModifierQueryParams, type GetMenuItemsFromMenuItemModifierResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, 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 MenuItemBundle, type MenuItemBundleDetails, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemChoice, type MenuItemChoiceDetails, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemItem, type MenuItemItemDetails, 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, getMenuItemModifiersFromPointOfSaleInputSchema, getMenuItemModifiersFromPointOfSaleQuerySchema, getMenuItemModifiersFromPointOfSaleResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsAsChoicesFromMenuItemModifierInputSchema, getMenuItemsAsChoicesFromMenuItemModifierQuerySchema, getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, getMenuItemsFromMenuItemModifierInputSchema, getMenuItemsFromMenuItemModifierQuerySchema, getMenuItemsFromMenuItemModifierResponseSchema, getMenuItemsFromPointOfSaleInputSchema, getMenuItemsFromPointOfSaleQuerySchema, getMenuItemsFromPointOfSaleResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleDetailsSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceDetailsSchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, menuItemItemDetailsSchema, 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 };
|
package/dist/index.js
CHANGED
|
@@ -11233,71 +11233,37 @@ var menuItemCompleteBaseSchema = external_exports.object({
|
|
|
11233
11233
|
createdAt: datetimeSchema,
|
|
11234
11234
|
updatedAt: datetimeSchema
|
|
11235
11235
|
});
|
|
11236
|
-
var
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
type: external_exports.literal("ITEM")
|
|
11249
|
-
});
|
|
11250
|
-
var menuItemBundleSchemaBase = menuItemCompleteBaseSchema.omit({
|
|
11251
|
-
type: true
|
|
11252
|
-
}).extend({
|
|
11253
|
-
type: external_exports.literal("BUNDLE")
|
|
11254
|
-
});
|
|
11236
|
+
var menuItemVariantSchema = external_exports.lazy(
|
|
11237
|
+
() => external_exports.object({
|
|
11238
|
+
id: external_exports.string(),
|
|
11239
|
+
type: external_exports.literal("ITEM"),
|
|
11240
|
+
price: external_exports.string(),
|
|
11241
|
+
referenceItem: menuItemSchema,
|
|
11242
|
+
suspended: external_exports.boolean(),
|
|
11243
|
+
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11244
|
+
createdAt: datetimeSchema,
|
|
11245
|
+
updatedAt: datetimeSchema
|
|
11246
|
+
})
|
|
11247
|
+
);
|
|
11255
11248
|
var menuItemChoiceSchema = external_exports.lazy(
|
|
11256
|
-
() =>
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
referenceItem: menuItemSchema,
|
|
11263
|
-
suspended: external_exports.boolean(),
|
|
11264
|
-
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11265
|
-
createdAt: datetimeSchema,
|
|
11266
|
-
updatedAt: datetimeSchema
|
|
11267
|
-
})
|
|
11268
|
-
).min(0).default([])
|
|
11249
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, category: true, compositions: true, modifiers: true, variants: true }).extend({
|
|
11250
|
+
type: external_exports.literal("CHOICE"),
|
|
11251
|
+
category: menuItemCategoryNullableIriSchema,
|
|
11252
|
+
compositions: external_exports.array(external_exports.never()).default([]),
|
|
11253
|
+
modifiers: external_exports.array(external_exports.never()).default([]),
|
|
11254
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([])
|
|
11269
11255
|
})
|
|
11270
11256
|
);
|
|
11271
11257
|
var menuItemItemSchema = external_exports.lazy(
|
|
11272
|
-
() =>
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
id: external_exports.string(),
|
|
11276
|
-
type: external_exports.literal("ITEM"),
|
|
11277
|
-
price: external_exports.string(),
|
|
11278
|
-
referenceItem: menuItemSchema,
|
|
11279
|
-
suspended: external_exports.boolean(),
|
|
11280
|
-
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11281
|
-
createdAt: datetimeSchema,
|
|
11282
|
-
updatedAt: datetimeSchema
|
|
11283
|
-
})
|
|
11284
|
-
).min(0).default([])
|
|
11258
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11259
|
+
type: external_exports.literal("ITEM"),
|
|
11260
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([])
|
|
11285
11261
|
})
|
|
11286
11262
|
);
|
|
11287
11263
|
var menuItemBundleSchema = external_exports.lazy(
|
|
11288
|
-
() =>
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
id: external_exports.string(),
|
|
11292
|
-
type: external_exports.literal("ITEM"),
|
|
11293
|
-
price: external_exports.string(),
|
|
11294
|
-
referenceItem: menuItemSchema,
|
|
11295
|
-
suspended: external_exports.boolean(),
|
|
11296
|
-
salesPrices: external_exports.array(salesPriceDTOSchema).min(0),
|
|
11297
|
-
createdAt: datetimeSchema,
|
|
11298
|
-
updatedAt: datetimeSchema
|
|
11299
|
-
})
|
|
11300
|
-
).min(0).default([])
|
|
11264
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11265
|
+
type: external_exports.literal("BUNDLE"),
|
|
11266
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([])
|
|
11301
11267
|
})
|
|
11302
11268
|
);
|
|
11303
11269
|
var menuItemSchema = external_exports.lazy(
|
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.18",
|
|
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-global-types": "2.5.
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.5.18",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.5.18",
|
|
23
|
+
"@deliverart/sdk-js-sales-mode": "2.5.18",
|
|
24
|
+
"@deliverart/sdk-js-image": "2.5.18",
|
|
25
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.18"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|