@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.481.0",
3
+ "version": "4.483.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
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 BrandItemsSearchMetaDTO {
864
- result_count?: number;
863
+ export interface ItemSearchMetaDTO {
864
+ // Number of results returned
865
+ result_count: number;
865
866
  }
866
867
 
867
- export interface FetchItemDTO {
868
- id?: string;
869
- name?: string;
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 FetchCategoryWithItemsDTO {
873
- id?: string;
874
- name?: string;
875
- items?: FetchItemDTO[];
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 FetchMenuWithItemsDTO {
879
- id?: string;
880
- name?: string;
881
- categories?: FetchCategoryWithItemsDTO[];
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?: string;
886
- name?: string;
887
- menus?: FetchMenuWithItemsDTO[];
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?: BrandItemsSearchMetaDTO;
892
- results?: BrandItemsResultDTO[];
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;
@@ -2220,7 +2220,6 @@ export interface MenuSizeDTO {
2220
2220
 
2221
2221
  export interface FetchStationWithMenusDTO {
2222
2222
  id: string;
2223
- name: string;
2224
2223
  menus: FetchStationMenuDTO[];
2225
2224
  [index: string]: any;
2226
2225
  }