@deliverart/sdk-js-menu 2.5.5 → 2.5.7
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 +89 -50
- package/dist/index.d.cts +140 -1
- package/dist/index.d.ts +140 -1
- package/dist/index.js +89 -51
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
GetMenuItemDetails: () => GetMenuItemDetails,
|
|
35
35
|
GetMenuItemModifierDetails: () => GetMenuItemModifierDetails,
|
|
36
36
|
GetMenuItemModifiers: () => GetMenuItemModifiers,
|
|
37
|
+
GetMenuItemModifiersFromPointOfSale: () => GetMenuItemModifiersFromPointOfSale,
|
|
37
38
|
GetMenuItemPriceOverrideDetails: () => GetMenuItemPriceOverrideDetails,
|
|
38
39
|
GetMenuItemPriceOverrides: () => GetMenuItemPriceOverrides,
|
|
39
40
|
GetMenuItems: () => GetMenuItems,
|
|
@@ -73,6 +74,9 @@ __export(index_exports, {
|
|
|
73
74
|
getMenuItemDetailsResponseSchema: () => getMenuItemDetailsResponseSchema,
|
|
74
75
|
getMenuItemModifierDetailsInputSchema: () => getMenuItemModifierDetailsInputSchema,
|
|
75
76
|
getMenuItemModifierDetailsResponseSchema: () => getMenuItemModifierDetailsResponseSchema,
|
|
77
|
+
getMenuItemModifiersFromPointOfSaleInputSchema: () => getMenuItemModifiersFromPointOfSaleInputSchema,
|
|
78
|
+
getMenuItemModifiersFromPointOfSaleQuerySchema: () => getMenuItemModifiersFromPointOfSaleQuerySchema,
|
|
79
|
+
getMenuItemModifiersFromPointOfSaleResponseSchema: () => getMenuItemModifiersFromPointOfSaleResponseSchema,
|
|
76
80
|
getMenuItemModifiersInputSchema: () => getMenuItemModifiersInputSchema,
|
|
77
81
|
getMenuItemModifiersQuerySchema: () => getMenuItemModifiersQuerySchema,
|
|
78
82
|
getMenuItemModifiersResponseSchema: () => getMenuItemModifiersResponseSchema,
|
|
@@ -11450,7 +11454,8 @@ var writableMenuItemCategorySchema = menuItemCategorySchema.pick({
|
|
|
11450
11454
|
sorting: true,
|
|
11451
11455
|
suspended: true
|
|
11452
11456
|
}).extend({
|
|
11453
|
-
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema
|
|
11457
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
11458
|
+
images: external_exports.array(import_sdk_js_image.imageIriSchema).min(0).default([])
|
|
11454
11459
|
});
|
|
11455
11460
|
var menuItemModifierSchema = external_exports.object({
|
|
11456
11461
|
id: external_exports.string(),
|
|
@@ -11875,13 +11880,43 @@ var GetMenuItemModifiers = class extends import_sdk_js_core10.AbstractApiRequest
|
|
|
11875
11880
|
}
|
|
11876
11881
|
};
|
|
11877
11882
|
|
|
11878
|
-
// src/requests/menu-item-modifiers/
|
|
11883
|
+
// src/requests/menu-item-modifiers/GetMenuItemModifiersFromPointOfSale.ts
|
|
11879
11884
|
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
11885
|
+
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
11886
|
+
var getMenuItemModifiersFromPointOfSaleQuerySchema = menuItemModifiersQuerySchema;
|
|
11887
|
+
var getMenuItemModifiersFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11888
|
+
var getMenuItemModifiersFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types9.createPaginatedSchema)(menuItemModifierSchema);
|
|
11889
|
+
var GetMenuItemModifiersFromPointOfSale = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
11890
|
+
constructor(pointOfSaleId, options) {
|
|
11891
|
+
super(void 0, options);
|
|
11892
|
+
this.method = "GET";
|
|
11893
|
+
this.contentType = "application/json";
|
|
11894
|
+
this.accept = "application/json";
|
|
11895
|
+
this.inputSchema = getMenuItemModifiersFromPointOfSaleInputSchema;
|
|
11896
|
+
this.outputSchema = getMenuItemModifiersFromPointOfSaleResponseSchema;
|
|
11897
|
+
this.querySchema = getMenuItemModifiersFromPointOfSaleQuerySchema;
|
|
11898
|
+
this.headersSchema = void 0;
|
|
11899
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
11900
|
+
}
|
|
11901
|
+
getPath() {
|
|
11902
|
+
return `/point_of_sales/${this.pointOfSaleId}/menu_item_modifiers`;
|
|
11903
|
+
}
|
|
11904
|
+
parseResponse(data, rawResponse) {
|
|
11905
|
+
const menuItemModifiers = external_exports.array(menuItemModifierSchema).parse(data);
|
|
11906
|
+
return this.validateOutput({
|
|
11907
|
+
data: menuItemModifiers,
|
|
11908
|
+
pagination: (0, import_sdk_js_global_types9.responseToPagination)(rawResponse)
|
|
11909
|
+
});
|
|
11910
|
+
}
|
|
11911
|
+
};
|
|
11912
|
+
|
|
11913
|
+
// src/requests/menu-item-modifiers/UpdateMenuItemModifier.ts
|
|
11914
|
+
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
11880
11915
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11881
11916
|
pointOfSale: true
|
|
11882
11917
|
}).partial();
|
|
11883
11918
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11884
|
-
var UpdateMenuItemModifier = class extends
|
|
11919
|
+
var UpdateMenuItemModifier = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
11885
11920
|
constructor(menuItemModifierId, input) {
|
|
11886
11921
|
super(input);
|
|
11887
11922
|
this.method = "PATCH";
|
|
@@ -11899,10 +11934,10 @@ var UpdateMenuItemModifier = class extends import_sdk_js_core11.AbstractApiReque
|
|
|
11899
11934
|
};
|
|
11900
11935
|
|
|
11901
11936
|
// src/requests/menu-item-price-overrides/CreateMenuItemPriceOverride.ts
|
|
11902
|
-
var
|
|
11937
|
+
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
11903
11938
|
var createMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverrideSchema;
|
|
11904
11939
|
var createMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11905
|
-
var CreateMenuItemPriceOverride = class extends
|
|
11940
|
+
var CreateMenuItemPriceOverride = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
11906
11941
|
constructor(input) {
|
|
11907
11942
|
super(input);
|
|
11908
11943
|
this.method = "POST";
|
|
@@ -11919,11 +11954,11 @@ var CreateMenuItemPriceOverride = class extends import_sdk_js_core12.AbstractApi
|
|
|
11919
11954
|
};
|
|
11920
11955
|
|
|
11921
11956
|
// src/requests/menu-item-price-overrides/DeleteMenuItemPriceOverride.ts
|
|
11922
|
-
var
|
|
11923
|
-
var
|
|
11957
|
+
var import_sdk_js_core14 = require("@deliverart/sdk-js-core");
|
|
11958
|
+
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
11924
11959
|
var deleteMenuItemPriceOverrideInputSchema = external_exports.undefined();
|
|
11925
|
-
var deleteMenuItemPriceOverrideResponseSchema =
|
|
11926
|
-
var DeleteMenuItemPriceOverride = class extends
|
|
11960
|
+
var deleteMenuItemPriceOverrideResponseSchema = import_sdk_js_global_types10.emptyResponseSchema;
|
|
11961
|
+
var DeleteMenuItemPriceOverride = class extends import_sdk_js_core14.AbstractApiRequest {
|
|
11927
11962
|
constructor(menuItemPriceOverrideId) {
|
|
11928
11963
|
super(void 0);
|
|
11929
11964
|
this.method = "DELETE";
|
|
@@ -11941,10 +11976,10 @@ var DeleteMenuItemPriceOverride = class extends import_sdk_js_core13.AbstractApi
|
|
|
11941
11976
|
};
|
|
11942
11977
|
|
|
11943
11978
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrideDetails.ts
|
|
11944
|
-
var
|
|
11979
|
+
var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
11945
11980
|
var getMenuItemPriceOverrideDetailsInputSchema = external_exports.undefined();
|
|
11946
11981
|
var getMenuItemPriceOverrideDetailsResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11947
|
-
var GetMenuItemPriceOverrideDetails = class extends
|
|
11982
|
+
var GetMenuItemPriceOverrideDetails = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
11948
11983
|
constructor(menuItemPriceOverrideId) {
|
|
11949
11984
|
super(void 0);
|
|
11950
11985
|
this.method = "GET";
|
|
@@ -11962,14 +11997,14 @@ var GetMenuItemPriceOverrideDetails = class extends import_sdk_js_core14.Abstrac
|
|
|
11962
11997
|
};
|
|
11963
11998
|
|
|
11964
11999
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrides.ts
|
|
11965
|
-
var
|
|
11966
|
-
var
|
|
12000
|
+
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
12001
|
+
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
11967
12002
|
var getMenuItemPriceOverridesQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11968
12003
|
var getMenuItemPriceOverridesInputSchema = external_exports.undefined();
|
|
11969
|
-
var getMenuItemPriceOverridesResponseSchema = (0,
|
|
12004
|
+
var getMenuItemPriceOverridesResponseSchema = (0, import_sdk_js_global_types11.createPaginatedSchema)(
|
|
11970
12005
|
menuItemPriceOverrideSchema
|
|
11971
12006
|
);
|
|
11972
|
-
var GetMenuItemPriceOverrides = class extends
|
|
12007
|
+
var GetMenuItemPriceOverrides = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
11973
12008
|
constructor(options) {
|
|
11974
12009
|
super(void 0, options);
|
|
11975
12010
|
this.method = "GET";
|
|
@@ -11987,16 +12022,16 @@ var GetMenuItemPriceOverrides = class extends import_sdk_js_core15.AbstractApiRe
|
|
|
11987
12022
|
const menuItemPriceOverrides = external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
11988
12023
|
return this.validateOutput({
|
|
11989
12024
|
data: menuItemPriceOverrides,
|
|
11990
|
-
pagination: (0,
|
|
12025
|
+
pagination: (0, import_sdk_js_global_types11.responseToPagination)(rawResponse)
|
|
11991
12026
|
});
|
|
11992
12027
|
}
|
|
11993
12028
|
};
|
|
11994
12029
|
|
|
11995
12030
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
11996
|
-
var
|
|
12031
|
+
var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
11997
12032
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
11998
12033
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11999
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
12034
|
+
var UpdateMenuItemPriceOverride = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
12000
12035
|
constructor(menuItemPriceOverrideId, input) {
|
|
12001
12036
|
super(input);
|
|
12002
12037
|
this.method = "PATCH";
|
|
@@ -12014,10 +12049,10 @@ var UpdateMenuItemPriceOverride = class extends import_sdk_js_core16.AbstractApi
|
|
|
12014
12049
|
};
|
|
12015
12050
|
|
|
12016
12051
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
12017
|
-
var
|
|
12052
|
+
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
12018
12053
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
12019
12054
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12020
|
-
var CreateMenuItem = class extends
|
|
12055
|
+
var CreateMenuItem = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
12021
12056
|
constructor(input) {
|
|
12022
12057
|
super(input);
|
|
12023
12058
|
this.method = "POST";
|
|
@@ -12034,11 +12069,11 @@ var CreateMenuItem = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
|
12034
12069
|
};
|
|
12035
12070
|
|
|
12036
12071
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
12037
|
-
var
|
|
12038
|
-
var
|
|
12072
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
12073
|
+
var import_sdk_js_global_types12 = require("@deliverart/sdk-js-global-types");
|
|
12039
12074
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
12040
|
-
var deleteMenuItemResponseSchema =
|
|
12041
|
-
var DeleteMenuItem = class extends
|
|
12075
|
+
var deleteMenuItemResponseSchema = import_sdk_js_global_types12.emptyResponseSchema;
|
|
12076
|
+
var DeleteMenuItem = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
12042
12077
|
constructor(menuItemId) {
|
|
12043
12078
|
super(void 0);
|
|
12044
12079
|
this.method = "DELETE";
|
|
@@ -12056,10 +12091,10 @@ var DeleteMenuItem = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
|
12056
12091
|
};
|
|
12057
12092
|
|
|
12058
12093
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
12059
|
-
var
|
|
12094
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
12060
12095
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
12061
12096
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
12062
|
-
var GetMenuItemDetails = class extends
|
|
12097
|
+
var GetMenuItemDetails = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
12063
12098
|
constructor(menuItemId) {
|
|
12064
12099
|
super(void 0);
|
|
12065
12100
|
this.method = "GET";
|
|
@@ -12077,12 +12112,12 @@ var GetMenuItemDetails = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
|
12077
12112
|
};
|
|
12078
12113
|
|
|
12079
12114
|
// src/requests/menu-items/GetMenuItems.ts
|
|
12080
|
-
var
|
|
12081
|
-
var
|
|
12115
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
12116
|
+
var import_sdk_js_global_types13 = require("@deliverart/sdk-js-global-types");
|
|
12082
12117
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
12083
12118
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
12084
|
-
var getMenuItemsResponseSchema = (0,
|
|
12085
|
-
var GetMenuItems = class extends
|
|
12119
|
+
var getMenuItemsResponseSchema = (0, import_sdk_js_global_types13.createPaginatedSchema)(menuItemSchema);
|
|
12120
|
+
var GetMenuItems = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
12086
12121
|
constructor(options) {
|
|
12087
12122
|
super(void 0, options);
|
|
12088
12123
|
this.method = "GET";
|
|
@@ -12098,17 +12133,17 @@ var GetMenuItems = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
|
12098
12133
|
}
|
|
12099
12134
|
parseResponse(data, rawResponse) {
|
|
12100
12135
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12101
|
-
return this.validateOutput({ data: menuItems, pagination: (0,
|
|
12136
|
+
return this.validateOutput({ data: menuItems, pagination: (0, import_sdk_js_global_types13.responseToPagination)(rawResponse) });
|
|
12102
12137
|
}
|
|
12103
12138
|
};
|
|
12104
12139
|
|
|
12105
12140
|
// src/requests/menu-items/GetMenuItemsFromMenuItemCategory.ts
|
|
12106
|
-
var
|
|
12107
|
-
var
|
|
12141
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
12142
|
+
var import_sdk_js_global_types14 = require("@deliverart/sdk-js-global-types");
|
|
12108
12143
|
var getMenuItemsFromMenuItemCategoryQuerySchema = menuItemsQuerySchema;
|
|
12109
12144
|
var getMenuItemsFromMenuItemCategoryInputSchema = external_exports.undefined();
|
|
12110
|
-
var getMenuItemsFromMenuItemCategoryResponseSchema = (0,
|
|
12111
|
-
var GetMenuItemsFromMenuItemCategory = class extends
|
|
12145
|
+
var getMenuItemsFromMenuItemCategoryResponseSchema = (0, import_sdk_js_global_types14.createPaginatedSchema)(menuItemSchema);
|
|
12146
|
+
var GetMenuItemsFromMenuItemCategory = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
12112
12147
|
constructor(menuItemCategoryId, options) {
|
|
12113
12148
|
super(void 0, options);
|
|
12114
12149
|
this.method = "GET";
|
|
@@ -12125,17 +12160,17 @@ var GetMenuItemsFromMenuItemCategory = class extends import_sdk_js_core21.Abstra
|
|
|
12125
12160
|
}
|
|
12126
12161
|
parseResponse(data, rawResponse) {
|
|
12127
12162
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12128
|
-
return this.validateOutput({ data: menuItems, pagination: (0,
|
|
12163
|
+
return this.validateOutput({ data: menuItems, pagination: (0, import_sdk_js_global_types14.responseToPagination)(rawResponse) });
|
|
12129
12164
|
}
|
|
12130
12165
|
};
|
|
12131
12166
|
|
|
12132
12167
|
// src/requests/menu-items/GetMenuItemsFromPointOfSale.ts
|
|
12133
|
-
var
|
|
12134
|
-
var
|
|
12168
|
+
var import_sdk_js_core23 = require("@deliverart/sdk-js-core");
|
|
12169
|
+
var import_sdk_js_global_types15 = require("@deliverart/sdk-js-global-types");
|
|
12135
12170
|
var getMenuItemsFromPointOfSaleQuerySchema = menuItemsQuerySchema;
|
|
12136
12171
|
var getMenuItemsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12137
|
-
var getMenuItemsFromPointOfSaleResponseSchema = (0,
|
|
12138
|
-
var GetMenuItemsFromPointOfSale = class extends
|
|
12172
|
+
var getMenuItemsFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types15.createPaginatedSchema)(menuItemSchema);
|
|
12173
|
+
var GetMenuItemsFromPointOfSale = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
12139
12174
|
constructor(pointOfSaleId, options) {
|
|
12140
12175
|
super(void 0, options);
|
|
12141
12176
|
this.method = "GET";
|
|
@@ -12152,17 +12187,17 @@ var GetMenuItemsFromPointOfSale = class extends import_sdk_js_core22.AbstractApi
|
|
|
12152
12187
|
}
|
|
12153
12188
|
parseResponse(data, rawResponse) {
|
|
12154
12189
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12155
|
-
return this.validateOutput({ data: menuItems, pagination: (0,
|
|
12190
|
+
return this.validateOutput({ data: menuItems, pagination: (0, import_sdk_js_global_types15.responseToPagination)(rawResponse) });
|
|
12156
12191
|
}
|
|
12157
12192
|
};
|
|
12158
12193
|
|
|
12159
12194
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12160
|
-
var
|
|
12195
|
+
var import_sdk_js_core24 = require("@deliverart/sdk-js-core");
|
|
12161
12196
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12162
12197
|
pointOfSale: true
|
|
12163
12198
|
}).partial();
|
|
12164
12199
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12165
|
-
var UpdateMenuItem = class extends
|
|
12200
|
+
var UpdateMenuItem = class extends import_sdk_js_core24.AbstractApiRequest {
|
|
12166
12201
|
constructor(menuItemId, input) {
|
|
12167
12202
|
super(input);
|
|
12168
12203
|
this.method = "PATCH";
|
|
@@ -12180,10 +12215,10 @@ var UpdateMenuItem = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
|
12180
12215
|
};
|
|
12181
12216
|
|
|
12182
12217
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12183
|
-
var
|
|
12218
|
+
var import_sdk_js_core25 = require("@deliverart/sdk-js-core");
|
|
12184
12219
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12185
12220
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12186
|
-
var GetMenuVersionDetails = class extends
|
|
12221
|
+
var GetMenuVersionDetails = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
12187
12222
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12188
12223
|
super(void 0);
|
|
12189
12224
|
this.method = "GET";
|
|
@@ -12202,14 +12237,14 @@ var GetMenuVersionDetails = class extends import_sdk_js_core24.AbstractApiReques
|
|
|
12202
12237
|
};
|
|
12203
12238
|
|
|
12204
12239
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12205
|
-
var
|
|
12206
|
-
var
|
|
12240
|
+
var import_sdk_js_core26 = require("@deliverart/sdk-js-core");
|
|
12241
|
+
var import_sdk_js_global_types16 = require("@deliverart/sdk-js-global-types");
|
|
12207
12242
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12208
12243
|
page: external_exports.coerce.number().optional()
|
|
12209
12244
|
});
|
|
12210
12245
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12211
|
-
var getMenuVersionsResponseSchema = (0,
|
|
12212
|
-
var GetMenuVersions = class extends
|
|
12246
|
+
var getMenuVersionsResponseSchema = (0, import_sdk_js_global_types16.createPaginatedSchema)(menuVersionSchema);
|
|
12247
|
+
var GetMenuVersions = class extends import_sdk_js_core26.AbstractApiRequest {
|
|
12213
12248
|
constructor(pointOfSaleId, options) {
|
|
12214
12249
|
super(void 0, options);
|
|
12215
12250
|
this.method = "GET";
|
|
@@ -12228,7 +12263,7 @@ var GetMenuVersions = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
|
12228
12263
|
const menuVersions = external_exports.array(menuVersionSchema).parse(data);
|
|
12229
12264
|
return this.validateOutput({
|
|
12230
12265
|
data: menuVersions,
|
|
12231
|
-
pagination: (0,
|
|
12266
|
+
pagination: (0, import_sdk_js_global_types16.responseToPagination)(rawResponse)
|
|
12232
12267
|
});
|
|
12233
12268
|
}
|
|
12234
12269
|
};
|
|
@@ -12248,6 +12283,7 @@ var GetMenuVersions = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
|
12248
12283
|
GetMenuItemDetails,
|
|
12249
12284
|
GetMenuItemModifierDetails,
|
|
12250
12285
|
GetMenuItemModifiers,
|
|
12286
|
+
GetMenuItemModifiersFromPointOfSale,
|
|
12251
12287
|
GetMenuItemPriceOverrideDetails,
|
|
12252
12288
|
GetMenuItemPriceOverrides,
|
|
12253
12289
|
GetMenuItems,
|
|
@@ -12287,6 +12323,9 @@ var GetMenuVersions = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
|
12287
12323
|
getMenuItemDetailsResponseSchema,
|
|
12288
12324
|
getMenuItemModifierDetailsInputSchema,
|
|
12289
12325
|
getMenuItemModifierDetailsResponseSchema,
|
|
12326
|
+
getMenuItemModifiersFromPointOfSaleInputSchema,
|
|
12327
|
+
getMenuItemModifiersFromPointOfSaleQuerySchema,
|
|
12328
|
+
getMenuItemModifiersFromPointOfSaleResponseSchema,
|
|
12290
12329
|
getMenuItemModifiersInputSchema,
|
|
12291
12330
|
getMenuItemModifiersQuerySchema,
|
|
12292
12331
|
getMenuItemModifiersResponseSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -1074,6 +1074,7 @@ declare const writableMenuItemCategorySchema: z.ZodObject<{
|
|
|
1074
1074
|
suspended: z.ZodBoolean;
|
|
1075
1075
|
sorting: z.ZodCoercedNumber<unknown>;
|
|
1076
1076
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1077
|
+
images: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
1077
1078
|
}, z.core.$strip>;
|
|
1078
1079
|
declare const menuItemModifierSchema: z.ZodObject<{
|
|
1079
1080
|
id: z.ZodString;
|
|
@@ -1625,6 +1626,7 @@ declare const createMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
1625
1626
|
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
1626
1627
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1627
1628
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1629
|
+
images: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
1628
1630
|
}, z.core.$strip>;
|
|
1629
1631
|
type CreateMenuItemCategoryInput = z.input<typeof createMenuItemCategoryInputSchema>;
|
|
1630
1632
|
declare const createMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
@@ -1679,6 +1681,7 @@ declare class CreateMenuItemCategory extends AbstractApiRequest<typeof createMen
|
|
|
1679
1681
|
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
1680
1682
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1681
1683
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1684
|
+
images: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
1682
1685
|
}, z.core.$strip>;
|
|
1683
1686
|
readonly outputSchema: z.ZodObject<{
|
|
1684
1687
|
id: z.ZodString;
|
|
@@ -2102,6 +2105,7 @@ declare const updateMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
2102
2105
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2103
2106
|
}, z.core.$strip>>>;
|
|
2104
2107
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
2108
|
+
images: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
2105
2109
|
sorting: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2106
2110
|
}, z.core.$strip>;
|
|
2107
2111
|
type UpdateMenuItemCategoryInput = z.input<typeof updateMenuItemCategoryInputSchema>;
|
|
@@ -2155,6 +2159,7 @@ declare class UpdateMenuItemCategory extends AbstractApiRequest<typeof updateMen
|
|
|
2155
2159
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2156
2160
|
}, z.core.$strip>>>;
|
|
2157
2161
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
2162
|
+
images: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
2158
2163
|
sorting: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2159
2164
|
}, z.core.$strip>;
|
|
2160
2165
|
readonly outputSchema: z.ZodObject<{
|
|
@@ -2496,6 +2501,140 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
2496
2501
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
2497
2502
|
}
|
|
2498
2503
|
|
|
2504
|
+
declare const getMenuItemModifiersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
2505
|
+
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2506
|
+
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2507
|
+
'minSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2508
|
+
'minSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2509
|
+
'minSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2510
|
+
'minSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2511
|
+
'maxSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2512
|
+
'maxSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2513
|
+
'maxSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2514
|
+
'maxSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2515
|
+
'maxSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2516
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
2517
|
+
asc: "asc";
|
|
2518
|
+
desc: "desc";
|
|
2519
|
+
}>>;
|
|
2520
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2521
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2522
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2523
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2524
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2525
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2526
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2527
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2528
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2529
|
+
}, z.core.$strip>;
|
|
2530
|
+
type GetMenuItemModifiersFromPointOfSaleQueryParams = z.infer<typeof getMenuItemModifiersFromPointOfSaleQuerySchema>;
|
|
2531
|
+
declare const getMenuItemModifiersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
2532
|
+
type GetMenuItemModifiersFromPointOfSaleInput = z.input<typeof getMenuItemModifiersFromPointOfSaleInputSchema>;
|
|
2533
|
+
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
2534
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2535
|
+
id: z.ZodString;
|
|
2536
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2537
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2538
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2539
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2540
|
+
}, z.core.$strip>>;
|
|
2541
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2542
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2543
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2544
|
+
}, z.core.$strip>>>;
|
|
2545
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2546
|
+
minSelection: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2547
|
+
maxSelection: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2548
|
+
repeatable: z.ZodDefault<z.ZodBoolean>;
|
|
2549
|
+
items: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2550
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2551
|
+
priceOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2552
|
+
variantOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2553
|
+
createdAt: z.ZodString;
|
|
2554
|
+
updatedAt: z.ZodString;
|
|
2555
|
+
}, z.core.$strip>>;
|
|
2556
|
+
pagination: z.ZodObject<{
|
|
2557
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2558
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2559
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2560
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2561
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2562
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2563
|
+
}, z.core.$strip>;
|
|
2564
|
+
}, z.core.$strip>;
|
|
2565
|
+
type GetMenuItemModifiersFromPointOfSaleResponse = z.infer<typeof getMenuItemModifiersFromPointOfSaleResponseSchema>;
|
|
2566
|
+
declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typeof getMenuItemModifiersFromPointOfSaleInputSchema, typeof getMenuItemModifiersFromPointOfSaleResponseSchema, GetMenuItemModifiersFromPointOfSaleQueryParams> {
|
|
2567
|
+
readonly method = "GET";
|
|
2568
|
+
readonly contentType = "application/json";
|
|
2569
|
+
readonly accept = "application/json";
|
|
2570
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2571
|
+
readonly outputSchema: z.ZodObject<{
|
|
2572
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2573
|
+
id: z.ZodString;
|
|
2574
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2575
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2576
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2577
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2578
|
+
}, z.core.$strip>>;
|
|
2579
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2580
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2581
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2582
|
+
}, z.core.$strip>>>;
|
|
2583
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2584
|
+
minSelection: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2585
|
+
maxSelection: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2586
|
+
repeatable: z.ZodDefault<z.ZodBoolean>;
|
|
2587
|
+
items: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2588
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2589
|
+
priceOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2590
|
+
variantOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2591
|
+
createdAt: z.ZodString;
|
|
2592
|
+
updatedAt: z.ZodString;
|
|
2593
|
+
}, z.core.$strip>>;
|
|
2594
|
+
pagination: z.ZodObject<{
|
|
2595
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2596
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2597
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2598
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2599
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2600
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2601
|
+
}, z.core.$strip>;
|
|
2602
|
+
}, z.core.$strip>;
|
|
2603
|
+
readonly querySchema: z.ZodObject<{
|
|
2604
|
+
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2605
|
+
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2606
|
+
'minSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2607
|
+
'minSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2608
|
+
'minSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2609
|
+
'minSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2610
|
+
'maxSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2611
|
+
'maxSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2612
|
+
'maxSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2613
|
+
'maxSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2614
|
+
'maxSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2615
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
2616
|
+
asc: "asc";
|
|
2617
|
+
desc: "desc";
|
|
2618
|
+
}>>;
|
|
2619
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2620
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2621
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2622
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2623
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2624
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2625
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2626
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2627
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2628
|
+
}, z.core.$strip>;
|
|
2629
|
+
readonly headersSchema: undefined;
|
|
2630
|
+
private readonly pointOfSaleId;
|
|
2631
|
+
constructor(pointOfSaleId: string, options?: {
|
|
2632
|
+
query?: GetMenuItemModifiersFromPointOfSaleQueryParams;
|
|
2633
|
+
});
|
|
2634
|
+
getPath(): string;
|
|
2635
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2499
2638
|
declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
2500
2639
|
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2501
2640
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
@@ -6518,4 +6657,4 @@ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSa
|
|
|
6518
6657
|
declare const menuItemPriceOverrideSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, unknown>>;
|
|
6519
6658
|
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
6520
6659
|
|
|
6521
|
-
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, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, type GetMenuItemsInput, type GetMenuItemsQueryParams, type GetMenuItemsResponse, GetMenuVersionDetails, type GetMenuVersionDetailsInput, type GetMenuVersionDetailsResponse, GetMenuVersions, type GetMenuVersionsInput, type GetMenuVersionsQueryParams, type GetMenuVersionsResponse, type MenuCategoryDto, type MenuDto, type MenuItem, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemModifier, type MenuItemModifierDetails, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemModifiersQueryParams, type MenuItemNullableIri, type MenuItemPriceOverride, type MenuItemPriceOverrideDetails, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverridesQueryParams, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemsQueryParams, type MenuModifierDto, type MenuPriceDto, type MenuPriceOverrideDto, type MenuVersion, UpdateMenuItem, UpdateMenuItemCategory, type UpdateMenuItemCategoryInput, type UpdateMenuItemCategoryResponse, type UpdateMenuItemInput, UpdateMenuItemModifier, type UpdateMenuItemModifierInput, type UpdateMenuItemModifierResponse, UpdateMenuItemPriceOverride, type UpdateMenuItemPriceOverrideInput, type UpdateMenuItemPriceOverrideResponse, type UpdateMenuItemResponse, type WritableMenuItemPriceOverride, createMenuItemCategoryInputSchema, createMenuItemCategoryResponseSchema, createMenuItemInputSchema, createMenuItemModifierInputSchema, createMenuItemModifierResponseSchema, createMenuItemPriceOverrideInputSchema, createMenuItemPriceOverrideResponseSchema, createMenuItemResponseSchema, deleteMenuItemCategoryInputSchema, deleteMenuItemCategoryResponseSchema, deleteMenuItemInputSchema, deleteMenuItemModifierInputSchema, deleteMenuItemModifierResponseSchema, deleteMenuItemPriceOverrideInputSchema, deleteMenuItemPriceOverrideResponseSchema, deleteMenuItemResponseSchema, getMenuItemCategoriesFromPointOfSaleInputSchema, getMenuItemCategoriesFromPointOfSaleQuerySchema, getMenuItemCategoriesFromPointOfSaleResponseSchema, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, 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 };
|
|
6660
|
+
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, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, type GetMenuItemsInput, type GetMenuItemsQueryParams, type GetMenuItemsResponse, GetMenuVersionDetails, type GetMenuVersionDetailsInput, type GetMenuVersionDetailsResponse, GetMenuVersions, type GetMenuVersionsInput, type GetMenuVersionsQueryParams, type GetMenuVersionsResponse, type MenuCategoryDto, type MenuDto, type MenuItem, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemModifier, type MenuItemModifierDetails, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemModifiersQueryParams, type MenuItemNullableIri, type MenuItemPriceOverride, type MenuItemPriceOverrideDetails, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverridesQueryParams, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemsQueryParams, type MenuModifierDto, type MenuPriceDto, type MenuPriceOverrideDto, type MenuVersion, UpdateMenuItem, UpdateMenuItemCategory, type UpdateMenuItemCategoryInput, type UpdateMenuItemCategoryResponse, type UpdateMenuItemInput, UpdateMenuItemModifier, type UpdateMenuItemModifierInput, type UpdateMenuItemModifierResponse, UpdateMenuItemPriceOverride, type UpdateMenuItemPriceOverrideInput, type UpdateMenuItemPriceOverrideResponse, type UpdateMenuItemResponse, type WritableMenuItemPriceOverride, createMenuItemCategoryInputSchema, createMenuItemCategoryResponseSchema, createMenuItemInputSchema, createMenuItemModifierInputSchema, createMenuItemModifierResponseSchema, createMenuItemPriceOverrideInputSchema, createMenuItemPriceOverrideResponseSchema, createMenuItemResponseSchema, deleteMenuItemCategoryInputSchema, deleteMenuItemCategoryResponseSchema, deleteMenuItemInputSchema, deleteMenuItemModifierInputSchema, deleteMenuItemModifierResponseSchema, deleteMenuItemPriceOverrideInputSchema, deleteMenuItemPriceOverrideResponseSchema, deleteMenuItemResponseSchema, getMenuItemCategoriesFromPointOfSaleInputSchema, getMenuItemCategoriesFromPointOfSaleQuerySchema, getMenuItemCategoriesFromPointOfSaleResponseSchema, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersFromPointOfSaleInputSchema, getMenuItemModifiersFromPointOfSaleQuerySchema, getMenuItemModifiersFromPointOfSaleResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, 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
|
@@ -1074,6 +1074,7 @@ declare const writableMenuItemCategorySchema: z.ZodObject<{
|
|
|
1074
1074
|
suspended: z.ZodBoolean;
|
|
1075
1075
|
sorting: z.ZodCoercedNumber<unknown>;
|
|
1076
1076
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1077
|
+
images: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
1077
1078
|
}, z.core.$strip>;
|
|
1078
1079
|
declare const menuItemModifierSchema: z.ZodObject<{
|
|
1079
1080
|
id: z.ZodString;
|
|
@@ -1625,6 +1626,7 @@ declare const createMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
1625
1626
|
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
1626
1627
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1627
1628
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1629
|
+
images: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
1628
1630
|
}, z.core.$strip>;
|
|
1629
1631
|
type CreateMenuItemCategoryInput = z.input<typeof createMenuItemCategoryInputSchema>;
|
|
1630
1632
|
declare const createMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
@@ -1679,6 +1681,7 @@ declare class CreateMenuItemCategory extends AbstractApiRequest<typeof createMen
|
|
|
1679
1681
|
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
1680
1682
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1681
1683
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1684
|
+
images: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
1682
1685
|
}, z.core.$strip>;
|
|
1683
1686
|
readonly outputSchema: z.ZodObject<{
|
|
1684
1687
|
id: z.ZodString;
|
|
@@ -2102,6 +2105,7 @@ declare const updateMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
2102
2105
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2103
2106
|
}, z.core.$strip>>>;
|
|
2104
2107
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
2108
|
+
images: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
2105
2109
|
sorting: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2106
2110
|
}, z.core.$strip>;
|
|
2107
2111
|
type UpdateMenuItemCategoryInput = z.input<typeof updateMenuItemCategoryInputSchema>;
|
|
@@ -2155,6 +2159,7 @@ declare class UpdateMenuItemCategory extends AbstractApiRequest<typeof updateMen
|
|
|
2155
2159
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2156
2160
|
}, z.core.$strip>>>;
|
|
2157
2161
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
2162
|
+
images: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
2158
2163
|
sorting: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2159
2164
|
}, z.core.$strip>;
|
|
2160
2165
|
readonly outputSchema: z.ZodObject<{
|
|
@@ -2496,6 +2501,140 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
2496
2501
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
2497
2502
|
}
|
|
2498
2503
|
|
|
2504
|
+
declare const getMenuItemModifiersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
2505
|
+
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2506
|
+
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2507
|
+
'minSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2508
|
+
'minSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2509
|
+
'minSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2510
|
+
'minSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2511
|
+
'maxSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2512
|
+
'maxSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2513
|
+
'maxSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2514
|
+
'maxSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2515
|
+
'maxSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2516
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
2517
|
+
asc: "asc";
|
|
2518
|
+
desc: "desc";
|
|
2519
|
+
}>>;
|
|
2520
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2521
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2522
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2523
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2524
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2525
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2526
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2527
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2528
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2529
|
+
}, z.core.$strip>;
|
|
2530
|
+
type GetMenuItemModifiersFromPointOfSaleQueryParams = z.infer<typeof getMenuItemModifiersFromPointOfSaleQuerySchema>;
|
|
2531
|
+
declare const getMenuItemModifiersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
2532
|
+
type GetMenuItemModifiersFromPointOfSaleInput = z.input<typeof getMenuItemModifiersFromPointOfSaleInputSchema>;
|
|
2533
|
+
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
2534
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2535
|
+
id: z.ZodString;
|
|
2536
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2537
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2538
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2539
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2540
|
+
}, z.core.$strip>>;
|
|
2541
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2542
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2543
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2544
|
+
}, z.core.$strip>>>;
|
|
2545
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2546
|
+
minSelection: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2547
|
+
maxSelection: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2548
|
+
repeatable: z.ZodDefault<z.ZodBoolean>;
|
|
2549
|
+
items: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2550
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2551
|
+
priceOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2552
|
+
variantOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2553
|
+
createdAt: z.ZodString;
|
|
2554
|
+
updatedAt: z.ZodString;
|
|
2555
|
+
}, z.core.$strip>>;
|
|
2556
|
+
pagination: z.ZodObject<{
|
|
2557
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2558
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2559
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2560
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2561
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2562
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2563
|
+
}, z.core.$strip>;
|
|
2564
|
+
}, z.core.$strip>;
|
|
2565
|
+
type GetMenuItemModifiersFromPointOfSaleResponse = z.infer<typeof getMenuItemModifiersFromPointOfSaleResponseSchema>;
|
|
2566
|
+
declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typeof getMenuItemModifiersFromPointOfSaleInputSchema, typeof getMenuItemModifiersFromPointOfSaleResponseSchema, GetMenuItemModifiersFromPointOfSaleQueryParams> {
|
|
2567
|
+
readonly method = "GET";
|
|
2568
|
+
readonly contentType = "application/json";
|
|
2569
|
+
readonly accept = "application/json";
|
|
2570
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2571
|
+
readonly outputSchema: z.ZodObject<{
|
|
2572
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2573
|
+
id: z.ZodString;
|
|
2574
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2575
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2576
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2577
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2578
|
+
}, z.core.$strip>>;
|
|
2579
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2580
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2581
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2582
|
+
}, z.core.$strip>>>;
|
|
2583
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2584
|
+
minSelection: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
2585
|
+
maxSelection: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2586
|
+
repeatable: z.ZodDefault<z.ZodBoolean>;
|
|
2587
|
+
items: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2588
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2589
|
+
priceOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2590
|
+
variantOverrides: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>>;
|
|
2591
|
+
createdAt: z.ZodString;
|
|
2592
|
+
updatedAt: z.ZodString;
|
|
2593
|
+
}, z.core.$strip>>;
|
|
2594
|
+
pagination: z.ZodObject<{
|
|
2595
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2596
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2597
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2598
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2599
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2600
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2601
|
+
}, z.core.$strip>;
|
|
2602
|
+
}, z.core.$strip>;
|
|
2603
|
+
readonly querySchema: z.ZodObject<{
|
|
2604
|
+
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2605
|
+
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2606
|
+
'minSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2607
|
+
'minSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2608
|
+
'minSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2609
|
+
'minSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2610
|
+
'maxSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2611
|
+
'maxSelection[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2612
|
+
'maxSelection[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2613
|
+
'maxSelection[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2614
|
+
'maxSelection[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2615
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
2616
|
+
asc: "asc";
|
|
2617
|
+
desc: "desc";
|
|
2618
|
+
}>>;
|
|
2619
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2620
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2621
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2622
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2623
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2624
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2625
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2626
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2627
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2628
|
+
}, z.core.$strip>;
|
|
2629
|
+
readonly headersSchema: undefined;
|
|
2630
|
+
private readonly pointOfSaleId;
|
|
2631
|
+
constructor(pointOfSaleId: string, options?: {
|
|
2632
|
+
query?: GetMenuItemModifiersFromPointOfSaleQueryParams;
|
|
2633
|
+
});
|
|
2634
|
+
getPath(): string;
|
|
2635
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2499
2638
|
declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
2500
2639
|
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2501
2640
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
@@ -6518,4 +6657,4 @@ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSa
|
|
|
6518
6657
|
declare const menuItemPriceOverrideSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, unknown>>;
|
|
6519
6658
|
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
6520
6659
|
|
|
6521
|
-
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, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, type GetMenuItemsInput, type GetMenuItemsQueryParams, type GetMenuItemsResponse, GetMenuVersionDetails, type GetMenuVersionDetailsInput, type GetMenuVersionDetailsResponse, GetMenuVersions, type GetMenuVersionsInput, type GetMenuVersionsQueryParams, type GetMenuVersionsResponse, type MenuCategoryDto, type MenuDto, type MenuItem, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemModifier, type MenuItemModifierDetails, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemModifiersQueryParams, type MenuItemNullableIri, type MenuItemPriceOverride, type MenuItemPriceOverrideDetails, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverridesQueryParams, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemsQueryParams, type MenuModifierDto, type MenuPriceDto, type MenuPriceOverrideDto, type MenuVersion, UpdateMenuItem, UpdateMenuItemCategory, type UpdateMenuItemCategoryInput, type UpdateMenuItemCategoryResponse, type UpdateMenuItemInput, UpdateMenuItemModifier, type UpdateMenuItemModifierInput, type UpdateMenuItemModifierResponse, UpdateMenuItemPriceOverride, type UpdateMenuItemPriceOverrideInput, type UpdateMenuItemPriceOverrideResponse, type UpdateMenuItemResponse, type WritableMenuItemPriceOverride, createMenuItemCategoryInputSchema, createMenuItemCategoryResponseSchema, createMenuItemInputSchema, createMenuItemModifierInputSchema, createMenuItemModifierResponseSchema, createMenuItemPriceOverrideInputSchema, createMenuItemPriceOverrideResponseSchema, createMenuItemResponseSchema, deleteMenuItemCategoryInputSchema, deleteMenuItemCategoryResponseSchema, deleteMenuItemInputSchema, deleteMenuItemModifierInputSchema, deleteMenuItemModifierResponseSchema, deleteMenuItemPriceOverrideInputSchema, deleteMenuItemPriceOverrideResponseSchema, deleteMenuItemResponseSchema, getMenuItemCategoriesFromPointOfSaleInputSchema, getMenuItemCategoriesFromPointOfSaleQuerySchema, getMenuItemCategoriesFromPointOfSaleResponseSchema, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, 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 };
|
|
6660
|
+
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, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, type GetMenuItemsInput, type GetMenuItemsQueryParams, type GetMenuItemsResponse, GetMenuVersionDetails, type GetMenuVersionDetailsInput, type GetMenuVersionDetailsResponse, GetMenuVersions, type GetMenuVersionsInput, type GetMenuVersionsQueryParams, type GetMenuVersionsResponse, type MenuCategoryDto, type MenuDto, type MenuItem, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemModifier, type MenuItemModifierDetails, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemModifiersQueryParams, type MenuItemNullableIri, type MenuItemPriceOverride, type MenuItemPriceOverrideDetails, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverridesQueryParams, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemsQueryParams, type MenuModifierDto, type MenuPriceDto, type MenuPriceOverrideDto, type MenuVersion, UpdateMenuItem, UpdateMenuItemCategory, type UpdateMenuItemCategoryInput, type UpdateMenuItemCategoryResponse, type UpdateMenuItemInput, UpdateMenuItemModifier, type UpdateMenuItemModifierInput, type UpdateMenuItemModifierResponse, UpdateMenuItemPriceOverride, type UpdateMenuItemPriceOverrideInput, type UpdateMenuItemPriceOverrideResponse, type UpdateMenuItemResponse, type WritableMenuItemPriceOverride, createMenuItemCategoryInputSchema, createMenuItemCategoryResponseSchema, createMenuItemInputSchema, createMenuItemModifierInputSchema, createMenuItemModifierResponseSchema, createMenuItemPriceOverrideInputSchema, createMenuItemPriceOverrideResponseSchema, createMenuItemResponseSchema, deleteMenuItemCategoryInputSchema, deleteMenuItemCategoryResponseSchema, deleteMenuItemInputSchema, deleteMenuItemModifierInputSchema, deleteMenuItemModifierResponseSchema, deleteMenuItemPriceOverrideInputSchema, deleteMenuItemPriceOverrideResponseSchema, deleteMenuItemResponseSchema, getMenuItemCategoriesFromPointOfSaleInputSchema, getMenuItemCategoriesFromPointOfSaleQuerySchema, getMenuItemCategoriesFromPointOfSaleResponseSchema, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersFromPointOfSaleInputSchema, getMenuItemModifiersFromPointOfSaleQuerySchema, getMenuItemModifiersFromPointOfSaleResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, 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
|
@@ -11310,7 +11310,8 @@ var writableMenuItemCategorySchema = menuItemCategorySchema.pick({
|
|
|
11310
11310
|
sorting: true,
|
|
11311
11311
|
suspended: true
|
|
11312
11312
|
}).extend({
|
|
11313
|
-
pointOfSale: pointOfSaleIriSchema
|
|
11313
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11314
|
+
images: external_exports.array(imageIriSchema).min(0).default([])
|
|
11314
11315
|
});
|
|
11315
11316
|
var menuItemModifierSchema = external_exports.object({
|
|
11316
11317
|
id: external_exports.string(),
|
|
@@ -11744,13 +11745,46 @@ var GetMenuItemModifiers = class extends AbstractApiRequest10 {
|
|
|
11744
11745
|
}
|
|
11745
11746
|
};
|
|
11746
11747
|
|
|
11747
|
-
// src/requests/menu-item-modifiers/
|
|
11748
|
+
// src/requests/menu-item-modifiers/GetMenuItemModifiersFromPointOfSale.ts
|
|
11748
11749
|
import { AbstractApiRequest as AbstractApiRequest11 } from "@deliverart/sdk-js-core";
|
|
11750
|
+
import {
|
|
11751
|
+
createPaginatedSchema as createPaginatedSchema4,
|
|
11752
|
+
responseToPagination as responseToPagination4
|
|
11753
|
+
} from "@deliverart/sdk-js-global-types";
|
|
11754
|
+
var getMenuItemModifiersFromPointOfSaleQuerySchema = menuItemModifiersQuerySchema;
|
|
11755
|
+
var getMenuItemModifiersFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11756
|
+
var getMenuItemModifiersFromPointOfSaleResponseSchema = createPaginatedSchema4(menuItemModifierSchema);
|
|
11757
|
+
var GetMenuItemModifiersFromPointOfSale = class extends AbstractApiRequest11 {
|
|
11758
|
+
constructor(pointOfSaleId, options) {
|
|
11759
|
+
super(void 0, options);
|
|
11760
|
+
this.method = "GET";
|
|
11761
|
+
this.contentType = "application/json";
|
|
11762
|
+
this.accept = "application/json";
|
|
11763
|
+
this.inputSchema = getMenuItemModifiersFromPointOfSaleInputSchema;
|
|
11764
|
+
this.outputSchema = getMenuItemModifiersFromPointOfSaleResponseSchema;
|
|
11765
|
+
this.querySchema = getMenuItemModifiersFromPointOfSaleQuerySchema;
|
|
11766
|
+
this.headersSchema = void 0;
|
|
11767
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
11768
|
+
}
|
|
11769
|
+
getPath() {
|
|
11770
|
+
return `/point_of_sales/${this.pointOfSaleId}/menu_item_modifiers`;
|
|
11771
|
+
}
|
|
11772
|
+
parseResponse(data, rawResponse) {
|
|
11773
|
+
const menuItemModifiers = external_exports.array(menuItemModifierSchema).parse(data);
|
|
11774
|
+
return this.validateOutput({
|
|
11775
|
+
data: menuItemModifiers,
|
|
11776
|
+
pagination: responseToPagination4(rawResponse)
|
|
11777
|
+
});
|
|
11778
|
+
}
|
|
11779
|
+
};
|
|
11780
|
+
|
|
11781
|
+
// src/requests/menu-item-modifiers/UpdateMenuItemModifier.ts
|
|
11782
|
+
import { AbstractApiRequest as AbstractApiRequest12 } from "@deliverart/sdk-js-core";
|
|
11749
11783
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11750
11784
|
pointOfSale: true
|
|
11751
11785
|
}).partial();
|
|
11752
11786
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11753
|
-
var UpdateMenuItemModifier = class extends
|
|
11787
|
+
var UpdateMenuItemModifier = class extends AbstractApiRequest12 {
|
|
11754
11788
|
constructor(menuItemModifierId, input) {
|
|
11755
11789
|
super(input);
|
|
11756
11790
|
this.method = "PATCH";
|
|
@@ -11768,10 +11802,10 @@ var UpdateMenuItemModifier = class extends AbstractApiRequest11 {
|
|
|
11768
11802
|
};
|
|
11769
11803
|
|
|
11770
11804
|
// src/requests/menu-item-price-overrides/CreateMenuItemPriceOverride.ts
|
|
11771
|
-
import { AbstractApiRequest as
|
|
11805
|
+
import { AbstractApiRequest as AbstractApiRequest13 } from "@deliverart/sdk-js-core";
|
|
11772
11806
|
var createMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverrideSchema;
|
|
11773
11807
|
var createMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11774
|
-
var CreateMenuItemPriceOverride = class extends
|
|
11808
|
+
var CreateMenuItemPriceOverride = class extends AbstractApiRequest13 {
|
|
11775
11809
|
constructor(input) {
|
|
11776
11810
|
super(input);
|
|
11777
11811
|
this.method = "POST";
|
|
@@ -11788,11 +11822,11 @@ var CreateMenuItemPriceOverride = class extends AbstractApiRequest12 {
|
|
|
11788
11822
|
};
|
|
11789
11823
|
|
|
11790
11824
|
// src/requests/menu-item-price-overrides/DeleteMenuItemPriceOverride.ts
|
|
11791
|
-
import { AbstractApiRequest as
|
|
11825
|
+
import { AbstractApiRequest as AbstractApiRequest14 } from "@deliverart/sdk-js-core";
|
|
11792
11826
|
import { emptyResponseSchema as emptyResponseSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11793
11827
|
var deleteMenuItemPriceOverrideInputSchema = external_exports.undefined();
|
|
11794
11828
|
var deleteMenuItemPriceOverrideResponseSchema = emptyResponseSchema3;
|
|
11795
|
-
var DeleteMenuItemPriceOverride = class extends
|
|
11829
|
+
var DeleteMenuItemPriceOverride = class extends AbstractApiRequest14 {
|
|
11796
11830
|
constructor(menuItemPriceOverrideId) {
|
|
11797
11831
|
super(void 0);
|
|
11798
11832
|
this.method = "DELETE";
|
|
@@ -11810,10 +11844,10 @@ var DeleteMenuItemPriceOverride = class extends AbstractApiRequest13 {
|
|
|
11810
11844
|
};
|
|
11811
11845
|
|
|
11812
11846
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrideDetails.ts
|
|
11813
|
-
import { AbstractApiRequest as
|
|
11847
|
+
import { AbstractApiRequest as AbstractApiRequest15 } from "@deliverart/sdk-js-core";
|
|
11814
11848
|
var getMenuItemPriceOverrideDetailsInputSchema = external_exports.undefined();
|
|
11815
11849
|
var getMenuItemPriceOverrideDetailsResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11816
|
-
var GetMenuItemPriceOverrideDetails = class extends
|
|
11850
|
+
var GetMenuItemPriceOverrideDetails = class extends AbstractApiRequest15 {
|
|
11817
11851
|
constructor(menuItemPriceOverrideId) {
|
|
11818
11852
|
super(void 0);
|
|
11819
11853
|
this.method = "GET";
|
|
@@ -11831,17 +11865,17 @@ var GetMenuItemPriceOverrideDetails = class extends AbstractApiRequest14 {
|
|
|
11831
11865
|
};
|
|
11832
11866
|
|
|
11833
11867
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrides.ts
|
|
11834
|
-
import { AbstractApiRequest as
|
|
11868
|
+
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
11835
11869
|
import {
|
|
11836
|
-
createPaginatedSchema as
|
|
11837
|
-
responseToPagination as
|
|
11870
|
+
createPaginatedSchema as createPaginatedSchema5,
|
|
11871
|
+
responseToPagination as responseToPagination5
|
|
11838
11872
|
} from "@deliverart/sdk-js-global-types";
|
|
11839
11873
|
var getMenuItemPriceOverridesQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11840
11874
|
var getMenuItemPriceOverridesInputSchema = external_exports.undefined();
|
|
11841
|
-
var getMenuItemPriceOverridesResponseSchema =
|
|
11875
|
+
var getMenuItemPriceOverridesResponseSchema = createPaginatedSchema5(
|
|
11842
11876
|
menuItemPriceOverrideSchema
|
|
11843
11877
|
);
|
|
11844
|
-
var GetMenuItemPriceOverrides = class extends
|
|
11878
|
+
var GetMenuItemPriceOverrides = class extends AbstractApiRequest16 {
|
|
11845
11879
|
constructor(options) {
|
|
11846
11880
|
super(void 0, options);
|
|
11847
11881
|
this.method = "GET";
|
|
@@ -11859,16 +11893,16 @@ var GetMenuItemPriceOverrides = class extends AbstractApiRequest15 {
|
|
|
11859
11893
|
const menuItemPriceOverrides = external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
11860
11894
|
return this.validateOutput({
|
|
11861
11895
|
data: menuItemPriceOverrides,
|
|
11862
|
-
pagination:
|
|
11896
|
+
pagination: responseToPagination5(rawResponse)
|
|
11863
11897
|
});
|
|
11864
11898
|
}
|
|
11865
11899
|
};
|
|
11866
11900
|
|
|
11867
11901
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
11868
|
-
import { AbstractApiRequest as
|
|
11902
|
+
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
11869
11903
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
11870
11904
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11871
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
11905
|
+
var UpdateMenuItemPriceOverride = class extends AbstractApiRequest17 {
|
|
11872
11906
|
constructor(menuItemPriceOverrideId, input) {
|
|
11873
11907
|
super(input);
|
|
11874
11908
|
this.method = "PATCH";
|
|
@@ -11886,10 +11920,10 @@ var UpdateMenuItemPriceOverride = class extends AbstractApiRequest16 {
|
|
|
11886
11920
|
};
|
|
11887
11921
|
|
|
11888
11922
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
11889
|
-
import { AbstractApiRequest as
|
|
11923
|
+
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
11890
11924
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
11891
11925
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
11892
|
-
var CreateMenuItem = class extends
|
|
11926
|
+
var CreateMenuItem = class extends AbstractApiRequest18 {
|
|
11893
11927
|
constructor(input) {
|
|
11894
11928
|
super(input);
|
|
11895
11929
|
this.method = "POST";
|
|
@@ -11906,11 +11940,11 @@ var CreateMenuItem = class extends AbstractApiRequest17 {
|
|
|
11906
11940
|
};
|
|
11907
11941
|
|
|
11908
11942
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
11909
|
-
import { AbstractApiRequest as
|
|
11943
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
11910
11944
|
import { emptyResponseSchema as emptyResponseSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11911
11945
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
11912
11946
|
var deleteMenuItemResponseSchema = emptyResponseSchema4;
|
|
11913
|
-
var DeleteMenuItem = class extends
|
|
11947
|
+
var DeleteMenuItem = class extends AbstractApiRequest19 {
|
|
11914
11948
|
constructor(menuItemId) {
|
|
11915
11949
|
super(void 0);
|
|
11916
11950
|
this.method = "DELETE";
|
|
@@ -11928,10 +11962,10 @@ var DeleteMenuItem = class extends AbstractApiRequest18 {
|
|
|
11928
11962
|
};
|
|
11929
11963
|
|
|
11930
11964
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
11931
|
-
import { AbstractApiRequest as
|
|
11965
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
11932
11966
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
11933
11967
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
11934
|
-
var GetMenuItemDetails = class extends
|
|
11968
|
+
var GetMenuItemDetails = class extends AbstractApiRequest20 {
|
|
11935
11969
|
constructor(menuItemId) {
|
|
11936
11970
|
super(void 0);
|
|
11937
11971
|
this.method = "GET";
|
|
@@ -11949,15 +11983,15 @@ var GetMenuItemDetails = class extends AbstractApiRequest19 {
|
|
|
11949
11983
|
};
|
|
11950
11984
|
|
|
11951
11985
|
// src/requests/menu-items/GetMenuItems.ts
|
|
11952
|
-
import { AbstractApiRequest as
|
|
11986
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
11953
11987
|
import {
|
|
11954
|
-
createPaginatedSchema as
|
|
11955
|
-
responseToPagination as
|
|
11988
|
+
createPaginatedSchema as createPaginatedSchema6,
|
|
11989
|
+
responseToPagination as responseToPagination6
|
|
11956
11990
|
} from "@deliverart/sdk-js-global-types";
|
|
11957
11991
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
11958
11992
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
11959
|
-
var getMenuItemsResponseSchema =
|
|
11960
|
-
var GetMenuItems = class extends
|
|
11993
|
+
var getMenuItemsResponseSchema = createPaginatedSchema6(menuItemSchema);
|
|
11994
|
+
var GetMenuItems = class extends AbstractApiRequest21 {
|
|
11961
11995
|
constructor(options) {
|
|
11962
11996
|
super(void 0, options);
|
|
11963
11997
|
this.method = "GET";
|
|
@@ -11973,20 +12007,20 @@ var GetMenuItems = class extends AbstractApiRequest20 {
|
|
|
11973
12007
|
}
|
|
11974
12008
|
parseResponse(data, rawResponse) {
|
|
11975
12009
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
11976
|
-
return this.validateOutput({ data: menuItems, pagination:
|
|
12010
|
+
return this.validateOutput({ data: menuItems, pagination: responseToPagination6(rawResponse) });
|
|
11977
12011
|
}
|
|
11978
12012
|
};
|
|
11979
12013
|
|
|
11980
12014
|
// src/requests/menu-items/GetMenuItemsFromMenuItemCategory.ts
|
|
11981
|
-
import { AbstractApiRequest as
|
|
12015
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
11982
12016
|
import {
|
|
11983
|
-
createPaginatedSchema as
|
|
11984
|
-
responseToPagination as
|
|
12017
|
+
createPaginatedSchema as createPaginatedSchema7,
|
|
12018
|
+
responseToPagination as responseToPagination7
|
|
11985
12019
|
} from "@deliverart/sdk-js-global-types";
|
|
11986
12020
|
var getMenuItemsFromMenuItemCategoryQuerySchema = menuItemsQuerySchema;
|
|
11987
12021
|
var getMenuItemsFromMenuItemCategoryInputSchema = external_exports.undefined();
|
|
11988
|
-
var getMenuItemsFromMenuItemCategoryResponseSchema =
|
|
11989
|
-
var GetMenuItemsFromMenuItemCategory = class extends
|
|
12022
|
+
var getMenuItemsFromMenuItemCategoryResponseSchema = createPaginatedSchema7(menuItemSchema);
|
|
12023
|
+
var GetMenuItemsFromMenuItemCategory = class extends AbstractApiRequest22 {
|
|
11990
12024
|
constructor(menuItemCategoryId, options) {
|
|
11991
12025
|
super(void 0, options);
|
|
11992
12026
|
this.method = "GET";
|
|
@@ -12003,20 +12037,20 @@ var GetMenuItemsFromMenuItemCategory = class extends AbstractApiRequest21 {
|
|
|
12003
12037
|
}
|
|
12004
12038
|
parseResponse(data, rawResponse) {
|
|
12005
12039
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12006
|
-
return this.validateOutput({ data: menuItems, pagination:
|
|
12040
|
+
return this.validateOutput({ data: menuItems, pagination: responseToPagination7(rawResponse) });
|
|
12007
12041
|
}
|
|
12008
12042
|
};
|
|
12009
12043
|
|
|
12010
12044
|
// src/requests/menu-items/GetMenuItemsFromPointOfSale.ts
|
|
12011
|
-
import { AbstractApiRequest as
|
|
12045
|
+
import { AbstractApiRequest as AbstractApiRequest23 } from "@deliverart/sdk-js-core";
|
|
12012
12046
|
import {
|
|
12013
|
-
createPaginatedSchema as
|
|
12014
|
-
responseToPagination as
|
|
12047
|
+
createPaginatedSchema as createPaginatedSchema8,
|
|
12048
|
+
responseToPagination as responseToPagination8
|
|
12015
12049
|
} from "@deliverart/sdk-js-global-types";
|
|
12016
12050
|
var getMenuItemsFromPointOfSaleQuerySchema = menuItemsQuerySchema;
|
|
12017
12051
|
var getMenuItemsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12018
|
-
var getMenuItemsFromPointOfSaleResponseSchema =
|
|
12019
|
-
var GetMenuItemsFromPointOfSale = class extends
|
|
12052
|
+
var getMenuItemsFromPointOfSaleResponseSchema = createPaginatedSchema8(menuItemSchema);
|
|
12053
|
+
var GetMenuItemsFromPointOfSale = class extends AbstractApiRequest23 {
|
|
12020
12054
|
constructor(pointOfSaleId, options) {
|
|
12021
12055
|
super(void 0, options);
|
|
12022
12056
|
this.method = "GET";
|
|
@@ -12033,17 +12067,17 @@ var GetMenuItemsFromPointOfSale = class extends AbstractApiRequest22 {
|
|
|
12033
12067
|
}
|
|
12034
12068
|
parseResponse(data, rawResponse) {
|
|
12035
12069
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12036
|
-
return this.validateOutput({ data: menuItems, pagination:
|
|
12070
|
+
return this.validateOutput({ data: menuItems, pagination: responseToPagination8(rawResponse) });
|
|
12037
12071
|
}
|
|
12038
12072
|
};
|
|
12039
12073
|
|
|
12040
12074
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12041
|
-
import { AbstractApiRequest as
|
|
12075
|
+
import { AbstractApiRequest as AbstractApiRequest24 } from "@deliverart/sdk-js-core";
|
|
12042
12076
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12043
12077
|
pointOfSale: true
|
|
12044
12078
|
}).partial();
|
|
12045
12079
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12046
|
-
var UpdateMenuItem = class extends
|
|
12080
|
+
var UpdateMenuItem = class extends AbstractApiRequest24 {
|
|
12047
12081
|
constructor(menuItemId, input) {
|
|
12048
12082
|
super(input);
|
|
12049
12083
|
this.method = "PATCH";
|
|
@@ -12061,10 +12095,10 @@ var UpdateMenuItem = class extends AbstractApiRequest23 {
|
|
|
12061
12095
|
};
|
|
12062
12096
|
|
|
12063
12097
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12064
|
-
import { AbstractApiRequest as
|
|
12098
|
+
import { AbstractApiRequest as AbstractApiRequest25 } from "@deliverart/sdk-js-core";
|
|
12065
12099
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12066
12100
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12067
|
-
var GetMenuVersionDetails = class extends
|
|
12101
|
+
var GetMenuVersionDetails = class extends AbstractApiRequest25 {
|
|
12068
12102
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12069
12103
|
super(void 0);
|
|
12070
12104
|
this.method = "GET";
|
|
@@ -12083,17 +12117,17 @@ var GetMenuVersionDetails = class extends AbstractApiRequest24 {
|
|
|
12083
12117
|
};
|
|
12084
12118
|
|
|
12085
12119
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12086
|
-
import { AbstractApiRequest as
|
|
12120
|
+
import { AbstractApiRequest as AbstractApiRequest26 } from "@deliverart/sdk-js-core";
|
|
12087
12121
|
import {
|
|
12088
|
-
createPaginatedSchema as
|
|
12089
|
-
responseToPagination as
|
|
12122
|
+
createPaginatedSchema as createPaginatedSchema9,
|
|
12123
|
+
responseToPagination as responseToPagination9
|
|
12090
12124
|
} from "@deliverart/sdk-js-global-types";
|
|
12091
12125
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12092
12126
|
page: external_exports.coerce.number().optional()
|
|
12093
12127
|
});
|
|
12094
12128
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12095
|
-
var getMenuVersionsResponseSchema =
|
|
12096
|
-
var GetMenuVersions = class extends
|
|
12129
|
+
var getMenuVersionsResponseSchema = createPaginatedSchema9(menuVersionSchema);
|
|
12130
|
+
var GetMenuVersions = class extends AbstractApiRequest26 {
|
|
12097
12131
|
constructor(pointOfSaleId, options) {
|
|
12098
12132
|
super(void 0, options);
|
|
12099
12133
|
this.method = "GET";
|
|
@@ -12112,7 +12146,7 @@ var GetMenuVersions = class extends AbstractApiRequest25 {
|
|
|
12112
12146
|
const menuVersions = external_exports.array(menuVersionSchema).parse(data);
|
|
12113
12147
|
return this.validateOutput({
|
|
12114
12148
|
data: menuVersions,
|
|
12115
|
-
pagination:
|
|
12149
|
+
pagination: responseToPagination9(rawResponse)
|
|
12116
12150
|
});
|
|
12117
12151
|
}
|
|
12118
12152
|
};
|
|
@@ -12131,6 +12165,7 @@ export {
|
|
|
12131
12165
|
GetMenuItemDetails,
|
|
12132
12166
|
GetMenuItemModifierDetails,
|
|
12133
12167
|
GetMenuItemModifiers,
|
|
12168
|
+
GetMenuItemModifiersFromPointOfSale,
|
|
12134
12169
|
GetMenuItemPriceOverrideDetails,
|
|
12135
12170
|
GetMenuItemPriceOverrides,
|
|
12136
12171
|
GetMenuItems,
|
|
@@ -12170,6 +12205,9 @@ export {
|
|
|
12170
12205
|
getMenuItemDetailsResponseSchema,
|
|
12171
12206
|
getMenuItemModifierDetailsInputSchema,
|
|
12172
12207
|
getMenuItemModifierDetailsResponseSchema,
|
|
12208
|
+
getMenuItemModifiersFromPointOfSaleInputSchema,
|
|
12209
|
+
getMenuItemModifiersFromPointOfSaleQuerySchema,
|
|
12210
|
+
getMenuItemModifiersFromPointOfSaleResponseSchema,
|
|
12173
12211
|
getMenuItemModifiersInputSchema,
|
|
12174
12212
|
getMenuItemModifiersQuerySchema,
|
|
12175
12213
|
getMenuItemModifiersResponseSchema,
|
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.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.5.7",
|
|
22
|
+
"@deliverart/sdk-js-image": "2.5.7",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.5.7",
|
|
24
|
+
"@deliverart/sdk-js-sales-mode": "2.5.7",
|
|
25
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.7"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|