@deliverart/sdk-js-menu 0.0.3 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
1
2
  import { z } from 'zod';
2
3
 
3
4
  declare const menuChannels: readonly ["application", "ecommerce", "deliveroo", "justeat", "glovo"];
@@ -15,29 +16,29 @@ type MenuItemPriceOverrideType = z.infer<typeof menuItemPriceOverrideTypeSchema>
15
16
  declare const menuItemTypes: readonly ["ITEM", "CHOICE", "BUNDLE"];
16
17
  declare const menuItemTypeSchema: z.ZodEnum<["ITEM", "CHOICE", "BUNDLE"]>;
17
18
  type MenuItemType = z.infer<typeof menuItemTypeSchema>;
18
- declare const menuItemPathSchema: z.ZodEffects<z.ZodString, string, string>;
19
- type MenuItemPath = z.infer<typeof menuItemPathSchema>;
20
- declare const menuItemNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
21
- type MenuItemNullablePath = z.infer<typeof menuItemNullablePathSchema>;
22
- declare const menuItemSalesPricePathSchema: z.ZodEffects<z.ZodString, string, string>;
23
- type MenuItemSalesPricePath = z.infer<typeof menuItemSalesPricePathSchema>;
24
- declare const menuItemSalesPriceNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
25
- type MenuItemSalesPriceNullablePath = z.infer<typeof menuItemSalesPriceNullablePathSchema>;
26
- declare const menuItemCategoryPathSchema: z.ZodEffects<z.ZodString, string, string>;
27
- type MenuItemCategoryPath = z.infer<typeof menuItemCategoryPathSchema>;
28
- declare const menuItemCategoryNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
29
- type MenuItemCategoryNullablePath = z.infer<typeof menuItemCategoryNullablePathSchema>;
30
- declare const menuItemModifierPathSchema: z.ZodEffects<z.ZodString, string, string>;
31
- type MenuItemModifierPath = z.infer<typeof menuItemModifierPathSchema>;
32
- declare const menuItemModifierNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
33
- type MenuItemModifierNullablePath = z.infer<typeof menuItemModifierNullablePathSchema>;
34
- declare const menuItemPriceOverridePathSchema: z.ZodEffects<z.ZodString, string, string>;
35
- type MenuItemPriceOverridePath = z.infer<typeof menuItemPriceOverridePathSchema>;
36
- declare const menuItemPriceOverrideNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
37
- type MenuItemPriceOverrideNullablePath = z.infer<typeof menuItemPriceOverrideNullablePathSchema>;
38
- declare const menuItemPriceOverrideSalesPricePathSchema: z.ZodEffects<z.ZodString, string, string>;
39
- type MenuItemPriceOverrideSalesPricePath = z.infer<typeof menuItemPriceOverrideSalesPricePathSchema>;
40
- declare const menuItemPriceOverrideSalesPriceNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
41
- type MenuItemPriceOverrideSalesPriceNullablePath = z.infer<typeof menuItemPriceOverrideSalesPriceNullablePathSchema>;
19
+ declare const menuItemIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">>;
20
+ type MenuItemIri = z.infer<typeof menuItemIriSchema>;
21
+ declare const menuItemNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null>;
22
+ type MenuItemNullableIri = z.infer<typeof menuItemNullableIriSchema>;
23
+ declare const menuItemSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">>;
24
+ type MenuItemSalesPriceIri = z.infer<typeof menuItemSalesPriceIriSchema>;
25
+ declare const menuItemSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null>;
26
+ type MenuItemSalesPriceNullableIri = z.infer<typeof menuItemSalesPriceNullableIriSchema>;
27
+ declare const menuItemCategoryIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">>;
28
+ type MenuItemCategoryIri = z.infer<typeof menuItemCategoryIriSchema>;
29
+ declare const menuItemCategoryNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null>;
30
+ type MenuItemCategoryNullableIri = z.infer<typeof menuItemCategoryNullableIriSchema>;
31
+ declare const menuItemModifierIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">>;
32
+ type MenuItemModifierIri = z.infer<typeof menuItemModifierIriSchema>;
33
+ declare const menuItemModifierNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null>;
34
+ type MenuItemModifierNullableIri = z.infer<typeof menuItemModifierNullableIriSchema>;
35
+ declare const menuItemPriceOverrideIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">>;
36
+ type MenuItemPriceOverrideIri = z.infer<typeof menuItemPriceOverrideIriSchema>;
37
+ declare const menuItemPriceOverrideNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null>;
38
+ type MenuItemPriceOverrideNullableIri = z.infer<typeof menuItemPriceOverrideNullableIriSchema>;
39
+ declare const menuItemPriceOverrideSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">>;
40
+ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSalesPriceIriSchema>;
41
+ declare const menuItemPriceOverrideSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null>;
42
+ type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
42
43
 
