@compassdigital/sdk.typescript 4.481.0 → 4.483.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 +7 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +33 -18
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +0 -1
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +19 -0
- package/src/interface/centricos.ts +52 -18
- package/src/interface/menu.ts +0 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1308,6 +1308,7 @@ import {
|
|
|
1308
1308
|
PostCentricosBusinessUnitValidateVertexResponse,
|
|
1309
1309
|
GetCentricosMenuGlobalMenuGroupsResponse,
|
|
1310
1310
|
PostCentricosMenuBrandItemsSearchResponse,
|
|
1311
|
+
PostCentricosMenuStationItemsSearchResponse,
|
|
1311
1312
|
PostCentricosMenuBrandsFetchBody,
|
|
1312
1313
|
PostCentricosMenuBrandsFetchResponse,
|
|
1313
1314
|
PostCentricosStationsMenusFetchBody,
|
|
@@ -14970,6 +14971,24 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14970
14971
|
);
|
|
14971
14972
|
}
|
|
14972
14973
|
|
|
14974
|
+
/**
|
|
14975
|
+
* POST /centricos/menu/station/items/search - Search for items across sites, stations, menus, and categories
|
|
14976
|
+
*
|
|
14977
|
+
* @param options - additional request options
|
|
14978
|
+
*/
|
|
14979
|
+
post_centricos_menu_station_items_search(
|
|
14980
|
+
options?: RequestOptions,
|
|
14981
|
+
): ResponsePromise<PostCentricosMenuStationItemsSearchResponse> {
|
|
14982
|
+
return this.request(
|
|
14983
|
+
'centricos',
|
|
14984
|
+
'/centricos/menu/station/items/search',
|
|
14985
|
+
'POST',
|
|
14986
|
+
`/centricos/menu/station/items/search`,
|
|
14987
|
+
null,
|
|
14988
|
+
options,
|
|
14989
|
+
);
|
|
14990
|
+
}
|
|
14991
|
+
|
|
14973
14992
|
/**
|
|
14974
14993
|
* POST /centricos/menu/brands/fetch - Fetch menu brands to receive an expanded menu > category > item hierarchy
|
|
14975
14994
|
*
|
|
@@ -860,36 +860,66 @@ export interface GetGlobalMenuGroupsResponse {
|
|
|
860
860
|
meta?: MenuListMetadata;
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
-
export interface
|
|
864
|
-
|
|
863
|
+
export interface ItemSearchMetaDTO {
|
|
864
|
+
// Number of results returned
|
|
865
|
+
result_count: number;
|
|
865
866
|
}
|
|
866
867
|
|
|
867
|
-
export interface
|
|
868
|
-
id
|
|
869
|
-
|
|
868
|
+
export interface ItemSearchItemDTO {
|
|
869
|
+
// The id of the entity
|
|
870
|
+
id: string;
|
|
871
|
+
// The name of the entity
|
|
872
|
+
name: string;
|
|
870
873
|
}
|
|
871
874
|
|
|
872
|
-
export interface
|
|
873
|
-
id
|
|
874
|
-
|
|
875
|
-
|
|
875
|
+
export interface ItemSearchCategoryDTO {
|
|
876
|
+
// The id of the entity
|
|
877
|
+
id: string;
|
|
878
|
+
// The name of the entity
|
|
879
|
+
name: string;
|
|
880
|
+
items: ItemSearchItemDTO[];
|
|
876
881
|
}
|
|
877
882
|
|
|
878
|
-
export interface
|
|
879
|
-
id
|
|
880
|
-
|
|
881
|
-
|
|
883
|
+
export interface ItemSearchMenuDTO {
|
|
884
|
+
// The id of the entity
|
|
885
|
+
id: string;
|
|
886
|
+
// The name of the entity
|
|
887
|
+
name: string;
|
|
888
|
+
categories: ItemSearchCategoryDTO[];
|
|
882
889
|
}
|
|
883
890
|
|
|
884
891
|
export interface BrandItemsResultDTO {
|
|
885
|
-
id
|
|
886
|
-
|
|
887
|
-
|
|
892
|
+
// The id of the entity
|
|
893
|
+
id: string;
|
|
894
|
+
// The name of the entity
|
|
895
|
+
name: string;
|
|
896
|
+
menus: ItemSearchMenuDTO[];
|
|
888
897
|
}
|
|
889
898
|
|
|
890
899
|
export interface PostBrandItemsSearchResponse {
|
|
891
|
-
meta
|
|
892
|
-
results
|
|
900
|
+
meta: ItemSearchMetaDTO;
|
|
901
|
+
results: BrandItemsResultDTO[];
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export interface StationItemsStationDTO {
|
|
905
|
+
// The id of the entity
|
|
906
|
+
id: string;
|
|
907
|
+
// The name of the entity
|
|
908
|
+
name: string;
|
|
909
|
+
menus: ItemSearchMenuDTO[];
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export interface StationItemsSiteResultDTO {
|
|
913
|
+
// The id of the entity
|
|
914
|
+
id: string;
|
|
915
|
+
// The name of the entity
|
|
916
|
+
name: string;
|
|
917
|
+
stations: StationItemsStationDTO[];
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
export interface PostStationItemsSearchResponse {
|
|
921
|
+
meta: ItemSearchMetaDTO;
|
|
922
|
+
results: StationItemsSiteResultDTO[];
|
|
893
923
|
}
|
|
894
924
|
|
|
895
925
|
export interface PostMenuBrandsFetchRequestDTO {
|
|
@@ -1335,6 +1365,10 @@ export type GetCentricosMenuGlobalMenuGroupsResponse = GetGlobalMenuGroupsRespon
|
|
|
1335
1365
|
|
|
1336
1366
|
export type PostCentricosMenuBrandItemsSearchResponse = PostBrandItemsSearchResponse;
|
|
1337
1367
|
|
|
1368
|
+
// POST /centricos/menu/station/items/search - Search for items across sites, stations, menus, and categories
|
|
1369
|
+
|
|
1370
|
+
export type PostCentricosMenuStationItemsSearchResponse = PostStationItemsSearchResponse;
|
|
1371
|
+
|
|
1338
1372
|
// POST /centricos/menu/brands/fetch - Fetch menu brands to receive an expanded menu > category > item hierarchy
|
|
1339
1373
|
|
|
1340
1374
|
export type PostCentricosMenuBrandsFetchBody = PostMenuBrandsFetchRequestDTO;
|