@compassdigital/sdk.typescript 4.465.0 → 4.466.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 +33 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +32 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +103 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +88 -0
- package/src/interface/menu.ts +141 -0
package/lib/interface/menu.d.ts
CHANGED
|
@@ -1822,6 +1822,42 @@ export interface SwappedCategoryDTO {
|
|
|
1822
1822
|
category_id?: string;
|
|
1823
1823
|
sequence?: number;
|
|
1824
1824
|
}
|
|
1825
|
+
export interface FetchMetaDTO {
|
|
1826
|
+
result_count?: number;
|
|
1827
|
+
}
|
|
1828
|
+
export interface FetchEntityWithMenusDTO {
|
|
1829
|
+
id?: string;
|
|
1830
|
+
name?: string;
|
|
1831
|
+
menus?: FetchMenuDTO[];
|
|
1832
|
+
}
|
|
1833
|
+
export interface FetchMenuDTO {
|
|
1834
|
+
id?: string;
|
|
1835
|
+
name?: string;
|
|
1836
|
+
categories?: FetchCategoryDTO[];
|
|
1837
|
+
}
|
|
1838
|
+
export interface FetchCategoryDTO {
|
|
1839
|
+
id?: string;
|
|
1840
|
+
name?: string;
|
|
1841
|
+
}
|
|
1842
|
+
export interface FetchEntityWithMenusAndItemsDTO {
|
|
1843
|
+
id?: string;
|
|
1844
|
+
name?: string;
|
|
1845
|
+
menus?: FetchMenuWithItemsDTO[];
|
|
1846
|
+
}
|
|
1847
|
+
export interface FetchMenuWithItemsDTO {
|
|
1848
|
+
id?: string;
|
|
1849
|
+
name?: string;
|
|
1850
|
+
categories?: FetchCategoryWithItemsDTO[];
|
|
1851
|
+
}
|
|
1852
|
+
export interface FetchCategoryWithItemsDTO {
|
|
1853
|
+
id?: string;
|
|
1854
|
+
name?: string;
|
|
1855
|
+
items?: FetchItemDTO[];
|
|
1856
|
+
}
|
|
1857
|
+
export interface FetchItemDTO {
|
|
1858
|
+
id?: string;
|
|
1859
|
+
name?: string;
|
|
1860
|
+
}
|
|
1825
1861
|
export interface PartialItemDTO {
|
|
1826
1862
|
base_item_id?: string;
|
|
1827
1863
|
is_published?: boolean;
|
|
@@ -1920,6 +1956,37 @@ export interface MenuSizeDTO {
|
|
|
1920
1956
|
compressed: number;
|
|
1921
1957
|
[index: string]: any;
|
|
1922
1958
|
}
|
|
1959
|
+
export interface FetchStationWithMenusDTO {
|
|
1960
|
+
id?: string;
|
|
1961
|
+
name?: string;
|
|
1962
|
+
menus?: FetchStationMenuDTO[];
|
|
1963
|
+
}
|
|
1964
|
+
export interface FetchStationMenuDTO {
|
|
1965
|
+
id?: string;
|
|
1966
|
+
name?: string;
|
|
1967
|
+
categories?: FetchStationCategoryDTO[];
|
|
1968
|
+
}
|
|
1969
|
+
export interface FetchStationCategoryDTO {
|
|
1970
|
+
items?: FetchItemDTO[];
|
|
1971
|
+
id?: string;
|
|
1972
|
+
name?: string;
|
|
1973
|
+
[index: string]: any;
|
|
1974
|
+
}
|
|
1975
|
+
export interface FetchSiteWithStationsDTO {
|
|
1976
|
+
id?: string;
|
|
1977
|
+
name?: string;
|
|
1978
|
+
stations?: FetchStationDTO[];
|
|
1979
|
+
}
|
|
1980
|
+
export interface FetchStationDTO {
|
|
1981
|
+
id?: string;
|
|
1982
|
+
name?: string;
|
|
1983
|
+
menus?: FetchStationItemStationMenuDTO[];
|
|
1984
|
+
}
|
|
1985
|
+
export interface FetchStationItemStationMenuDTO {
|
|
1986
|
+
id?: string;
|
|
1987
|
+
name?: string;
|
|
1988
|
+
categories?: FetchCategoryWithItemsDTO[];
|
|
1989
|
+
}
|
|
1923
1990
|
export interface HealthDependencyDTO {
|
|
1924
1991
|
name: string;
|
|
1925
1992
|
status: string;
|
|
@@ -6519,6 +6586,24 @@ export interface GetMenuV4BrandExportResponse {
|
|
|
6519
6586
|
}
|
|
6520
6587
|
export interface GetMenuV4BrandExportRequest extends BaseRequest, RequestQuery<GetMenuV4BrandExportQuery>, GetMenuV4BrandExportPath {
|
|
6521
6588
|
}
|
|
6589
|
+
export interface PostMenuV4BrandsFetchQuery {
|
|
6590
|
+
'body.brand_ids'?: string[];
|
|
6591
|
+
}
|
|
6592
|
+
export interface PostMenuV4BrandsFetchResponse {
|
|
6593
|
+
meta?: FetchMetaDTO;
|
|
6594
|
+
results?: FetchEntityWithMenusDTO[];
|
|
6595
|
+
}
|
|
6596
|
+
export interface PostMenuV4BrandsFetchRequest extends BaseRequest, RequestQuery<PostMenuV4BrandsFetchQuery> {
|
|
6597
|
+
}
|
|
6598
|
+
export interface PostMenuV4BrandItemsSearchQuery {
|
|
6599
|
+
'body.brand_ids'?: string[];
|
|
6600
|
+
}
|
|
6601
|
+
export interface PostMenuV4BrandItemsSearchResponse {
|
|
6602
|
+
meta?: FetchMetaDTO;
|
|
6603
|
+
menuBrands?: FetchEntityWithMenusAndItemsDTO[];
|
|
6604
|
+
}
|
|
6605
|
+
export interface PostMenuV4BrandItemsSearchRequest extends BaseRequest, RequestQuery<PostMenuV4BrandItemsSearchQuery> {
|
|
6606
|
+
}
|
|
6522
6607
|
export interface PostMenuV4ItemAttachmentPath {
|
|
6523
6608
|
id: string;
|
|
6524
6609
|
name: 'thumbnail';
|
|
@@ -8267,6 +8352,24 @@ export interface GetMenuV4CategoryAttachableItemsResponse {
|
|
|
8267
8352
|
}
|
|
8268
8353
|
export interface GetMenuV4CategoryAttachableItemsRequest extends BaseRequest, RequestQuery<GetMenuV4CategoryAttachableItemsQuery>, GetMenuV4CategoryAttachableItemsPath {
|
|
8269
8354
|
}
|
|
8355
|
+
export interface PostMenuV4StationsMenusFetchQuery {
|
|
8356
|
+
'body.station_ids'?: string[];
|
|
8357
|
+
}
|
|
8358
|
+
export interface PostMenuV4StationsMenusFetchResponse {
|
|
8359
|
+
meta?: FetchMetaDTO;
|
|
8360
|
+
results?: FetchStationWithMenusDTO[];
|
|
8361
|
+
}
|
|
8362
|
+
export interface PostMenuV4StationsMenusFetchRequest extends BaseRequest, RequestQuery<PostMenuV4StationsMenusFetchQuery> {
|
|
8363
|
+
}
|
|
8364
|
+
export interface PostMenuV4StationItemsSearchQuery {
|
|
8365
|
+
'body.station_ids'?: string[];
|
|
8366
|
+
}
|
|
8367
|
+
export interface PostMenuV4StationItemsSearchResponse {
|
|
8368
|
+
meta?: FetchMetaDTO;
|
|
8369
|
+
sites?: FetchSiteWithStationsDTO[];
|
|
8370
|
+
}
|
|
8371
|
+
export interface PostMenuV4StationItemsSearchRequest extends BaseRequest, RequestQuery<PostMenuV4StationItemsSearchQuery> {
|
|
8372
|
+
}
|
|
8270
8373
|
export interface GetMenuV3PingResponse {
|
|
8271
8374
|
status: string;
|
|
8272
8375
|
message: string;
|