@compassdigital/sdk.typescript 4.625.0 → 4.627.0
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/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/discount.d.ts +1 -0
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +5 -5
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -6
- package/src/interface/discount.ts +2 -0
- package/src/interface/menu.ts +7 -7
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -908,7 +908,7 @@ import {
|
|
|
908
908
|
GetMenuV3MenuworksQuery,
|
|
909
909
|
GetMenuV3MenuworksResponse,
|
|
910
910
|
GetMenuV3MenuworksBusinessUnitsResponse,
|
|
911
|
-
|
|
911
|
+
GetMenuV3MenuworksBusinessUnitsMenuCollectionsResponse,
|
|
912
912
|
GetMenuV3MenuworksBusinessUnitsProductsQuery,
|
|
913
913
|
GetMenuV3MenuworksBusinessUnitsProductsResponse,
|
|
914
914
|
PostMenuV3MenuworksBusinessUnitsProductsSyncResponse,
|
|
@@ -10634,20 +10634,20 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10634
10634
|
}
|
|
10635
10635
|
|
|
10636
10636
|
/**
|
|
10637
|
-
* GET /menu/v3/menuworks/business_units/{unit_id}/
|
|
10637
|
+
* GET /menu/v3/menuworks/business_units/{unit_id}/menu_collections
|
|
10638
10638
|
*
|
|
10639
10639
|
* @param unit_id
|
|
10640
10640
|
* @param options - additional request options
|
|
10641
10641
|
*/
|
|
10642
|
-
|
|
10642
|
+
get_menu_v3_menuworks_business_units_menu_collections(
|
|
10643
10643
|
unit_id: string,
|
|
10644
10644
|
options?: RequestOptions,
|
|
10645
|
-
): ResponsePromise<
|
|
10645
|
+
): ResponsePromise<GetMenuV3MenuworksBusinessUnitsMenuCollectionsResponse> {
|
|
10646
10646
|
return this.request(
|
|
10647
10647
|
'menu',
|
|
10648
|
-
'/menu/v3/menuworks/business_units/{unit_id}/
|
|
10648
|
+
'/menu/v3/menuworks/business_units/{unit_id}/menu_collections',
|
|
10649
10649
|
'GET',
|
|
10650
|
-
`/menu/v3/menuworks/business_units/${unit_id}/
|
|
10650
|
+
`/menu/v3/menuworks/business_units/${unit_id}/menu_collections`,
|
|
10651
10651
|
null,
|
|
10652
10652
|
options,
|
|
10653
10653
|
);
|
|
@@ -479,6 +479,8 @@ export interface ItemDiscountContextDTO {
|
|
|
479
479
|
export interface AppliedItemResponseDTO {
|
|
480
480
|
// Cart item id this entry refers to.
|
|
481
481
|
id: string;
|
|
482
|
+
// Cart item index this entry refers to.
|
|
483
|
+
_index: string;
|
|
482
484
|
// Quantity of this cart item from the original request, copied through unchanged. Use it together with the per-discount contexts to derive how many units remain undiscounted.
|
|
483
485
|
quantity: number;
|
|
484
486
|
// Cart item display label, copied from the request for convenience.
|
package/src/interface/menu.ts
CHANGED
|
@@ -1951,7 +1951,7 @@ export interface BusinessUnitDTO {
|
|
|
1951
1951
|
[index: string]: any;
|
|
1952
1952
|
}
|
|
1953
1953
|
|
|
1954
|
-
export interface
|
|
1954
|
+
export interface MenuWorksMenuCollectionItemDTO {
|
|
1955
1955
|
menu_collection_id: number;
|
|
1956
1956
|
menu_collection_name: string;
|
|
1957
1957
|
[index: string]: any;
|
|
@@ -7879,20 +7879,20 @@ export interface GetMenuV3MenuworksBusinessUnitsResponse {
|
|
|
7879
7879
|
|
|
7880
7880
|
export interface GetMenuV3MenuworksBusinessUnitsRequest extends BaseRequest {}
|
|
7881
7881
|
|
|
7882
|
-
// GET /menu/v3/menuworks/business_units/{unit_id}/
|
|
7882
|
+
// GET /menu/v3/menuworks/business_units/{unit_id}/menu_collections
|
|
7883
7883
|
|
|
7884
|
-
export interface
|
|
7884
|
+
export interface GetMenuV3MenuworksBusinessUnitsMenuCollectionsPath {
|
|
7885
7885
|
unit_id: string;
|
|
7886
7886
|
}
|
|
7887
7887
|
|
|
7888
|
-
export interface
|
|
7889
|
-
results:
|
|
7888
|
+
export interface GetMenuV3MenuworksBusinessUnitsMenuCollectionsResponse {
|
|
7889
|
+
results: MenuWorksMenuCollectionItemDTO[];
|
|
7890
7890
|
[index: string]: any;
|
|
7891
7891
|
}
|
|
7892
7892
|
|
|
7893
|
-
export interface
|
|
7893
|
+
export interface GetMenuV3MenuworksBusinessUnitsMenuCollectionsRequest
|
|
7894
7894
|
extends BaseRequest,
|
|
7895
|
-
|
|
7895
|
+
GetMenuV3MenuworksBusinessUnitsMenuCollectionsPath {}
|
|
7896
7896
|
|
|
7897
7897
|
// GET /menu/v3/menuworks/business_units/{unit_id}/products
|
|
7898
7898
|
|