@deliverart/sdk-js-menu 2.5.27 → 2.5.29
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 +41 -9
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +38 -9
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
GetMenuItemPriceOverrides: () => GetMenuItemPriceOverrides,
|
|
40
40
|
GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier: () => GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier,
|
|
41
41
|
GetMenuItemPriceOverridesFromMenuItemModifier: () => GetMenuItemPriceOverridesFromMenuItemModifier,
|
|
42
|
+
GetMenuItemTagsFromPointOfSale: () => GetMenuItemTagsFromPointOfSale,
|
|
42
43
|
GetMenuItems: () => GetMenuItems,
|
|
43
44
|
GetMenuItemsAsChoicesFromMenuItemModifier: () => GetMenuItemsAsChoicesFromMenuItemModifier,
|
|
44
45
|
GetMenuItemsFromMenuItemCategory: () => GetMenuItemsFromMenuItemCategory,
|
|
@@ -95,6 +96,8 @@ __export(index_exports, {
|
|
|
95
96
|
getMenuItemPriceOverridesInputSchema: () => getMenuItemPriceOverridesInputSchema,
|
|
96
97
|
getMenuItemPriceOverridesQuerySchema: () => getMenuItemPriceOverridesQuerySchema,
|
|
97
98
|
getMenuItemPriceOverridesResponseSchema: () => getMenuItemPriceOverridesResponseSchema,
|
|
99
|
+
getMenuItemTagsFromPointOfSaleInputSchema: () => getMenuItemTagsFromPointOfSaleInputSchema,
|
|
100
|
+
getMenuItemTagsFromPointOfSaleResponseSchema: () => getMenuItemTagsFromPointOfSaleResponseSchema,
|
|
98
101
|
getMenuItemsAsChoicesFromMenuItemModifierInputSchema: () => getMenuItemsAsChoicesFromMenuItemModifierInputSchema,
|
|
99
102
|
getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: () => getMenuItemsAsChoicesFromMenuItemModifierQuerySchema,
|
|
100
103
|
getMenuItemsAsChoicesFromMenuItemModifierResponseSchema: () => getMenuItemsAsChoicesFromMenuItemModifierResponseSchema,
|
|
@@ -11430,17 +11433,22 @@ var menuItemSchema = external_exports.lazy(
|
|
|
11430
11433
|
])
|
|
11431
11434
|
);
|
|
11432
11435
|
var menuItemChoiceDetailsSchema = external_exports.lazy(
|
|
11433
|
-
() =>
|
|
11436
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, category: true, compositions: true, modifiers: true, variants: true }).extend({
|
|
11437
|
+
type: external_exports.literal("CHOICE"),
|
|
11434
11438
|
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema
|
|
11435
11439
|
})
|
|
11436
11440
|
);
|
|
11437
11441
|
var menuItemItemDetailsSchema = external_exports.lazy(
|
|
11438
|
-
() =>
|
|
11442
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11443
|
+
type: external_exports.literal("ITEM"),
|
|
11444
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([]),
|
|
11439
11445
|
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema
|
|
11440
11446
|
})
|
|
11441
11447
|
);
|
|
11442
11448
|
var menuItemBundleDetailsSchema = external_exports.lazy(
|
|
11443
|
-
() =>
|
|
11449
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11450
|
+
type: external_exports.literal("BUNDLE"),
|
|
11451
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([]),
|
|
11444
11452
|
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema
|
|
11445
11453
|
})
|
|
11446
11454
|
);
|
|
@@ -12335,13 +12343,34 @@ var GetMenuItemsFromPointOfSale = class extends import_sdk_js_core27.AbstractApi
|
|
|
12335
12343
|
}
|
|
12336
12344
|
};
|
|
12337
12345
|
|
|
12338
|
-
// src/requests/menu-items/
|
|
12346
|
+
// src/requests/menu-items/GetMenuItemTagsFromPointOfSale.ts
|
|
12339
12347
|
var import_sdk_js_core28 = require("@deliverart/sdk-js-core");
|
|
12348
|
+
var getMenuItemTagsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12349
|
+
var getMenuItemTagsFromPointOfSaleResponseSchema = external_exports.array(external_exports.string());
|
|
12350
|
+
var GetMenuItemTagsFromPointOfSale = class extends import_sdk_js_core28.AbstractApiRequest {
|
|
12351
|
+
constructor(pointOfSaleId) {
|
|
12352
|
+
super(void 0);
|
|
12353
|
+
this.method = "GET";
|
|
12354
|
+
this.contentType = "application/json";
|
|
12355
|
+
this.accept = "application/json";
|
|
12356
|
+
this.inputSchema = getMenuItemTagsFromPointOfSaleInputSchema;
|
|
12357
|
+
this.outputSchema = getMenuItemTagsFromPointOfSaleResponseSchema;
|
|
12358
|
+
this.querySchema = void 0;
|
|
12359
|
+
this.headersSchema = void 0;
|
|
12360
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
12361
|
+
}
|
|
12362
|
+
getPath() {
|
|
12363
|
+
return `/point_of_sales/${this.pointOfSaleId}/menu_items/tags`;
|
|
12364
|
+
}
|
|
12365
|
+
};
|
|
12366
|
+
|
|
12367
|
+
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12368
|
+
var import_sdk_js_core29 = require("@deliverart/sdk-js-core");
|
|
12340
12369
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12341
12370
|
pointOfSale: true
|
|
12342
12371
|
}).partial();
|
|
12343
12372
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12344
|
-
var UpdateMenuItem = class extends
|
|
12373
|
+
var UpdateMenuItem = class extends import_sdk_js_core29.AbstractApiRequest {
|
|
12345
12374
|
constructor(menuItemId, input) {
|
|
12346
12375
|
super(input);
|
|
12347
12376
|
this.method = "PATCH";
|
|
@@ -12359,10 +12388,10 @@ var UpdateMenuItem = class extends import_sdk_js_core28.AbstractApiRequest {
|
|
|
12359
12388
|
};
|
|
12360
12389
|
|
|
12361
12390
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12362
|
-
var
|
|
12391
|
+
var import_sdk_js_core30 = require("@deliverart/sdk-js-core");
|
|
12363
12392
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12364
12393
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12365
|
-
var GetMenuVersionDetails = class extends
|
|
12394
|
+
var GetMenuVersionDetails = class extends import_sdk_js_core30.AbstractApiRequest {
|
|
12366
12395
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12367
12396
|
super(void 0);
|
|
12368
12397
|
this.method = "GET";
|
|
@@ -12381,14 +12410,14 @@ var GetMenuVersionDetails = class extends import_sdk_js_core29.AbstractApiReques
|
|
|
12381
12410
|
};
|
|
12382
12411
|
|
|
12383
12412
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12384
|
-
var
|
|
12413
|
+
var import_sdk_js_core31 = require("@deliverart/sdk-js-core");
|
|
12385
12414
|
var import_sdk_js_global_types16 = require("@deliverart/sdk-js-global-types");
|
|
12386
12415
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12387
12416
|
page: external_exports.coerce.number().optional()
|
|
12388
12417
|
});
|
|
12389
12418
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12390
12419
|
var getMenuVersionsResponseSchema = (0, import_sdk_js_global_types16.createPaginatedSchema)(menuVersionSchema);
|
|
12391
|
-
var GetMenuVersions = class extends
|
|
12420
|
+
var GetMenuVersions = class extends import_sdk_js_core31.AbstractApiRequest {
|
|
12392
12421
|
constructor(pointOfSaleId, options) {
|
|
12393
12422
|
super(void 0, options);
|
|
12394
12423
|
this.method = "GET";
|
|
@@ -12432,6 +12461,7 @@ var GetMenuVersions = class extends import_sdk_js_core30.AbstractApiRequest {
|
|
|
12432
12461
|
GetMenuItemPriceOverrides,
|
|
12433
12462
|
GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier,
|
|
12434
12463
|
GetMenuItemPriceOverridesFromMenuItemModifier,
|
|
12464
|
+
GetMenuItemTagsFromPointOfSale,
|
|
12435
12465
|
GetMenuItems,
|
|
12436
12466
|
GetMenuItemsAsChoicesFromMenuItemModifier,
|
|
12437
12467
|
GetMenuItemsFromMenuItemCategory,
|
|
@@ -12488,6 +12518,8 @@ var GetMenuVersions = class extends import_sdk_js_core30.AbstractApiRequest {
|
|
|
12488
12518
|
getMenuItemPriceOverridesInputSchema,
|
|
12489
12519
|
getMenuItemPriceOverridesQuerySchema,
|
|
12490
12520
|
getMenuItemPriceOverridesResponseSchema,
|
|
12521
|
+
getMenuItemTagsFromPointOfSaleInputSchema,
|
|
12522
|
+
getMenuItemTagsFromPointOfSaleResponseSchema,
|
|
12491
12523
|
getMenuItemsAsChoicesFromMenuItemModifierInputSchema,
|
|
12492
12524
|
getMenuItemsAsChoicesFromMenuItemModifierQuerySchema,
|
|
12493
12525
|
getMenuItemsAsChoicesFromMenuItemModifierResponseSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -3514,6 +3514,23 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3514
3514
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3515
3515
|
}
|
|
3516
3516
|
|
|
3517
|
+
declare const getMenuItemTagsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3518
|
+
type GetMenuItemTagsFromPointOfSaleInput = z.infer<typeof getMenuItemTagsFromPointOfSaleInputSchema>;
|
|
3519
|
+
declare const getMenuItemTagsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodString>;
|
|
3520
|
+
type GetMenuItemTagsFromPointOfSaleResponse = z.infer<typeof getMenuItemTagsFromPointOfSaleResponseSchema>;
|
|
3521
|
+
declare class GetMenuItemTagsFromPointOfSale extends AbstractApiRequest<typeof getMenuItemTagsFromPointOfSaleInputSchema, typeof getMenuItemTagsFromPointOfSaleResponseSchema> {
|
|
3522
|
+
readonly method = "GET";
|
|
3523
|
+
readonly contentType = "application/json";
|
|
3524
|
+
readonly accept = "application/json";
|
|
3525
|
+
readonly inputSchema: z.ZodUndefined;
|
|
3526
|
+
readonly outputSchema: z.ZodArray<z.ZodString>;
|
|
3527
|
+
readonly querySchema: undefined;
|
|
3528
|
+
readonly headersSchema: undefined;
|
|
3529
|
+
private readonly pointOfSaleId;
|
|
3530
|
+
constructor(pointOfSaleId: string);
|
|
3531
|
+
getPath(): string;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3517
3534
|
declare const updateMenuItemInputSchema: z.ZodObject<{
|
|
3518
3535
|
type: z.ZodOptional<z.ZodEnum<{
|
|
3519
3536
|
ITEM: "ITEM";
|
|
@@ -3737,4 +3754,4 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3737
3754
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3738
3755
|
}
|
|
3739
3756
|
|
|
3740
|
-
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 };
|
|
3757
|
+
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, GetMenuItemTagsFromPointOfSale, type GetMenuItemTagsFromPointOfSaleInput, type GetMenuItemTagsFromPointOfSaleResponse, 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, getMenuItemTagsFromPointOfSaleInputSchema, getMenuItemTagsFromPointOfSaleResponseSchema, 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
|
@@ -3514,6 +3514,23 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3514
3514
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3515
3515
|
}
|
|
3516
3516
|
|
|
3517
|
+
declare const getMenuItemTagsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3518
|
+
type GetMenuItemTagsFromPointOfSaleInput = z.infer<typeof getMenuItemTagsFromPointOfSaleInputSchema>;
|
|
3519
|
+
declare const getMenuItemTagsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodString>;
|
|
3520
|
+
type GetMenuItemTagsFromPointOfSaleResponse = z.infer<typeof getMenuItemTagsFromPointOfSaleResponseSchema>;
|
|
3521
|
+
declare class GetMenuItemTagsFromPointOfSale extends AbstractApiRequest<typeof getMenuItemTagsFromPointOfSaleInputSchema, typeof getMenuItemTagsFromPointOfSaleResponseSchema> {
|
|
3522
|
+
readonly method = "GET";
|
|
3523
|
+
readonly contentType = "application/json";
|
|
3524
|
+
readonly accept = "application/json";
|
|
3525
|
+
readonly inputSchema: z.ZodUndefined;
|
|
3526
|
+
readonly outputSchema: z.ZodArray<z.ZodString>;
|
|
3527
|
+
readonly querySchema: undefined;
|
|
3528
|
+
readonly headersSchema: undefined;
|
|
3529
|
+
private readonly pointOfSaleId;
|
|
3530
|
+
constructor(pointOfSaleId: string);
|
|
3531
|
+
getPath(): string;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3517
3534
|
declare const updateMenuItemInputSchema: z.ZodObject<{
|
|
3518
3535
|
type: z.ZodOptional<z.ZodEnum<{
|
|
3519
3536
|
ITEM: "ITEM";
|
|
@@ -3737,4 +3754,4 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3737
3754
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3738
3755
|
}
|
|
3739
3756
|
|
|
3740
|
-
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 };
|
|
3757
|
+
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, GetMenuItemTagsFromPointOfSale, type GetMenuItemTagsFromPointOfSaleInput, type GetMenuItemTagsFromPointOfSaleResponse, 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, getMenuItemTagsFromPointOfSaleInputSchema, getMenuItemTagsFromPointOfSaleResponseSchema, 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
|
@@ -11271,17 +11271,22 @@ var menuItemSchema = external_exports.lazy(
|
|
|
11271
11271
|
])
|
|
11272
11272
|
);
|
|
11273
11273
|
var menuItemChoiceDetailsSchema = external_exports.lazy(
|
|
11274
|
-
() =>
|
|
11274
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, category: true, compositions: true, modifiers: true, variants: true }).extend({
|
|
11275
|
+
type: external_exports.literal("CHOICE"),
|
|
11275
11276
|
pointOfSale: pointOfSaleIriSchema
|
|
11276
11277
|
})
|
|
11277
11278
|
);
|
|
11278
11279
|
var menuItemItemDetailsSchema = external_exports.lazy(
|
|
11279
|
-
() =>
|
|
11280
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11281
|
+
type: external_exports.literal("ITEM"),
|
|
11282
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([]),
|
|
11280
11283
|
pointOfSale: pointOfSaleIriSchema
|
|
11281
11284
|
})
|
|
11282
11285
|
);
|
|
11283
11286
|
var menuItemBundleDetailsSchema = external_exports.lazy(
|
|
11284
|
-
() =>
|
|
11287
|
+
() => menuItemCompleteBaseSchema.omit({ type: true, variants: true }).extend({
|
|
11288
|
+
type: external_exports.literal("BUNDLE"),
|
|
11289
|
+
variants: external_exports.array(menuItemVariantSchema).min(0).default([]),
|
|
11285
11290
|
pointOfSale: pointOfSaleIriSchema
|
|
11286
11291
|
})
|
|
11287
11292
|
);
|
|
@@ -12200,13 +12205,34 @@ var GetMenuItemsFromPointOfSale = class extends AbstractApiRequest27 {
|
|
|
12200
12205
|
}
|
|
12201
12206
|
};
|
|
12202
12207
|
|
|
12203
|
-
// src/requests/menu-items/
|
|
12208
|
+
// src/requests/menu-items/GetMenuItemTagsFromPointOfSale.ts
|
|
12204
12209
|
import { AbstractApiRequest as AbstractApiRequest28 } from "@deliverart/sdk-js-core";
|
|
12210
|
+
var getMenuItemTagsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12211
|
+
var getMenuItemTagsFromPointOfSaleResponseSchema = external_exports.array(external_exports.string());
|
|
12212
|
+
var GetMenuItemTagsFromPointOfSale = class extends AbstractApiRequest28 {
|
|
12213
|
+
constructor(pointOfSaleId) {
|
|
12214
|
+
super(void 0);
|
|
12215
|
+
this.method = "GET";
|
|
12216
|
+
this.contentType = "application/json";
|
|
12217
|
+
this.accept = "application/json";
|
|
12218
|
+
this.inputSchema = getMenuItemTagsFromPointOfSaleInputSchema;
|
|
12219
|
+
this.outputSchema = getMenuItemTagsFromPointOfSaleResponseSchema;
|
|
12220
|
+
this.querySchema = void 0;
|
|
12221
|
+
this.headersSchema = void 0;
|
|
12222
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
12223
|
+
}
|
|
12224
|
+
getPath() {
|
|
12225
|
+
return `/point_of_sales/${this.pointOfSaleId}/menu_items/tags`;
|
|
12226
|
+
}
|
|
12227
|
+
};
|
|
12228
|
+
|
|
12229
|
+
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12230
|
+
import { AbstractApiRequest as AbstractApiRequest29 } from "@deliverart/sdk-js-core";
|
|
12205
12231
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12206
12232
|
pointOfSale: true
|
|
12207
12233
|
}).partial();
|
|
12208
12234
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12209
|
-
var UpdateMenuItem = class extends
|
|
12235
|
+
var UpdateMenuItem = class extends AbstractApiRequest29 {
|
|
12210
12236
|
constructor(menuItemId, input) {
|
|
12211
12237
|
super(input);
|
|
12212
12238
|
this.method = "PATCH";
|
|
@@ -12224,10 +12250,10 @@ var UpdateMenuItem = class extends AbstractApiRequest28 {
|
|
|
12224
12250
|
};
|
|
12225
12251
|
|
|
12226
12252
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12227
|
-
import { AbstractApiRequest as
|
|
12253
|
+
import { AbstractApiRequest as AbstractApiRequest30 } from "@deliverart/sdk-js-core";
|
|
12228
12254
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12229
12255
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12230
|
-
var GetMenuVersionDetails = class extends
|
|
12256
|
+
var GetMenuVersionDetails = class extends AbstractApiRequest30 {
|
|
12231
12257
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12232
12258
|
super(void 0);
|
|
12233
12259
|
this.method = "GET";
|
|
@@ -12246,7 +12272,7 @@ var GetMenuVersionDetails = class extends AbstractApiRequest29 {
|
|
|
12246
12272
|
};
|
|
12247
12273
|
|
|
12248
12274
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12249
|
-
import { AbstractApiRequest as
|
|
12275
|
+
import { AbstractApiRequest as AbstractApiRequest31 } from "@deliverart/sdk-js-core";
|
|
12250
12276
|
import {
|
|
12251
12277
|
createPaginatedSchema as createPaginatedSchema9,
|
|
12252
12278
|
responseToPagination as responseToPagination9
|
|
@@ -12256,7 +12282,7 @@ var getMenuVersionsQuerySchema = external_exports.object({
|
|
|
12256
12282
|
});
|
|
12257
12283
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12258
12284
|
var getMenuVersionsResponseSchema = createPaginatedSchema9(menuVersionSchema);
|
|
12259
|
-
var GetMenuVersions = class extends
|
|
12285
|
+
var GetMenuVersions = class extends AbstractApiRequest31 {
|
|
12260
12286
|
constructor(pointOfSaleId, options) {
|
|
12261
12287
|
super(void 0, options);
|
|
12262
12288
|
this.method = "GET";
|
|
@@ -12299,6 +12325,7 @@ export {
|
|
|
12299
12325
|
GetMenuItemPriceOverrides,
|
|
12300
12326
|
GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier,
|
|
12301
12327
|
GetMenuItemPriceOverridesFromMenuItemModifier,
|
|
12328
|
+
GetMenuItemTagsFromPointOfSale,
|
|
12302
12329
|
GetMenuItems,
|
|
12303
12330
|
GetMenuItemsAsChoicesFromMenuItemModifier,
|
|
12304
12331
|
GetMenuItemsFromMenuItemCategory,
|
|
@@ -12355,6 +12382,8 @@ export {
|
|
|
12355
12382
|
getMenuItemPriceOverridesInputSchema,
|
|
12356
12383
|
getMenuItemPriceOverridesQuerySchema,
|
|
12357
12384
|
getMenuItemPriceOverridesResponseSchema,
|
|
12385
|
+
getMenuItemTagsFromPointOfSaleInputSchema,
|
|
12386
|
+
getMenuItemTagsFromPointOfSaleResponseSchema,
|
|
12358
12387
|
getMenuItemsAsChoicesFromMenuItemModifierInputSchema,
|
|
12359
12388
|
getMenuItemsAsChoicesFromMenuItemModifierQuerySchema,
|
|
12360
12389
|
getMenuItemsAsChoicesFromMenuItemModifierResponseSchema,
|
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.29",
|
|
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-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.5.29",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.5.29",
|
|
23
|
+
"@deliverart/sdk-js-image": "2.5.29",
|
|
24
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.29",
|
|
25
|
+
"@deliverart/sdk-js-sales-mode": "2.5.29"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|