@compassdigital/sdk.typescript 4.483.0 → 4.485.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 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +43 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +3 -3
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +8 -2
- package/src/interface/centricos.ts +68 -0
- package/src/interface/menu.ts +3 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1307,7 +1307,9 @@ import {
|
|
|
1307
1307
|
GetRecommendationsBySiteV2Response,
|
|
1308
1308
|
PostCentricosBusinessUnitValidateVertexResponse,
|
|
1309
1309
|
GetCentricosMenuGlobalMenuGroupsResponse,
|
|
1310
|
+
PostCentricosMenuBrandItemsSearchBody,
|
|
1310
1311
|
PostCentricosMenuBrandItemsSearchResponse,
|
|
1312
|
+
PostCentricosMenuStationItemsSearchBody,
|
|
1311
1313
|
PostCentricosMenuStationItemsSearchResponse,
|
|
1312
1314
|
PostCentricosMenuBrandsFetchBody,
|
|
1313
1315
|
PostCentricosMenuBrandsFetchResponse,
|
|
@@ -14956,9 +14958,11 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14956
14958
|
/**
|
|
14957
14959
|
* POST /centricos/menu/brand/items/search - Search for global items across brands, menus, and categories
|
|
14958
14960
|
*
|
|
14961
|
+
* @param body
|
|
14959
14962
|
* @param options - additional request options
|
|
14960
14963
|
*/
|
|
14961
14964
|
post_centricos_menu_brand_items_search(
|
|
14965
|
+
body: PostCentricosMenuBrandItemsSearchBody,
|
|
14962
14966
|
options?: RequestOptions,
|
|
14963
14967
|
): ResponsePromise<PostCentricosMenuBrandItemsSearchResponse> {
|
|
14964
14968
|
return this.request(
|
|
@@ -14966,7 +14970,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14966
14970
|
'/centricos/menu/brand/items/search',
|
|
14967
14971
|
'POST',
|
|
14968
14972
|
`/centricos/menu/brand/items/search`,
|
|
14969
|
-
|
|
14973
|
+
body,
|
|
14970
14974
|
options,
|
|
14971
14975
|
);
|
|
14972
14976
|
}
|
|
@@ -14974,9 +14978,11 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14974
14978
|
/**
|
|
14975
14979
|
* POST /centricos/menu/station/items/search - Search for items across sites, stations, menus, and categories
|
|
14976
14980
|
*
|
|
14981
|
+
* @param body
|
|
14977
14982
|
* @param options - additional request options
|
|
14978
14983
|
*/
|
|
14979
14984
|
post_centricos_menu_station_items_search(
|
|
14985
|
+
body: PostCentricosMenuStationItemsSearchBody,
|
|
14980
14986
|
options?: RequestOptions,
|
|
14981
14987
|
): ResponsePromise<PostCentricosMenuStationItemsSearchResponse> {
|
|
14982
14988
|
return this.request(
|
|
@@ -14984,7 +14990,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14984
14990
|
'/centricos/menu/station/items/search',
|
|
14985
14991
|
'POST',
|
|
14986
14992
|
`/centricos/menu/station/items/search`,
|
|
14987
|
-
|
|
14993
|
+
body,
|
|
14988
14994
|
options,
|
|
14989
14995
|
);
|
|
14990
14996
|
}
|
|
@@ -860,6 +860,34 @@ export interface GetGlobalMenuGroupsResponse {
|
|
|
860
860
|
meta?: MenuListMetadata;
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
+
export interface BrandItemsCategoryRequestDTO {
|
|
864
|
+
// The id of the entity
|
|
865
|
+
id: string;
|
|
866
|
+
// The name of the entity
|
|
867
|
+
name: string;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export interface BrandItemsMenuRequestDTO {
|
|
871
|
+
// The id of the entity
|
|
872
|
+
id: string;
|
|
873
|
+
// The name of the entity
|
|
874
|
+
name: string;
|
|
875
|
+
categories?: BrandItemsCategoryRequestDTO[];
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export interface BrandItemsMenuBrandRequestDTO {
|
|
879
|
+
// The id of the entity
|
|
880
|
+
id: string;
|
|
881
|
+
// The name of the entity
|
|
882
|
+
name: string;
|
|
883
|
+
menus?: BrandItemsMenuRequestDTO[];
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export interface PostBrandItemsSearchBody {
|
|
887
|
+
menuBrands: BrandItemsMenuBrandRequestDTO[];
|
|
888
|
+
searchTerm?: string;
|
|
889
|
+
}
|
|
890
|
+
|
|
863
891
|
export interface ItemSearchMetaDTO {
|
|
864
892
|
// Number of results returned
|
|
865
893
|
result_count: number;
|
|
@@ -901,6 +929,42 @@ export interface PostBrandItemsSearchResponse {
|
|
|
901
929
|
results: BrandItemsResultDTO[];
|
|
902
930
|
}
|
|
903
931
|
|
|
932
|
+
export interface StationItemsCategoryRequestDTO {
|
|
933
|
+
// The id of the entity
|
|
934
|
+
id: string;
|
|
935
|
+
// The name of the entity
|
|
936
|
+
name: string;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export interface StationItemsMenuRequestDTO {
|
|
940
|
+
// The id of the entity
|
|
941
|
+
id: string;
|
|
942
|
+
// The name of the entity
|
|
943
|
+
name: string;
|
|
944
|
+
categories?: StationItemsCategoryRequestDTO[];
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
export interface StationItemsStationRequestDTO {
|
|
948
|
+
// The id of the entity
|
|
949
|
+
id: string;
|
|
950
|
+
// The name of the entity
|
|
951
|
+
name: string;
|
|
952
|
+
menus: StationItemsMenuRequestDTO[];
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export interface StationItemsSiteRequestDTO {
|
|
956
|
+
// The id of the entity
|
|
957
|
+
id: string;
|
|
958
|
+
// The name of the entity
|
|
959
|
+
name: string;
|
|
960
|
+
stations: StationItemsStationRequestDTO[];
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
export interface PostStationItemsSearchBody {
|
|
964
|
+
sites: StationItemsSiteRequestDTO[];
|
|
965
|
+
searchTerm?: string;
|
|
966
|
+
}
|
|
967
|
+
|
|
904
968
|
export interface StationItemsStationDTO {
|
|
905
969
|
// The id of the entity
|
|
906
970
|
id: string;
|
|
@@ -1363,10 +1427,14 @@ export type GetCentricosMenuGlobalMenuGroupsResponse = GetGlobalMenuGroupsRespon
|
|
|
1363
1427
|
|
|
1364
1428
|
// POST /centricos/menu/brand/items/search - Search for global items across brands, menus, and categories
|
|
1365
1429
|
|
|
1430
|
+
export type PostCentricosMenuBrandItemsSearchBody = PostBrandItemsSearchBody;
|
|
1431
|
+
|
|
1366
1432
|
export type PostCentricosMenuBrandItemsSearchResponse = PostBrandItemsSearchResponse;
|
|
1367
1433
|
|
|
1368
1434
|
// POST /centricos/menu/station/items/search - Search for items across sites, stations, menus, and categories
|
|
1369
1435
|
|
|
1436
|
+
export type PostCentricosMenuStationItemsSearchBody = PostStationItemsSearchBody;
|
|
1437
|
+
|
|
1370
1438
|
export type PostCentricosMenuStationItemsSearchResponse = PostStationItemsSearchResponse;
|
|
1371
1439
|
|
|
1372
1440
|
// POST /centricos/menu/brands/fetch - Fetch menu brands to receive an expanded menu > category > item hierarchy
|
package/src/interface/menu.ts
CHANGED
|
@@ -9001,8 +9001,8 @@ export interface PostMenuV4BrandsFetchRequest extends BaseRequest {
|
|
|
9001
9001
|
// POST /menu/v4/brand/items/search
|
|
9002
9002
|
|
|
9003
9003
|
export interface PostMenuV4BrandItemsSearchBody {
|
|
9004
|
-
|
|
9005
|
-
|
|
9004
|
+
menu_brands: FetchBrandItemsMenuBrandRequestDTO[];
|
|
9005
|
+
search_term?: string;
|
|
9006
9006
|
[index: string]: any;
|
|
9007
9007
|
}
|
|
9008
9008
|
|
|
@@ -11094,7 +11094,7 @@ export interface PostMenuV4StationsMenusFetchRequest extends BaseRequest {
|
|
|
11094
11094
|
|
|
11095
11095
|
export interface PostMenuV4StationItemsSearchBody {
|
|
11096
11096
|
sites: FetchStationItemsSearchSiteRequestDTO[];
|
|
11097
|
-
|
|
11097
|
+
search_term?: string;
|
|
11098
11098
|
[index: string]: any;
|
|
11099
11099
|
}
|
|
11100
11100
|
|