43
- export { type MenuChannel, type MenuItemAllergen, type MenuItemCategoryNullablePath, type MenuItemCategoryPath, type MenuItemDiet, type MenuItemModifierNullablePath, type MenuItemModifierPath, type MenuItemNullablePath, type MenuItemPath, type MenuItemPriceOverrideNullablePath, type MenuItemPriceOverridePath, type MenuItemPriceOverrideSalesPriceNullablePath, type MenuItemPriceOverrideSalesPricePath, type MenuItemPriceOverrideType, type MenuItemSalesPriceNullablePath, type MenuItemSalesPricePath, type MenuItemType, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemCategoryNullablePathSchema, menuItemCategoryPathSchema, menuItemDietSchema, menuItemDiets, menuItemModifierNullablePathSchema, menuItemModifierPathSchema, menuItemNullablePathSchema, menuItemPathSchema, menuItemPriceOverrideNullablePathSchema, menuItemPriceOverridePathSchema, menuItemPriceOverrideSalesPriceNullablePathSchema, menuItemPriceOverrideSalesPricePathSchema, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemSalesPriceNullablePathSchema, menuItemSalesPricePathSchema, menuItemTypeSchema, menuItemTypes };
44
+ export { type MenuChannel, type MenuItemAllergen, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDiet, type MenuItemIri, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemNullableIri, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverrideType, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemType, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemDietSchema, menuItemDiets, menuItemIriSchema, menuItemModifierIriSchema, menuItemModifierNullableIriSchema, menuItemNullableIriSchema, menuItemPriceOverrideIriSchema, menuItemPriceOverrideNullableIriSchema, menuItemPriceOverrideSalesPriceIriSchema, menuItemPriceOverrideSalesPriceNullableIriSchema, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemSalesPriceIriSchema, menuItemSalesPriceNullableIriSchema, menuItemTypeSchema, menuItemTypes };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
1
2
  import { z } from 'zod';
2
3
 
3
4
  declare const menuChannels: readonly ["application", "ecommerce", "deliveroo", "justeat", "glovo"];
@@ -15,29 +16,29 @@ type MenuItemPriceOverrideType = z.infer<typeof menuItemPriceOverrideTypeSchema>
15
16
  declare const menuItemTypes: readonly ["ITEM", "CHOICE", "BUNDLE"];
16
17
  declare const menuItemTypeSchema: z.ZodEnum<["ITEM", "CHOICE", "BUNDLE"]>;
17
18
  type MenuItemType = z.infer<typeof menuItemTypeSchema>;
