@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/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 +35 -8
- 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 +44 -8
- package/src/interface/menu.ts +0 -1
package/package.json
CHANGED
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
|
|
849
|
-
total_pages
|
|
850
|
-
result_count
|
|
851
|
-
limit
|
|
852
|
-
page
|
|
853
|
-
sort_by
|
|
854
|
-
sort_order
|
|
855
|
-
soft_deleted
|
|
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;
|