@compassdigital/sdk.typescript 4.468.0 → 4.469.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 +9 -13
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +12 -8
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +62 -12
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +20 -20
- package/src/interface/menu.ts +73 -20
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -938,9 +938,9 @@ import {
|
|
|
938
938
|
PostMenuV4BrandMenuDuplicateResponse,
|
|
939
939
|
GetMenuV4BrandExportQuery,
|
|
940
940
|
GetMenuV4BrandExportResponse,
|
|
941
|
-
|
|
941
|
+
PostMenuV4BrandsFetchBody,
|
|
942
942
|
PostMenuV4BrandsFetchResponse,
|
|
943
|
-
|
|
943
|
+
PostMenuV4BrandItemsSearchBody,
|
|
944
944
|
PostMenuV4BrandItemsSearchResponse,
|
|
945
945
|
PostMenuV4ItemAttachmentQuery,
|
|
946
946
|
PostMenuV4ItemAttachmentResponse,
|
|
@@ -1028,9 +1028,9 @@ import {
|
|
|
1028
1028
|
DeleteMenuV4CategoryDetachItemsResponse,
|
|
1029
1029
|
GetMenuV4CategoryAttachableItemsQuery,
|
|
1030
1030
|
GetMenuV4CategoryAttachableItemsResponse,
|
|
1031
|
-
|
|
1031
|
+
PostMenuV4StationsMenusFetchBody,
|
|
1032
1032
|
PostMenuV4StationsMenusFetchResponse,
|
|
1033
|
-
|
|
1033
|
+
PostMenuV4StationItemsSearchBody,
|
|
1034
1034
|
PostMenuV4StationItemsSearchResponse,
|
|
1035
1035
|
GetMenuV3PingResponse,
|
|
1036
1036
|
GetMenuV3HealthResponse,
|
|
@@ -10876,19 +10876,19 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10876
10876
|
/**
|
|
10877
10877
|
* POST /menu/v4/brands/fetch
|
|
10878
10878
|
*
|
|
10879
|
+
* @param body
|
|
10879
10880
|
* @param options - additional request options
|
|
10880
10881
|
*/
|
|
10881
10882
|
post_menu_v4_brands_fetch(
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
} & RequestOptions,
|
|
10883
|
+
body: PostMenuV4BrandsFetchBody,
|
|
10884
|
+
options?: RequestOptions,
|
|
10885
10885
|
): ResponsePromise<PostMenuV4BrandsFetchResponse> {
|
|
10886
10886
|
return this.request(
|
|
10887
10887
|
'menu',
|
|
10888
10888
|
'/menu/v4/brands/fetch',
|
|
10889
10889
|
'POST',
|
|
10890
10890
|
`/menu/v4/brands/fetch`,
|
|
10891
|
-
|
|
10891
|
+
body,
|
|
10892
10892
|
options,
|
|
10893
10893
|
);
|
|
10894
10894
|
}
|
|
@@ -10896,19 +10896,19 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10896
10896
|
/**
|
|
10897
10897
|
* POST /menu/v4/brand/items/search
|
|
10898
10898
|
*
|
|
10899
|
+
* @param body
|
|
10899
10900
|
* @param options - additional request options
|
|
10900
10901
|
*/
|
|
10901
10902
|
post_menu_v4_brand_items_search(
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
} & RequestOptions,
|
|
10903
|
+
body: PostMenuV4BrandItemsSearchBody,
|
|
10904
|
+
options?: RequestOptions,
|
|
10905
10905
|
): ResponsePromise<PostMenuV4BrandItemsSearchResponse> {
|
|
10906
10906
|
return this.request(
|
|
10907
10907
|
'menu',
|
|
10908
10908
|
'/menu/v4/brand/items/search',
|
|
10909
10909
|
'POST',
|
|
10910
10910
|
`/menu/v4/brand/items/search`,
|
|
10911
|
-
|
|
10911
|
+
body,
|
|
10912
10912
|
options,
|
|
10913
10913
|
);
|
|
10914
10914
|
}
|
|
@@ -11851,19 +11851,19 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11851
11851
|
/**
|
|
11852
11852
|
* POST /menu/v4/stations/menus/fetch
|
|
11853
11853
|
*
|
|
11854
|
+
* @param body
|
|
11854
11855
|
* @param options - additional request options
|
|
11855
11856
|
*/
|
|
11856
11857
|
post_menu_v4_stations_menus_fetch(
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
} & RequestOptions,
|
|
11858
|
+
body: PostMenuV4StationsMenusFetchBody,
|
|
11859
|
+
options?: RequestOptions,
|
|
11860
11860
|
): ResponsePromise<PostMenuV4StationsMenusFetchResponse> {
|
|
11861
11861
|
return this.request(
|
|
11862
11862
|
'menu',
|
|
11863
11863
|
'/menu/v4/stations/menus/fetch',
|
|
11864
11864
|
'POST',
|
|
11865
11865
|
`/menu/v4/stations/menus/fetch`,
|
|
11866
|
-
|
|
11866
|
+
body,
|
|
11867
11867
|
options,
|
|
11868
11868
|
);
|
|
11869
11869
|
}
|
|
@@ -11871,19 +11871,19 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11871
11871
|
/**
|
|
11872
11872
|
* POST /menu/v4/station/items/search
|
|
11873
11873
|
*
|
|
11874
|
+
* @param body
|
|
11874
11875
|
* @param options - additional request options
|
|
11875
11876
|
*/
|
|
11876
11877
|
post_menu_v4_station_items_search(
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
} & RequestOptions,
|
|
11878
|
+
body: PostMenuV4StationItemsSearchBody,
|
|
11879
|
+
options?: RequestOptions,
|
|
11880
11880
|
): ResponsePromise<PostMenuV4StationItemsSearchResponse> {
|
|
11881
11881
|
return this.request(
|
|
11882
11882
|
'menu',
|
|
11883
11883
|
'/menu/v4/station/items/search',
|
|
11884
11884
|
'POST',
|
|
11885
11885
|
`/menu/v4/station/items/search`,
|
|
11886
|
-
|
|
11886
|
+
body,
|
|
11887
11887
|
options,
|
|
11888
11888
|
);
|
|
11889
11889
|
}
|
package/src/interface/menu.ts
CHANGED
|
@@ -2061,6 +2061,26 @@ export interface FetchCategoryDTO {
|
|
|
2061
2061
|
name?: string;
|
|
2062
2062
|
}
|
|
2063
2063
|
|
|
2064
|
+
export interface FetchBrandItemsMenuBrandRequestDTO {
|
|
2065
|
+
id: string;
|
|
2066
|
+
name: string;
|
|
2067
|
+
menus?: FetchBrandItemsMenuRequestDTO[];
|
|
2068
|
+
[index: string]: any;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
export interface FetchBrandItemsMenuRequestDTO {
|
|
2072
|
+
id: string;
|
|
2073
|
+
name: string;
|
|
2074
|
+
categories?: FetchBrandItemsCategoryRequestDTO[];
|
|
2075
|
+
[index: string]: any;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
export interface FetchBrandItemsCategoryRequestDTO {
|
|
2079
|
+
id: string;
|
|
2080
|
+
name: string;
|
|
2081
|
+
[index: string]: any;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2064
2084
|
export interface FetchEntityWithMenusAndItemsDTO {
|
|
2065
2085
|
id?: string;
|
|
2066
2086
|
name?: string;
|
|
@@ -2204,6 +2224,33 @@ export interface FetchStationCategoryDTO {
|
|
|
2204
2224
|
[index: string]: any;
|
|
2205
2225
|
}
|
|
2206
2226
|
|
|
2227
|
+
export interface FetchStationItemsSearchSiteRequestDTO {
|
|
2228
|
+
id: string;
|
|
2229
|
+
name: string;
|
|
2230
|
+
stations: FetchStationItemsSearchStationRequestDTO[];
|
|
2231
|
+
[index: string]: any;
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
export interface FetchStationItemsSearchStationRequestDTO {
|
|
2235
|
+
id: string;
|
|
2236
|
+
name: string;
|
|
2237
|
+
menus: FetchStationItemsSearchMenuRequestDTO[];
|
|
2238
|
+
[index: string]: any;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
export interface FetchStationItemsSearchMenuRequestDTO {
|
|
2242
|
+
id: string;
|
|
2243
|
+
name: string;
|
|
2244
|
+
categories?: FetchStationItemsSearchCategoryRequestDTO[];
|
|
2245
|
+
[index: string]: any;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
export interface FetchStationItemsSearchCategoryRequestDTO {
|
|
2249
|
+
id: string;
|
|
2250
|
+
name: string;
|
|
2251
|
+
[index: string]: any;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2207
2254
|
export interface FetchSiteWithStationsDTO {
|
|
2208
2255
|
id?: string;
|
|
2209
2256
|
name?: string;
|
|
@@ -8844,8 +8891,9 @@ export interface GetMenuV4BrandExportRequest
|
|
|
8844
8891
|
|
|
8845
8892
|
// POST /menu/v4/brands/fetch
|
|
8846
8893
|
|
|
8847
|
-
export interface
|
|
8848
|
-
|
|
8894
|
+
export interface PostMenuV4BrandsFetchBody {
|
|
8895
|
+
brand_ids: string[];
|
|
8896
|
+
[index: string]: any;
|
|
8849
8897
|
}
|
|
8850
8898
|
|
|
8851
8899
|
export interface PostMenuV4BrandsFetchResponse {
|
|
@@ -8853,14 +8901,16 @@ export interface PostMenuV4BrandsFetchResponse {
|
|
|
8853
8901
|
results?: FetchEntityWithMenusDTO[];
|
|
8854
8902
|
}
|
|
8855
8903
|
|
|
8856
|
-
export interface PostMenuV4BrandsFetchRequest
|
|
8857
|
-
|
|
8858
|
-
|
|
8904
|
+
export interface PostMenuV4BrandsFetchRequest extends BaseRequest {
|
|
8905
|
+
body: PostMenuV4BrandsFetchBody;
|
|
8906
|
+
}
|
|
8859
8907
|
|
|
8860
8908
|
// POST /menu/v4/brand/items/search
|
|
8861
8909
|
|
|
8862
|
-
export interface
|
|
8863
|
-
|
|
8910
|
+
export interface PostMenuV4BrandItemsSearchBody {
|
|
8911
|
+
menuBrands: FetchBrandItemsMenuBrandRequestDTO[];
|
|
8912
|
+
searchTerm?: string;
|
|
8913
|
+
[index: string]: any;
|
|
8864
8914
|
}
|
|
8865
8915
|
|
|
8866
8916
|
export interface PostMenuV4BrandItemsSearchResponse {
|
|
@@ -8868,9 +8918,9 @@ export interface PostMenuV4BrandItemsSearchResponse {
|
|
|
8868
8918
|
results?: FetchEntityWithMenusAndItemsDTO[];
|
|
8869
8919
|
}
|
|
8870
8920
|
|
|
8871
|
-
export interface PostMenuV4BrandItemsSearchRequest
|
|
8872
|
-
|
|
8873
|
-
|
|
8921
|
+
export interface PostMenuV4BrandItemsSearchRequest extends BaseRequest {
|
|
8922
|
+
body: PostMenuV4BrandItemsSearchBody;
|
|
8923
|
+
}
|
|
8874
8924
|
|
|
8875
8925
|
// POST /menu/v4/item/{id}/attachment/{name}
|
|
8876
8926
|
|
|
@@ -10931,8 +10981,9 @@ export interface GetMenuV4CategoryAttachableItemsRequest
|
|
|
10931
10981
|
|
|
10932
10982
|
// POST /menu/v4/stations/menus/fetch
|
|
10933
10983
|
|
|
10934
|
-
export interface
|
|
10935
|
-
|
|
10984
|
+
export interface PostMenuV4StationsMenusFetchBody {
|
|
10985
|
+
station_ids: string[];
|
|
10986
|
+
[index: string]: any;
|
|
10936
10987
|
}
|
|
10937
10988
|
|
|
10938
10989
|
export interface PostMenuV4StationsMenusFetchResponse {
|
|
@@ -10940,14 +10991,16 @@ export interface PostMenuV4StationsMenusFetchResponse {
|
|
|
10940
10991
|
results?: FetchStationWithMenusDTO[];
|
|
10941
10992
|
}
|
|
10942
10993
|
|
|
10943
|
-
export interface PostMenuV4StationsMenusFetchRequest
|
|
10944
|
-
|
|
10945
|
-
|
|
10994
|
+
export interface PostMenuV4StationsMenusFetchRequest extends BaseRequest {
|
|
10995
|
+
body: PostMenuV4StationsMenusFetchBody;
|
|
10996
|
+
}
|
|
10946
10997
|
|
|
10947
10998
|
// POST /menu/v4/station/items/search
|
|
10948
10999
|
|
|
10949
|
-
export interface
|
|
10950
|
-
|
|
11000
|
+
export interface PostMenuV4StationItemsSearchBody {
|
|
11001
|
+
sites: FetchStationItemsSearchSiteRequestDTO[];
|
|
11002
|
+
searchTerm?: string;
|
|
11003
|
+
[index: string]: any;
|
|
10951
11004
|
}
|
|
10952
11005
|
|
|
10953
11006
|
export interface PostMenuV4StationItemsSearchResponse {
|
|
@@ -10955,9 +11008,9 @@ export interface PostMenuV4StationItemsSearchResponse {
|
|
|
10955
11008
|
results?: FetchSiteWithStationsDTO[];
|
|
10956
11009
|
}
|
|
10957
11010
|
|
|
10958
|
-
export interface PostMenuV4StationItemsSearchRequest
|
|
10959
|
-
|
|
10960
|
-
|
|
11011
|
+
export interface PostMenuV4StationItemsSearchRequest extends BaseRequest {
|
|
11012
|
+
body: PostMenuV4StationItemsSearchBody;
|
|
11013
|
+
}
|
|
10961
11014
|
|
|
10962
11015
|
// GET /menu/v3/ping
|
|
10963
11016
|
|