@mivis/petmart-api 1.2.213 → 1.2.215
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 +1 -1
- package/type.d.ts +99 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -925,6 +925,7 @@ declare namespace Components {
|
|
|
925
925
|
address: IDeliveryAddress;
|
|
926
926
|
tel: number;
|
|
927
927
|
full_name: string;
|
|
928
|
+
yandex_uuid?: string;
|
|
928
929
|
}
|
|
929
930
|
|
|
930
931
|
export interface IPVZ {
|
|
@@ -959,6 +960,7 @@ declare namespace Components {
|
|
|
959
960
|
PICKUP_POINT = 'PICKUP_POINT',
|
|
960
961
|
COURIER = 'COURIER',
|
|
961
962
|
PVZ = 'PVZ',
|
|
963
|
+
EXPRESS = 'EXPRESS',
|
|
962
964
|
}
|
|
963
965
|
|
|
964
966
|
export enum EOrderItemsStatus {
|
|
@@ -1149,6 +1151,8 @@ declare namespace Components {
|
|
|
1149
1151
|
number: number;
|
|
1150
1152
|
createdAt: Date;
|
|
1151
1153
|
updatedAt: Date;
|
|
1154
|
+
type?: DeliveryTypes,
|
|
1155
|
+
yandex_offer?: OfferDto
|
|
1152
1156
|
}
|
|
1153
1157
|
|
|
1154
1158
|
export interface IAdminMultiOrderResponse
|
|
@@ -1833,6 +1837,7 @@ declare namespace Components {
|
|
|
1833
1837
|
export interface InternalPushMessageData {
|
|
1834
1838
|
type: ENotificationType;
|
|
1835
1839
|
typeId: string;
|
|
1840
|
+
typeSlug?: string | null;
|
|
1836
1841
|
}
|
|
1837
1842
|
|
|
1838
1843
|
export interface ExternalPushMessageData {
|
|
@@ -1843,6 +1848,10 @@ declare namespace Components {
|
|
|
1843
1848
|
lat?: string; // user lat
|
|
1844
1849
|
lng?: string; // user lng
|
|
1845
1850
|
}
|
|
1851
|
+
export interface IPriceHistorySearch {
|
|
1852
|
+
priceMin?: number;
|
|
1853
|
+
priceMax?: number;
|
|
1854
|
+
}
|
|
1846
1855
|
|
|
1847
1856
|
export enum ECollectionStatus {
|
|
1848
1857
|
PUBLISHED = 'PUBLISHED',
|
|
@@ -1898,6 +1907,86 @@ declare namespace Components {
|
|
|
1898
1907
|
status: ECollectionStatus;
|
|
1899
1908
|
position: number;
|
|
1900
1909
|
}
|
|
1910
|
+
export interface IPickupPoints {
|
|
1911
|
+
lat: string;
|
|
1912
|
+
|
|
1913
|
+
lng: string;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
export interface ICalculateFastDeliveryPrice {
|
|
1917
|
+
lat: string;
|
|
1918
|
+
|
|
1919
|
+
lng: string;
|
|
1920
|
+
|
|
1921
|
+
items: IOrderItem[];
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
export interface ItemSizeDto {
|
|
1925
|
+
// product.dimension: length, width, height
|
|
1926
|
+
length: number;
|
|
1927
|
+
width: number;
|
|
1928
|
+
height: number;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
export interface ItemDto {
|
|
1932
|
+
size?: ItemSizeDto;
|
|
1933
|
+
weight?: number;
|
|
1934
|
+
quantity: number;
|
|
1935
|
+
pickup_point: number;
|
|
1936
|
+
dropoff_point: number;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
export interface RoutePointDto {
|
|
1940
|
+
id: number; // 1, 2, 3...
|
|
1941
|
+
fullname?: string;
|
|
1942
|
+
coordinates: number[]; // 37.617298, 55.755825
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
export interface DeliveryInterval {
|
|
1946
|
+
from: string;
|
|
1947
|
+
to: string;
|
|
1948
|
+
}
|
|
1949
|
+
export interface SameDayData {
|
|
1950
|
+
delivery_interval: DeliveryInterval;
|
|
1951
|
+
}
|
|
1952
|
+
export interface RequirementsDto {
|
|
1953
|
+
taxi_classes?: string[];
|
|
1954
|
+
cargo_type?: string;
|
|
1955
|
+
cargo_loaders?: number;
|
|
1956
|
+
pro_courier?: boolean;
|
|
1957
|
+
cargo_options?: string[];
|
|
1958
|
+
skip_door_to_door?: boolean;
|
|
1959
|
+
due?: string;
|
|
1960
|
+
same_day_data?: SameDayData;
|
|
1961
|
+
delivery_interval: DeliveryInterval;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
export interface YandexDeliveryRequestDto {
|
|
1965
|
+
items: ItemDto[];
|
|
1966
|
+
route_points: RoutePointDto[];
|
|
1967
|
+
requirements: RequirementsDto;
|
|
1968
|
+
}
|
|
1969
|
+
export interface PriceDto {
|
|
1970
|
+
total_price: string;
|
|
1971
|
+
total_price_with_vat: string;
|
|
1972
|
+
surge_ratio: number;
|
|
1973
|
+
currency: string;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
export interface IntervalDto {
|
|
1977
|
+
from: string;
|
|
1978
|
+
to: string;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
export interface OfferDto {
|
|
1982
|
+
price: PriceDto;
|
|
1983
|
+
taxi_class: string;
|
|
1984
|
+
pickup_interval: IntervalDto;
|
|
1985
|
+
delivery_interval: IntervalDto;
|
|
1986
|
+
description: string;
|
|
1987
|
+
payload: string;
|
|
1988
|
+
offer_ttl: string;
|
|
1989
|
+
}
|
|
1901
1990
|
|
|
1902
1991
|
export enum EProductsSortOptions {
|
|
1903
1992
|
NEWEST = 'Новинки',
|
|
@@ -1905,5 +1994,15 @@ declare namespace Components {
|
|
|
1905
1994
|
CHEAPEST = 'Дешевле',
|
|
1906
1995
|
EXPENSIVE = 'Дороже',
|
|
1907
1996
|
}
|
|
1997
|
+
|
|
1998
|
+
export enum DeliveryTypes {
|
|
1999
|
+
CDEK = "CDEK",
|
|
2000
|
+
YANDEX_EXPRESS = "YANDEX_EXPRESS"
|
|
2001
|
+
}
|
|
2002
|
+
export interface GetFastDeliveryPriceDto {
|
|
2003
|
+
items: IPopulatedOrderItem[];
|
|
2004
|
+
|
|
2005
|
+
delivery_info: Partial<IDeliveryFullInfo>;
|
|
2006
|
+
}
|
|
1908
2007
|
}
|
|
1909
2008
|
}
|