@compassdigital/sdk.typescript 4.422.0 → 4.424.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 +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +6 -4
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +8 -8
- package/src/interface/menu.ts +10 -7
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1009,8 +1009,8 @@ import {
|
|
|
1009
1009
|
GetMenuV4MenuResponse,
|
|
1010
1010
|
PostMenuV4MenuAttachmentQuery,
|
|
1011
1011
|
PostMenuV4MenuAttachmentResponse,
|
|
1012
|
-
|
|
1013
|
-
|
|
1012
|
+
GetMenuV4MenuSizeQuery,
|
|
1013
|
+
GetMenuV4MenuSizeResponse,
|
|
1014
1014
|
GetMenuV4CategoryQuery,
|
|
1015
1015
|
GetMenuV4CategoryResponse,
|
|
1016
1016
|
PostMenuV4CategoryAttachmentQuery,
|
|
@@ -11617,22 +11617,22 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11617
11617
|
}
|
|
11618
11618
|
|
|
11619
11619
|
/**
|
|
11620
|
-
* GET /menu/v4/{id}/size
|
|
11620
|
+
* GET /menu/v4/menu/{id}/size
|
|
11621
11621
|
*
|
|
11622
11622
|
* @param id
|
|
11623
11623
|
* @param options - additional request options
|
|
11624
11624
|
*/
|
|
11625
|
-
|
|
11625
|
+
get_menu_v4_menu_size(
|
|
11626
11626
|
id: string,
|
|
11627
11627
|
options?: {
|
|
11628
|
-
query?:
|
|
11628
|
+
query?: GetMenuV4MenuSizeQuery;
|
|
11629
11629
|
} & RequestOptions,
|
|
11630
|
-
): ResponsePromise<
|
|
11630
|
+
): ResponsePromise<GetMenuV4MenuSizeResponse> {
|
|
11631
11631
|
return this.request(
|
|
11632
11632
|
'menu',
|
|
11633
|
-
'/menu/v4/{id}/size',
|
|
11633
|
+
'/menu/v4/menu/{id}/size',
|
|
11634
11634
|
'GET',
|
|
11635
|
-
`/menu/v4/${id}/size`,
|
|
11635
|
+
`/menu/v4/menu/${id}/size`,
|
|
11636
11636
|
null,
|
|
11637
11637
|
options,
|
|
11638
11638
|
);
|
package/src/interface/menu.ts
CHANGED
|
@@ -66,6 +66,8 @@ export interface Menu {
|
|
|
66
66
|
export interface Nutrition {
|
|
67
67
|
amount?: number;
|
|
68
68
|
unit?: string;
|
|
69
|
+
// FDA-compliant formatted display string (e.g., '15 kcal', '<1 g', 'less than 5 mg')
|
|
70
|
+
display?: string;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
export interface Item {
|
|
@@ -106,6 +108,7 @@ export interface Item {
|
|
|
106
108
|
total_carbohydrate?: Nutrition;
|
|
107
109
|
dietary_fiber?: Nutrition;
|
|
108
110
|
sugars?: Nutrition;
|
|
111
|
+
total_sugars?: Nutrition;
|
|
109
112
|
protein?: Nutrition;
|
|
110
113
|
well_being?: Nutrition;
|
|
111
114
|
[index: string]: any;
|
|
@@ -10483,27 +10486,27 @@ export interface PostMenuV4MenuAttachmentRequest
|
|
|
10483
10486
|
RequestQuery<PostMenuV4MenuAttachmentQuery>,
|
|
10484
10487
|
PostMenuV4MenuAttachmentPath {}
|
|
10485
10488
|
|
|
10486
|
-
// GET /menu/v4/{id}/size
|
|
10489
|
+
// GET /menu/v4/menu/{id}/size
|
|
10487
10490
|
|
|
10488
|
-
export interface
|
|
10491
|
+
export interface GetMenuV4MenuSizePath {
|
|
10489
10492
|
id: string;
|
|
10490
10493
|
}
|
|
10491
10494
|
|
|
10492
|
-
export interface
|
|
10495
|
+
export interface GetMenuV4MenuSizeQuery {
|
|
10493
10496
|
with_parent?: boolean;
|
|
10494
10497
|
}
|
|
10495
10498
|
|
|
10496
|
-
export interface
|
|
10499
|
+
export interface GetMenuV4MenuSizeResponse {
|
|
10497
10500
|
id: string;
|
|
10498
10501
|
name: string;
|
|
10499
10502
|
size: MenuSizeDTO;
|
|
10500
10503
|
[index: string]: any;
|
|
10501
10504
|
}
|
|
10502
10505
|
|
|
10503
|
-
export interface
|
|
10506
|
+
export interface GetMenuV4MenuSizeRequest
|
|
10504
10507
|
extends BaseRequest,
|
|
10505
|
-
RequestQuery<
|
|
10506
|
-
|
|
10508
|
+
RequestQuery<GetMenuV4MenuSizeQuery>,
|
|
10509
|
+
GetMenuV4MenuSizePath {}
|
|
10507
10510
|
|
|
10508
10511
|
// GET /menu/v4/category/{id}
|
|
10509
10512
|
|