@compassdigital/sdk.typescript 4.679.0 → 4.681.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 +7 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +9 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/location.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +19 -0
- package/src/interface/consumer.ts +18 -0
- package/src/interface/location.ts +1 -0
package/src/index.ts
CHANGED
|
@@ -1228,6 +1228,7 @@ import {
|
|
|
1228
1228
|
GetConsumerActiveMenusResponse,
|
|
1229
1229
|
GetConsumerMenuRecommendedItemsQuery,
|
|
1230
1230
|
GetConsumerMenuRecommendedItemsResponse$0,
|
|
1231
|
+
GetConsumerAllergensListResponse,
|
|
1231
1232
|
GetConsumerMenuResponse,
|
|
1232
1233
|
GetConsumerMenuV2Response,
|
|
1233
1234
|
GetConsumerMenuItemsQuery,
|
|
@@ -14135,6 +14136,24 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14135
14136
|
);
|
|
14136
14137
|
}
|
|
14137
14138
|
|
|
14139
|
+
/**
|
|
14140
|
+
* GET /consumer/menu/allergens - Returns ordered list of allergens that menu items can be later sorted by. Defined ourselves for now manually.
|
|
14141
|
+
*
|
|
14142
|
+
* @param options - additional request options
|
|
14143
|
+
*/
|
|
14144
|
+
get_consumer_allergens_list(
|
|
14145
|
+
options?: RequestOptions,
|
|
14146
|
+
): ResponsePromise<GetConsumerAllergensListResponse> {
|
|
14147
|
+
return this.request(
|
|
14148
|
+
'consumer',
|
|
14149
|
+
'/consumer/menu/allergens',
|
|
14150
|
+
'GET',
|
|
14151
|
+
`/consumer/menu/allergens`,
|
|
14152
|
+
null,
|
|
14153
|
+
options,
|
|
14154
|
+
);
|
|
14155
|
+
}
|
|
14156
|
+
|
|
14138
14157
|
/**
|
|
14139
14158
|
* GET /consumer/menu/{id} - Get full Menu by ID
|
|
14140
14159
|
*
|
|
@@ -1938,6 +1938,18 @@ export interface GetConsumerMenuRecommendedItemsResponse {
|
|
|
1938
1938
|
items: ConsumerItem[];
|
|
1939
1939
|
}
|
|
1940
1940
|
|
|
1941
|
+
export interface Allergen {
|
|
1942
|
+
// Key for localization, icons, and filtering
|
|
1943
|
+
key: string;
|
|
1944
|
+
// Allergen display name
|
|
1945
|
+
name: string;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
export interface GetAllergensResponse {
|
|
1949
|
+
// List of allergens
|
|
1950
|
+
allergens: Allergen[];
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1941
1953
|
export interface GetMenuLabelConsumer {
|
|
1942
1954
|
// English
|
|
1943
1955
|
en?: string;
|
|
@@ -2109,6 +2121,8 @@ export interface GetMenuItemOptionsGroupConsumer {
|
|
|
2109
2121
|
}
|
|
2110
2122
|
|
|
2111
2123
|
export interface MenuRecipeAllergenConsumer {
|
|
2124
|
+
// Allergen key for localization, icons, and filtering
|
|
2125
|
+
key?: string;
|
|
2112
2126
|
// Allergen name
|
|
2113
2127
|
name?: string;
|
|
2114
2128
|
// Allergen contains status: 'Yes' or 'AtRisk'
|
|
@@ -4767,6 +4781,10 @@ export interface GetConsumerMenuRecommendedItemsQuery {
|
|
|
4767
4781
|
|
|
4768
4782
|
export type GetConsumerMenuRecommendedItemsResponse$0 = GetConsumerMenuRecommendedItemsResponse;
|
|
4769
4783
|
|
|
4784
|
+
// GET /consumer/menu/allergens - Returns ordered list of allergens that menu items can be later sorted by. Defined ourselves for now manually.
|
|
4785
|
+
|
|
4786
|
+
export type GetConsumerAllergensListResponse = GetAllergensResponse;
|
|
4787
|
+
|
|
4770
4788
|
// GET /consumer/menu/{id} - Get full Menu by ID
|
|
4771
4789
|
|
|
4772
4790
|
export interface GetConsumerMenuPath {
|