@compassdigital/sdk.typescript 4.411.0 → 4.412.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 +12 -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 +20 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -713,6 +713,8 @@ import {
|
|
|
713
713
|
GetMenuV3DraftMenusVerifyPublishResponse,
|
|
714
714
|
PostMenuV3DraftMenuDuplicateBody,
|
|
715
715
|
PostMenuV3DraftMenuDuplicateResponse,
|
|
716
|
+
PostMenuV3DraftMenuAttachmentQuery,
|
|
717
|
+
PostMenuV3DraftMenuAttachmentResponse,
|
|
716
718
|
GetMenuV3MenuQuery,
|
|
717
719
|
GetMenuV3MenuResponse,
|
|
718
720
|
GetMenuV3MenusQuery,
|
|
@@ -8075,6 +8077,30 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
8075
8077
|
);
|
|
8076
8078
|
}
|
|
8077
8079
|
|
|
8080
|
+
/**
|
|
8081
|
+
* POST /menu/v3/draft/menu/{id}/attachment/{name}
|
|
8082
|
+
*
|
|
8083
|
+
* @param id
|
|
8084
|
+
* @param name
|
|
8085
|
+
* @param options - additional request options
|
|
8086
|
+
*/
|
|
8087
|
+
post_menu_v3_draft_menu_attachment(
|
|
8088
|
+
id: string,
|
|
8089
|
+
name: 'thumbnail',
|
|
8090
|
+
options?: {
|
|
8091
|
+
query?: PostMenuV3DraftMenuAttachmentQuery;
|
|
8092
|
+
} & RequestOptions,
|
|
8093
|
+
): ResponsePromise<PostMenuV3DraftMenuAttachmentResponse> {
|
|
8094
|
+
return this.request(
|
|
8095
|
+
'menu',
|
|
8096
|
+
'/menu/v3/draft/menu/{id}/attachment/{name}',
|
|
8097
|
+
'POST',
|
|
8098
|
+
`/menu/v3/draft/menu/${id}/attachment/${name}`,
|
|
8099
|
+
null,
|
|
8100
|
+
options,
|
|
8101
|
+
);
|
|
8102
|
+
}
|
|
8103
|
+
|
|
8078
8104
|
/**
|
|
8079
8105
|
* GET /menu/v3/menu/{id}
|
|
8080
8106
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -4901,6 +4901,26 @@ export interface PostMenuV3DraftMenuDuplicateRequest
|
|
|
4901
4901
|
body: PostMenuV3DraftMenuDuplicateBody;
|
|
4902
4902
|
}
|
|
4903
4903
|
|
|
4904
|
+
// POST /menu/v3/draft/menu/{id}/attachment/{name}
|
|
4905
|
+
|
|
4906
|
+
export interface PostMenuV3DraftMenuAttachmentPath {
|
|
4907
|
+
id: string;
|
|
4908
|
+
name: 'thumbnail';
|
|
4909
|
+
}
|
|
4910
|
+
|
|
4911
|
+
export interface PostMenuV3DraftMenuAttachmentQuery {
|
|
4912
|
+
'body.data'?: string;
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4915
|
+
export interface PostMenuV3DraftMenuAttachmentResponse {
|
|
4916
|
+
status?: string;
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4919
|
+
export interface PostMenuV3DraftMenuAttachmentRequest
|
|
4920
|
+
extends BaseRequest,
|
|
4921
|
+
RequestQuery<PostMenuV3DraftMenuAttachmentQuery>,
|
|
4922
|
+
PostMenuV3DraftMenuAttachmentPath {}
|
|
4923
|
+
|
|
4904
4924
|
// GET /menu/v3/menu/{id}
|
|
4905
4925
|
|
|
4906
4926
|
export interface GetMenuV3MenuPath {
|