@deliverart/sdk-js-menu 2.5.30 → 2.5.32
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 +65 -28
- package/dist/index.d.cts +176 -1
- package/dist/index.d.ts +176 -1
- package/dist/index.js +62 -28
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
GetMenuItemPriceOverrideDetails: () => GetMenuItemPriceOverrideDetails,
|
|
39
39
|
GetMenuItemPriceOverrides: () => GetMenuItemPriceOverrides,
|
|
40
40
|
GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier: () => GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier,
|
|
41
|
+
GetMenuItemPriceOverridesAsVariantsFromMenuItem: () => GetMenuItemPriceOverridesAsVariantsFromMenuItem,
|
|
41
42
|
GetMenuItemPriceOverridesFromMenuItemModifier: () => GetMenuItemPriceOverridesFromMenuItemModifier,
|
|
42
43
|
GetMenuItemTagsFromPointOfSale: () => GetMenuItemTagsFromPointOfSale,
|
|
43
44
|
GetMenuItems: () => GetMenuItems,
|
|
@@ -90,6 +91,9 @@ __export(index_exports, {
|
|
|
90
91
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema: () => getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema,
|
|
91
92
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema: () => getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema,
|
|
92
93
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema: () => getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema,
|
|
94
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema: () => getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema,
|
|
95
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema: () => getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema,
|
|
96
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema: () => getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema,
|
|
93
97
|
getMenuItemPriceOverridesFromMenuItemModifierInputSchema: () => getMenuItemPriceOverridesFromMenuItemModifierInputSchema,
|
|
94
98
|
getMenuItemPriceOverridesFromMenuItemModifierQuerySchema: () => getMenuItemPriceOverridesFromMenuItemModifierQuerySchema,
|
|
95
99
|
getMenuItemPriceOverridesFromMenuItemModifierResponseSchema: () => getMenuItemPriceOverridesFromMenuItemModifierResponseSchema,
|
|
@@ -11589,6 +11593,8 @@ var menuItemsQuerySchema = external_exports.object({
|
|
|
11589
11593
|
// enum statuses
|
|
11590
11594
|
channels: external_exports.union([import_sdk_js_global_types2.menuChannelSchema, external_exports.array(import_sdk_js_global_types2.menuChannelSchema)]).optional(),
|
|
11591
11595
|
type: external_exports.union([import_sdk_js_global_types2.menuItemTypeSchema, external_exports.array(import_sdk_js_global_types2.menuItemTypeSchema)]).optional(),
|
|
11596
|
+
tags: external_exports.array(external_exports.string()).optional(),
|
|
11597
|
+
"tags.match": import_sdk_js_global_types3.arrayContainsMatchSchema.optional(),
|
|
11592
11598
|
// price
|
|
11593
11599
|
"price[between]": external_exports.coerce.number().optional(),
|
|
11594
11600
|
"price[gt]": external_exports.coerce.number().optional(),
|
|
@@ -12102,14 +12108,41 @@ var GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier = class exte
|
|
|
12102
12108
|
}
|
|
12103
12109
|
};
|
|
12104
12110
|
|
|
12105
|
-
// src/requests/menu-item-price-overrides/
|
|
12111
|
+
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverridesAsVariantsFromMenuItem.ts
|
|
12106
12112
|
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
12113
|
+
var getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
12114
|
+
var getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema = external_exports.undefined();
|
|
12115
|
+
var getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema = external_exports.array(
|
|
12116
|
+
menuItemPriceOverrideSchema
|
|
12117
|
+
);
|
|
12118
|
+
var GetMenuItemPriceOverridesAsVariantsFromMenuItem = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
12119
|
+
constructor(menuItemId, options) {
|
|
12120
|
+
super(void 0, options);
|
|
12121
|
+
this.method = "GET";
|
|
12122
|
+
this.contentType = "application/json";
|
|
12123
|
+
this.accept = "application/json";
|
|
12124
|
+
this.inputSchema = getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema;
|
|
12125
|
+
this.outputSchema = getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema;
|
|
12126
|
+
this.querySchema = getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema;
|
|
12127
|
+
this.headersSchema = void 0;
|
|
12128
|
+
this.menuItemId = menuItemId;
|
|
12129
|
+
}
|
|
12130
|
+
getPath() {
|
|
12131
|
+
return `/menu_items/${this.menuItemId}/variants`;
|
|
12132
|
+
}
|
|
12133
|
+
parseResponse(data) {
|
|
12134
|
+
return external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
12135
|
+
}
|
|
12136
|
+
};
|
|
12137
|
+
|
|
12138
|
+
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverridesFromMenuItemModifier.ts
|
|
12139
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
12107
12140
|
var getMenuItemPriceOverridesFromMenuItemModifierQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
12108
12141
|
var getMenuItemPriceOverridesFromMenuItemModifierInputSchema = external_exports.undefined();
|
|
12109
12142
|
var getMenuItemPriceOverridesFromMenuItemModifierResponseSchema = external_exports.array(
|
|
12110
12143
|
menuItemPriceOverrideSchema
|
|
12111
12144
|
);
|
|
12112
|
-
var GetMenuItemPriceOverridesFromMenuItemModifier = class extends
|
|
12145
|
+
var GetMenuItemPriceOverridesFromMenuItemModifier = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
12113
12146
|
constructor(menuItemModifierId, options) {
|
|
12114
12147
|
super(void 0, options);
|
|
12115
12148
|
this.method = "GET";
|
|
@@ -12130,10 +12163,10 @@ var GetMenuItemPriceOverridesFromMenuItemModifier = class extends import_sdk_js_
|
|
|
12130
12163
|
};
|
|
12131
12164
|
|
|
12132
12165
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
12133
|
-
var
|
|
12166
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
12134
12167
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
12135
12168
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
12136
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
12169
|
+
var UpdateMenuItemPriceOverride = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
12137
12170
|
constructor(menuItemPriceOverrideId, input) {
|
|
12138
12171
|
super(input);
|
|
12139
12172
|
this.method = "PATCH";
|
|
@@ -12151,10 +12184,10 @@ var UpdateMenuItemPriceOverride = class extends import_sdk_js_core19.AbstractApi
|
|
|
12151
12184
|
};
|
|
12152
12185
|
|
|
12153
12186
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
12154
|
-
var
|
|
12187
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
12155
12188
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
12156
12189
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12157
|
-
var CreateMenuItem = class extends
|
|
12190
|
+
var CreateMenuItem = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
12158
12191
|
constructor(input) {
|
|
12159
12192
|
super(input);
|
|
12160
12193
|
this.method = "POST";
|
|
@@ -12171,11 +12204,11 @@ var CreateMenuItem = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
|
12171
12204
|
};
|
|
12172
12205
|
|
|
12173
12206
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
12174
|
-
var
|
|
12207
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
12175
12208
|
var import_sdk_js_global_types12 = require("@deliverart/sdk-js-global-types");
|
|
12176
12209
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
12177
12210
|
var deleteMenuItemResponseSchema = import_sdk_js_global_types12.emptyResponseSchema;
|
|
12178
|
-
var DeleteMenuItem = class extends
|
|
12211
|
+
var DeleteMenuItem = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
12179
12212
|
constructor(menuItemId) {
|
|
12180
12213
|
super(void 0);
|
|
12181
12214
|
this.method = "DELETE";
|
|
@@ -12193,10 +12226,10 @@ var DeleteMenuItem = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
|
12193
12226
|
};
|
|
12194
12227
|
|
|
12195
12228
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
12196
|
-
var
|
|
12229
|
+
var import_sdk_js_core23 = require("@deliverart/sdk-js-core");
|
|
12197
12230
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
12198
12231
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
12199
|
-
var GetMenuItemDetails = class extends
|
|
12232
|
+
var GetMenuItemDetails = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
12200
12233
|
constructor(menuItemId) {
|
|
12201
12234
|
super(void 0);
|
|
12202
12235
|
this.method = "GET";
|
|
@@ -12214,12 +12247,12 @@ var GetMenuItemDetails = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
|
12214
12247
|
};
|
|
12215
12248
|
|
|
12216
12249
|
// src/requests/menu-items/GetMenuItems.ts
|
|
12217
|
-
var
|
|
12250
|
+
var import_sdk_js_core24 = require("@deliverart/sdk-js-core");
|
|
12218
12251
|
var import_sdk_js_global_types13 = require("@deliverart/sdk-js-global-types");
|
|
12219
12252
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
12220
12253
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
12221
12254
|
var getMenuItemsResponseSchema = (0, import_sdk_js_global_types13.createPaginatedSchema)(menuItemSchema);
|
|
12222
|
-
var GetMenuItems = class extends
|
|
12255
|
+
var GetMenuItems = class extends import_sdk_js_core24.AbstractApiRequest {
|
|
12223
12256
|
constructor(options) {
|
|
12224
12257
|
super(void 0, options);
|
|
12225
12258
|
this.method = "GET";
|
|
@@ -12240,11 +12273,11 @@ var GetMenuItems = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
|
12240
12273
|
};
|
|
12241
12274
|
|
|
12242
12275
|
// src/requests/menu-items/GetMenuItemsAsChoicesFromMenuItemModifier.ts
|
|
12243
|
-
var
|
|
12276
|
+
var import_sdk_js_core25 = require("@deliverart/sdk-js-core");
|
|
12244
12277
|
var getMenuItemsAsChoicesFromMenuItemModifierQuerySchema = menuItemsQuerySchema;
|
|
12245
12278
|
var getMenuItemsAsChoicesFromMenuItemModifierInputSchema = external_exports.undefined();
|
|
12246
12279
|
var getMenuItemsAsChoicesFromMenuItemModifierResponseSchema = external_exports.array(menuItemSchema);
|
|
12247
|
-
var GetMenuItemsAsChoicesFromMenuItemModifier = class extends
|
|
12280
|
+
var GetMenuItemsAsChoicesFromMenuItemModifier = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
12248
12281
|
constructor(menuItemModifierId, options) {
|
|
12249
12282
|
super(void 0, options);
|
|
12250
12283
|
this.method = "GET";
|
|
@@ -12265,12 +12298,12 @@ var GetMenuItemsAsChoicesFromMenuItemModifier = class extends import_sdk_js_core
|
|
|
12265
12298
|
};
|
|
12266
12299
|
|
|
12267
12300
|
// src/requests/menu-items/GetMenuItemsFromMenuItemCategory.ts
|
|
12268
|
-
var
|
|
12301
|
+
var import_sdk_js_core26 = require("@deliverart/sdk-js-core");
|
|
12269
12302
|
var import_sdk_js_global_types14 = require("@deliverart/sdk-js-global-types");
|
|
12270
12303
|
var getMenuItemsFromMenuItemCategoryQuerySchema = menuItemsQuerySchema;
|
|
12271
12304
|
var getMenuItemsFromMenuItemCategoryInputSchema = external_exports.undefined();
|
|
12272
12305
|
var getMenuItemsFromMenuItemCategoryResponseSchema = (0, import_sdk_js_global_types14.createPaginatedSchema)(menuItemSchema);
|
|
12273
|
-
var GetMenuItemsFromMenuItemCategory = class extends
|
|
12306
|
+
var GetMenuItemsFromMenuItemCategory = class extends import_sdk_js_core26.AbstractApiRequest {
|
|
12274
12307
|
constructor(menuItemCategoryId, options) {
|
|
12275
12308
|
super(void 0, options);
|
|
12276
12309
|
this.method = "GET";
|
|
@@ -12292,11 +12325,11 @@ var GetMenuItemsFromMenuItemCategory = class extends import_sdk_js_core25.Abstra
|
|
|
12292
12325
|
};
|
|
12293
12326
|
|
|
12294
12327
|
// src/requests/menu-items/GetMenuItemsFromMenuItemModifier.ts
|
|
12295
|
-
var
|
|
12328
|
+
var import_sdk_js_core27 = require("@deliverart/sdk-js-core");
|
|
12296
12329
|
var getMenuItemsFromMenuItemModifierQuerySchema = menuItemsQuerySchema;
|
|
12297
12330
|
var getMenuItemsFromMenuItemModifierInputSchema = external_exports.undefined();
|
|
12298
12331
|
var getMenuItemsFromMenuItemModifierResponseSchema = external_exports.array(menuItemSchema);
|
|
12299
|
-
var GetMenuItemsFromMenuItemModifier = class extends
|
|
12332
|
+
var GetMenuItemsFromMenuItemModifier = class extends import_sdk_js_core27.AbstractApiRequest {
|
|
12300
12333
|
constructor(menuItemModifierId, options) {
|
|
12301
12334
|
super(void 0, options);
|
|
12302
12335
|
this.method = "GET";
|
|
@@ -12317,12 +12350,12 @@ var GetMenuItemsFromMenuItemModifier = class extends import_sdk_js_core26.Abstra
|
|
|
12317
12350
|
};
|
|
12318
12351
|
|
|
12319
12352
|
// src/requests/menu-items/GetMenuItemsFromPointOfSale.ts
|
|
12320
|
-
var
|
|
12353
|
+
var import_sdk_js_core28 = require("@deliverart/sdk-js-core");
|
|
12321
12354
|
var import_sdk_js_global_types15 = require("@deliverart/sdk-js-global-types");
|
|
12322
12355
|
var getMenuItemsFromPointOfSaleQuerySchema = menuItemsQuerySchema;
|
|
12323
12356
|
var getMenuItemsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12324
12357
|
var getMenuItemsFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types15.createPaginatedSchema)(menuItemSchema);
|
|
12325
|
-
var GetMenuItemsFromPointOfSale = class extends
|
|
12358
|
+
var GetMenuItemsFromPointOfSale = class extends import_sdk_js_core28.AbstractApiRequest {
|
|
12326
12359
|
constructor(pointOfSaleId, options) {
|
|
12327
12360
|
super(void 0, options);
|
|
12328
12361
|
this.method = "GET";
|
|
@@ -12344,10 +12377,10 @@ var GetMenuItemsFromPointOfSale = class extends import_sdk_js_core27.AbstractApi
|
|
|
12344
12377
|
};
|
|
12345
12378
|
|
|
12346
12379
|
// src/requests/menu-items/GetMenuItemTagsFromPointOfSale.ts
|
|
12347
|
-
var
|
|
12380
|
+
var import_sdk_js_core29 = require("@deliverart/sdk-js-core");
|
|
12348
12381
|
var getMenuItemTagsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12349
12382
|
var getMenuItemTagsFromPointOfSaleResponseSchema = external_exports.array(external_exports.string());
|
|
12350
|
-
var GetMenuItemTagsFromPointOfSale = class extends
|
|
12383
|
+
var GetMenuItemTagsFromPointOfSale = class extends import_sdk_js_core29.AbstractApiRequest {
|
|
12351
12384
|
constructor(pointOfSaleId) {
|
|
12352
12385
|
super(void 0);
|
|
12353
12386
|
this.method = "GET";
|
|
@@ -12365,12 +12398,12 @@ var GetMenuItemTagsFromPointOfSale = class extends import_sdk_js_core28.Abstract
|
|
|
12365
12398
|
};
|
|
12366
12399
|
|
|
12367
12400
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12368
|
-
var
|
|
12401
|
+
var import_sdk_js_core30 = require("@deliverart/sdk-js-core");
|
|
12369
12402
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12370
12403
|
pointOfSale: true
|
|
12371
12404
|
}).partial();
|
|
12372
12405
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12373
|
-
var UpdateMenuItem = class extends
|
|
12406
|
+
var UpdateMenuItem = class extends import_sdk_js_core30.AbstractApiRequest {
|
|
12374
12407
|
constructor(menuItemId, input) {
|
|
12375
12408
|
super(input);
|
|
12376
12409
|
this.method = "PATCH";
|
|
@@ -12388,10 +12421,10 @@ var UpdateMenuItem = class extends import_sdk_js_core29.AbstractApiRequest {
|
|
|
12388
12421
|
};
|
|
12389
12422
|
|
|
12390
12423
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12391
|
-
var
|
|
12424
|
+
var import_sdk_js_core31 = require("@deliverart/sdk-js-core");
|
|
12392
12425
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12393
12426
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12394
|
-
var GetMenuVersionDetails = class extends
|
|
12427
|
+
var GetMenuVersionDetails = class extends import_sdk_js_core31.AbstractApiRequest {
|
|
12395
12428
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12396
12429
|
super(void 0);
|
|
12397
12430
|
this.method = "GET";
|
|
@@ -12410,14 +12443,14 @@ var GetMenuVersionDetails = class extends import_sdk_js_core30.AbstractApiReques
|
|
|
12410
12443
|
};
|
|
12411
12444
|
|
|
12412
12445
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12413
|
-
var
|
|
12446
|
+
var import_sdk_js_core32 = require("@deliverart/sdk-js-core");
|
|
12414
12447
|
var import_sdk_js_global_types16 = require("@deliverart/sdk-js-global-types");
|
|
12415
12448
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12416
12449
|
page: external_exports.coerce.number().optional()
|
|
12417
12450
|
});
|
|
12418
12451
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12419
12452
|
var getMenuVersionsResponseSchema = (0, import_sdk_js_global_types16.createPaginatedSchema)(menuVersionSchema);
|
|
12420
|
-
var GetMenuVersions = class extends
|
|
12453
|
+
var GetMenuVersions = class extends import_sdk_js_core32.AbstractApiRequest {
|
|
12421
12454
|
constructor(pointOfSaleId, options) {
|
|
12422
12455
|
super(void 0, options);
|
|
12423
12456
|
this.method = "GET";
|
|
@@ -12460,6 +12493,7 @@ var GetMenuVersions = class extends import_sdk_js_core31.AbstractApiRequest {
|
|
|
12460
12493
|
GetMenuItemPriceOverrideDetails,
|
|
12461
12494
|
GetMenuItemPriceOverrides,
|
|
12462
12495
|
GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier,
|
|
12496
|
+
GetMenuItemPriceOverridesAsVariantsFromMenuItem,
|
|
12463
12497
|
GetMenuItemPriceOverridesFromMenuItemModifier,
|
|
12464
12498
|
GetMenuItemTagsFromPointOfSale,
|
|
12465
12499
|
GetMenuItems,
|
|
@@ -12512,6 +12546,9 @@ var GetMenuVersions = class extends import_sdk_js_core31.AbstractApiRequest {
|
|
|
12512
12546
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema,
|
|
12513
12547
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema,
|
|
12514
12548
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema,
|
|
12549
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema,
|
|
12550
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema,
|
|
12551
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema,
|
|
12515
12552
|
getMenuItemPriceOverridesFromMenuItemModifierInputSchema,
|
|
12516
12553
|
getMenuItemPriceOverridesFromMenuItemModifierQuerySchema,
|
|
12517
12554
|
getMenuItemPriceOverridesFromMenuItemModifierResponseSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -464,6 +464,11 @@ declare const menuItemsQuerySchema: z.ZodObject<{
|
|
|
464
464
|
CHOICE: "CHOICE";
|
|
465
465
|
BUNDLE: "BUNDLE";
|
|
466
466
|
}>>]>>;
|
|
467
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
468
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
469
|
+
all: "all";
|
|
470
|
+
any: "any";
|
|
471
|
+
}>>;
|
|
467
472
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
468
473
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
469
474
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2438,6 +2443,126 @@ declare class GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier ex
|
|
|
2438
2443
|
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2439
2444
|
}
|
|
2440
2445
|
|
|
2446
|
+
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema: z.ZodObject<{
|
|
2447
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2448
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2449
|
+
ITEM: "ITEM";
|
|
2450
|
+
MODIFIER: "MODIFIER";
|
|
2451
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2452
|
+
ITEM: "ITEM";
|
|
2453
|
+
MODIFIER: "MODIFIER";
|
|
2454
|
+
}>>]>>;
|
|
2455
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2456
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2457
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2458
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2459
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2460
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2461
|
+
asc: "asc";
|
|
2462
|
+
desc: "desc";
|
|
2463
|
+
}>>;
|
|
2464
|
+
'order[price]': z.ZodOptional<z.ZodEnum<{
|
|
2465
|
+
asc: "asc";
|
|
2466
|
+
desc: "desc";
|
|
2467
|
+
}>>;
|
|
2468
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2469
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2470
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2471
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2472
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2473
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2474
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2475
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2476
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2477
|
+
}, z.core.$strip>;
|
|
2478
|
+
type GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams = z.infer<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema>;
|
|
2479
|
+
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema: z.ZodUndefined;
|
|
2480
|
+
type GetMenuItemPriceOverridesAsVariantsFromMenuItemInput = z.input<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema>;
|
|
2481
|
+
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2482
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2483
|
+
fromItem: 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>>;
|
|
2484
|
+
inModifier: 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>>;
|
|
2485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2486
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2487
|
+
fromModifier: 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>>;
|
|
2488
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2489
|
+
id: z.ZodString;
|
|
2490
|
+
price: z.ZodString;
|
|
2491
|
+
referenceItem: 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>>;
|
|
2492
|
+
suspended: z.ZodBoolean;
|
|
2493
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2494
|
+
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2495
|
+
price: z.ZodString;
|
|
2496
|
+
}, z.core.$strip>>;
|
|
2497
|
+
createdAt: z.ZodString;
|
|
2498
|
+
updatedAt: z.ZodString;
|
|
2499
|
+
}, z.core.$strip>>>;
|
|
2500
|
+
type GetMenuItemPriceOverridesAsVariantsFromMenuItemResponse = z.infer<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema>;
|
|
2501
|
+
declare class GetMenuItemPriceOverridesAsVariantsFromMenuItem extends AbstractApiRequest<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema, typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema, GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams> {
|
|
2502
|
+
readonly method = "GET";
|
|
2503
|
+
readonly contentType = "application/json";
|
|
2504
|
+
readonly accept = "application/json";
|
|
2505
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2506
|
+
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2507
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2508
|
+
fromItem: 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>>;
|
|
2509
|
+
inModifier: 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>>;
|
|
2510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2511
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2512
|
+
fromModifier: 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>>;
|
|
2513
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2514
|
+
id: z.ZodString;
|
|
2515
|
+
price: z.ZodString;
|
|
2516
|
+
referenceItem: 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>>;
|
|
2517
|
+
suspended: z.ZodBoolean;
|
|
2518
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2519
|
+
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2520
|
+
price: z.ZodString;
|
|
2521
|
+
}, z.core.$strip>>;
|
|
2522
|
+
createdAt: z.ZodString;
|
|
2523
|
+
updatedAt: z.ZodString;
|
|
2524
|
+
}, z.core.$strip>>>;
|
|
2525
|
+
readonly querySchema: z.ZodObject<{
|
|
2526
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2527
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2528
|
+
ITEM: "ITEM";
|
|
2529
|
+
MODIFIER: "MODIFIER";
|
|
2530
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2531
|
+
ITEM: "ITEM";
|
|
2532
|
+
MODIFIER: "MODIFIER";
|
|
2533
|
+
}>>]>>;
|
|
2534
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2535
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2536
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2537
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2538
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2539
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2540
|
+
asc: "asc";
|
|
2541
|
+
desc: "desc";
|
|
2542
|
+
}>>;
|
|
2543
|
+
'order[price]': z.ZodOptional<z.ZodEnum<{
|
|
2544
|
+
asc: "asc";
|
|
2545
|
+
desc: "desc";
|
|
2546
|
+
}>>;
|
|
2547
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2548
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2549
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2550
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2551
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2552
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2553
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2554
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2555
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2556
|
+
}, z.core.$strip>;
|
|
2557
|
+
readonly headersSchema: undefined;
|
|
2558
|
+
private readonly menuItemId;
|
|
2559
|
+
constructor(menuItemId: string, options?: {
|
|
2560
|
+
query?: GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams;
|
|
2561
|
+
});
|
|
2562
|
+
getPath(): string;
|
|
2563
|
+
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2441
2566
|
declare const getMenuItemPriceOverridesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
2442
2567
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2443
2568
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -2833,6 +2958,11 @@ declare const getMenuItemsQuerySchema: z.ZodObject<{
|
|
|
2833
2958
|
CHOICE: "CHOICE";
|
|
2834
2959
|
BUNDLE: "BUNDLE";
|
|
2835
2960
|
}>>]>>;
|
|
2961
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2962
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
2963
|
+
all: "all";
|
|
2964
|
+
any: "any";
|
|
2965
|
+
}>>;
|
|
2836
2966
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2837
2967
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2838
2968
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2919,6 +3049,11 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
2919
3049
|
CHOICE: "CHOICE";
|
|
2920
3050
|
BUNDLE: "BUNDLE";
|
|
2921
3051
|
}>>]>>;
|
|
3052
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3053
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3054
|
+
all: "all";
|
|
3055
|
+
any: "any";
|
|
3056
|
+
}>>;
|
|
2922
3057
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2923
3058
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2924
3059
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2982,6 +3117,11 @@ declare const getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: z.ZodObject<
|
|
|
2982
3117
|
CHOICE: "CHOICE";
|
|
2983
3118
|
BUNDLE: "BUNDLE";
|
|
2984
3119
|
}>>]>>;
|
|
3120
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3121
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3122
|
+
all: "all";
|
|
3123
|
+
any: "any";
|
|
3124
|
+
}>>;
|
|
2985
3125
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2986
3126
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2987
3127
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3048,6 +3188,11 @@ declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiReque
|
|
|
3048
3188
|
CHOICE: "CHOICE";
|
|
3049
3189
|
BUNDLE: "BUNDLE";
|
|
3050
3190
|
}>>]>>;
|
|
3191
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3192
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3193
|
+
all: "all";
|
|
3194
|
+
any: "any";
|
|
3195
|
+
}>>;
|
|
3051
3196
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3052
3197
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3053
3198
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3112,6 +3257,11 @@ declare const getMenuItemsFromMenuItemCategoryQuerySchema: z.ZodObject<{
|
|
|
3112
3257
|
CHOICE: "CHOICE";
|
|
3113
3258
|
BUNDLE: "BUNDLE";
|
|
3114
3259
|
}>>]>>;
|
|
3260
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3261
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3262
|
+
all: "all";
|
|
3263
|
+
any: "any";
|
|
3264
|
+
}>>;
|
|
3115
3265
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3116
3266
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3117
3267
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3198,6 +3348,11 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3198
3348
|
CHOICE: "CHOICE";
|
|
3199
3349
|
BUNDLE: "BUNDLE";
|
|
3200
3350
|
}>>]>>;
|
|
3351
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3352
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3353
|
+
all: "all";
|
|
3354
|
+
any: "any";
|
|
3355
|
+
}>>;
|
|
3201
3356
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3202
3357
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3203
3358
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3262,6 +3417,11 @@ declare const getMenuItemsFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
|
3262
3417
|
CHOICE: "CHOICE";
|
|
3263
3418
|
BUNDLE: "BUNDLE";
|
|
3264
3419
|
}>>]>>;
|
|
3420
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3421
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3422
|
+
all: "all";
|
|
3423
|
+
any: "any";
|
|
3424
|
+
}>>;
|
|
3265
3425
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3266
3426
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3267
3427
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3328,6 +3488,11 @@ declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof
|
|
|
3328
3488
|
CHOICE: "CHOICE";
|
|
3329
3489
|
BUNDLE: "BUNDLE";
|
|
3330
3490
|
}>>]>>;
|
|
3491
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3492
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3493
|
+
all: "all";
|
|
3494
|
+
any: "any";
|
|
3495
|
+
}>>;
|
|
3331
3496
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3332
3497
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3333
3498
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3392,6 +3557,11 @@ declare const getMenuItemsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
3392
3557
|
CHOICE: "CHOICE";
|
|
3393
3558
|
BUNDLE: "BUNDLE";
|
|
3394
3559
|
}>>]>>;
|
|
3560
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3561
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3562
|
+
all: "all";
|
|
3563
|
+
any: "any";
|
|
3564
|
+
}>>;
|
|
3395
3565
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3396
3566
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3397
3567
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3478,6 +3648,11 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3478
3648
|
CHOICE: "CHOICE";
|
|
3479
3649
|
BUNDLE: "BUNDLE";
|
|
3480
3650
|
}>>]>>;
|
|
3651
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3652
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3653
|
+
all: "all";
|
|
3654
|
+
any: "any";
|
|
3655
|
+
}>>;
|
|
3481
3656
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3482
3657
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3483
3658
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3754,4 +3929,4 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3754
3929
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3755
3930
|
}
|
|
3756
3931
|
|
|
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 };
|
|
3932
|
+
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, GetMenuItemPriceOverridesAsVariantsFromMenuItem, type GetMenuItemPriceOverridesAsVariantsFromMenuItemInput, type GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams, type GetMenuItemPriceOverridesAsVariantsFromMenuItemResponse, 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, getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema, getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema, getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema, 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
|
@@ -464,6 +464,11 @@ declare const menuItemsQuerySchema: z.ZodObject<{
|
|
|
464
464
|
CHOICE: "CHOICE";
|
|
465
465
|
BUNDLE: "BUNDLE";
|
|
466
466
|
}>>]>>;
|
|
467
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
468
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
469
|
+
all: "all";
|
|
470
|
+
any: "any";
|
|
471
|
+
}>>;
|
|
467
472
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
468
473
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
469
474
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2438,6 +2443,126 @@ declare class GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier ex
|
|
|
2438
2443
|
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2439
2444
|
}
|
|
2440
2445
|
|
|
2446
|
+
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema: z.ZodObject<{
|
|
2447
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2448
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2449
|
+
ITEM: "ITEM";
|
|
2450
|
+
MODIFIER: "MODIFIER";
|
|
2451
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2452
|
+
ITEM: "ITEM";
|
|
2453
|
+
MODIFIER: "MODIFIER";
|
|
2454
|
+
}>>]>>;
|
|
2455
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2456
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2457
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2458
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2459
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2460
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2461
|
+
asc: "asc";
|
|
2462
|
+
desc: "desc";
|
|
2463
|
+
}>>;
|
|
2464
|
+
'order[price]': z.ZodOptional<z.ZodEnum<{
|
|
2465
|
+
asc: "asc";
|
|
2466
|
+
desc: "desc";
|
|
2467
|
+
}>>;
|
|
2468
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2469
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2470
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2471
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2472
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2473
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2474
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2475
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2476
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2477
|
+
}, z.core.$strip>;
|
|
2478
|
+
type GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams = z.infer<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema>;
|
|
2479
|
+
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema: z.ZodUndefined;
|
|
2480
|
+
type GetMenuItemPriceOverridesAsVariantsFromMenuItemInput = z.input<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema>;
|
|
2481
|
+
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2482
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2483
|
+
fromItem: 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>>;
|
|
2484
|
+
inModifier: 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>>;
|
|
2485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2486
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2487
|
+
fromModifier: 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>>;
|
|
2488
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2489
|
+
id: z.ZodString;
|
|
2490
|
+
price: z.ZodString;
|
|
2491
|
+
referenceItem: 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>>;
|
|
2492
|
+
suspended: z.ZodBoolean;
|
|
2493
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2494
|
+
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2495
|
+
price: z.ZodString;
|
|
2496
|
+
}, z.core.$strip>>;
|
|
2497
|
+
createdAt: z.ZodString;
|
|
2498
|
+
updatedAt: z.ZodString;
|
|
2499
|
+
}, z.core.$strip>>>;
|
|
2500
|
+
type GetMenuItemPriceOverridesAsVariantsFromMenuItemResponse = z.infer<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema>;
|
|
2501
|
+
declare class GetMenuItemPriceOverridesAsVariantsFromMenuItem extends AbstractApiRequest<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema, typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema, GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams> {
|
|
2502
|
+
readonly method = "GET";
|
|
2503
|
+
readonly contentType = "application/json";
|
|
2504
|
+
readonly accept = "application/json";
|
|
2505
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2506
|
+
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2507
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2508
|
+
fromItem: 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>>;
|
|
2509
|
+
inModifier: 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>>;
|
|
2510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2511
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2512
|
+
fromModifier: 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>>;
|
|
2513
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2514
|
+
id: z.ZodString;
|
|
2515
|
+
price: z.ZodString;
|
|
2516
|
+
referenceItem: 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>>;
|
|
2517
|
+
suspended: z.ZodBoolean;
|
|
2518
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2519
|
+
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2520
|
+
price: z.ZodString;
|
|
2521
|
+
}, z.core.$strip>>;
|
|
2522
|
+
createdAt: z.ZodString;
|
|
2523
|
+
updatedAt: z.ZodString;
|
|
2524
|
+
}, z.core.$strip>>>;
|
|
2525
|
+
readonly querySchema: z.ZodObject<{
|
|
2526
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2527
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2528
|
+
ITEM: "ITEM";
|
|
2529
|
+
MODIFIER: "MODIFIER";
|
|
2530
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2531
|
+
ITEM: "ITEM";
|
|
2532
|
+
MODIFIER: "MODIFIER";
|
|
2533
|
+
}>>]>>;
|
|
2534
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2535
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2536
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2537
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2538
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2539
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2540
|
+
asc: "asc";
|
|
2541
|
+
desc: "desc";
|
|
2542
|
+
}>>;
|
|
2543
|
+
'order[price]': z.ZodOptional<z.ZodEnum<{
|
|
2544
|
+
asc: "asc";
|
|
2545
|
+
desc: "desc";
|
|
2546
|
+
}>>;
|
|
2547
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2548
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2549
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2550
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2551
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2552
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2553
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2554
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2555
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2556
|
+
}, z.core.$strip>;
|
|
2557
|
+
readonly headersSchema: undefined;
|
|
2558
|
+
private readonly menuItemId;
|
|
2559
|
+
constructor(menuItemId: string, options?: {
|
|
2560
|
+
query?: GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams;
|
|
2561
|
+
});
|
|
2562
|
+
getPath(): string;
|
|
2563
|
+
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2441
2566
|
declare const getMenuItemPriceOverridesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
2442
2567
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2443
2568
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -2833,6 +2958,11 @@ declare const getMenuItemsQuerySchema: z.ZodObject<{
|
|
|
2833
2958
|
CHOICE: "CHOICE";
|
|
2834
2959
|
BUNDLE: "BUNDLE";
|
|
2835
2960
|
}>>]>>;
|
|
2961
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2962
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
2963
|
+
all: "all";
|
|
2964
|
+
any: "any";
|
|
2965
|
+
}>>;
|
|
2836
2966
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2837
2967
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2838
2968
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2919,6 +3049,11 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
2919
3049
|
CHOICE: "CHOICE";
|
|
2920
3050
|
BUNDLE: "BUNDLE";
|
|
2921
3051
|
}>>]>>;
|
|
3052
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3053
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3054
|
+
all: "all";
|
|
3055
|
+
any: "any";
|
|
3056
|
+
}>>;
|
|
2922
3057
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2923
3058
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2924
3059
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2982,6 +3117,11 @@ declare const getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: z.ZodObject<
|
|
|
2982
3117
|
CHOICE: "CHOICE";
|
|
2983
3118
|
BUNDLE: "BUNDLE";
|
|
2984
3119
|
}>>]>>;
|
|
3120
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3121
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3122
|
+
all: "all";
|
|
3123
|
+
any: "any";
|
|
3124
|
+
}>>;
|
|
2985
3125
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2986
3126
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2987
3127
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3048,6 +3188,11 @@ declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiReque
|
|
|
3048
3188
|
CHOICE: "CHOICE";
|
|
3049
3189
|
BUNDLE: "BUNDLE";
|
|
3050
3190
|
}>>]>>;
|
|
3191
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3192
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3193
|
+
all: "all";
|
|
3194
|
+
any: "any";
|
|
3195
|
+
}>>;
|
|
3051
3196
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3052
3197
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3053
3198
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3112,6 +3257,11 @@ declare const getMenuItemsFromMenuItemCategoryQuerySchema: z.ZodObject<{
|
|
|
3112
3257
|
CHOICE: "CHOICE";
|
|
3113
3258
|
BUNDLE: "BUNDLE";
|
|
3114
3259
|
}>>]>>;
|
|
3260
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3261
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3262
|
+
all: "all";
|
|
3263
|
+
any: "any";
|
|
3264
|
+
}>>;
|
|
3115
3265
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3116
3266
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3117
3267
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3198,6 +3348,11 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3198
3348
|
CHOICE: "CHOICE";
|
|
3199
3349
|
BUNDLE: "BUNDLE";
|
|
3200
3350
|
}>>]>>;
|
|
3351
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3352
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3353
|
+
all: "all";
|
|
3354
|
+
any: "any";
|
|
3355
|
+
}>>;
|
|
3201
3356
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3202
3357
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3203
3358
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3262,6 +3417,11 @@ declare const getMenuItemsFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
|
3262
3417
|
CHOICE: "CHOICE";
|
|
3263
3418
|
BUNDLE: "BUNDLE";
|
|
3264
3419
|
}>>]>>;
|
|
3420
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3421
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3422
|
+
all: "all";
|
|
3423
|
+
any: "any";
|
|
3424
|
+
}>>;
|
|
3265
3425
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3266
3426
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3267
3427
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3328,6 +3488,11 @@ declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof
|
|
|
3328
3488
|
CHOICE: "CHOICE";
|
|
3329
3489
|
BUNDLE: "BUNDLE";
|
|
3330
3490
|
}>>]>>;
|
|
3491
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3492
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3493
|
+
all: "all";
|
|
3494
|
+
any: "any";
|
|
3495
|
+
}>>;
|
|
3331
3496
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3332
3497
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3333
3498
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3392,6 +3557,11 @@ declare const getMenuItemsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
3392
3557
|
CHOICE: "CHOICE";
|
|
3393
3558
|
BUNDLE: "BUNDLE";
|
|
3394
3559
|
}>>]>>;
|
|
3560
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3561
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3562
|
+
all: "all";
|
|
3563
|
+
any: "any";
|
|
3564
|
+
}>>;
|
|
3395
3565
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3396
3566
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3397
3567
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3478,6 +3648,11 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3478
3648
|
CHOICE: "CHOICE";
|
|
3479
3649
|
BUNDLE: "BUNDLE";
|
|
3480
3650
|
}>>]>>;
|
|
3651
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3652
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3653
|
+
all: "all";
|
|
3654
|
+
any: "any";
|
|
3655
|
+
}>>;
|
|
3481
3656
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3482
3657
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3483
3658
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3754,4 +3929,4 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3754
3929
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3755
3930
|
}
|
|
3756
3931
|
|
|
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 };
|
|
3932
|
+
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, GetMenuItemPriceOverridesAsVariantsFromMenuItem, type GetMenuItemPriceOverridesAsVariantsFromMenuItemInput, type GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams, type GetMenuItemPriceOverridesAsVariantsFromMenuItemResponse, 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, getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema, getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema, getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema, 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
|
@@ -6,6 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/models.ts
|
|
8
8
|
import {
|
|
9
|
+
arrayContainsMatchSchema,
|
|
9
10
|
booleanSchema,
|
|
10
11
|
datetimeSchema,
|
|
11
12
|
menuItemModifierTargetItemTypeSchema,
|
|
@@ -11427,6 +11428,8 @@ var menuItemsQuerySchema = external_exports.object({
|
|
|
11427
11428
|
// enum statuses
|
|
11428
11429
|
channels: external_exports.union([menuChannelSchema, external_exports.array(menuChannelSchema)]).optional(),
|
|
11429
11430
|
type: external_exports.union([menuItemTypeSchema, external_exports.array(menuItemTypeSchema)]).optional(),
|
|
11431
|
+
tags: external_exports.array(external_exports.string()).optional(),
|
|
11432
|
+
"tags.match": arrayContainsMatchSchema.optional(),
|
|
11430
11433
|
// price
|
|
11431
11434
|
"price[between]": external_exports.coerce.number().optional(),
|
|
11432
11435
|
"price[gt]": external_exports.coerce.number().optional(),
|
|
@@ -11955,14 +11958,41 @@ var GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier = class exte
|
|
|
11955
11958
|
}
|
|
11956
11959
|
};
|
|
11957
11960
|
|
|
11958
|
-
// src/requests/menu-item-price-overrides/
|
|
11961
|
+
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverridesAsVariantsFromMenuItem.ts
|
|
11959
11962
|
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
11963
|
+
var getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11964
|
+
var getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema = external_exports.undefined();
|
|
11965
|
+
var getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema = external_exports.array(
|
|
11966
|
+
menuItemPriceOverrideSchema
|
|
11967
|
+
);
|
|
11968
|
+
var GetMenuItemPriceOverridesAsVariantsFromMenuItem = class extends AbstractApiRequest18 {
|
|
11969
|
+
constructor(menuItemId, options) {
|
|
11970
|
+
super(void 0, options);
|
|
11971
|
+
this.method = "GET";
|
|
11972
|
+
this.contentType = "application/json";
|
|
11973
|
+
this.accept = "application/json";
|
|
11974
|
+
this.inputSchema = getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema;
|
|
11975
|
+
this.outputSchema = getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema;
|
|
11976
|
+
this.querySchema = getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema;
|
|
11977
|
+
this.headersSchema = void 0;
|
|
11978
|
+
this.menuItemId = menuItemId;
|
|
11979
|
+
}
|
|
11980
|
+
getPath() {
|
|
11981
|
+
return `/menu_items/${this.menuItemId}/variants`;
|
|
11982
|
+
}
|
|
11983
|
+
parseResponse(data) {
|
|
11984
|
+
return external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
11985
|
+
}
|
|
11986
|
+
};
|
|
11987
|
+
|
|
11988
|
+
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverridesFromMenuItemModifier.ts
|
|
11989
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
11960
11990
|
var getMenuItemPriceOverridesFromMenuItemModifierQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11961
11991
|
var getMenuItemPriceOverridesFromMenuItemModifierInputSchema = external_exports.undefined();
|
|
11962
11992
|
var getMenuItemPriceOverridesFromMenuItemModifierResponseSchema = external_exports.array(
|
|
11963
11993
|
menuItemPriceOverrideSchema
|
|
11964
11994
|
);
|
|
11965
|
-
var GetMenuItemPriceOverridesFromMenuItemModifier = class extends
|
|
11995
|
+
var GetMenuItemPriceOverridesFromMenuItemModifier = class extends AbstractApiRequest19 {
|
|
11966
11996
|
constructor(menuItemModifierId, options) {
|
|
11967
11997
|
super(void 0, options);
|
|
11968
11998
|
this.method = "GET";
|
|
@@ -11983,10 +12013,10 @@ var GetMenuItemPriceOverridesFromMenuItemModifier = class extends AbstractApiReq
|
|
|
11983
12013
|
};
|
|
11984
12014
|
|
|
11985
12015
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
11986
|
-
import { AbstractApiRequest as
|
|
12016
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
11987
12017
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
11988
12018
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11989
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
12019
|
+
var UpdateMenuItemPriceOverride = class extends AbstractApiRequest20 {
|
|
11990
12020
|
constructor(menuItemPriceOverrideId, input) {
|
|
11991
12021
|
super(input);
|
|
11992
12022
|
this.method = "PATCH";
|
|
@@ -12004,10 +12034,10 @@ var UpdateMenuItemPriceOverride = class extends AbstractApiRequest19 {
|
|
|
12004
12034
|
};
|
|
12005
12035
|
|
|
12006
12036
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
12007
|
-
import { AbstractApiRequest as
|
|
12037
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
12008
12038
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
12009
12039
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12010
|
-
var CreateMenuItem = class extends
|
|
12040
|
+
var CreateMenuItem = class extends AbstractApiRequest21 {
|
|
12011
12041
|
constructor(input) {
|
|
12012
12042
|
super(input);
|
|
12013
12043
|
this.method = "POST";
|
|
@@ -12024,11 +12054,11 @@ var CreateMenuItem = class extends AbstractApiRequest20 {
|
|
|
12024
12054
|
};
|
|
12025
12055
|
|
|
12026
12056
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
12027
|
-
import { AbstractApiRequest as
|
|
12057
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
12028
12058
|
import { emptyResponseSchema as emptyResponseSchema4 } from "@deliverart/sdk-js-global-types";
|
|
12029
12059
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
12030
12060
|
var deleteMenuItemResponseSchema = emptyResponseSchema4;
|
|
12031
|
-
var DeleteMenuItem = class extends
|
|
12061
|
+
var DeleteMenuItem = class extends AbstractApiRequest22 {
|
|
12032
12062
|
constructor(menuItemId) {
|
|
12033
12063
|
super(void 0);
|
|
12034
12064
|
this.method = "DELETE";
|
|
@@ -12046,10 +12076,10 @@ var DeleteMenuItem = class extends AbstractApiRequest21 {
|
|
|
12046
12076
|
};
|
|
12047
12077
|
|
|
12048
12078
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
12049
|
-
import { AbstractApiRequest as
|
|
12079
|
+
import { AbstractApiRequest as AbstractApiRequest23 } from "@deliverart/sdk-js-core";
|
|
12050
12080
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
12051
12081
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
12052
|
-
var GetMenuItemDetails = class extends
|
|
12082
|
+
var GetMenuItemDetails = class extends AbstractApiRequest23 {
|
|
12053
12083
|
constructor(menuItemId) {
|
|
12054
12084
|
super(void 0);
|
|
12055
12085
|
this.method = "GET";
|
|
@@ -12067,7 +12097,7 @@ var GetMenuItemDetails = class extends AbstractApiRequest22 {
|
|
|
12067
12097
|
};
|
|
12068
12098
|
|
|
12069
12099
|
// src/requests/menu-items/GetMenuItems.ts
|
|
12070
|
-
import { AbstractApiRequest as
|
|
12100
|
+
import { AbstractApiRequest as AbstractApiRequest24 } from "@deliverart/sdk-js-core";
|
|
12071
12101
|
import {
|
|
12072
12102
|
createPaginatedSchema as createPaginatedSchema6,
|
|
12073
12103
|
responseToPagination as responseToPagination6
|
|
@@ -12075,7 +12105,7 @@ import {
|
|
|
12075
12105
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
12076
12106
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
12077
12107
|
var getMenuItemsResponseSchema = createPaginatedSchema6(menuItemSchema);
|
|
12078
|
-
var GetMenuItems = class extends
|
|
12108
|
+
var GetMenuItems = class extends AbstractApiRequest24 {
|
|
12079
12109
|
constructor(options) {
|
|
12080
12110
|
super(void 0, options);
|
|
12081
12111
|
this.method = "GET";
|
|
@@ -12096,11 +12126,11 @@ var GetMenuItems = class extends AbstractApiRequest23 {
|
|
|
12096
12126
|
};
|
|
12097
12127
|
|
|
12098
12128
|
// src/requests/menu-items/GetMenuItemsAsChoicesFromMenuItemModifier.ts
|
|
12099
|
-
import { AbstractApiRequest as
|
|
12129
|
+
import { AbstractApiRequest as AbstractApiRequest25 } from "@deliverart/sdk-js-core";
|
|
12100
12130
|
var getMenuItemsAsChoicesFromMenuItemModifierQuerySchema = menuItemsQuerySchema;
|
|
12101
12131
|
var getMenuItemsAsChoicesFromMenuItemModifierInputSchema = external_exports.undefined();
|
|
12102
12132
|
var getMenuItemsAsChoicesFromMenuItemModifierResponseSchema = external_exports.array(menuItemSchema);
|
|
12103
|
-
var GetMenuItemsAsChoicesFromMenuItemModifier = class extends
|
|
12133
|
+
var GetMenuItemsAsChoicesFromMenuItemModifier = class extends AbstractApiRequest25 {
|
|
12104
12134
|
constructor(menuItemModifierId, options) {
|
|
12105
12135
|
super(void 0, options);
|
|
12106
12136
|
this.method = "GET";
|
|
@@ -12121,7 +12151,7 @@ var GetMenuItemsAsChoicesFromMenuItemModifier = class extends AbstractApiRequest
|
|
|
12121
12151
|
};
|
|
12122
12152
|
|
|
12123
12153
|
// src/requests/menu-items/GetMenuItemsFromMenuItemCategory.ts
|
|
12124
|
-
import { AbstractApiRequest as
|
|
12154
|
+
import { AbstractApiRequest as AbstractApiRequest26 } from "@deliverart/sdk-js-core";
|
|
12125
12155
|
import {
|
|
12126
12156
|
createPaginatedSchema as createPaginatedSchema7,
|
|
12127
12157
|
responseToPagination as responseToPagination7
|
|
@@ -12129,7 +12159,7 @@ import {
|
|
|
12129
12159
|
var getMenuItemsFromMenuItemCategoryQuerySchema = menuItemsQuerySchema;
|
|
12130
12160
|
var getMenuItemsFromMenuItemCategoryInputSchema = external_exports.undefined();
|
|
12131
12161
|
var getMenuItemsFromMenuItemCategoryResponseSchema = createPaginatedSchema7(menuItemSchema);
|
|
12132
|
-
var GetMenuItemsFromMenuItemCategory = class extends
|
|
12162
|
+
var GetMenuItemsFromMenuItemCategory = class extends AbstractApiRequest26 {
|
|
12133
12163
|
constructor(menuItemCategoryId, options) {
|
|
12134
12164
|
super(void 0, options);
|
|
12135
12165
|
this.method = "GET";
|
|
@@ -12151,11 +12181,11 @@ var GetMenuItemsFromMenuItemCategory = class extends AbstractApiRequest25 {
|
|
|
12151
12181
|
};
|
|
12152
12182
|
|
|
12153
12183
|
// src/requests/menu-items/GetMenuItemsFromMenuItemModifier.ts
|
|
12154
|
-
import { AbstractApiRequest as
|
|
12184
|
+
import { AbstractApiRequest as AbstractApiRequest27 } from "@deliverart/sdk-js-core";
|
|
12155
12185
|
var getMenuItemsFromMenuItemModifierQuerySchema = menuItemsQuerySchema;
|
|
12156
12186
|
var getMenuItemsFromMenuItemModifierInputSchema = external_exports.undefined();
|
|
12157
12187
|
var getMenuItemsFromMenuItemModifierResponseSchema = external_exports.array(menuItemSchema);
|
|
12158
|
-
var GetMenuItemsFromMenuItemModifier = class extends
|
|
12188
|
+
var GetMenuItemsFromMenuItemModifier = class extends AbstractApiRequest27 {
|
|
12159
12189
|
constructor(menuItemModifierId, options) {
|
|
12160
12190
|
super(void 0, options);
|
|
12161
12191
|
this.method = "GET";
|
|
@@ -12176,7 +12206,7 @@ var GetMenuItemsFromMenuItemModifier = class extends AbstractApiRequest26 {
|
|
|
12176
12206
|
};
|
|
12177
12207
|
|
|
12178
12208
|
// src/requests/menu-items/GetMenuItemsFromPointOfSale.ts
|
|
12179
|
-
import { AbstractApiRequest as
|
|
12209
|
+
import { AbstractApiRequest as AbstractApiRequest28 } from "@deliverart/sdk-js-core";
|
|
12180
12210
|
import {
|
|
12181
12211
|
createPaginatedSchema as createPaginatedSchema8,
|
|
12182
12212
|
responseToPagination as responseToPagination8
|
|
@@ -12184,7 +12214,7 @@ import {
|
|
|
12184
12214
|
var getMenuItemsFromPointOfSaleQuerySchema = menuItemsQuerySchema;
|
|
12185
12215
|
var getMenuItemsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12186
12216
|
var getMenuItemsFromPointOfSaleResponseSchema = createPaginatedSchema8(menuItemSchema);
|
|
12187
|
-
var GetMenuItemsFromPointOfSale = class extends
|
|
12217
|
+
var GetMenuItemsFromPointOfSale = class extends AbstractApiRequest28 {
|
|
12188
12218
|
constructor(pointOfSaleId, options) {
|
|
12189
12219
|
super(void 0, options);
|
|
12190
12220
|
this.method = "GET";
|
|
@@ -12206,10 +12236,10 @@ var GetMenuItemsFromPointOfSale = class extends AbstractApiRequest27 {
|
|
|
12206
12236
|
};
|
|
12207
12237
|
|
|
12208
12238
|
// src/requests/menu-items/GetMenuItemTagsFromPointOfSale.ts
|
|
12209
|
-
import { AbstractApiRequest as
|
|
12239
|
+
import { AbstractApiRequest as AbstractApiRequest29 } from "@deliverart/sdk-js-core";
|
|
12210
12240
|
var getMenuItemTagsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12211
12241
|
var getMenuItemTagsFromPointOfSaleResponseSchema = external_exports.array(external_exports.string());
|
|
12212
|
-
var GetMenuItemTagsFromPointOfSale = class extends
|
|
12242
|
+
var GetMenuItemTagsFromPointOfSale = class extends AbstractApiRequest29 {
|
|
12213
12243
|
constructor(pointOfSaleId) {
|
|
12214
12244
|
super(void 0);
|
|
12215
12245
|
this.method = "GET";
|
|
@@ -12227,12 +12257,12 @@ var GetMenuItemTagsFromPointOfSale = class extends AbstractApiRequest28 {
|
|
|
12227
12257
|
};
|
|
12228
12258
|
|
|
12229
12259
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12230
|
-
import { AbstractApiRequest as
|
|
12260
|
+
import { AbstractApiRequest as AbstractApiRequest30 } from "@deliverart/sdk-js-core";
|
|
12231
12261
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12232
12262
|
pointOfSale: true
|
|
12233
12263
|
}).partial();
|
|
12234
12264
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12235
|
-
var UpdateMenuItem = class extends
|
|
12265
|
+
var UpdateMenuItem = class extends AbstractApiRequest30 {
|
|
12236
12266
|
constructor(menuItemId, input) {
|
|
12237
12267
|
super(input);
|
|
12238
12268
|
this.method = "PATCH";
|
|
@@ -12250,10 +12280,10 @@ var UpdateMenuItem = class extends AbstractApiRequest29 {
|
|
|
12250
12280
|
};
|
|
12251
12281
|
|
|
12252
12282
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12253
|
-
import { AbstractApiRequest as
|
|
12283
|
+
import { AbstractApiRequest as AbstractApiRequest31 } from "@deliverart/sdk-js-core";
|
|
12254
12284
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12255
12285
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12256
|
-
var GetMenuVersionDetails = class extends
|
|
12286
|
+
var GetMenuVersionDetails = class extends AbstractApiRequest31 {
|
|
12257
12287
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12258
12288
|
super(void 0);
|
|
12259
12289
|
this.method = "GET";
|
|
@@ -12272,7 +12302,7 @@ var GetMenuVersionDetails = class extends AbstractApiRequest30 {
|
|
|
12272
12302
|
};
|
|
12273
12303
|
|
|
12274
12304
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12275
|
-
import { AbstractApiRequest as
|
|
12305
|
+
import { AbstractApiRequest as AbstractApiRequest32 } from "@deliverart/sdk-js-core";
|
|
12276
12306
|
import {
|
|
12277
12307
|
createPaginatedSchema as createPaginatedSchema9,
|
|
12278
12308
|
responseToPagination as responseToPagination9
|
|
@@ -12282,7 +12312,7 @@ var getMenuVersionsQuerySchema = external_exports.object({
|
|
|
12282
12312
|
});
|
|
12283
12313
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12284
12314
|
var getMenuVersionsResponseSchema = createPaginatedSchema9(menuVersionSchema);
|
|
12285
|
-
var GetMenuVersions = class extends
|
|
12315
|
+
var GetMenuVersions = class extends AbstractApiRequest32 {
|
|
12286
12316
|
constructor(pointOfSaleId, options) {
|
|
12287
12317
|
super(void 0, options);
|
|
12288
12318
|
this.method = "GET";
|
|
@@ -12324,6 +12354,7 @@ export {
|
|
|
12324
12354
|
GetMenuItemPriceOverrideDetails,
|
|
12325
12355
|
GetMenuItemPriceOverrides,
|
|
12326
12356
|
GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier,
|
|
12357
|
+
GetMenuItemPriceOverridesAsVariantsFromMenuItem,
|
|
12327
12358
|
GetMenuItemPriceOverridesFromMenuItemModifier,
|
|
12328
12359
|
GetMenuItemTagsFromPointOfSale,
|
|
12329
12360
|
GetMenuItems,
|
|
@@ -12376,6 +12407,9 @@ export {
|
|
|
12376
12407
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema,
|
|
12377
12408
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema,
|
|
12378
12409
|
getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema,
|
|
12410
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema,
|
|
12411
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema,
|
|
12412
|
+
getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema,
|
|
12379
12413
|
getMenuItemPriceOverridesFromMenuItemModifierInputSchema,
|
|
12380
12414
|
getMenuItemPriceOverridesFromMenuItemModifierQuerySchema,
|
|
12381
12415
|
getMenuItemPriceOverridesFromMenuItemModifierResponseSchema,
|
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.32",
|
|
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-image": "2.5.
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-global-types": "2.5.32",
|
|
22
|
+
"@deliverart/sdk-js-image": "2.5.32",
|
|
23
|
+
"@deliverart/sdk-js-core": "2.5.32",
|
|
24
|
+
"@deliverart/sdk-js-sales-mode": "2.5.32",
|
|
25
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.32"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|