@compassdigital/sdk.typescript 4.413.0 → 4.414.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 +11 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +13 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +26 -0
- package/src/interface/menu.ts +21 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1050,6 +1050,8 @@ import {
|
|
|
1050
1050
|
PostMenuV4UnscheduleMenuResponse,
|
|
1051
1051
|
GetMenuV4MenuQuery,
|
|
1052
1052
|
GetMenuV4MenuResponse,
|
|
1053
|
+
PostMenuV4MenuAttachmentQuery,
|
|
1054
|
+
PostMenuV4MenuAttachmentResponse,
|
|
1053
1055
|
GetMenuV4SizeQuery,
|
|
1054
1056
|
GetMenuV4SizeResponse,
|
|
1055
1057
|
GetMenuV4CategoryQuery,
|
|
@@ -11773,6 +11775,30 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11773
11775
|
);
|
|
11774
11776
|
}
|
|
11775
11777
|
|
|
11778
|
+
/**
|
|
11779
|
+
* POST /menu/v4/menu/{id}/attachment/{name}
|
|
11780
|
+
*
|
|
11781
|
+
* @param id
|
|
11782
|
+
* @param name
|
|
11783
|
+
* @param options - additional request options
|
|
11784
|
+
*/
|
|
11785
|
+
post_menu_v4_menu_attachment(
|
|
11786
|
+
id: string,
|
|
11787
|
+
name: 'thumbnail',
|
|
11788
|
+
options?: {
|
|
11789
|
+
query?: PostMenuV4MenuAttachmentQuery;
|
|
11790
|
+
} & RequestOptions,
|
|
11791
|
+
): ResponsePromise<PostMenuV4MenuAttachmentResponse> {
|
|
11792
|
+
return this.request(
|
|
11793
|
+
'menu',
|
|
11794
|
+
'/menu/v4/menu/{id}/attachment/{name}',
|
|
11795
|
+
'POST',
|
|
11796
|
+
`/menu/v4/menu/${id}/attachment/${name}`,
|
|
11797
|
+
null,
|
|
11798
|
+
options,
|
|
11799
|
+
);
|
|
11800
|
+
}
|
|
11801
|
+
|
|
11776
11802
|
/**
|
|
11777
11803
|
* GET /menu/v4/{id}/size
|
|
11778
11804
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -10718,6 +10718,27 @@ export interface GetMenuV4MenuRequest
|
|
|
10718
10718
|
RequestQuery<GetMenuV4MenuQuery>,
|
|
10719
10719
|
GetMenuV4MenuPath {}
|
|
10720
10720
|
|
|
10721
|
+
// POST /menu/v4/menu/{id}/attachment/{name}
|
|
10722
|
+
|
|
10723
|
+
export interface PostMenuV4MenuAttachmentPath {
|
|
10724
|
+
id: string;
|
|
10725
|
+
name: 'thumbnail';
|
|
10726
|
+
}
|
|
10727
|
+
|
|
10728
|
+
export interface PostMenuV4MenuAttachmentQuery {
|
|
10729
|
+
'body.data'?: string;
|
|
10730
|
+
'body.brand_id'?: string;
|
|
10731
|
+
}
|
|
10732
|
+
|
|
10733
|
+
export interface PostMenuV4MenuAttachmentResponse {
|
|
10734
|
+
status?: string;
|
|
10735
|
+
}
|
|
10736
|
+
|
|
10737
|
+
export interface PostMenuV4MenuAttachmentRequest
|
|
10738
|
+
extends BaseRequest,
|
|
10739
|
+
RequestQuery<PostMenuV4MenuAttachmentQuery>,
|
|
10740
|
+
PostMenuV4MenuAttachmentPath {}
|
|
10741
|
+
|
|
10721
10742
|
// GET /menu/v4/{id}/size
|
|
10722
10743
|
|
|
10723
10744
|
export interface GetMenuV4SizePath {
|