18
- declare const menuItemPathSchema: z.ZodEffects<z.ZodString, string, string>;
19
- type MenuItemPath = z.infer<typeof menuItemPathSchema>;
20
- declare const menuItemNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
21
- type MenuItemNullablePath = z.infer<typeof menuItemNullablePathSchema>;
22
- declare const menuItemSalesPricePathSchema: z.ZodEffects<z.ZodString, string, string>;
23
- type MenuItemSalesPricePath = z.infer<typeof menuItemSalesPricePathSchema>;
24
- declare const menuItemSalesPriceNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
25
- type MenuItemSalesPriceNullablePath = z.infer<typeof menuItemSalesPriceNullablePathSchema>;
26
- declare const menuItemCategoryPathSchema: z.ZodEffects<z.ZodString, string, string>;
27
- type MenuItemCategoryPath = z.infer<typeof menuItemCategoryPathSchema>;
28
- declare const menuItemCategoryNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
29
- type MenuItemCategoryNullablePath = z.infer<typeof menuItemCategoryNullablePathSchema>;
30
- declare const menuItemModifierPathSchema: z.ZodEffects<z.ZodString, string, string>;
31
- type MenuItemModifierPath = z.infer<typeof menuItemModifierPathSchema>;
32
- declare const menuItemModifierNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
33
- type MenuItemModifierNullablePath = z.infer<typeof menuItemModifierNullablePathSchema>;
34
- declare const menuItemPriceOverridePathSchema: z.ZodEffects<z.ZodString, string, string>;
35
- type MenuItemPriceOverridePath = z.infer<typeof menuItemPriceOverridePathSchema>;
36
- declare const menuItemPriceOverrideNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
37
- type MenuItemPriceOverrideNullablePath = z.infer<typeof menuItemPriceOverrideNullablePathSchema>;
38
- declare const menuItemPriceOverrideSalesPricePathSchema: z.ZodEffects<z.ZodString, string, string>;
39
- type MenuItemPriceOverrideSalesPricePath = z.infer<typeof menuItemPriceOverrideSalesPricePathSchema>;
40
- declare const menuItemPriceOverrideSalesPriceNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
41
- type MenuItemPriceOverrideSalesPriceNullablePath = z.infer<typeof menuItemPriceOverrideSalesPriceNullablePathSchema>;
19
+ declare const menuItemIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">>;
20
+ type MenuItemIri = z.infer<typeof menuItemIriSchema>;
21
+ declare const menuItemNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null>;
22
+ type MenuItemNullableIri = z.infer<typeof menuItemNullableIriSchema>;
23
+ declare const menuItemSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id">>;
24
+ type MenuItemSalesPriceIri = z.infer<typeof menuItemSalesPriceIriSchema>;
25
+ declare const menuItemSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_items/sales_prices/:id"> | null>;
26
+ type MenuItemSalesPriceNullableIri = z.infer<typeof menuItemSalesPriceNullableIriSchema>;
27
+ declare const menuItemCategoryIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id">>;
28
+ type MenuItemCategoryIri = z.infer<typeof menuItemCategoryIriSchema>;
29
+ declare const menuItemCategoryNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null>;
30
+ type MenuItemCategoryNullableIri = z.infer<typeof menuItemCategoryNullableIriSchema>;
31
+ declare const menuItemModifierIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id">>;
32
+ type MenuItemModifierIri = z.infer<typeof menuItemModifierIriSchema>;
33
+ declare const menuItemModifierNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null>;
34
+ type MenuItemModifierNullableIri = z.infer<typeof menuItemModifierNullableIriSchema>;
35
+ declare const menuItemPriceOverrideIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">>;
36
+ type MenuItemPriceOverrideIri = z.infer<typeof menuItemPriceOverrideIriSchema>;
37
+ declare const menuItemPriceOverrideNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id"> | null>;
38
+ type MenuItemPriceOverrideNullableIri = z.infer<typeof menuItemPriceOverrideNullableIriSchema>;
39
+ declare const menuItemPriceOverrideSalesPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id">>;
40
+ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSalesPriceIriSchema>;
41
+ declare const menuItemPriceOverrideSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null>;
42
+ type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
42
43
 
43
- export { type MenuChannel, type MenuItemAllergen, type MenuItemCategoryNullablePath, type MenuItemCategoryPath, type MenuItemDiet, type MenuItemModifierNullablePath, type MenuItemModifierPath, type MenuItemNullablePath, type MenuItemPath, type MenuItemPriceOverrideNullablePath, type MenuItemPriceOverridePath, type MenuItemPriceOverrideSalesPriceNullablePath, type MenuItemPriceOverrideSalesPricePath, type MenuItemPriceOverrideType, type MenuItemSalesPriceNullablePath, type MenuItemSalesPricePath, type MenuItemType, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemCategoryNullablePathSchema, menuItemCategoryPathSchema, menuItemDietSchema, menuItemDiets, menuItemModifierNullablePathSchema, menuItemModifierPathSchema, menuItemNullablePathSchema, menuItemPathSchema, menuItemPriceOverrideNullablePathSchema, menuItemPriceOverridePathSchema, menuItemPriceOverrideSalesPriceNullablePathSchema, menuItemPriceOverrideSalesPricePathSchema, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemSalesPriceNullablePathSchema, menuItemSalesPricePathSchema, menuItemTypeSchema, menuItemTypes };
44
+ export { type MenuChannel, type MenuItemAllergen, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDiet, type MenuItemIri, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemNullableIri, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverrideType, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemType, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemDietSchema, menuItemDiets, menuItemIriSchema, menuItemModifierIriSchema, menuItemModifierNullableIriSchema, menuItemNullableIriSchema, menuItemPriceOverrideIriSchema, menuItemPriceOverrideNullableIriSchema, menuItemPriceOverrideSalesPriceIriSchema, menuItemPriceOverrideSalesPriceNullableIriSchema, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemSalesPriceIriSchema, menuItemSalesPriceNullableIriSchema, menuItemTypeSchema, menuItemTypes };