@compassdigital/sdk.typescript 4.480.0 → 4.482.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.480.0",
3
+ "version": "4.482.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1307,6 +1307,7 @@ import {
1307
1307
  GetRecommendationsBySiteV2Response,
1308
1308
  PostCentricosBusinessUnitValidateVertexResponse,
1309
1309
  GetCentricosMenuGlobalMenuGroupsResponse,
1310
+ PostCentricosMenuBrandItemsSearchResponse,
1310
1311
  PostCentricosMenuBrandsFetchBody,
1311
1312
  PostCentricosMenuBrandsFetchResponse,
1312
1313
  PostCentricosStationsMenusFetchBody,
@@ -14951,6 +14952,24 @@ export class ServiceClient extends BaseServiceClient {
14951
14952
  );
14952
14953
  }
14953
14954
 
14955
+ /**
14956
+ * POST /centricos/menu/brand/items/search - Search for global items across brands, menus, and categories
14957
+ *
14958
+ * @param options - additional request options
14959
+ */
14960
+ post_centricos_menu_brand_items_search(
14961
+ options?: RequestOptions,
14962
+ ): ResponsePromise<PostCentricosMenuBrandItemsSearchResponse> {
14963
+ return this.request(
14964
+ 'centricos',
14965
+ '/centricos/menu/brand/items/search',
14966
+ 'POST',
14967
+ `/centricos/menu/brand/items/search`,
14968
+ null,
14969
+ options,
14970
+ );
14971
+ }
14972
+
14954
14973
  /**
14955
14974
  * POST /centricos/menu/brands/fetch - Fetch menu brands to receive an expanded menu > category > item hierarchy
14956
14975
  *
@@ -845,14 +845,14 @@ export interface GlobalMenuGroup {
845
845
  }
846
846
 
847
847
  export interface MenuListMetadata {
848
- total_results: number;
849
- total_pages: number;
850
- result_count: number;
851
- limit: number;
852
- page: number;
853
- sort_by: string;
854
- sort_order: 'DESC' | 'ASC';
855
- soft_deleted: 'include' | 'exclude' | 'only';
848
+ total_results?: number;
849
+ total_pages?: number;
850
+ result_count?: number;
851
+ limit?: number;
852
+ page?: number;
853
+ sort_by?: string;
854
+ sort_order?: 'DESC' | 'ASC';
855
+ soft_deleted?: 'include' | 'exclude' | 'only';
856
856
  }
857
857
 
858
858
  export interface GetGlobalMenuGroupsResponse {
@@ -860,6 +860,38 @@ export interface GetGlobalMenuGroupsResponse {
860
860
  meta?: MenuListMetadata;
861
861
  }
862
862
 
863
+ export interface BrandItemsSearchMetaDTO {
864
+ result_count?: number;
865
+ }
866
+
867
+ export interface FetchItemDTO {
868
+ id?: string;
869
+ name?: string;
870
+ }
871
+
872
+ export interface FetchCategoryWithItemsDTO {
873
+ id?: string;
874
+ name?: string;
875
+ items?: FetchItemDTO[];
876
+ }
877
+
878
+ export interface FetchMenuWithItemsDTO {
879
+ id?: string;
880
+ name?: string;
881
+ categories?: FetchCategoryWithItemsDTO[];
882
+ }
883
+
884
+ export interface BrandItemsResultDTO {
885
+ id?: string;
886
+ name?: string;
887
+ menus?: FetchMenuWithItemsDTO[];
888
+ }
889
+
890
+ export interface PostBrandItemsSearchResponse {
891
+ meta?: BrandItemsSearchMetaDTO;
892
+ results?: BrandItemsResultDTO[];
893
+ }
894
+
863
895
  export interface PostMenuBrandsFetchRequestDTO {
864
896
  // Array of menu brand ids to fetch
865
897
  brand_ids: string[];
@@ -1299,6 +1331,10 @@ export type PostCentricosBusinessUnitValidateVertexResponse = ValidateVertexResp
1299
1331
 
1300
1332
  export type GetCentricosMenuGlobalMenuGroupsResponse = GetGlobalMenuGroupsResponse;
1301
1333
 
1334
+ // POST /centricos/menu/brand/items/search - Search for global items across brands, menus, and categories
1335
+
1336
+ export type PostCentricosMenuBrandItemsSearchResponse = PostBrandItemsSearchResponse;
1337
+
1302
1338
  // POST /centricos/menu/brands/fetch - Fetch menu brands to receive an expanded menu > category > item hierarchy
1303
1339
 
1304
1340
  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
  }