@deliverart/sdk-js-menu 2.5.1 → 2.5.2
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 +94 -56
- package/dist/index.d.cts +139 -1
- package/dist/index.d.ts +139 -1
- package/dist/index.js +91 -54
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -29,6 +29,7 @@ __export(index_exports, {
|
|
|
29
29
|
DeleteMenuItemModifier: () => DeleteMenuItemModifier,
|
|
30
30
|
DeleteMenuItemPriceOverride: () => DeleteMenuItemPriceOverride,
|
|
31
31
|
GetMenuItemCategories: () => GetMenuItemCategories,
|
|
32
|
+
GetMenuItemCategoriesFromPointOfSale: () => GetMenuItemCategoriesFromPointOfSale,
|
|
32
33
|
GetMenuItemCategoryDetails: () => GetMenuItemCategoryDetails,
|
|
33
34
|
GetMenuItemDetails: () => GetMenuItemDetails,
|
|
34
35
|
GetMenuItemModifierDetails: () => GetMenuItemModifierDetails,
|
|
@@ -58,6 +59,9 @@ __export(index_exports, {
|
|
|
58
59
|
deleteMenuItemPriceOverrideInputSchema: () => deleteMenuItemPriceOverrideInputSchema,
|
|
59
60
|
deleteMenuItemPriceOverrideResponseSchema: () => deleteMenuItemPriceOverrideResponseSchema,
|
|
60
61
|
deleteMenuItemResponseSchema: () => deleteMenuItemResponseSchema,
|
|
62
|
+
getMenuItemCategoriesFromPointOfSaleInputSchema: () => getMenuItemCategoriesFromPointOfSaleInputSchema,
|
|
63
|
+
getMenuItemCategoriesFromPointOfSaleQuerySchema: () => getMenuItemCategoriesFromPointOfSaleQuerySchema,
|
|
64
|
+
getMenuItemCategoriesFromPointOfSaleResponseSchema: () => getMenuItemCategoriesFromPointOfSaleResponseSchema,
|
|
61
65
|
getMenuItemCategoriesInputSchema: () => getMenuItemCategoriesInputSchema,
|
|
62
66
|
getMenuItemCategoriesQuerySchema: () => getMenuItemCategoriesQuerySchema,
|
|
63
67
|
getMenuItemCategoriesResponseSchema: () => getMenuItemCategoriesResponseSchema,
|
|
@@ -11683,11 +11687,41 @@ var GetMenuItemCategories = class extends import_sdk_js_core3.AbstractApiRequest
|
|
|
11683
11687
|
}
|
|
11684
11688
|
};
|
|
11685
11689
|
|
|
11686
|
-
// src/requests/menu-item-categories/
|
|
11690
|
+
// src/requests/menu-item-categories/GetMenuItemCategoriesFromPointOfSale.ts
|
|
11687
11691
|
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11692
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
11693
|
+
var getMenuItemCategoriesFromPointOfSaleQuerySchema = menuItemCategoriesQuerySchema;
|
|
11694
|
+
var getMenuItemCategoriesFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11695
|
+
var getMenuItemCategoriesFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types6.createPaginatedSchema)(menuItemCategorySchema);
|
|
11696
|
+
var GetMenuItemCategoriesFromPointOfSale = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
11697
|
+
constructor(pointOfSaleId, options) {
|
|
11698
|
+
super(void 0, options);
|
|
11699
|
+
this.method = "GET";
|
|
11700
|
+
this.contentType = "application/json";
|
|
11701
|
+
this.accept = "application/json";
|
|
11702
|
+
this.inputSchema = getMenuItemCategoriesFromPointOfSaleInputSchema;
|
|
11703
|
+
this.outputSchema = getMenuItemCategoriesFromPointOfSaleResponseSchema;
|
|
11704
|
+
this.querySchema = getMenuItemCategoriesFromPointOfSaleQuerySchema;
|
|
11705
|
+
this.headersSchema = void 0;
|
|
11706
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
11707
|
+
}
|
|
11708
|
+
getPath() {
|
|
11709
|
+
return `/point_of_sales/${this.pointOfSaleId}/menu_item_categories`;
|
|
11710
|
+
}
|
|
11711
|
+
parseResponse(data, rawResponse) {
|
|
11712
|
+
const menuItemCategories = external_exports.array(menuItemCategorySchema).parse(data);
|
|
11713
|
+
return this.validateOutput({
|
|
11714
|
+
data: menuItemCategories,
|
|
11715
|
+
pagination: (0, import_sdk_js_global_types6.responseToPagination)(rawResponse)
|
|
11716
|
+
});
|
|
11717
|
+
}
|
|
11718
|
+
};
|
|
11719
|
+
|
|
11720
|
+
// src/requests/menu-item-categories/GetMenuItemCategoryDetails.ts
|
|
11721
|
+
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
11688
11722
|
var getMenuItemCategoryDetailsInputSchema = external_exports.undefined();
|
|
11689
11723
|
var getMenuItemCategoryDetailsResponseSchema = menuItemCategoryDetailsSchema;
|
|
11690
|
-
var GetMenuItemCategoryDetails = class extends
|
|
11724
|
+
var GetMenuItemCategoryDetails = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
11691
11725
|
constructor(menuItemCategoryId) {
|
|
11692
11726
|
super(void 0);
|
|
11693
11727
|
this.method = "GET";
|
|
@@ -11705,12 +11739,12 @@ var GetMenuItemCategoryDetails = class extends import_sdk_js_core4.AbstractApiRe
|
|
|
11705
11739
|
};
|
|
11706
11740
|
|
|
11707
11741
|
// src/requests/menu-item-categories/UpdateMenuItemCategory.ts
|
|
11708
|
-
var
|
|
11742
|
+
var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
11709
11743
|
var updateMenuItemCategoryInputSchema = writableMenuItemCategorySchema.omit({
|
|
11710
11744
|
pointOfSale: true
|
|
11711
11745
|
}).partial();
|
|
11712
11746
|
var updateMenuItemCategoryResponseSchema = menuItemCategoryDetailsSchema;
|
|
11713
|
-
var UpdateMenuItemCategory = class extends
|
|
11747
|
+
var UpdateMenuItemCategory = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
11714
11748
|
constructor(menuItemCategoryId, input) {
|
|
11715
11749
|
super(input);
|
|
11716
11750
|
this.method = "PATCH";
|
|
@@ -11728,10 +11762,10 @@ var UpdateMenuItemCategory = class extends import_sdk_js_core5.AbstractApiReques
|
|
|
11728
11762
|
};
|
|
11729
11763
|
|
|
11730
11764
|
// src/requests/menu-item-modifiers/CreateMenuItemModifier.ts
|
|
11731
|
-
var
|
|
11765
|
+
var import_sdk_js_core7 = require("@deliverart/sdk-js-core");
|
|
11732
11766
|
var createMenuItemModifierInputSchema = writableMenuItemModifierSchema.required();
|
|
11733
11767
|
var createMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11734
|
-
var CreateMenuItemModifier = class extends
|
|
11768
|
+
var CreateMenuItemModifier = class extends import_sdk_js_core7.AbstractApiRequest {
|
|
11735
11769
|
constructor(input) {
|
|
11736
11770
|
super(input);
|
|
11737
11771
|
this.method = "POST";
|
|
@@ -11748,11 +11782,11 @@ var CreateMenuItemModifier = class extends import_sdk_js_core6.AbstractApiReques
|
|
|
11748
11782
|
};
|
|
11749
11783
|
|
|
11750
11784
|
// src/requests/menu-item-modifiers/DeleteMenuItemModifier.ts
|
|
11751
|
-
var
|
|
11752
|
-
var
|
|
11785
|
+
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
11786
|
+
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
11753
11787
|
var deleteMenuItemModifierInputSchema = external_exports.undefined();
|
|
11754
|
-
var deleteMenuItemModifierResponseSchema =
|
|
11755
|
-
var DeleteMenuItemModifier = class extends
|
|
11788
|
+
var deleteMenuItemModifierResponseSchema = import_sdk_js_global_types7.emptyResponseSchema;
|
|
11789
|
+
var DeleteMenuItemModifier = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
11756
11790
|
constructor(menuItemModifierId) {
|
|
11757
11791
|
super(void 0);
|
|
11758
11792
|
this.method = "DELETE";
|
|
@@ -11770,10 +11804,10 @@ var DeleteMenuItemModifier = class extends import_sdk_js_core7.AbstractApiReques
|
|
|
11770
11804
|
};
|
|
11771
11805
|
|
|
11772
11806
|
// src/requests/menu-item-modifiers/GetMenuItemModifierDetails.ts
|
|
11773
|
-
var
|
|
11807
|
+
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
11774
11808
|
var getMenuItemModifierDetailsInputSchema = external_exports.undefined();
|
|
11775
11809
|
var getMenuItemModifierDetailsResponseSchema = menuItemModifierDetailsSchema;
|
|
11776
|
-
var GetMenuItemModifierDetails = class extends
|
|
11810
|
+
var GetMenuItemModifierDetails = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
11777
11811
|
constructor(menuItemModifierId) {
|
|
11778
11812
|
super(void 0);
|
|
11779
11813
|
this.method = "GET";
|
|
@@ -11791,12 +11825,12 @@ var GetMenuItemModifierDetails = class extends import_sdk_js_core8.AbstractApiRe
|
|
|
11791
11825
|
};
|
|
11792
11826
|
|
|
11793
11827
|
// src/requests/menu-item-modifiers/GetMenuItemModifiers.ts
|
|
11794
|
-
var
|
|
11795
|
-
var
|
|
11828
|
+
var import_sdk_js_core10 = require("@deliverart/sdk-js-core");
|
|
11829
|
+
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
11796
11830
|
var getMenuItemModifiersQuerySchema = menuItemModifiersQuerySchema;
|
|
11797
11831
|
var getMenuItemModifiersInputSchema = external_exports.undefined();
|
|
11798
|
-
var getMenuItemModifiersResponseSchema = (0,
|
|
11799
|
-
var GetMenuItemModifiers = class extends
|
|
11832
|
+
var getMenuItemModifiersResponseSchema = (0, import_sdk_js_global_types8.createPaginatedSchema)(menuItemModifierSchema);
|
|
11833
|
+
var GetMenuItemModifiers = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
11800
11834
|
constructor(options) {
|
|
11801
11835
|
super(void 0, options);
|
|
11802
11836
|
this.method = "GET";
|
|
@@ -11814,18 +11848,18 @@ var GetMenuItemModifiers = class extends import_sdk_js_core9.AbstractApiRequest
|
|
|
11814
11848
|
const menuItemModifiers = external_exports.array(menuItemModifierSchema).parse(data);
|
|
11815
11849
|
return this.validateOutput({
|
|
11816
11850
|
data: menuItemModifiers,
|
|
11817
|
-
pagination: (0,
|
|
11851
|
+
pagination: (0, import_sdk_js_global_types8.responseToPagination)(rawResponse)
|
|
11818
11852
|
});
|
|
11819
11853
|
}
|
|
11820
11854
|
};
|
|
11821
11855
|
|
|
11822
11856
|
// src/requests/menu-item-modifiers/UpdateMenuItemModifier.ts
|
|
11823
|
-
var
|
|
11857
|
+
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
11824
11858
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11825
11859
|
pointOfSale: true
|
|
11826
11860
|
}).partial();
|
|
11827
11861
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11828
|
-
var UpdateMenuItemModifier = class extends
|
|
11862
|
+
var UpdateMenuItemModifier = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
11829
11863
|
constructor(menuItemModifierId, input) {
|
|
11830
11864
|
super(input);
|
|
11831
11865
|
this.method = "PATCH";
|
|
@@ -11843,10 +11877,10 @@ var UpdateMenuItemModifier = class extends import_sdk_js_core10.AbstractApiReque
|
|
|
11843
11877
|
};
|
|
11844
11878
|
|
|
11845
11879
|
// src/requests/menu-item-price-overrides/CreateMenuItemPriceOverride.ts
|
|
11846
|
-
var
|
|
11880
|
+
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
11847
11881
|
var createMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverrideSchema;
|
|
11848
11882
|
var createMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11849
|
-
var CreateMenuItemPriceOverride = class extends
|
|
11883
|
+
var CreateMenuItemPriceOverride = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
11850
11884
|
constructor(input) {
|
|
11851
11885
|
super(input);
|
|
11852
11886
|
this.method = "POST";
|
|
@@ -11863,11 +11897,11 @@ var CreateMenuItemPriceOverride = class extends import_sdk_js_core11.AbstractApi
|
|
|
11863
11897
|
};
|
|
11864
11898
|
|
|
11865
11899
|
// src/requests/menu-item-price-overrides/DeleteMenuItemPriceOverride.ts
|
|
11866
|
-
var
|
|
11867
|
-
var
|
|
11900
|
+
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
11901
|
+
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
11868
11902
|
var deleteMenuItemPriceOverrideInputSchema = external_exports.undefined();
|
|
11869
|
-
var deleteMenuItemPriceOverrideResponseSchema =
|
|
11870
|
-
var DeleteMenuItemPriceOverride = class extends
|
|
11903
|
+
var deleteMenuItemPriceOverrideResponseSchema = import_sdk_js_global_types9.emptyResponseSchema;
|
|
11904
|
+
var DeleteMenuItemPriceOverride = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
11871
11905
|
constructor(menuItemPriceOverrideId) {
|
|
11872
11906
|
super(void 0);
|
|
11873
11907
|
this.method = "DELETE";
|
|
@@ -11885,10 +11919,10 @@ var DeleteMenuItemPriceOverride = class extends import_sdk_js_core12.AbstractApi
|
|
|
11885
11919
|
};
|
|
11886
11920
|
|
|
11887
11921
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrideDetails.ts
|
|
11888
|
-
var
|
|
11922
|
+
var import_sdk_js_core14 = require("@deliverart/sdk-js-core");
|
|
11889
11923
|
var getMenuItemPriceOverrideDetailsInputSchema = external_exports.undefined();
|
|
11890
11924
|
var getMenuItemPriceOverrideDetailsResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11891
|
-
var GetMenuItemPriceOverrideDetails = class extends
|
|
11925
|
+
var GetMenuItemPriceOverrideDetails = class extends import_sdk_js_core14.AbstractApiRequest {
|
|
11892
11926
|
constructor(menuItemPriceOverrideId) {
|
|
11893
11927
|
super(void 0);
|
|
11894
11928
|
this.method = "GET";
|
|
@@ -11906,14 +11940,14 @@ var GetMenuItemPriceOverrideDetails = class extends import_sdk_js_core13.Abstrac
|
|
|
11906
11940
|
};
|
|
11907
11941
|
|
|
11908
11942
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrides.ts
|
|
11909
|
-
var
|
|
11910
|
-
var
|
|
11943
|
+
var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
11944
|
+
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
11911
11945
|
var getMenuItemPriceOverridesQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11912
11946
|
var getMenuItemPriceOverridesInputSchema = external_exports.undefined();
|
|
11913
|
-
var getMenuItemPriceOverridesResponseSchema = (0,
|
|
11947
|
+
var getMenuItemPriceOverridesResponseSchema = (0, import_sdk_js_global_types10.createPaginatedSchema)(
|
|
11914
11948
|
menuItemPriceOverrideSchema
|
|
11915
11949
|
);
|
|
11916
|
-
var GetMenuItemPriceOverrides = class extends
|
|
11950
|
+
var GetMenuItemPriceOverrides = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
11917
11951
|
constructor(options) {
|
|
11918
11952
|
super(void 0, options);
|
|
11919
11953
|
this.method = "GET";
|
|
@@ -11931,16 +11965,16 @@ var GetMenuItemPriceOverrides = class extends import_sdk_js_core14.AbstractApiRe
|
|
|
11931
11965
|
const menuItemPriceOverrides = external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
11932
11966
|
return this.validateOutput({
|
|
11933
11967
|
data: menuItemPriceOverrides,
|
|
11934
|
-
pagination: (0,
|
|
11968
|
+
pagination: (0, import_sdk_js_global_types10.responseToPagination)(rawResponse)
|
|
11935
11969
|
});
|
|
11936
11970
|
}
|
|
11937
11971
|
};
|
|
11938
11972
|
|
|
11939
11973
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
11940
|
-
var
|
|
11974
|
+
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
11941
11975
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
11942
11976
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11943
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
11977
|
+
var UpdateMenuItemPriceOverride = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
11944
11978
|
constructor(menuItemPriceOverrideId, input) {
|
|
11945
11979
|
super(input);
|
|
11946
11980
|
this.method = "PATCH";
|
|
@@ -11958,10 +11992,10 @@ var UpdateMenuItemPriceOverride = class extends import_sdk_js_core15.AbstractApi
|
|
|
11958
11992
|
};
|
|
11959
11993
|
|
|
11960
11994
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
11961
|
-
var
|
|
11995
|
+
var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
11962
11996
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
11963
11997
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
11964
|
-
var CreateMenuItem = class extends
|
|
11998
|
+
var CreateMenuItem = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
11965
11999
|
constructor(input) {
|
|
11966
12000
|
super(input);
|
|
11967
12001
|
this.method = "POST";
|
|
@@ -11978,11 +12012,11 @@ var CreateMenuItem = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
|
11978
12012
|
};
|
|
11979
12013
|
|
|
11980
12014
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
11981
|
-
var
|
|
11982
|
-
var
|
|
12015
|
+
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
12016
|
+
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
11983
12017
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
11984
|
-
var deleteMenuItemResponseSchema =
|
|
11985
|
-
var DeleteMenuItem = class extends
|
|
12018
|
+
var deleteMenuItemResponseSchema = import_sdk_js_global_types11.emptyResponseSchema;
|
|
12019
|
+
var DeleteMenuItem = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
11986
12020
|
constructor(menuItemId) {
|
|
11987
12021
|
super(void 0);
|
|
11988
12022
|
this.method = "DELETE";
|
|
@@ -12000,10 +12034,10 @@ var DeleteMenuItem = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
|
12000
12034
|
};
|
|
12001
12035
|
|
|
12002
12036
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
12003
|
-
var
|
|
12037
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
12004
12038
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
12005
12039
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
12006
|
-
var GetMenuItemDetails = class extends
|
|
12040
|
+
var GetMenuItemDetails = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
12007
12041
|
constructor(menuItemId) {
|
|
12008
12042
|
super(void 0);
|
|
12009
12043
|
this.method = "GET";
|
|
@@ -12021,12 +12055,12 @@ var GetMenuItemDetails = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
|
12021
12055
|
};
|
|
12022
12056
|
|
|
12023
12057
|
// src/requests/menu-items/GetMenuItems.ts
|
|
12024
|
-
var
|
|
12025
|
-
var
|
|
12058
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
12059
|
+
var import_sdk_js_global_types12 = require("@deliverart/sdk-js-global-types");
|
|
12026
12060
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
12027
12061
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
12028
|
-
var getMenuItemsResponseSchema = (0,
|
|
12029
|
-
var GetMenuItems = class extends
|
|
12062
|
+
var getMenuItemsResponseSchema = (0, import_sdk_js_global_types12.createPaginatedSchema)(menuItemSchema);
|
|
12063
|
+
var GetMenuItems = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
12030
12064
|
constructor(options) {
|
|
12031
12065
|
super(void 0, options);
|
|
12032
12066
|
this.method = "GET";
|
|
@@ -12042,17 +12076,17 @@ var GetMenuItems = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
|
12042
12076
|
}
|
|
12043
12077
|
parseResponse(data, rawResponse) {
|
|
12044
12078
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
12045
|
-
return this.validateOutput({ data: menuItems, pagination: (0,
|
|
12079
|
+
return this.validateOutput({ data: menuItems, pagination: (0, import_sdk_js_global_types12.responseToPagination)(rawResponse) });
|
|
12046
12080
|
}
|
|
12047
12081
|
};
|
|
12048
12082
|
|
|
12049
12083
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
12050
|
-
var
|
|
12084
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
12051
12085
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
12052
12086
|
pointOfSale: true
|
|
12053
12087
|
}).partial();
|
|
12054
12088
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
12055
|
-
var UpdateMenuItem = class extends
|
|
12089
|
+
var UpdateMenuItem = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
12056
12090
|
constructor(menuItemId, input) {
|
|
12057
12091
|
super(input);
|
|
12058
12092
|
this.method = "PATCH";
|
|
@@ -12070,10 +12104,10 @@ var UpdateMenuItem = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
|
12070
12104
|
};
|
|
12071
12105
|
|
|
12072
12106
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
12073
|
-
var
|
|
12107
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
12074
12108
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
12075
12109
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
12076
|
-
var GetMenuVersionDetails = class extends
|
|
12110
|
+
var GetMenuVersionDetails = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
12077
12111
|
constructor(pointOfSaleId, menuVersionId) {
|
|
12078
12112
|
super(void 0);
|
|
12079
12113
|
this.method = "GET";
|
|
@@ -12092,14 +12126,14 @@ var GetMenuVersionDetails = class extends import_sdk_js_core21.AbstractApiReques
|
|
|
12092
12126
|
};
|
|
12093
12127
|
|
|
12094
12128
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
12095
|
-
var
|
|
12096
|
-
var
|
|
12129
|
+
var import_sdk_js_core23 = require("@deliverart/sdk-js-core");
|
|
12130
|
+
var import_sdk_js_global_types13 = require("@deliverart/sdk-js-global-types");
|
|
12097
12131
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12098
12132
|
page: external_exports.coerce.number().optional()
|
|
12099
12133
|
});
|
|
12100
12134
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12101
|
-
var getMenuVersionsResponseSchema = (0,
|
|
12102
|
-
var GetMenuVersions = class extends
|
|
12135
|
+
var getMenuVersionsResponseSchema = (0, import_sdk_js_global_types13.createPaginatedSchema)(menuVersionSchema);
|
|
12136
|
+
var GetMenuVersions = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
12103
12137
|
constructor(pointOfSaleId, options) {
|
|
12104
12138
|
super(void 0, options);
|
|
12105
12139
|
this.method = "GET";
|
|
@@ -12118,7 +12152,7 @@ var GetMenuVersions = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
|
12118
12152
|
const menuVersions = external_exports.array(menuVersionSchema).parse(data);
|
|
12119
12153
|
return this.validateOutput({
|
|
12120
12154
|
data: menuVersions,
|
|
12121
|
-
pagination: (0,
|
|
12155
|
+
pagination: (0, import_sdk_js_global_types13.responseToPagination)(rawResponse)
|
|
12122
12156
|
});
|
|
12123
12157
|
}
|
|
12124
12158
|
};
|
|
@@ -12133,6 +12167,7 @@ var GetMenuVersions = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
|
12133
12167
|
DeleteMenuItemModifier,
|
|
12134
12168
|
DeleteMenuItemPriceOverride,
|
|
12135
12169
|
GetMenuItemCategories,
|
|
12170
|
+
GetMenuItemCategoriesFromPointOfSale,
|
|
12136
12171
|
GetMenuItemCategoryDetails,
|
|
12137
12172
|
GetMenuItemDetails,
|
|
12138
12173
|
GetMenuItemModifierDetails,
|
|
@@ -12162,6 +12197,9 @@ var GetMenuVersions = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
|
12162
12197
|
deleteMenuItemPriceOverrideInputSchema,
|
|
12163
12198
|
deleteMenuItemPriceOverrideResponseSchema,
|
|
12164
12199
|
deleteMenuItemResponseSchema,
|
|
12200
|
+
getMenuItemCategoriesFromPointOfSaleInputSchema,
|
|
12201
|
+
getMenuItemCategoriesFromPointOfSaleQuerySchema,
|
|
12202
|
+
getMenuItemCategoriesFromPointOfSaleResponseSchema,
|
|
12165
12203
|
getMenuItemCategoriesInputSchema,
|
|
12166
12204
|
getMenuItemCategoriesQuerySchema,
|
|
12167
12205
|
getMenuItemCategoriesResponseSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -1653,6 +1653,144 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1653
1653
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1654
1654
|
}
|
|
1655
1655
|
|
|
1656
|
+
declare const getMenuItemCategoriesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
1657
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1658
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
1659
|
+
asc: "asc";
|
|
1660
|
+
desc: "desc";
|
|
1661
|
+
}>>;
|
|
1662
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1663
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1664
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1665
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1666
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1667
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1668
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1669
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1670
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1671
|
+
}, z.core.$strip>;
|
|
1672
|
+
type GetMenuItemCategoriesFromPointOfSaleQueryParams = z.infer<typeof getMenuItemCategoriesFromPointOfSaleQuerySchema>;
|
|
1673
|
+
declare const getMenuItemCategoriesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1674
|
+
type GetMenuItemCategoriesFromPointOfSaleInput = z.input<typeof getMenuItemCategoriesFromPointOfSaleInputSchema>;
|
|
1675
|
+
declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1676
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1677
|
+
id: z.ZodString;
|
|
1678
|
+
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>>;
|
|
1679
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1680
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1681
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1682
|
+
}, z.core.$strip>>;
|
|
1683
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1684
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1685
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1686
|
+
}, z.core.$strip>>>;
|
|
1687
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1688
|
+
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
1689
|
+
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1690
|
+
id: z.ZodString;
|
|
1691
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1692
|
+
contentUrl: z.ZodURL;
|
|
1693
|
+
filePath: z.ZodString;
|
|
1694
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1695
|
+
createdAt: z.ZodString;
|
|
1696
|
+
updatedAt: z.ZodString;
|
|
1697
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1698
|
+
id: z.ZodString;
|
|
1699
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1700
|
+
contentUrl: z.ZodURL;
|
|
1701
|
+
filePath: z.ZodString;
|
|
1702
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1703
|
+
createdAt: z.ZodString;
|
|
1704
|
+
updatedAt: z.ZodString;
|
|
1705
|
+
}, z.core.$strip>>>;
|
|
1706
|
+
}, z.core.$strip>>>;
|
|
1707
|
+
createdAt: z.ZodString;
|
|
1708
|
+
updatedAt: z.ZodString;
|
|
1709
|
+
}, z.core.$strip>>;
|
|
1710
|
+
pagination: z.ZodObject<{
|
|
1711
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1712
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1713
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1714
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1715
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1716
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1717
|
+
}, z.core.$strip>;
|
|
1718
|
+
}, z.core.$strip>;
|
|
1719
|
+
type GetMenuItemCategoriesFromPointOfSaleResponse = z.infer<typeof getMenuItemCategoriesFromPointOfSaleResponseSchema>;
|
|
1720
|
+
declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<typeof getMenuItemCategoriesFromPointOfSaleInputSchema, typeof getMenuItemCategoriesFromPointOfSaleResponseSchema, GetMenuItemCategoriesFromPointOfSaleQueryParams> {
|
|
1721
|
+
readonly method = "GET";
|
|
1722
|
+
readonly contentType = "application/json";
|
|
1723
|
+
readonly accept = "application/json";
|
|
1724
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1725
|
+
readonly outputSchema: z.ZodObject<{
|
|
1726
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1727
|
+
id: z.ZodString;
|
|
1728
|
+
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>>;
|
|
1729
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1730
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1731
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1732
|
+
}, z.core.$strip>>;
|
|
1733
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1734
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1735
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1736
|
+
}, z.core.$strip>>>;
|
|
1737
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1738
|
+
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
1739
|
+
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1740
|
+
id: z.ZodString;
|
|
1741
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1742
|
+
contentUrl: z.ZodURL;
|
|
1743
|
+
filePath: z.ZodString;
|
|
1744
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1745
|
+
createdAt: z.ZodString;
|
|
1746
|
+
updatedAt: z.ZodString;
|
|
1747
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1748
|
+
id: z.ZodString;
|
|
1749
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1750
|
+
contentUrl: z.ZodURL;
|
|
1751
|
+
filePath: z.ZodString;
|
|
1752
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1753
|
+
createdAt: z.ZodString;
|
|
1754
|
+
updatedAt: z.ZodString;
|
|
1755
|
+
}, z.core.$strip>>>;
|
|
1756
|
+
}, z.core.$strip>>>;
|
|
1757
|
+
createdAt: z.ZodString;
|
|
1758
|
+
updatedAt: z.ZodString;
|
|
1759
|
+
}, z.core.$strip>>;
|
|
1760
|
+
pagination: z.ZodObject<{
|
|
1761
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1762
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1763
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1764
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1765
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1766
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1767
|
+
}, z.core.$strip>;
|
|
1768
|
+
}, z.core.$strip>;
|
|
1769
|
+
readonly querySchema: z.ZodObject<{
|
|
1770
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1771
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
1772
|
+
asc: "asc";
|
|
1773
|
+
desc: "desc";
|
|
1774
|
+
}>>;
|
|
1775
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1776
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1777
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1778
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1779
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1780
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1781
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1782
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1783
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1784
|
+
}, z.core.$strip>;
|
|
1785
|
+
readonly headersSchema: undefined;
|
|
1786
|
+
private readonly pointOfSaleId;
|
|
1787
|
+
constructor(pointOfSaleId: string, options?: {
|
|
1788
|
+
query?: GetMenuItemCategoriesFromPointOfSaleQueryParams;
|
|
1789
|
+
});
|
|
1790
|
+
getPath(): string;
|
|
1791
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1656
1794
|
declare const getMenuItemCategoryDetailsInputSchema: z.ZodUndefined;
|
|
1657
1795
|
type GetMenuItemCategoryDetailsInput = z.infer<typeof getMenuItemCategoryDetailsInputSchema>;
|
|
1658
1796
|
declare const getMenuItemCategoryDetailsResponseSchema: z.ZodObject<{
|
|
@@ -4996,4 +5134,4 @@ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSa
|
|
|
4996
5134
|
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>>;
|
|
4997
5135
|
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
4998
5136
|
|
|
4999
|
-
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, 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, 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, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, 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 };
|
|
5137
|
+
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, 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, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, 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
|
@@ -1653,6 +1653,144 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1653
1653
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1654
1654
|
}
|
|
1655
1655
|
|
|
1656
|
+
declare const getMenuItemCategoriesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
1657
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1658
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
1659
|
+
asc: "asc";
|
|
1660
|
+
desc: "desc";
|
|
1661
|
+
}>>;
|
|
1662
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1663
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1664
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1665
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1666
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1667
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1668
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1669
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1670
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1671
|
+
}, z.core.$strip>;
|
|
1672
|
+
type GetMenuItemCategoriesFromPointOfSaleQueryParams = z.infer<typeof getMenuItemCategoriesFromPointOfSaleQuerySchema>;
|
|
1673
|
+
declare const getMenuItemCategoriesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1674
|
+
type GetMenuItemCategoriesFromPointOfSaleInput = z.input<typeof getMenuItemCategoriesFromPointOfSaleInputSchema>;
|
|
1675
|
+
declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1676
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1677
|
+
id: z.ZodString;
|
|
1678
|
+
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>>;
|
|
1679
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1680
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1681
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1682
|
+
}, z.core.$strip>>;
|
|
1683
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1684
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1685
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1686
|
+
}, z.core.$strip>>>;
|
|
1687
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1688
|
+
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
1689
|
+
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1690
|
+
id: z.ZodString;
|
|
1691
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1692
|
+
contentUrl: z.ZodURL;
|
|
1693
|
+
filePath: z.ZodString;
|
|
1694
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1695
|
+
createdAt: z.ZodString;
|
|
1696
|
+
updatedAt: z.ZodString;
|
|
1697
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1698
|
+
id: z.ZodString;
|
|
1699
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1700
|
+
contentUrl: z.ZodURL;
|
|
1701
|
+
filePath: z.ZodString;
|
|
1702
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1703
|
+
createdAt: z.ZodString;
|
|
1704
|
+
updatedAt: z.ZodString;
|
|
1705
|
+
}, z.core.$strip>>>;
|
|
1706
|
+
}, z.core.$strip>>>;
|
|
1707
|
+
createdAt: z.ZodString;
|
|
1708
|
+
updatedAt: z.ZodString;
|
|
1709
|
+
}, z.core.$strip>>;
|
|
1710
|
+
pagination: z.ZodObject<{
|
|
1711
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1712
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1713
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1714
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1715
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1716
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1717
|
+
}, z.core.$strip>;
|
|
1718
|
+
}, z.core.$strip>;
|
|
1719
|
+
type GetMenuItemCategoriesFromPointOfSaleResponse = z.infer<typeof getMenuItemCategoriesFromPointOfSaleResponseSchema>;
|
|
1720
|
+
declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<typeof getMenuItemCategoriesFromPointOfSaleInputSchema, typeof getMenuItemCategoriesFromPointOfSaleResponseSchema, GetMenuItemCategoriesFromPointOfSaleQueryParams> {
|
|
1721
|
+
readonly method = "GET";
|
|
1722
|
+
readonly contentType = "application/json";
|
|
1723
|
+
readonly accept = "application/json";
|
|
1724
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1725
|
+
readonly outputSchema: z.ZodObject<{
|
|
1726
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1727
|
+
id: z.ZodString;
|
|
1728
|
+
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>>;
|
|
1729
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1730
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1731
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1732
|
+
}, z.core.$strip>>;
|
|
1733
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1734
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1735
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1736
|
+
}, z.core.$strip>>>;
|
|
1737
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1738
|
+
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
1739
|
+
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1740
|
+
id: z.ZodString;
|
|
1741
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1742
|
+
contentUrl: z.ZodURL;
|
|
1743
|
+
filePath: z.ZodString;
|
|
1744
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1745
|
+
createdAt: z.ZodString;
|
|
1746
|
+
updatedAt: z.ZodString;
|
|
1747
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1748
|
+
id: z.ZodString;
|
|
1749
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1750
|
+
contentUrl: z.ZodURL;
|
|
1751
|
+
filePath: z.ZodString;
|
|
1752
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1753
|
+
createdAt: z.ZodString;
|
|
1754
|
+
updatedAt: z.ZodString;
|
|
1755
|
+
}, z.core.$strip>>>;
|
|
1756
|
+
}, z.core.$strip>>>;
|
|
1757
|
+
createdAt: z.ZodString;
|
|
1758
|
+
updatedAt: z.ZodString;
|
|
1759
|
+
}, z.core.$strip>>;
|
|
1760
|
+
pagination: z.ZodObject<{
|
|
1761
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1762
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1763
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1764
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1765
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1766
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1767
|
+
}, z.core.$strip>;
|
|
1768
|
+
}, z.core.$strip>;
|
|
1769
|
+
readonly querySchema: z.ZodObject<{
|
|
1770
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1771
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
1772
|
+
asc: "asc";
|
|
1773
|
+
desc: "desc";
|
|
1774
|
+
}>>;
|
|
1775
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1776
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1777
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1778
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1779
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1780
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1781
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1782
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1783
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1784
|
+
}, z.core.$strip>;
|
|
1785
|
+
readonly headersSchema: undefined;
|
|
1786
|
+
private readonly pointOfSaleId;
|
|
1787
|
+
constructor(pointOfSaleId: string, options?: {
|
|
1788
|
+
query?: GetMenuItemCategoriesFromPointOfSaleQueryParams;
|
|
1789
|
+
});
|
|
1790
|
+
getPath(): string;
|
|
1791
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1656
1794
|
declare const getMenuItemCategoryDetailsInputSchema: z.ZodUndefined;
|
|
1657
1795
|
type GetMenuItemCategoryDetailsInput = z.infer<typeof getMenuItemCategoryDetailsInputSchema>;
|
|
1658
1796
|
declare const getMenuItemCategoryDetailsResponseSchema: z.ZodObject<{
|
|
@@ -4996,4 +5134,4 @@ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSa
|
|
|
4996
5134
|
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>>;
|
|
4997
5135
|
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
4998
5136
|
|
|
4999
|
-
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, 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, 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, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, 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 };
|
|
5137
|
+
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, 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, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, 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
|
@@ -11561,11 +11561,44 @@ var GetMenuItemCategories = class extends AbstractApiRequest3 {
|
|
|
11561
11561
|
}
|
|
11562
11562
|
};
|
|
11563
11563
|
|
|
11564
|
-
// src/requests/menu-item-categories/
|
|
11564
|
+
// src/requests/menu-item-categories/GetMenuItemCategoriesFromPointOfSale.ts
|
|
11565
11565
|
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
11566
|
+
import {
|
|
11567
|
+
createPaginatedSchema as createPaginatedSchema2,
|
|
11568
|
+
responseToPagination as responseToPagination2
|
|
11569
|
+
} from "@deliverart/sdk-js-global-types";
|
|
11570
|
+
var getMenuItemCategoriesFromPointOfSaleQuerySchema = menuItemCategoriesQuerySchema;
|
|
11571
|
+
var getMenuItemCategoriesFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11572
|
+
var getMenuItemCategoriesFromPointOfSaleResponseSchema = createPaginatedSchema2(menuItemCategorySchema);
|
|
11573
|
+
var GetMenuItemCategoriesFromPointOfSale = class extends AbstractApiRequest4 {
|
|
11574
|
+
constructor(pointOfSaleId, options) {
|
|
11575
|
+
super(void 0, options);
|
|
11576
|
+
this.method = "GET";
|
|
11577
|
+
this.contentType = "application/json";
|
|
11578
|
+
this.accept = "application/json";
|
|
11579
|
+
this.inputSchema = getMenuItemCategoriesFromPointOfSaleInputSchema;
|
|
11580
|
+
this.outputSchema = getMenuItemCategoriesFromPointOfSaleResponseSchema;
|
|
11581
|
+
this.querySchema = getMenuItemCategoriesFromPointOfSaleQuerySchema;
|
|
11582
|
+
this.headersSchema = void 0;
|
|
11583
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
11584
|
+
}
|
|
11585
|
+
getPath() {
|
|
11586
|
+
return `/point_of_sales/${this.pointOfSaleId}/menu_item_categories`;
|
|
11587
|
+
}
|
|
11588
|
+
parseResponse(data, rawResponse) {
|
|
11589
|
+
const menuItemCategories = external_exports.array(menuItemCategorySchema).parse(data);
|
|
11590
|
+
return this.validateOutput({
|
|
11591
|
+
data: menuItemCategories,
|
|
11592
|
+
pagination: responseToPagination2(rawResponse)
|
|
11593
|
+
});
|
|
11594
|
+
}
|
|
11595
|
+
};
|
|
11596
|
+
|
|
11597
|
+
// src/requests/menu-item-categories/GetMenuItemCategoryDetails.ts
|
|
11598
|
+
import { AbstractApiRequest as AbstractApiRequest5 } from "@deliverart/sdk-js-core";
|
|
11566
11599
|
var getMenuItemCategoryDetailsInputSchema = external_exports.undefined();
|
|
11567
11600
|
var getMenuItemCategoryDetailsResponseSchema = menuItemCategoryDetailsSchema;
|
|
11568
|
-
var GetMenuItemCategoryDetails = class extends
|
|
11601
|
+
var GetMenuItemCategoryDetails = class extends AbstractApiRequest5 {
|
|
11569
11602
|
constructor(menuItemCategoryId) {
|
|
11570
11603
|
super(void 0);
|
|
11571
11604
|
this.method = "GET";
|
|
@@ -11583,12 +11616,12 @@ var GetMenuItemCategoryDetails = class extends AbstractApiRequest4 {
|
|
|
11583
11616
|
};
|
|
11584
11617
|
|
|
11585
11618
|
// src/requests/menu-item-categories/UpdateMenuItemCategory.ts
|
|
11586
|
-
import { AbstractApiRequest as
|
|
11619
|
+
import { AbstractApiRequest as AbstractApiRequest6 } from "@deliverart/sdk-js-core";
|
|
11587
11620
|
var updateMenuItemCategoryInputSchema = writableMenuItemCategorySchema.omit({
|
|
11588
11621
|
pointOfSale: true
|
|
11589
11622
|
}).partial();
|
|
11590
11623
|
var updateMenuItemCategoryResponseSchema = menuItemCategoryDetailsSchema;
|
|
11591
|
-
var UpdateMenuItemCategory = class extends
|
|
11624
|
+
var UpdateMenuItemCategory = class extends AbstractApiRequest6 {
|
|
11592
11625
|
constructor(menuItemCategoryId, input) {
|
|
11593
11626
|
super(input);
|
|
11594
11627
|
this.method = "PATCH";
|
|
@@ -11606,10 +11639,10 @@ var UpdateMenuItemCategory = class extends AbstractApiRequest5 {
|
|
|
11606
11639
|
};
|
|
11607
11640
|
|
|
11608
11641
|
// src/requests/menu-item-modifiers/CreateMenuItemModifier.ts
|
|
11609
|
-
import { AbstractApiRequest as
|
|
11642
|
+
import { AbstractApiRequest as AbstractApiRequest7 } from "@deliverart/sdk-js-core";
|
|
11610
11643
|
var createMenuItemModifierInputSchema = writableMenuItemModifierSchema.required();
|
|
11611
11644
|
var createMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11612
|
-
var CreateMenuItemModifier = class extends
|
|
11645
|
+
var CreateMenuItemModifier = class extends AbstractApiRequest7 {
|
|
11613
11646
|
constructor(input) {
|
|
11614
11647
|
super(input);
|
|
11615
11648
|
this.method = "POST";
|
|
@@ -11626,11 +11659,11 @@ var CreateMenuItemModifier = class extends AbstractApiRequest6 {
|
|
|
11626
11659
|
};
|
|
11627
11660
|
|
|
11628
11661
|
// src/requests/menu-item-modifiers/DeleteMenuItemModifier.ts
|
|
11629
|
-
import { AbstractApiRequest as
|
|
11662
|
+
import { AbstractApiRequest as AbstractApiRequest8 } from "@deliverart/sdk-js-core";
|
|
11630
11663
|
import { emptyResponseSchema as emptyResponseSchema2 } from "@deliverart/sdk-js-global-types";
|
|
11631
11664
|
var deleteMenuItemModifierInputSchema = external_exports.undefined();
|
|
11632
11665
|
var deleteMenuItemModifierResponseSchema = emptyResponseSchema2;
|
|
11633
|
-
var DeleteMenuItemModifier = class extends
|
|
11666
|
+
var DeleteMenuItemModifier = class extends AbstractApiRequest8 {
|
|
11634
11667
|
constructor(menuItemModifierId) {
|
|
11635
11668
|
super(void 0);
|
|
11636
11669
|
this.method = "DELETE";
|
|
@@ -11648,10 +11681,10 @@ var DeleteMenuItemModifier = class extends AbstractApiRequest7 {
|
|
|
11648
11681
|
};
|
|
11649
11682
|
|
|
11650
11683
|
// src/requests/menu-item-modifiers/GetMenuItemModifierDetails.ts
|
|
11651
|
-
import { AbstractApiRequest as
|
|
11684
|
+
import { AbstractApiRequest as AbstractApiRequest9 } from "@deliverart/sdk-js-core";
|
|
11652
11685
|
var getMenuItemModifierDetailsInputSchema = external_exports.undefined();
|
|
11653
11686
|
var getMenuItemModifierDetailsResponseSchema = menuItemModifierDetailsSchema;
|
|
11654
|
-
var GetMenuItemModifierDetails = class extends
|
|
11687
|
+
var GetMenuItemModifierDetails = class extends AbstractApiRequest9 {
|
|
11655
11688
|
constructor(menuItemModifierId) {
|
|
11656
11689
|
super(void 0);
|
|
11657
11690
|
this.method = "GET";
|
|
@@ -11669,15 +11702,15 @@ var GetMenuItemModifierDetails = class extends AbstractApiRequest8 {
|
|
|
11669
11702
|
};
|
|
11670
11703
|
|
|
11671
11704
|
// src/requests/menu-item-modifiers/GetMenuItemModifiers.ts
|
|
11672
|
-
import { AbstractApiRequest as
|
|
11705
|
+
import { AbstractApiRequest as AbstractApiRequest10 } from "@deliverart/sdk-js-core";
|
|
11673
11706
|
import {
|
|
11674
|
-
createPaginatedSchema as
|
|
11675
|
-
responseToPagination as
|
|
11707
|
+
createPaginatedSchema as createPaginatedSchema3,
|
|
11708
|
+
responseToPagination as responseToPagination3
|
|
11676
11709
|
} from "@deliverart/sdk-js-global-types";
|
|
11677
11710
|
var getMenuItemModifiersQuerySchema = menuItemModifiersQuerySchema;
|
|
11678
11711
|
var getMenuItemModifiersInputSchema = external_exports.undefined();
|
|
11679
|
-
var getMenuItemModifiersResponseSchema =
|
|
11680
|
-
var GetMenuItemModifiers = class extends
|
|
11712
|
+
var getMenuItemModifiersResponseSchema = createPaginatedSchema3(menuItemModifierSchema);
|
|
11713
|
+
var GetMenuItemModifiers = class extends AbstractApiRequest10 {
|
|
11681
11714
|
constructor(options) {
|
|
11682
11715
|
super(void 0, options);
|
|
11683
11716
|
this.method = "GET";
|
|
@@ -11695,18 +11728,18 @@ var GetMenuItemModifiers = class extends AbstractApiRequest9 {
|
|
|
11695
11728
|
const menuItemModifiers = external_exports.array(menuItemModifierSchema).parse(data);
|
|
11696
11729
|
return this.validateOutput({
|
|
11697
11730
|
data: menuItemModifiers,
|
|
11698
|
-
pagination:
|
|
11731
|
+
pagination: responseToPagination3(rawResponse)
|
|
11699
11732
|
});
|
|
11700
11733
|
}
|
|
11701
11734
|
};
|
|
11702
11735
|
|
|
11703
11736
|
// src/requests/menu-item-modifiers/UpdateMenuItemModifier.ts
|
|
11704
|
-
import { AbstractApiRequest as
|
|
11737
|
+
import { AbstractApiRequest as AbstractApiRequest11 } from "@deliverart/sdk-js-core";
|
|
11705
11738
|
var updateMenuItemModifierInputSchema = writableMenuItemModifierSchema.omit({
|
|
11706
11739
|
pointOfSale: true
|
|
11707
11740
|
}).partial();
|
|
11708
11741
|
var updateMenuItemModifierResponseSchema = menuItemModifierDetailsSchema;
|
|
11709
|
-
var UpdateMenuItemModifier = class extends
|
|
11742
|
+
var UpdateMenuItemModifier = class extends AbstractApiRequest11 {
|
|
11710
11743
|
constructor(menuItemModifierId, input) {
|
|
11711
11744
|
super(input);
|
|
11712
11745
|
this.method = "PATCH";
|
|
@@ -11724,10 +11757,10 @@ var UpdateMenuItemModifier = class extends AbstractApiRequest10 {
|
|
|
11724
11757
|
};
|
|
11725
11758
|
|
|
11726
11759
|
// src/requests/menu-item-price-overrides/CreateMenuItemPriceOverride.ts
|
|
11727
|
-
import { AbstractApiRequest as
|
|
11760
|
+
import { AbstractApiRequest as AbstractApiRequest12 } from "@deliverart/sdk-js-core";
|
|
11728
11761
|
var createMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverrideSchema;
|
|
11729
11762
|
var createMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11730
|
-
var CreateMenuItemPriceOverride = class extends
|
|
11763
|
+
var CreateMenuItemPriceOverride = class extends AbstractApiRequest12 {
|
|
11731
11764
|
constructor(input) {
|
|
11732
11765
|
super(input);
|
|
11733
11766
|
this.method = "POST";
|
|
@@ -11744,11 +11777,11 @@ var CreateMenuItemPriceOverride = class extends AbstractApiRequest11 {
|
|
|
11744
11777
|
};
|
|
11745
11778
|
|
|
11746
11779
|
// src/requests/menu-item-price-overrides/DeleteMenuItemPriceOverride.ts
|
|
11747
|
-
import { AbstractApiRequest as
|
|
11780
|
+
import { AbstractApiRequest as AbstractApiRequest13 } from "@deliverart/sdk-js-core";
|
|
11748
11781
|
import { emptyResponseSchema as emptyResponseSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11749
11782
|
var deleteMenuItemPriceOverrideInputSchema = external_exports.undefined();
|
|
11750
11783
|
var deleteMenuItemPriceOverrideResponseSchema = emptyResponseSchema3;
|
|
11751
|
-
var DeleteMenuItemPriceOverride = class extends
|
|
11784
|
+
var DeleteMenuItemPriceOverride = class extends AbstractApiRequest13 {
|
|
11752
11785
|
constructor(menuItemPriceOverrideId) {
|
|
11753
11786
|
super(void 0);
|
|
11754
11787
|
this.method = "DELETE";
|
|
@@ -11766,10 +11799,10 @@ var DeleteMenuItemPriceOverride = class extends AbstractApiRequest12 {
|
|
|
11766
11799
|
};
|
|
11767
11800
|
|
|
11768
11801
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrideDetails.ts
|
|
11769
|
-
import { AbstractApiRequest as
|
|
11802
|
+
import { AbstractApiRequest as AbstractApiRequest14 } from "@deliverart/sdk-js-core";
|
|
11770
11803
|
var getMenuItemPriceOverrideDetailsInputSchema = external_exports.undefined();
|
|
11771
11804
|
var getMenuItemPriceOverrideDetailsResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11772
|
-
var GetMenuItemPriceOverrideDetails = class extends
|
|
11805
|
+
var GetMenuItemPriceOverrideDetails = class extends AbstractApiRequest14 {
|
|
11773
11806
|
constructor(menuItemPriceOverrideId) {
|
|
11774
11807
|
super(void 0);
|
|
11775
11808
|
this.method = "GET";
|
|
@@ -11787,17 +11820,17 @@ var GetMenuItemPriceOverrideDetails = class extends AbstractApiRequest13 {
|
|
|
11787
11820
|
};
|
|
11788
11821
|
|
|
11789
11822
|
// src/requests/menu-item-price-overrides/GetMenuItemPriceOverrides.ts
|
|
11790
|
-
import { AbstractApiRequest as
|
|
11823
|
+
import { AbstractApiRequest as AbstractApiRequest15 } from "@deliverart/sdk-js-core";
|
|
11791
11824
|
import {
|
|
11792
|
-
createPaginatedSchema as
|
|
11793
|
-
responseToPagination as
|
|
11825
|
+
createPaginatedSchema as createPaginatedSchema4,
|
|
11826
|
+
responseToPagination as responseToPagination4
|
|
11794
11827
|
} from "@deliverart/sdk-js-global-types";
|
|
11795
11828
|
var getMenuItemPriceOverridesQuerySchema = menuItemPriceOverridesQuerySchema;
|
|
11796
11829
|
var getMenuItemPriceOverridesInputSchema = external_exports.undefined();
|
|
11797
|
-
var getMenuItemPriceOverridesResponseSchema =
|
|
11830
|
+
var getMenuItemPriceOverridesResponseSchema = createPaginatedSchema4(
|
|
11798
11831
|
menuItemPriceOverrideSchema
|
|
11799
11832
|
);
|
|
11800
|
-
var GetMenuItemPriceOverrides = class extends
|
|
11833
|
+
var GetMenuItemPriceOverrides = class extends AbstractApiRequest15 {
|
|
11801
11834
|
constructor(options) {
|
|
11802
11835
|
super(void 0, options);
|
|
11803
11836
|
this.method = "GET";
|
|
@@ -11815,16 +11848,16 @@ var GetMenuItemPriceOverrides = class extends AbstractApiRequest14 {
|
|
|
11815
11848
|
const menuItemPriceOverrides = external_exports.array(menuItemPriceOverrideSchema).parse(data);
|
|
11816
11849
|
return this.validateOutput({
|
|
11817
11850
|
data: menuItemPriceOverrides,
|
|
11818
|
-
pagination:
|
|
11851
|
+
pagination: responseToPagination4(rawResponse)
|
|
11819
11852
|
});
|
|
11820
11853
|
}
|
|
11821
11854
|
};
|
|
11822
11855
|
|
|
11823
11856
|
// src/requests/menu-item-price-overrides/UpdateMenuItemPriceOverride.ts
|
|
11824
|
-
import { AbstractApiRequest as
|
|
11857
|
+
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
11825
11858
|
var updateMenuItemPriceOverrideInputSchema = writableMenuItemPriceOverridePartialSchema;
|
|
11826
11859
|
var updateMenuItemPriceOverrideResponseSchema = menuItemPriceOverrideDetailsSchema;
|
|
11827
|
-
var UpdateMenuItemPriceOverride = class extends
|
|
11860
|
+
var UpdateMenuItemPriceOverride = class extends AbstractApiRequest16 {
|
|
11828
11861
|
constructor(menuItemPriceOverrideId, input) {
|
|
11829
11862
|
super(input);
|
|
11830
11863
|
this.method = "PATCH";
|
|
@@ -11842,10 +11875,10 @@ var UpdateMenuItemPriceOverride = class extends AbstractApiRequest15 {
|
|
|
11842
11875
|
};
|
|
11843
11876
|
|
|
11844
11877
|
// src/requests/menu-items/CreateMenuItem.ts
|
|
11845
|
-
import { AbstractApiRequest as
|
|
11878
|
+
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
11846
11879
|
var createMenuItemInputSchema = writableMenuItemSchema.required();
|
|
11847
11880
|
var createMenuItemResponseSchema = menuItemDetailsSchema;
|
|
11848
|
-
var CreateMenuItem = class extends
|
|
11881
|
+
var CreateMenuItem = class extends AbstractApiRequest17 {
|
|
11849
11882
|
constructor(input) {
|
|
11850
11883
|
super(input);
|
|
11851
11884
|
this.method = "POST";
|
|
@@ -11862,11 +11895,11 @@ var CreateMenuItem = class extends AbstractApiRequest16 {
|
|
|
11862
11895
|
};
|
|
11863
11896
|
|
|
11864
11897
|
// src/requests/menu-items/DeleteMenuItem.ts
|
|
11865
|
-
import { AbstractApiRequest as
|
|
11898
|
+
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
11866
11899
|
import { emptyResponseSchema as emptyResponseSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11867
11900
|
var deleteMenuItemInputSchema = external_exports.undefined();
|
|
11868
11901
|
var deleteMenuItemResponseSchema = emptyResponseSchema4;
|
|
11869
|
-
var DeleteMenuItem = class extends
|
|
11902
|
+
var DeleteMenuItem = class extends AbstractApiRequest18 {
|
|
11870
11903
|
constructor(menuItemId) {
|
|
11871
11904
|
super(void 0);
|
|
11872
11905
|
this.method = "DELETE";
|
|
@@ -11884,10 +11917,10 @@ var DeleteMenuItem = class extends AbstractApiRequest17 {
|
|
|
11884
11917
|
};
|
|
11885
11918
|
|
|
11886
11919
|
// src/requests/menu-items/GetMenuItemDetails.ts
|
|
11887
|
-
import { AbstractApiRequest as
|
|
11920
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
11888
11921
|
var getMenuItemDetailsInputSchema = external_exports.undefined();
|
|
11889
11922
|
var getMenuItemDetailsResponseSchema = menuItemDetailsSchema;
|
|
11890
|
-
var GetMenuItemDetails = class extends
|
|
11923
|
+
var GetMenuItemDetails = class extends AbstractApiRequest19 {
|
|
11891
11924
|
constructor(menuItemId) {
|
|
11892
11925
|
super(void 0);
|
|
11893
11926
|
this.method = "GET";
|
|
@@ -11905,15 +11938,15 @@ var GetMenuItemDetails = class extends AbstractApiRequest18 {
|
|
|
11905
11938
|
};
|
|
11906
11939
|
|
|
11907
11940
|
// src/requests/menu-items/GetMenuItems.ts
|
|
11908
|
-
import { AbstractApiRequest as
|
|
11941
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
11909
11942
|
import {
|
|
11910
|
-
createPaginatedSchema as
|
|
11911
|
-
responseToPagination as
|
|
11943
|
+
createPaginatedSchema as createPaginatedSchema5,
|
|
11944
|
+
responseToPagination as responseToPagination5
|
|
11912
11945
|
} from "@deliverart/sdk-js-global-types";
|
|
11913
11946
|
var getMenuItemsQuerySchema = menuItemsQuerySchema;
|
|
11914
11947
|
var getMenuItemsInputSchema = external_exports.undefined();
|
|
11915
|
-
var getMenuItemsResponseSchema =
|
|
11916
|
-
var GetMenuItems = class extends
|
|
11948
|
+
var getMenuItemsResponseSchema = createPaginatedSchema5(menuItemSchema);
|
|
11949
|
+
var GetMenuItems = class extends AbstractApiRequest20 {
|
|
11917
11950
|
constructor(options) {
|
|
11918
11951
|
super(void 0, options);
|
|
11919
11952
|
this.method = "GET";
|
|
@@ -11929,17 +11962,17 @@ var GetMenuItems = class extends AbstractApiRequest19 {
|
|
|
11929
11962
|
}
|
|
11930
11963
|
parseResponse(data, rawResponse) {
|
|
11931
11964
|
const menuItems = external_exports.array(menuItemSchema).parse(data);
|
|
11932
|
-
return this.validateOutput({ data: menuItems, pagination:
|
|
11965
|
+
return this.validateOutput({ data: menuItems, pagination: responseToPagination5(rawResponse) });
|
|
11933
11966
|
}
|
|
11934
11967
|
};
|
|
11935
11968
|
|
|
11936
11969
|
// src/requests/menu-items/UpdateMenuItem.ts
|
|
11937
|
-
import { AbstractApiRequest as
|
|
11970
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
11938
11971
|
var updateMenuItemInputSchema = writableMenuItemSchema.omit({
|
|
11939
11972
|
pointOfSale: true
|
|
11940
11973
|
}).partial();
|
|
11941
11974
|
var updateMenuItemResponseSchema = menuItemDetailsSchema;
|
|
11942
|
-
var UpdateMenuItem = class extends
|
|
11975
|
+
var UpdateMenuItem = class extends AbstractApiRequest21 {
|
|
11943
11976
|
constructor(menuItemId, input) {
|
|
11944
11977
|
super(input);
|
|
11945
11978
|
this.method = "PATCH";
|
|
@@ -11957,10 +11990,10 @@ var UpdateMenuItem = class extends AbstractApiRequest20 {
|
|
|
11957
11990
|
};
|
|
11958
11991
|
|
|
11959
11992
|
// src/requests/menu-versions/GetMenuVersionDetails.ts
|
|
11960
|
-
import { AbstractApiRequest as
|
|
11993
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
11961
11994
|
var getMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
11962
11995
|
var getMenuVersionDetailsResponseSchema = menuVersionSchema;
|
|
11963
|
-
var GetMenuVersionDetails = class extends
|
|
11996
|
+
var GetMenuVersionDetails = class extends AbstractApiRequest22 {
|
|
11964
11997
|
constructor(pointOfSaleId, menuVersionId) {
|
|
11965
11998
|
super(void 0);
|
|
11966
11999
|
this.method = "GET";
|
|
@@ -11979,17 +12012,17 @@ var GetMenuVersionDetails = class extends AbstractApiRequest21 {
|
|
|
11979
12012
|
};
|
|
11980
12013
|
|
|
11981
12014
|
// src/requests/menu-versions/GetMenuVersions.ts
|
|
11982
|
-
import { AbstractApiRequest as
|
|
12015
|
+
import { AbstractApiRequest as AbstractApiRequest23 } from "@deliverart/sdk-js-core";
|
|
11983
12016
|
import {
|
|
11984
|
-
createPaginatedSchema as
|
|
11985
|
-
responseToPagination as
|
|
12017
|
+
createPaginatedSchema as createPaginatedSchema6,
|
|
12018
|
+
responseToPagination as responseToPagination6
|
|
11986
12019
|
} from "@deliverart/sdk-js-global-types";
|
|
11987
12020
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
11988
12021
|
page: external_exports.coerce.number().optional()
|
|
11989
12022
|
});
|
|
11990
12023
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
11991
|
-
var getMenuVersionsResponseSchema =
|
|
11992
|
-
var GetMenuVersions = class extends
|
|
12024
|
+
var getMenuVersionsResponseSchema = createPaginatedSchema6(menuVersionSchema);
|
|
12025
|
+
var GetMenuVersions = class extends AbstractApiRequest23 {
|
|
11993
12026
|
constructor(pointOfSaleId, options) {
|
|
11994
12027
|
super(void 0, options);
|
|
11995
12028
|
this.method = "GET";
|
|
@@ -12008,7 +12041,7 @@ var GetMenuVersions = class extends AbstractApiRequest22 {
|
|
|
12008
12041
|
const menuVersions = external_exports.array(menuVersionSchema).parse(data);
|
|
12009
12042
|
return this.validateOutput({
|
|
12010
12043
|
data: menuVersions,
|
|
12011
|
-
pagination:
|
|
12044
|
+
pagination: responseToPagination6(rawResponse)
|
|
12012
12045
|
});
|
|
12013
12046
|
}
|
|
12014
12047
|
};
|
|
@@ -12022,6 +12055,7 @@ export {
|
|
|
12022
12055
|
DeleteMenuItemModifier,
|
|
12023
12056
|
DeleteMenuItemPriceOverride,
|
|
12024
12057
|
GetMenuItemCategories,
|
|
12058
|
+
GetMenuItemCategoriesFromPointOfSale,
|
|
12025
12059
|
GetMenuItemCategoryDetails,
|
|
12026
12060
|
GetMenuItemDetails,
|
|
12027
12061
|
GetMenuItemModifierDetails,
|
|
@@ -12051,6 +12085,9 @@ export {
|
|
|
12051
12085
|
deleteMenuItemPriceOverrideInputSchema,
|
|
12052
12086
|
deleteMenuItemPriceOverrideResponseSchema,
|
|
12053
12087
|
deleteMenuItemResponseSchema,
|
|
12088
|
+
getMenuItemCategoriesFromPointOfSaleInputSchema,
|
|
12089
|
+
getMenuItemCategoriesFromPointOfSaleQuerySchema,
|
|
12090
|
+
getMenuItemCategoriesFromPointOfSaleResponseSchema,
|
|
12054
12091
|
getMenuItemCategoriesInputSchema,
|
|
12055
12092
|
getMenuItemCategoriesQuerySchema,
|
|
12056
12093
|
getMenuItemCategoriesResponseSchema,
|
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.2",
|
|
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-global-types": "2.5.
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-sales-mode": "2.5.2",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.5.2",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.2",
|
|
24
|
+
"@deliverart/sdk-js-image": "2.5.2",
|
|
25
|
+
"@deliverart/sdk-js-core": "2.5.2"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|