@deliverart/sdk-js-menu 2.5.6 → 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 +87 -49
- package/dist/index.d.cts +135 -1
- package/dist/index.d.ts +135 -1
- package/dist/index.js +87 -50
- 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,
|
|
@@ -11876,13 +11880,43 @@ var GetMenuItemModifiers = class extends import_sdk_js_core10.AbstractApiRequest
|
|
|
11876
11880
|
}
|
|
11877
11881
|
};
|
|
11878
11882
|
|
|
11879
|
-
// src/requests/menu-item-modifiers/
|
|
11883
|
+
// src/requests/menu-item-modifiers/GetMenuItemModifiersFromPointOfSale.ts
|
|
11880
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");
|
|
11881
11915
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11882
11916
|
pointOfSale: true
|
|
11883
11917
|
}).partial();
|
|
11884
11918
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11885
|
-
var UpdateMenuItemModifier = class extends
|
|
11919
|
+
var UpdateMenuItemModifier = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
11886
11920
|
constructor(menuItemModifierId, input) {
|
|
11887
11921
|
super(input);
|
|
11888
11922
|
this.method = "PATCH";
|
|
@@ -11900,10 +11934,10 @@ var UpdateMenuItemModifier = class extends import_sdk_js_core11.AbstractApiReque
|
|
|
11900
11934
|
};
|
|
11901
11935
|
|
|
11902
11936
|
// src/requests/menu-item-price-overrides/CreateMenuItemPriceOverride.ts
|
|
11903
|
-
var
|
|
11937
|
+
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
11904
11938
|
var createMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverrideSchema;
|
|
11905
11939
|
var createMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11906
|
-
var CreateMenuItemPriceOverride = class extends
|
|
11940
|
+
var CreateMenuItemPriceOverride = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
11907
11941
|
constructor(input) {
|
|
11908
11942
|
super(input);
|
|
11909
11943
|
this.method = "POST";
|
|
@@ -11920,11 +11954,11 @@ var CreateMenuItemPriceOverride = class extends import_sdk_js_core12.AbstractApi
|
|
|
11920
11954
|
};
|
|
11921
11955
|
|
|
11922
11956
|
// src/requests/menu-item-price-overrides/DeleteMenuItemPriceOverride.ts
|
|
11923
|
-
var
|
|
11924
|
-
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");
|
|
11925
11959
|
var deleteMenuItemPriceOverrideInputSchema = external_exports.undefined();
|
|
11926
|
-
var deleteMenuItemPriceOverrideResponseSchema =
|
|
11927
|
-
var DeleteMenuItemPriceOverride = class extends
|
|
11960
|
+
var deleteMenuItemPriceOverrideResponseSchema = import_sdk_js_global_types10.emptyResponseSchema;
|
|
11961
|
+
var DeleteMenuItemPriceOverride = class extends import_sdk_js_core14.AbstractApiRequest {
|
|
11928
11962
|
constructor(menuItemPriceOverrideId) {
|
|
11929
11963
|
super(void 0);
|
|
11930
11964
|
this.method = "DELETE";
|
|
@@ -11942,10 +11976,10 @@ var DeleteMenuItemPriceOverride = class extends import_sdk_js_core13.AbstractApi
|
|
|
11942
11976
|
};
|
|
11943
11977
|
|
|
11944
11978
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrideDetails.ts
|
|
11945
|
-
var
|
|
11979
|
+
var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
11946
11980
|
var getMenuItemPriceOverrideDetailsInputSchema = external_exports.undefined();
|
|
11947
11981
|
var getMenuItemPriceOverrideDetailsResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11948
|
-
var GetMenuItemPriceOverrideDetails = class extends
|
|
11982
|
+
var GetMenuItemPriceOverrideDetails = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
11949
11983
|
constructor(menuItemPriceOverrideId) {
|
|
11950
11984
|
super(void 0);
|
|
11951
11985
|
this.method = "GET";
|
|
@@ -11963,14 +11997,14 @@ var GetMenuItemPriceOverrideDetails = class extends import_sdk_js_core14.Abstrac
|
|
|
11963
11997
|
};
|
|
11964
11998
|
|
|
11965
11999
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrides.ts
|
|
11966
|
-
var
|
|
11967
|
-
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");
|
|
11968
12002
|
var getMenuItemPriceOverridesQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11969
12003
|
var getMenuItemPriceOverridesInputSchema = external_exports.undefined();
|
|
11970
|
-
var getMenuItemPriceOverridesResponseSchema = (0,
|
|
12004
|
+
var getMenuItemPriceOverridesResponseSchema = (0, import_sdk_js_global_types11.createPaginatedSchema)(
|
|
11971
12005
|
menuItemPriceOverrideSchema
|
|
11972
12006
|
);
|
|
11973
|
-
var GetMenuItemPriceOverrides = class extends
|
|
12007
|
+
var GetMenuItemPriceOverrides = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
11974
12008
|
constructor(options) {
|
|
11975
12009
|
super(void 0, options);
|
|
11976
12010
|
this.method = "GET";
|
|
@@ -11988,16 +12022,16 @@ var GetMenuItemPriceOverrides = class extends import_sdk_js_core15.AbstractApiRe
|
|
|
11988
12022
|
const menuItemPriceOverrides = external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
11989
12023
|
return this.validateOutput({
|
|
11990
12024
|
data: menuItemPriceOverrides,
|
|
11991
|
-
pagination: (0,
|
|
12025
|
+
pagination: (0, import_sdk_js_global_types11.responseToPagination)(rawResponse)
|
|
11992
12026
|
});
|
|
11993
12027
|
}
|
|
11994
12028
|
};
|
|
11995
12029
|
|
|
11996
12030
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
11997
|
-
var
|
|
12031
|
+
var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
11998
12032
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
11999
12033
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
12000
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
12034
|
+
var UpdateMenuItemPriceOverride = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
12001
12035
|
constructor(menuItemPriceOverrideId, input) {
|
|
12002
12036
|
super(input);
|
|
12003
12037
|
this.method = "PATCH";
|
|
@@ -12015,10 +12049,10 @@ var UpdateMenuItemPriceOverride = class extends import_sdk_js_core16.AbstractApi
|
|
|
12015
12049
|
};
|
|
12016
12050
|
|
|
12017
12051
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
12018
|
-
var
|
|
12052
|
+
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
12019
12053
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
12020
12054
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12021
|
-
var CreateMenuItem = class extends
|
|
12055
|
+
var CreateMenuItem = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
12022
12056
|
constructor(input) {
|
|
12023
12057
|
super(input);
|
|
12024
12058
|
this.method = "POST";
|
|
@@ -12035,11 +12069,11 @@ var CreateMenuItem = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
|
12035
12069
|
};
|
|
12036
12070
|
|
|
12037
12071
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
12038
|
-
var
|
|
12039
|
-
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");
|
|
12040
12074
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
12041
|
-
var deleteMenuItemResponseSchema =
|
|
12042
|
-
var DeleteMenuItem = class extends
|
|
12075
|
+
var deleteMenuItemResponseSchema = import_sdk_js_global_types12.emptyResponseSchema;
|
|
12076
|
+
var DeleteMenuItem = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
12043
12077
|
constructor(menuItemId) {
|
|
12044
12078
|
super(void 0);
|
|
12045
12079
|
this.method = "DELETE";
|
|
@@ -12057,10 +12091,10 @@ var DeleteMenuItem = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
|
12057
12091
|
};
|
|
12058
12092
|
|
|
12059
12093
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
12060
|
-
var
|
|
12094
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
12061
12095
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
12062
12096
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
12063
|
-
var GetMenuItemDetails = class extends
|
|
12097
|
+
var GetMenuItemDetails = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
12064
12098
|
constructor(menuItemId) {
|
|
12065
12099
|
super(void 0);
|
|
12066
12100
|
this.method = "GET";
|
|
@@ -12078,12 +12112,12 @@ var GetMenuItemDetails = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
|
12078
12112
|
};
|
|
12079
12113
|
|
|
12080
12114
|
// src/requests/menu-items/GetMenuItems.ts
|
|
12081
|
-
var
|
|
12082
|
-
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");
|
|
12083
12117
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
12084
12118
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
12085
|
-
var getMenuItemsResponseSchema = (0,
|
|
12086
|
-
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 {
|
|
12087
12121
|
constructor(options) {
|
|
12088
12122
|
super(void 0, options);
|
|
12089
12123
|
this.method = "GET";
|
|
@@ -12099,17 +12133,17 @@ var GetMenuItems = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
|
12099
12133
|
}
|
|
12100
12134
|
parseResponse(data, rawResponse) {
|
|
12101
12135
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12102
|
-
return this.validateOutput({ data: menuItems, pagination: (0,
|
|
12136
|
+
return this.validateOutput({ data: menuItems, pagination: (0, import_sdk_js_global_types13.responseToPagination)(rawResponse) });
|
|
12103
12137
|
}
|
|
12104
12138
|
};
|
|
12105
12139
|
|
|
12106
12140
|
// src/requests/menu-items/GetMenuItemsFromMenuItemCategory.ts
|
|
12107
|
-
var
|
|
12108
|
-
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");
|
|
12109
12143
|
var getMenuItemsFromMenuItemCategoryQuerySchema = menuItemsQuerySchema;
|
|
12110
12144
|
var getMenuItemsFromMenuItemCategoryInputSchema = external_exports.undefined();
|
|
12111
|
-
var getMenuItemsFromMenuItemCategoryResponseSchema = (0,
|
|
12112
|
-
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 {
|
|
12113
12147
|
constructor(menuItemCategoryId, options) {
|
|
12114
12148
|
super(void 0, options);
|
|
12115
12149
|
this.method = "GET";
|
|
@@ -12126,17 +12160,17 @@ var GetMenuItemsFromMenuItemCategory = class extends import_sdk_js_core21.Abstra
|
|
|
12126
12160
|
}
|
|
12127
12161
|
parseResponse(data, rawResponse) {
|
|
12128
12162
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12129
|
-
return this.validateOutput({ data: menuItems, pagination: (0,
|
|
12163
|
+
return this.validateOutput({ data: menuItems, pagination: (0, import_sdk_js_global_types14.responseToPagination)(rawResponse) });
|
|
12130
12164
|
}
|
|
12131
12165
|
};
|
|
12132
12166
|
|
|
12133
12167
|
// src/requests/menu-items/GetMenuItemsFromPointOfSale.ts
|
|
12134
|
-
var
|
|
12135
|
-
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");
|
|
12136
12170
|
var getMenuItemsFromPointOfSaleQuerySchema = menuItemsQuerySchema;
|
|
12137
12171
|
var getMenuItemsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12138
|
-
var getMenuItemsFromPointOfSaleResponseSchema = (0,
|
|
12139
|
-
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 {
|
|
12140
12174
|
constructor(pointOfSaleId, options) {
|
|
12141
12175
|
super(void 0, options);
|
|
12142
12176
|
this.method = "GET";
|
|
@@ -12153,17 +12187,17 @@ var GetMenuItemsFromPointOfSale = class extends import_sdk_js_core22.AbstractApi
|
|
|
12153
12187
|
}
|
|
12154
12188
|
parseResponse(data, rawResponse) {
|
|
12155
12189
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12156
|
-
return this.validateOutput({ data: menuItems, pagination: (0,
|
|
12190
|
+
return this.validateOutput({ data: menuItems, pagination: (0, import_sdk_js_global_types15.responseToPagination)(rawResponse) });
|
|
12157
12191
|
}
|
|
12158
12192
|
};
|
|
12159
12193
|
|
|
12160
12194
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12161
|
-
var
|
|
12195
|
+
var import_sdk_js_core24 = require("@deliverart/sdk-js-core");
|
|
12162
12196
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12163
12197
|
pointOfSale: true
|
|
12164
12198
|
}).partial();
|
|
12165
12199
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12166
|
-
var UpdateMenuItem = class extends
|
|
12200
|
+
var UpdateMenuItem = class extends import_sdk_js_core24.AbstractApiRequest {
|
|
12167
12201
|
constructor(menuItemId, input) {
|
|
12168
12202
|
super(input);
|
|
12169
12203
|
this.method = "PATCH";
|
|
@@ -12181,10 +12215,10 @@ var UpdateMenuItem = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
|
12181
12215
|
};
|
|
12182
12216
|
|
|
12183
12217
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12184
|
-
var
|
|
12218
|
+
var import_sdk_js_core25 = require("@deliverart/sdk-js-core");
|
|
12185
12219
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12186
12220
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12187
|
-
var GetMenuVersionDetails = class extends
|
|
12221
|
+
var GetMenuVersionDetails = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
12188
12222
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12189
12223
|
super(void 0);
|
|
12190
12224
|
this.method = "GET";
|
|
@@ -12203,14 +12237,14 @@ var GetMenuVersionDetails = class extends import_sdk_js_core24.AbstractApiReques
|
|
|
12203
12237
|
};
|
|
12204
12238
|
|
|
12205
12239
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12206
|
-
var
|
|
12207
|
-
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");
|
|
12208
12242
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12209
12243
|
page: external_exports.coerce.number().optional()
|
|
12210
12244
|
});
|
|
12211
12245
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12212
|
-
var getMenuVersionsResponseSchema = (0,
|
|
12213
|
-
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 {
|
|
12214
12248
|
constructor(pointOfSaleId, options) {
|
|
12215
12249
|
super(void 0, options);
|
|
12216
12250
|
this.method = "GET";
|
|
@@ -12229,7 +12263,7 @@ var GetMenuVersions = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
|
12229
12263
|
const menuVersions = external_exports.array(menuVersionSchema).parse(data);
|
|
12230
12264
|
return this.validateOutput({
|
|
12231
12265
|
data: menuVersions,
|
|
12232
|
-
pagination: (0,
|
|
12266
|
+
pagination: (0, import_sdk_js_global_types16.responseToPagination)(rawResponse)
|
|
12233
12267
|
});
|
|
12234
12268
|
}
|
|
12235
12269
|
};
|
|
@@ -12249,6 +12283,7 @@ var GetMenuVersions = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
|
12249
12283
|
GetMenuItemDetails,
|
|
12250
12284
|
GetMenuItemModifierDetails,
|
|
12251
12285
|
GetMenuItemModifiers,
|
|
12286
|
+
GetMenuItemModifiersFromPointOfSale,
|
|
12252
12287
|
GetMenuItemPriceOverrideDetails,
|
|
12253
12288
|
GetMenuItemPriceOverrides,
|
|
12254
12289
|
GetMenuItems,
|
|
@@ -12288,6 +12323,9 @@ var GetMenuVersions = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
|
12288
12323
|
getMenuItemDetailsResponseSchema,
|
|
12289
12324
|
getMenuItemModifierDetailsInputSchema,
|
|
12290
12325
|
getMenuItemModifierDetailsResponseSchema,
|
|
12326
|
+
getMenuItemModifiersFromPointOfSaleInputSchema,
|
|
12327
|
+
getMenuItemModifiersFromPointOfSaleQuerySchema,
|
|
12328
|
+
getMenuItemModifiersFromPointOfSaleResponseSchema,
|
|
12291
12329
|
getMenuItemModifiersInputSchema,
|
|
12292
12330
|
getMenuItemModifiersQuerySchema,
|
|
12293
12331
|
getMenuItemModifiersResponseSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -2501,6 +2501,140 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
2501
2501
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
2502
2502
|
}
|
|
2503
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
|
+
|
|
2504
2638
|
declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
2505
2639
|
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2506
2640
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
@@ -6523,4 +6657,4 @@ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSa
|
|
|
6523
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>>;
|
|
6524
6658
|
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
6525
6659
|
|
|
6526
|
-
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
|
@@ -2501,6 +2501,140 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
2501
2501
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
2502
2502
|
}
|
|
2503
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
|
+
|
|
2504
2638
|
declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
2505
2639
|
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2506
2640
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
@@ -6523,4 +6657,4 @@ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSa
|
|
|
6523
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>>;
|
|
6524
6658
|
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
6525
6659
|
|
|
6526
|
-
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
|
@@ -11745,13 +11745,46 @@ var GetMenuItemModifiers = class extends AbstractApiRequest10 {
|
|
|
11745
11745
|
}
|
|
11746
11746
|
};
|
|
11747
11747
|
|
|
11748
|
-
// src/requests/menu-item-modifiers/
|
|
11748
|
+
// src/requests/menu-item-modifiers/GetMenuItemModifiersFromPointOfSale.ts
|
|
11749
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";
|
|
11750
11783
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11751
11784
|
pointOfSale: true
|
|
11752
11785
|
}).partial();
|
|
11753
11786
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11754
|
-
var UpdateMenuItemModifier = class extends
|
|
11787
|
+
var UpdateMenuItemModifier = class extends AbstractApiRequest12 {
|
|
11755
11788
|
constructor(menuItemModifierId, input) {
|
|
11756
11789
|
super(input);
|
|
11757
11790
|
this.method = "PATCH";
|
|
@@ -11769,10 +11802,10 @@ var UpdateMenuItemModifier = class extends AbstractApiRequest11 {
|
|
|
11769
11802
|
};
|
|
11770
11803
|
|
|
11771
11804
|
// src/requests/menu-item-price-overrides/CreateMenuItemPriceOverride.ts
|
|
11772
|
-
import { AbstractApiRequest as
|
|
11805
|
+
import { AbstractApiRequest as AbstractApiRequest13 } from "@deliverart/sdk-js-core";
|
|
11773
11806
|
var createMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverrideSchema;
|
|
11774
11807
|
var createMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11775
|
-
var CreateMenuItemPriceOverride = class extends
|
|
11808
|
+
var CreateMenuItemPriceOverride = class extends AbstractApiRequest13 {
|
|
11776
11809
|
constructor(input) {
|
|
11777
11810
|
super(input);
|
|
11778
11811
|
this.method = "POST";
|
|
@@ -11789,11 +11822,11 @@ var CreateMenuItemPriceOverride = class extends AbstractApiRequest12 {
|
|
|
11789
11822
|
};
|
|
11790
11823
|
|
|
11791
11824
|
// src/requests/menu-item-price-overrides/DeleteMenuItemPriceOverride.ts
|
|
11792
|
-
import { AbstractApiRequest as
|
|
11825
|
+
import { AbstractApiRequest as AbstractApiRequest14 } from "@deliverart/sdk-js-core";
|
|
11793
11826
|
import { emptyResponseSchema as emptyResponseSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11794
11827
|
var deleteMenuItemPriceOverrideInputSchema = external_exports.undefined();
|
|
11795
11828
|
var deleteMenuItemPriceOverrideResponseSchema = emptyResponseSchema3;
|
|
11796
|
-
var DeleteMenuItemPriceOverride = class extends
|
|
11829
|
+
var DeleteMenuItemPriceOverride = class extends AbstractApiRequest14 {
|
|
11797
11830
|
constructor(menuItemPriceOverrideId) {
|
|
11798
11831
|
super(void 0);
|
|
11799
11832
|
this.method = "DELETE";
|
|
@@ -11811,10 +11844,10 @@ var DeleteMenuItemPriceOverride = class extends AbstractApiRequest13 {
|
|
|
11811
11844
|
};
|
|
11812
11845
|
|
|
11813
11846
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrideDetails.ts
|
|
11814
|
-
import { AbstractApiRequest as
|
|
11847
|
+
import { AbstractApiRequest as AbstractApiRequest15 } from "@deliverart/sdk-js-core";
|
|
11815
11848
|
var getMenuItemPriceOverrideDetailsInputSchema = external_exports.undefined();
|
|
11816
11849
|
var getMenuItemPriceOverrideDetailsResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11817
|
-
var GetMenuItemPriceOverrideDetails = class extends
|
|
11850
|
+
var GetMenuItemPriceOverrideDetails = class extends AbstractApiRequest15 {
|
|
11818
11851
|
constructor(menuItemPriceOverrideId) {
|
|
11819
11852
|
super(void 0);
|
|
11820
11853
|
this.method = "GET";
|
|
@@ -11832,17 +11865,17 @@ var GetMenuItemPriceOverrideDetails = class extends AbstractApiRequest14 {
|
|
|
11832
11865
|
};
|
|
11833
11866
|
|
|
11834
11867
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrides.ts
|
|
11835
|
-
import { AbstractApiRequest as
|
|
11868
|
+
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
11836
11869
|
import {
|
|
11837
|
-
createPaginatedSchema as
|
|
11838
|
-
responseToPagination as
|
|
11870
|
+
createPaginatedSchema as createPaginatedSchema5,
|
|
11871
|
+
responseToPagination as responseToPagination5
|
|
11839
11872
|
} from "@deliverart/sdk-js-global-types";
|
|
11840
11873
|
var getMenuItemPriceOverridesQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11841
11874
|
var getMenuItemPriceOverridesInputSchema = external_exports.undefined();
|
|
11842
|
-
var getMenuItemPriceOverridesResponseSchema =
|
|
11875
|
+
var getMenuItemPriceOverridesResponseSchema = createPaginatedSchema5(
|
|
11843
11876
|
menuItemPriceOverrideSchema
|
|
11844
11877
|
);
|
|
11845
|
-
var GetMenuItemPriceOverrides = class extends
|
|
11878
|
+
var GetMenuItemPriceOverrides = class extends AbstractApiRequest16 {
|
|
11846
11879
|
constructor(options) {
|
|
11847
11880
|
super(void 0, options);
|
|
11848
11881
|
this.method = "GET";
|
|
@@ -11860,16 +11893,16 @@ var GetMenuItemPriceOverrides = class extends AbstractApiRequest15 {
|
|
|
11860
11893
|
const menuItemPriceOverrides = external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
11861
11894
|
return this.validateOutput({
|
|
11862
11895
|
data: menuItemPriceOverrides,
|
|
11863
|
-
pagination:
|
|
11896
|
+
pagination: responseToPagination5(rawResponse)
|
|
11864
11897
|
});
|
|
11865
11898
|
}
|
|
11866
11899
|
};
|
|
11867
11900
|
|
|
11868
11901
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
11869
|
-
import { AbstractApiRequest as
|
|
11902
|
+
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
11870
11903
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
11871
11904
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11872
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
11905
|
+
var UpdateMenuItemPriceOverride = class extends AbstractApiRequest17 {
|
|
11873
11906
|
constructor(menuItemPriceOverrideId, input) {
|
|
11874
11907
|
super(input);
|
|
11875
11908
|
this.method = "PATCH";
|
|
@@ -11887,10 +11920,10 @@ var UpdateMenuItemPriceOverride = class extends AbstractApiRequest16 {
|
|
|
11887
11920
|
};
|
|
11888
11921
|
|
|
11889
11922
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
11890
|
-
import { AbstractApiRequest as
|
|
11923
|
+
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
11891
11924
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
11892
11925
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
11893
|
-
var CreateMenuItem = class extends
|
|
11926
|
+
var CreateMenuItem = class extends AbstractApiRequest18 {
|
|
11894
11927
|
constructor(input) {
|
|
11895
11928
|
super(input);
|
|
11896
11929
|
this.method = "POST";
|
|
@@ -11907,11 +11940,11 @@ var CreateMenuItem = class extends AbstractApiRequest17 {
|
|
|
11907
11940
|
};
|
|
11908
11941
|
|
|
11909
11942
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
11910
|
-
import { AbstractApiRequest as
|
|
11943
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
11911
11944
|
import { emptyResponseSchema as emptyResponseSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11912
11945
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
11913
11946
|
var deleteMenuItemResponseSchema = emptyResponseSchema4;
|
|
11914
|
-
var DeleteMenuItem = class extends
|
|
11947
|
+
var DeleteMenuItem = class extends AbstractApiRequest19 {
|
|
11915
11948
|
constructor(menuItemId) {
|
|
11916
11949
|
super(void 0);
|
|
11917
11950
|
this.method = "DELETE";
|
|
@@ -11929,10 +11962,10 @@ var DeleteMenuItem = class extends AbstractApiRequest18 {
|
|
|
11929
11962
|
};
|
|
11930
11963
|
|
|
11931
11964
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
11932
|
-
import { AbstractApiRequest as
|
|
11965
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
11933
11966
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
11934
11967
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
11935
|
-
var GetMenuItemDetails = class extends
|
|
11968
|
+
var GetMenuItemDetails = class extends AbstractApiRequest20 {
|
|
11936
11969
|
constructor(menuItemId) {
|
|
11937
11970
|
super(void 0);
|
|
11938
11971
|
this.method = "GET";
|
|
@@ -11950,15 +11983,15 @@ var GetMenuItemDetails = class extends AbstractApiRequest19 {
|
|
|
11950
11983
|
};
|
|
11951
11984
|
|
|
11952
11985
|
// src/requests/menu-items/GetMenuItems.ts
|
|
11953
|
-
import { AbstractApiRequest as
|
|
11986
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
11954
11987
|
import {
|
|
11955
|
-
createPaginatedSchema as
|
|
11956
|
-
responseToPagination as
|
|
11988
|
+
createPaginatedSchema as createPaginatedSchema6,
|
|
11989
|
+
responseToPagination as responseToPagination6
|
|
11957
11990
|
} from "@deliverart/sdk-js-global-types";
|
|
11958
11991
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
11959
11992
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
11960
|
-
var getMenuItemsResponseSchema =
|
|
11961
|
-
var GetMenuItems = class extends
|
|
11993
|
+
var getMenuItemsResponseSchema = createPaginatedSchema6(menuItemSchema);
|
|
11994
|
+
var GetMenuItems = class extends AbstractApiRequest21 {
|
|
11962
11995
|
constructor(options) {
|
|
11963
11996
|
super(void 0, options);
|
|
11964
11997
|
this.method = "GET";
|
|
@@ -11974,20 +12007,20 @@ var GetMenuItems = class extends AbstractApiRequest20 {
|
|
|
11974
12007
|
}
|
|
11975
12008
|
parseResponse(data, rawResponse) {
|
|
11976
12009
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
11977
|
-
return this.validateOutput({ data: menuItems, pagination:
|
|
12010
|
+
return this.validateOutput({ data: menuItems, pagination: responseToPagination6(rawResponse) });
|
|
11978
12011
|
}
|
|
11979
12012
|
};
|
|
11980
12013
|
|
|
11981
12014
|
// src/requests/menu-items/GetMenuItemsFromMenuItemCategory.ts
|
|
11982
|
-
import { AbstractApiRequest as
|
|
12015
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
11983
12016
|
import {
|
|
11984
|
-
createPaginatedSchema as
|
|
11985
|
-
responseToPagination as
|
|
12017
|
+
createPaginatedSchema as createPaginatedSchema7,
|
|
12018
|
+
responseToPagination as responseToPagination7
|
|
11986
12019
|
} from "@deliverart/sdk-js-global-types";
|
|
11987
12020
|
var getMenuItemsFromMenuItemCategoryQuerySchema = menuItemsQuerySchema;
|
|
11988
12021
|
var getMenuItemsFromMenuItemCategoryInputSchema = external_exports.undefined();
|
|
11989
|
-
var getMenuItemsFromMenuItemCategoryResponseSchema =
|
|
11990
|
-
var GetMenuItemsFromMenuItemCategory = class extends
|
|
12022
|
+
var getMenuItemsFromMenuItemCategoryResponseSchema = createPaginatedSchema7(menuItemSchema);
|
|
12023
|
+
var GetMenuItemsFromMenuItemCategory = class extends AbstractApiRequest22 {
|
|
11991
12024
|
constructor(menuItemCategoryId, options) {
|
|
11992
12025
|
super(void 0, options);
|
|
11993
12026
|
this.method = "GET";
|
|
@@ -12004,20 +12037,20 @@ var GetMenuItemsFromMenuItemCategory = class extends AbstractApiRequest21 {
|
|
|
12004
12037
|
}
|
|
12005
12038
|
parseResponse(data, rawResponse) {
|
|
12006
12039
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12007
|
-
return this.validateOutput({ data: menuItems, pagination:
|
|
12040
|
+
return this.validateOutput({ data: menuItems, pagination: responseToPagination7(rawResponse) });
|
|
12008
12041
|
}
|
|
12009
12042
|
};
|
|
12010
12043
|
|
|
12011
12044
|
// src/requests/menu-items/GetMenuItemsFromPointOfSale.ts
|
|
12012
|
-
import { AbstractApiRequest as
|
|
12045
|
+
import { AbstractApiRequest as AbstractApiRequest23 } from "@deliverart/sdk-js-core";
|
|
12013
12046
|
import {
|
|
12014
|
-
createPaginatedSchema as
|
|
12015
|
-
responseToPagination as
|
|
12047
|
+
createPaginatedSchema as createPaginatedSchema8,
|
|
12048
|
+
responseToPagination as responseToPagination8
|
|
12016
12049
|
} from "@deliverart/sdk-js-global-types";
|
|
12017
12050
|
var getMenuItemsFromPointOfSaleQuerySchema = menuItemsQuerySchema;
|
|
12018
12051
|
var getMenuItemsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12019
|
-
var getMenuItemsFromPointOfSaleResponseSchema =
|
|
12020
|
-
var GetMenuItemsFromPointOfSale = class extends
|
|
12052
|
+
var getMenuItemsFromPointOfSaleResponseSchema = createPaginatedSchema8(menuItemSchema);
|
|
12053
|
+
var GetMenuItemsFromPointOfSale = class extends AbstractApiRequest23 {
|
|
12021
12054
|
constructor(pointOfSaleId, options) {
|
|
12022
12055
|
super(void 0, options);
|
|
12023
12056
|
this.method = "GET";
|
|
@@ -12034,17 +12067,17 @@ var GetMenuItemsFromPointOfSale = class extends AbstractApiRequest22 {
|
|
|
12034
12067
|
}
|
|
12035
12068
|
parseResponse(data, rawResponse) {
|
|
12036
12069
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12037
|
-
return this.validateOutput({ data: menuItems, pagination:
|
|
12070
|
+
return this.validateOutput({ data: menuItems, pagination: responseToPagination8(rawResponse) });
|
|
12038
12071
|
}
|
|
12039
12072
|
};
|
|
12040
12073
|
|
|
12041
12074
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12042
|
-
import { AbstractApiRequest as
|
|
12075
|
+
import { AbstractApiRequest as AbstractApiRequest24 } from "@deliverart/sdk-js-core";
|
|
12043
12076
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12044
12077
|
pointOfSale: true
|
|
12045
12078
|
}).partial();
|
|
12046
12079
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12047
|
-
var UpdateMenuItem = class extends
|
|
12080
|
+
var UpdateMenuItem = class extends AbstractApiRequest24 {
|
|
12048
12081
|
constructor(menuItemId, input) {
|
|
12049
12082
|
super(input);
|
|
12050
12083
|
this.method = "PATCH";
|
|
@@ -12062,10 +12095,10 @@ var UpdateMenuItem = class extends AbstractApiRequest23 {
|
|
|
12062
12095
|
};
|
|
12063
12096
|
|
|
12064
12097
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12065
|
-
import { AbstractApiRequest as
|
|
12098
|
+
import { AbstractApiRequest as AbstractApiRequest25 } from "@deliverart/sdk-js-core";
|
|
12066
12099
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12067
12100
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12068
|
-
var GetMenuVersionDetails = class extends
|
|
12101
|
+
var GetMenuVersionDetails = class extends AbstractApiRequest25 {
|
|
12069
12102
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12070
12103
|
super(void 0);
|
|
12071
12104
|
this.method = "GET";
|
|
@@ -12084,17 +12117,17 @@ var GetMenuVersionDetails = class extends AbstractApiRequest24 {
|
|
|
12084
12117
|
};
|
|
12085
12118
|
|
|
12086
12119
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12087
|
-
import { AbstractApiRequest as
|
|
12120
|
+
import { AbstractApiRequest as AbstractApiRequest26 } from "@deliverart/sdk-js-core";
|
|
12088
12121
|
import {
|
|
12089
|
-
createPaginatedSchema as
|
|
12090
|
-
responseToPagination as
|
|
12122
|
+
createPaginatedSchema as createPaginatedSchema9,
|
|
12123
|
+
responseToPagination as responseToPagination9
|
|
12091
12124
|
} from "@deliverart/sdk-js-global-types";
|
|
12092
12125
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12093
12126
|
page: external_exports.coerce.number().optional()
|
|
12094
12127
|
});
|
|
12095
12128
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12096
|
-
var getMenuVersionsResponseSchema =
|
|
12097
|
-
var GetMenuVersions = class extends
|
|
12129
|
+
var getMenuVersionsResponseSchema = createPaginatedSchema9(menuVersionSchema);
|
|
12130
|
+
var GetMenuVersions = class extends AbstractApiRequest26 {
|
|
12098
12131
|
constructor(pointOfSaleId, options) {
|
|
12099
12132
|
super(void 0, options);
|
|
12100
12133
|
this.method = "GET";
|
|
@@ -12113,7 +12146,7 @@ var GetMenuVersions = class extends AbstractApiRequest25 {
|
|
|
12113
12146
|
const menuVersions = external_exports.array(menuVersionSchema).parse(data);
|
|
12114
12147
|
return this.validateOutput({
|
|
12115
12148
|
data: menuVersions,
|
|
12116
|
-
pagination:
|
|
12149
|
+
pagination: responseToPagination9(rawResponse)
|
|
12117
12150
|
});
|
|
12118
12151
|
}
|
|
12119
12152
|
};
|
|
@@ -12132,6 +12165,7 @@ export {
|
|
|
12132
12165
|
GetMenuItemDetails,
|
|
12133
12166
|
GetMenuItemModifierDetails,
|
|
12134
12167
|
GetMenuItemModifiers,
|
|
12168
|
+
GetMenuItemModifiersFromPointOfSale,
|
|
12135
12169
|
GetMenuItemPriceOverrideDetails,
|
|
12136
12170
|
GetMenuItemPriceOverrides,
|
|
12137
12171
|
GetMenuItems,
|
|
@@ -12171,6 +12205,9 @@ export {
|
|
|
12171
12205
|
getMenuItemDetailsResponseSchema,
|
|
12172
12206
|
getMenuItemModifierDetailsInputSchema,
|
|
12173
12207
|
getMenuItemModifierDetailsResponseSchema,
|
|
12208
|
+
getMenuItemModifiersFromPointOfSaleInputSchema,
|
|
12209
|
+
getMenuItemModifiersFromPointOfSaleQuerySchema,
|
|
12210
|
+
getMenuItemModifiersFromPointOfSaleResponseSchema,
|
|
12174
12211
|
getMenuItemModifiersInputSchema,
|
|
12175
12212
|
getMenuItemModifiersQuerySchema,
|
|
12176
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-core": "2.5.
|
|
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"
|