@compassdigital/sdk.typescript 4.163.0 → 4.164.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 +19 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +43 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +48 -0
- package/src/interface/menu.ts +71 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -991,6 +991,8 @@ import {
|
|
|
991
991
|
PostMenuV4ModifierGroupDuplicateResponse,
|
|
992
992
|
DeleteMenuV4ModifierGroupModifiersDetachBody,
|
|
993
993
|
DeleteMenuV4ModifierGroupModifiersDetachResponse,
|
|
994
|
+
GetMenuV4ModifierGroupAttachableModifiersQuery,
|
|
995
|
+
GetMenuV4ModifierGroupAttachableModifiersResponse,
|
|
994
996
|
PatchMenuV4StockBusinessUnitBody,
|
|
995
997
|
PatchMenuV4StockBusinessUnitResponse,
|
|
996
998
|
PatchMenuV4StockBody,
|
|
@@ -1017,6 +1019,8 @@ import {
|
|
|
1017
1019
|
PostMenuV4CategoryAttachmentResponse,
|
|
1018
1020
|
DeleteMenuV4CategoryDetachItemsBody,
|
|
1019
1021
|
DeleteMenuV4CategoryDetachItemsResponse,
|
|
1022
|
+
GetMenuV4CategoryAttachableItemsQuery,
|
|
1023
|
+
GetMenuV4CategoryAttachableItemsResponse,
|
|
1020
1024
|
} from './interface/menu';
|
|
1021
1025
|
|
|
1022
1026
|
import {
|
|
@@ -10842,6 +10846,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10842
10846
|
);
|
|
10843
10847
|
}
|
|
10844
10848
|
|
|
10849
|
+
/**
|
|
10850
|
+
* GET /menu/v4/modifier-group/{id}/attachable-modifiers
|
|
10851
|
+
*
|
|
10852
|
+
* @param id
|
|
10853
|
+
* @param options - additional request options
|
|
10854
|
+
*/
|
|
10855
|
+
get_menu_v4_modifier_group_attachable_modifiers(
|
|
10856
|
+
id: string,
|
|
10857
|
+
options?: {
|
|
10858
|
+
query?: GetMenuV4ModifierGroupAttachableModifiersQuery;
|
|
10859
|
+
} & RequestOptions,
|
|
10860
|
+
): ResponsePromise<GetMenuV4ModifierGroupAttachableModifiersResponse> {
|
|
10861
|
+
return this.request(
|
|
10862
|
+
'menu',
|
|
10863
|
+
'/menu/v4/modifier-group/{id}/attachable-modifiers',
|
|
10864
|
+
'GET',
|
|
10865
|
+
`/menu/v4/modifier-group/${id}/attachable-modifiers`,
|
|
10866
|
+
null,
|
|
10867
|
+
options,
|
|
10868
|
+
);
|
|
10869
|
+
}
|
|
10870
|
+
|
|
10845
10871
|
/**
|
|
10846
10872
|
* PATCH /menu/v4/stock/business-unit
|
|
10847
10873
|
*
|
|
@@ -11111,6 +11137,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11111
11137
|
);
|
|
11112
11138
|
}
|
|
11113
11139
|
|
|
11140
|
+
/**
|
|
11141
|
+
* GET /menu/v4/category/{id}/attachable-items
|
|
11142
|
+
*
|
|
11143
|
+
* @param id
|
|
11144
|
+
* @param options - additional request options
|
|
11145
|
+
*/
|
|
11146
|
+
get_menu_v4_category_attachable_items(
|
|
11147
|
+
id: string,
|
|
11148
|
+
options?: {
|
|
11149
|
+
query?: GetMenuV4CategoryAttachableItemsQuery;
|
|
11150
|
+
} & RequestOptions,
|
|
11151
|
+
): ResponsePromise<GetMenuV4CategoryAttachableItemsResponse> {
|
|
11152
|
+
return this.request(
|
|
11153
|
+
'menu',
|
|
11154
|
+
'/menu/v4/category/{id}/attachable-items',
|
|
11155
|
+
'GET',
|
|
11156
|
+
`/menu/v4/category/${id}/attachable-items`,
|
|
11157
|
+
null,
|
|
11158
|
+
options,
|
|
11159
|
+
);
|
|
11160
|
+
}
|
|
11161
|
+
|
|
11114
11162
|
/**
|
|
11115
11163
|
* GET /catalog/status - Get the status of the Catalog service
|
|
11116
11164
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -7526,6 +7526,7 @@ export interface GetMenuV4BrandPath {
|
|
|
7526
7526
|
}
|
|
7527
7527
|
|
|
7528
7528
|
export interface GetMenuV4BrandQuery {
|
|
7529
|
+
with_parent?: boolean;
|
|
7529
7530
|
// Graphql query string
|
|
7530
7531
|
_query?: string;
|
|
7531
7532
|
}
|
|
@@ -9915,6 +9916,41 @@ export interface DeleteMenuV4ModifierGroupModifiersDetachRequest
|
|
|
9915
9916
|
body: DeleteMenuV4ModifierGroupModifiersDetachBody;
|
|
9916
9917
|
}
|
|
9917
9918
|
|
|
9919
|
+
// GET /menu/v4/modifier-group/{id}/attachable-modifiers
|
|
9920
|
+
|
|
9921
|
+
export interface GetMenuV4ModifierGroupAttachableModifiersPath {
|
|
9922
|
+
id: string;
|
|
9923
|
+
}
|
|
9924
|
+
|
|
9925
|
+
export interface GetMenuV4ModifierGroupAttachableModifiersQuery {
|
|
9926
|
+
filter?: string;
|
|
9927
|
+
// If specified, only the selected fields will be returned
|
|
9928
|
+
select?: string[];
|
|
9929
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
9930
|
+
relationships?: string[];
|
|
9931
|
+
// Number of records to load per page
|
|
9932
|
+
limit?: number;
|
|
9933
|
+
page?: number;
|
|
9934
|
+
// A field to sort the results based on
|
|
9935
|
+
sort_by?: string;
|
|
9936
|
+
sort_order?: 'DESC' | 'ASC';
|
|
9937
|
+
// How soft deleted records should be shown in the list
|
|
9938
|
+
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
9939
|
+
// Graphql query string
|
|
9940
|
+
_query?: string;
|
|
9941
|
+
}
|
|
9942
|
+
|
|
9943
|
+
export interface GetMenuV4ModifierGroupAttachableModifiersResponse {
|
|
9944
|
+
results: DraftModifierDTO[];
|
|
9945
|
+
meta?: ListResponseMetadataDTO;
|
|
9946
|
+
[index: string]: any;
|
|
9947
|
+
}
|
|
9948
|
+
|
|
9949
|
+
export interface GetMenuV4ModifierGroupAttachableModifiersRequest
|
|
9950
|
+
extends BaseRequest,
|
|
9951
|
+
RequestQuery<GetMenuV4ModifierGroupAttachableModifiersQuery>,
|
|
9952
|
+
GetMenuV4ModifierGroupAttachableModifiersPath {}
|
|
9953
|
+
|
|
9918
9954
|
// PATCH /menu/v4/stock/business-unit
|
|
9919
9955
|
|
|
9920
9956
|
export interface PatchMenuV4StockBusinessUnitBody {
|
|
@@ -10297,3 +10333,38 @@ export interface DeleteMenuV4CategoryDetachItemsRequest
|
|
|
10297
10333
|
DeleteMenuV4CategoryDetachItemsPath {
|
|
10298
10334
|
body: DeleteMenuV4CategoryDetachItemsBody;
|
|
10299
10335
|
}
|
|
10336
|
+
|
|
10337
|
+
// GET /menu/v4/category/{id}/attachable-items
|
|
10338
|
+
|
|
10339
|
+
export interface GetMenuV4CategoryAttachableItemsPath {
|
|
10340
|
+
id: string;
|
|
10341
|
+
}
|
|
10342
|
+
|
|
10343
|
+
export interface GetMenuV4CategoryAttachableItemsQuery {
|
|
10344
|
+
filter?: string;
|
|
10345
|
+
// If specified, only the selected fields will be returned
|
|
10346
|
+
select?: string[];
|
|
10347
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
10348
|
+
relationships?: string[];
|
|
10349
|
+
// Number of records to load per page
|
|
10350
|
+
limit?: number;
|
|
10351
|
+
page?: number;
|
|
10352
|
+
// A field to sort the results based on
|
|
10353
|
+
sort_by?: string;
|
|
10354
|
+
sort_order?: 'DESC' | 'ASC';
|
|
10355
|
+
// How soft deleted records should be shown in the list
|
|
10356
|
+
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
10357
|
+
// Graphql query string
|
|
10358
|
+
_query?: string;
|
|
10359
|
+
}
|
|
10360
|
+
|
|
10361
|
+
export interface GetMenuV4CategoryAttachableItemsResponse {
|
|
10362
|
+
results: DraftItemDTO[];
|
|
10363
|
+
meta?: ListResponseMetadataDTO;
|
|
10364
|
+
[index: string]: any;
|
|
10365
|
+
}
|
|
10366
|
+
|
|
10367
|
+
export interface GetMenuV4CategoryAttachableItemsRequest
|
|
10368
|
+
extends BaseRequest,
|
|
10369
|
+
RequestQuery<GetMenuV4CategoryAttachableItemsQuery>,
|
|
10370
|
+
GetMenuV4CategoryAttachableItemsPath {}
|