@compassdigital/sdk.typescript 4.622.0 → 4.624.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 +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +14 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +21 -0
- package/src/interface/menu.ts +22 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -908,6 +908,7 @@ import {
|
|
|
908
908
|
GetMenuV3MenuworksQuery,
|
|
909
909
|
GetMenuV3MenuworksResponse,
|
|
910
910
|
GetMenuV3MenuworksBusinessUnitsResponse,
|
|
911
|
+
GetMenuV3MenuworksBusinessUnitsMenuTemplatesResponse,
|
|
911
912
|
GetMenuV3MenuworksBusinessUnitsProductsQuery,
|
|
912
913
|
GetMenuV3MenuworksBusinessUnitsProductsResponse,
|
|
913
914
|
PostMenuV3MenuworksBusinessUnitsProductsSyncResponse,
|
|
@@ -10632,6 +10633,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10632
10633
|
);
|
|
10633
10634
|
}
|
|
10634
10635
|
|
|
10636
|
+
/**
|
|
10637
|
+
* GET /menu/v3/menuworks/business_units/{unit_id}/menu_templates
|
|
10638
|
+
*
|
|
10639
|
+
* @param unit_id
|
|
10640
|
+
* @param options - additional request options
|
|
10641
|
+
*/
|
|
10642
|
+
get_menu_v3_menuworks_business_units_menu_templates(
|
|
10643
|
+
unit_id: string,
|
|
10644
|
+
options?: RequestOptions,
|
|
10645
|
+
): ResponsePromise<GetMenuV3MenuworksBusinessUnitsMenuTemplatesResponse> {
|
|
10646
|
+
return this.request(
|
|
10647
|
+
'menu',
|
|
10648
|
+
'/menu/v3/menuworks/business_units/{unit_id}/menu_templates',
|
|
10649
|
+
'GET',
|
|
10650
|
+
`/menu/v3/menuworks/business_units/${unit_id}/menu_templates`,
|
|
10651
|
+
null,
|
|
10652
|
+
options,
|
|
10653
|
+
);
|
|
10654
|
+
}
|
|
10655
|
+
|
|
10635
10656
|
/**
|
|
10636
10657
|
* GET /menu/v3/menuworks/business_units/{unit_id}/products
|
|
10637
10658
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface Menu {
|
|
|
41
41
|
last_modified_user?: string;
|
|
42
42
|
centricos?: boolean;
|
|
43
43
|
version?: number;
|
|
44
|
-
//
|
|
44
|
+
// Content-derived fingerprint of the menu body, computed as a sha256 hash of the normalized content. Storage metadata that is not part of the menu's content identity (timestamps, last_modified_user, the previous revision value, s3_stored) is excluded from the hash, so no-op republishes produce the same revision and any meaningful content change (including a baked-in price level on a compiled menu) produces a new one. Consumers can compare against a previously seen value to detect whether the V2 menu has meaningfully changed (e.g. to de-dupe sync events).
|
|
45
45
|
revision?: string;
|
|
46
46
|
// V3 Brand metadata if menu came from Centric
|
|
47
47
|
brand?: {
|
|
@@ -1951,6 +1951,12 @@ export interface BusinessUnitDTO {
|
|
|
1951
1951
|
[index: string]: any;
|
|
1952
1952
|
}
|
|
1953
1953
|
|
|
1954
|
+
export interface MenuWorksMenuTemplateCollectionItemDTO {
|
|
1955
|
+
menu_collection_id: number;
|
|
1956
|
+
menu_collection_name: string;
|
|
1957
|
+
[index: string]: any;
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1954
1960
|
export interface MenuWorksProductDTO {
|
|
1955
1961
|
mrn: string;
|
|
1956
1962
|
product_type?: string;
|
|
@@ -7873,6 +7879,21 @@ export interface GetMenuV3MenuworksBusinessUnitsResponse {
|
|
|
7873
7879
|
|
|
7874
7880
|
export interface GetMenuV3MenuworksBusinessUnitsRequest extends BaseRequest {}
|
|
7875
7881
|
|
|
7882
|
+
// GET /menu/v3/menuworks/business_units/{unit_id}/menu_templates
|
|
7883
|
+
|
|
7884
|
+
export interface GetMenuV3MenuworksBusinessUnitsMenuTemplatesPath {
|
|
7885
|
+
unit_id: string;
|
|
7886
|
+
}
|
|
7887
|
+
|
|
7888
|
+
export interface GetMenuV3MenuworksBusinessUnitsMenuTemplatesResponse {
|
|
7889
|
+
results: MenuWorksMenuTemplateCollectionItemDTO[];
|
|
7890
|
+
[index: string]: any;
|
|
7891
|
+
}
|
|
7892
|
+
|
|
7893
|
+
export interface GetMenuV3MenuworksBusinessUnitsMenuTemplatesRequest
|
|
7894
|
+
extends BaseRequest,
|
|
7895
|
+
GetMenuV3MenuworksBusinessUnitsMenuTemplatesPath {}
|
|
7896
|
+
|
|
7876
7897
|
// GET /menu/v3/menuworks/business_units/{unit_id}/products
|
|
7877
7898
|
|
|
7878
7899
|
export interface GetMenuV3MenuworksBusinessUnitsProductsPath {
|