@compassdigital/sdk.typescript 4.621.0 → 4.623.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 +16 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -9
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +415 -419
- package/lib/interface/consumer.d.ts.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 +42 -21
- package/src/interface/consumer.ts +658 -444
- package/src/interface/menu.ts +21 -0
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,
|
|
@@ -1210,6 +1211,7 @@ import {
|
|
|
1210
1211
|
GetConsumerMenuRecommendedItemsQuery,
|
|
1211
1212
|
GetConsumerMenuRecommendedItemsResponse$0,
|
|
1212
1213
|
GetConsumerMenuResponse,
|
|
1214
|
+
GetConsumerMenuV2Response,
|
|
1213
1215
|
GetConsumerMenuItemsQuery,
|
|
1214
1216
|
GetConsumerMenuItemsResponse$0,
|
|
1215
1217
|
PostConsumerLocationsMarketplaceTimeslotsQuery,
|
|
@@ -1306,7 +1308,6 @@ import {
|
|
|
1306
1308
|
GetConsumerUserMealplanBarcodeResponse,
|
|
1307
1309
|
GetConsumerLocationQuery,
|
|
1308
1310
|
GetConsumerLocationResponse$0,
|
|
1309
|
-
GetConsumerMenuV2Response,
|
|
1310
1311
|
} from './interface/consumer';
|
|
1311
1312
|
|
|
1312
1313
|
import {
|
|
@@ -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
|
*
|
|
@@ -13903,6 +13924,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13903
13924
|
);
|
|
13904
13925
|
}
|
|
13905
13926
|
|
|
13927
|
+
/**
|
|
13928
|
+
* GET /consumer/v2/menu/{id} - Get full Menu by ID (v2)
|
|
13929
|
+
*
|
|
13930
|
+
* @param id - Menu ID as Encoded CDL ID
|
|
13931
|
+
* @param options - additional request options
|
|
13932
|
+
*/
|
|
13933
|
+
get_consumer_menu_v2(
|
|
13934
|
+
id: string,
|
|
13935
|
+
options?: RequestOptions,
|
|
13936
|
+
): ResponsePromise<GetConsumerMenuV2Response> {
|
|
13937
|
+
return this.request(
|
|
13938
|
+
'consumer',
|
|
13939
|
+
'/consumer/v2/menu/{id}',
|
|
13940
|
+
'GET',
|
|
13941
|
+
`/consumer/v2/menu/${id}`,
|
|
13942
|
+
null,
|
|
13943
|
+
options,
|
|
13944
|
+
);
|
|
13945
|
+
}
|
|
13946
|
+
|
|
13906
13947
|
/**
|
|
13907
13948
|
* GET /consumer/menu/{id}/items - Provide the front end with menu items
|
|
13908
13949
|
*
|
|
@@ -15061,26 +15102,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
15061
15102
|
);
|
|
15062
15103
|
}
|
|
15063
15104
|
|
|
15064
|
-
/**
|
|
15065
|
-
* GET /consumer/v2/menu/{id} - Get full Menu by ID (v2)
|
|
15066
|
-
*
|
|
15067
|
-
* @param id - Menu ID as Encoded CDL ID
|
|
15068
|
-
* @param options - additional request options
|
|
15069
|
-
*/
|
|
15070
|
-
get_consumer_menu_v2(
|
|
15071
|
-
id: string,
|
|
15072
|
-
options?: RequestOptions,
|
|
15073
|
-
): ResponsePromise<GetConsumerMenuV2Response> {
|
|
15074
|
-
return this.request(
|
|
15075
|
-
'consumer',
|
|
15076
|
-
'/consumer/v2/menu/{id}',
|
|
15077
|
-
'GET',
|
|
15078
|
-
`/consumer/v2/menu/${id}`,
|
|
15079
|
-
null,
|
|
15080
|
-
options,
|
|
15081
|
-
);
|
|
15082
|
-
}
|
|
15083
|
-
|
|
15084
15105
|
/**
|
|
15085
15106
|
* POST /ai/language/generate - Generate text from a given prompt
|
|
15086
15107
|
*
|