@omnic/widget-locations 1.0.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/README.md +47 -0
- package/dist/lib/src/api/client.d.ts +1 -0
- package/dist/lib/src/components/Aside/Aside.d.ts +9 -0
- package/dist/lib/src/components/Aside/index.d.ts +1 -0
- package/dist/lib/src/components/AsyncSelect/AsyncSelect.d.ts +9 -0
- package/dist/lib/src/components/AsyncSelect/index.d.ts +1 -0
- package/dist/lib/src/components/Balloon/Balloon.d.ts +9 -0
- package/dist/lib/src/components/Balloon/index.d.ts +1 -0
- package/dist/lib/src/components/Button/Button.d.ts +13 -0
- package/dist/lib/src/components/Button/index.d.ts +1 -0
- package/dist/lib/src/components/Checkbox/Checkbox.d.ts +2 -0
- package/dist/lib/src/components/Checkbox/index.d.ts +1 -0
- package/dist/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +9 -0
- package/dist/lib/src/components/CheckboxGroup/index.d.ts +1 -0
- package/dist/lib/src/components/CurrentLocation/CurrentLocation.d.ts +6 -0
- package/dist/lib/src/components/CurrentLocation/index.d.ts +1 -0
- package/dist/lib/src/components/Header/Header.d.ts +6 -0
- package/dist/lib/src/components/Header/index.d.ts +1 -0
- package/dist/lib/src/components/Hr/Hr.d.ts +4 -0
- package/dist/lib/src/components/Hr/index.d.ts +1 -0
- package/dist/lib/src/components/Layout/Layout.d.ts +6 -0
- package/dist/lib/src/components/Layout/index.d.ts +1 -0
- package/dist/lib/src/components/LocationAside/LocationAside.d.ts +1 -0
- package/dist/lib/src/components/LocationAside/index.d.ts +1 -0
- package/dist/lib/src/components/LocationDetailsModal/LocationDetailsModal.d.ts +10 -0
- package/dist/lib/src/components/LocationDetailsModal/index.d.ts +1 -0
- package/dist/lib/src/components/LocationSelector/LocationSelector.d.ts +9 -0
- package/dist/lib/src/components/LocationSelector/index.d.ts +1 -0
- package/dist/lib/src/components/MapGoogle/MapGoogle.constants.d.ts +4 -0
- package/dist/lib/src/components/MapGoogle/MapGoogle.d.ts +5 -0
- package/dist/lib/src/components/MapGoogle/index.d.ts +1 -0
- package/dist/lib/src/components/MapYandex/MapYandex.constants.d.ts +12 -0
- package/dist/lib/src/components/MapYandex/MapYandex.d.ts +4 -0
- package/dist/lib/src/components/MapYandex/MapYandex.utils.d.ts +23 -0
- package/dist/lib/src/components/MapYandex/index.d.ts +1 -0
- package/dist/lib/src/components/Overlay/Overlay.d.ts +7 -0
- package/dist/lib/src/components/Overlay/index.d.ts +1 -0
- package/dist/lib/src/components/Radio/Radio.d.ts +8 -0
- package/dist/lib/src/components/Radio/index.d.ts +1 -0
- package/dist/lib/src/components/Sidebar/Sidebar.d.ts +6 -0
- package/dist/lib/src/components/Sidebar/index.d.ts +1 -0
- package/dist/lib/src/components/Spinner/Spinner.d.ts +1 -0
- package/dist/lib/src/components/Spinner/index.d.ts +1 -0
- package/dist/lib/src/components/TypeFilter/TypeFilter.d.ts +9 -0
- package/dist/lib/src/components/TypeFilter/index.d.ts +1 -0
- package/dist/lib/src/constants/global.d.ts +1 -0
- package/dist/lib/src/constants/limits.d.ts +1 -0
- package/dist/lib/src/constants/map.d.ts +3 -0
- package/dist/lib/src/context/config.d.ts +3 -0
- package/dist/lib/src/context/filter.d.ts +9 -0
- package/dist/lib/src/context/location.d.ts +13 -0
- package/dist/lib/src/context/points.d.ts +11 -0
- package/dist/lib/src/hooks/index.d.ts +7 -0
- package/dist/lib/src/hooks/useConfig.d.ts +2 -0
- package/dist/lib/src/hooks/useFilters.d.ts +5 -0
- package/dist/lib/src/hooks/useInitializeAxios.d.ts +2 -0
- package/dist/lib/src/hooks/useLocation.d.ts +8 -0
- package/dist/lib/src/hooks/useLocationAside.d.ts +4 -0
- package/dist/lib/src/hooks/useMapFactory.d.ts +2 -0
- package/dist/lib/src/hooks/usePoints.d.ts +16 -0
- package/dist/lib/src/i18n.d.ts +127 -0
- package/dist/lib/src/index.d.ts +1 -0
- package/dist/lib/src/services/cities.d.ts +17 -0
- package/dist/lib/src/services/countries.d.ts +12 -0
- package/dist/lib/src/services/points.d.ts +11 -0
- package/dist/lib/src/types/cities.d.ts +11 -0
- package/dist/lib/src/types/config.d.ts +21 -0
- package/dist/lib/src/types/countries.d.ts +5 -0
- package/dist/lib/src/types/filters.d.ts +34 -0
- package/dist/lib/src/types/i18n.d.ts +2 -0
- package/dist/lib/src/types/map.d.ts +6 -0
- package/dist/lib/src/types/points.d.ts +56 -0
- package/dist/lib/src/types/regions.d.ts +5 -0
- package/dist/lib/src/views/Widget/Widget.d.ts +7 -0
- package/dist/lib/src/views/Widget/index.d.ts +1 -0
- package/dist/lib/style.css +1 -0
- package/dist/lib/widget.es.js +13334 -0
- package/dist/lib/widget.umd.js +76 -0
- package/package.json +66 -0
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Super Cool Widget
|
|
2
|
+
|
|
3
|
+
## Инициализация проекта
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
$ npm install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Сборка в режиме `React` библиотеки
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
$ npm run build:lib
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Далее можно перейти в раздел `clients/react`, установить зависимости и протестировать
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
$ cd clients/react
|
|
19
|
+
$ npm install
|
|
20
|
+
$ npm run dev
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Сборка в режиме `standalone` приложения
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
$ npm run link:app
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Далее можно перейти в раздел `clients/vanilla`, установить зависимости и протестировать
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
$ cd clients/vanilla
|
|
33
|
+
$ npm install
|
|
34
|
+
$ npm run dev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Локальная разработка
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
$ npm run dev
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Инкапсуляция библиотеки
|
|
44
|
+
|
|
45
|
+
Всё API что должно быть доступно клиенту должно быть экспортировано в `src/index.ts` фале.
|
|
46
|
+
|
|
47
|
+
`src/main.tsx` файл отвечает за рендеринг приложения в режиме `standalone` или в режиме разработки.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const axiosClient: import("axios").AxiosInstance;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Aside";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GroupBase } from "react-select";
|
|
2
|
+
import { AsyncProps } from "react-select/async";
|
|
3
|
+
type AsyncSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = AsyncProps<Option, IsMulti, Group> & {
|
|
4
|
+
label?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
customDropdownIcon?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const AsyncSelect: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ label, className, customDropdownIcon, ...props }: AsyncSelectProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AsyncSelect";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { LocationPoint } from '../../types/points';
|
|
3
|
+
type BalloonProps = Partial<LocationPoint> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
onSubmit?: () => void;
|
|
6
|
+
onDetails?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const Balloon: FC<BalloonProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Balloon";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from "react";
|
|
2
|
+
interface ButtonBaseProps {
|
|
3
|
+
variant?: "primary" | "secondary";
|
|
4
|
+
}
|
|
5
|
+
type ButtonAsButton = {
|
|
6
|
+
as?: "button";
|
|
7
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & ButtonBaseProps;
|
|
8
|
+
type ButtonAsLink = {
|
|
9
|
+
as?: "link";
|
|
10
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement> & ButtonBaseProps;
|
|
11
|
+
type ButtonProps = ButtonAsLink | ButtonAsButton;
|
|
12
|
+
export declare const Button: FC<ButtonProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Checkbox";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
import { RadioProps } from "../Radio";
|
|
3
|
+
export type CheckboxGroupProps<T> = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
4
|
+
value?: T;
|
|
5
|
+
label?: string;
|
|
6
|
+
children: React.ReactElement<RadioProps<T>>[];
|
|
7
|
+
onChange?: (value: T) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const CheckboxGroup: <T extends Dictionary<unknown>>({ label, onChange, children, className, ...props }: CheckboxGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CheckboxGroup";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CurrentLocation";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Header";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Hr";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Layout";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LocationAside: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LocationAside";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { LocationPoint } from '../../types/points';
|
|
3
|
+
interface LocationDetailsModalProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
location: LocationPoint;
|
|
7
|
+
onSubmit?: (point: LocationPoint) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const LocationDetailsModal: FC<LocationDetailsModalProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LocationDetailsModal";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { LocationPoint } from '../../types/points';
|
|
3
|
+
interface LocationSelectorProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
value?: null | LocationPoint;
|
|
6
|
+
onChange?: (value: null | LocationPoint) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const LocationSelector: FC<LocationSelectorProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LocationSelector";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MapGoogle";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { YMaps } from "@pbe/react-yandex-maps";
|
|
2
|
+
import { YMapsModules } from "@pbe/react-yandex-maps/typings/util/typing";
|
|
3
|
+
type YMapsQuery = React.ComponentProps<typeof YMaps>["query"];
|
|
4
|
+
export declare const query: YMapsQuery;
|
|
5
|
+
export declare const mapState: ymaps.IMapState;
|
|
6
|
+
export declare const mapModules: YMapsModules;
|
|
7
|
+
export declare const objectManagerModules: YMapsModules;
|
|
8
|
+
export declare const mapOptions: ymaps.IMapOptions;
|
|
9
|
+
export declare const objectManagerOptions: {
|
|
10
|
+
clusterize: boolean;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { YMapsApi } from "@pbe/react-yandex-maps/typings/util/typing";
|
|
2
|
+
import { LocationPoint } from '../../types/points';
|
|
3
|
+
/**
|
|
4
|
+
* @see {@link https://yandex.ru/dev/maps/jsapi/doc/2.1/ref/reference/ObjectManager.html}
|
|
5
|
+
*/
|
|
6
|
+
export declare const getMapFeatures: (points: LocationPoint[], api: YMapsApi, template: string) => {
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
properties: {
|
|
10
|
+
point: LocationPoint;
|
|
11
|
+
};
|
|
12
|
+
geometry: {
|
|
13
|
+
type: string;
|
|
14
|
+
coordinates: number[];
|
|
15
|
+
};
|
|
16
|
+
options: {
|
|
17
|
+
balloonOffset: number[];
|
|
18
|
+
hideIconOnBalloonOpen: boolean;
|
|
19
|
+
preset: string;
|
|
20
|
+
balloonContentLayout: ymaps.IClassConstructor<ymaps.layout.templateBased.Base>;
|
|
21
|
+
};
|
|
22
|
+
}[];
|
|
23
|
+
export declare const getPresetByType: (type: number, suffix?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MapYandex";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Overlay';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputHTMLAttributes, LabelHTMLAttributes } from "react";
|
|
2
|
+
export type RadioProps<T> = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
value?: T;
|
|
4
|
+
defaultValue?: T;
|
|
5
|
+
label?: string;
|
|
6
|
+
labelProps?: LabelHTMLAttributes<HTMLLabelElement>;
|
|
7
|
+
};
|
|
8
|
+
export declare const Radio: <T>({ label, className, labelProps, ...props }: RadioProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Radio";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Sidebar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Spinner: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { ETypeFilter } from '../../types/filters';
|
|
3
|
+
interface TypeFilterProps {
|
|
4
|
+
value: ETypeFilter;
|
|
5
|
+
className?: string;
|
|
6
|
+
onChange?: (value: ETypeFilter) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TypeFilter: FC<TypeFilterProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TypeFilter";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WIDGET_ID = "omnic-widget";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAX_LOAD_SIZE = 1024;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Filter } from '../types/filters';
|
|
2
|
+
interface FilterContextType {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
setFilter(filter: Partial<Filter>): void;
|
|
5
|
+
}
|
|
6
|
+
export declare const initialFilter: Filter;
|
|
7
|
+
export declare const FilterContext: import("react").Context<FilterContextType>;
|
|
8
|
+
export declare const useFilterContext: () => FilterContextType;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { City } from '../types/cities';
|
|
2
|
+
export interface LocationAside {
|
|
3
|
+
open: boolean;
|
|
4
|
+
toggle(value?: boolean): void;
|
|
5
|
+
}
|
|
6
|
+
interface LocationContextType {
|
|
7
|
+
city: City | null;
|
|
8
|
+
aside: LocationAside;
|
|
9
|
+
setCity(city: City | null): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const LocationContext: import("react").Context<LocationContextType>;
|
|
12
|
+
export declare const useLocationContext: () => LocationContextType;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LocationPoint } from '../types/points';
|
|
2
|
+
interface PointsContextType {
|
|
3
|
+
error: boolean;
|
|
4
|
+
loaded: boolean;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
points: LocationPoint[];
|
|
7
|
+
loadNext(bounds: Bounds): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare const PointsContext: import("react").Context<PointsContextType>;
|
|
10
|
+
export declare const usePointsContext: () => PointsContextType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { City } from '../types/cities';
|
|
2
|
+
import { Country } from '../types/countries';
|
|
3
|
+
export declare const useLocation: () => {
|
|
4
|
+
city: City | null;
|
|
5
|
+
country: Country | null;
|
|
6
|
+
setCity: import("react").Dispatch<import("react").SetStateAction<City | null>>;
|
|
7
|
+
setCountry: import("react").Dispatch<import("react").SetStateAction<Country | null>>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { City } from '../types/cities';
|
|
2
|
+
import { Filter } from '../types/filters';
|
|
3
|
+
import { LocationPoint } from '../types/points';
|
|
4
|
+
interface UsePointsParams {
|
|
5
|
+
city?: City;
|
|
6
|
+
filter: Filter;
|
|
7
|
+
}
|
|
8
|
+
export declare const usePoints: ({ city, filter }: UsePointsParams) => {
|
|
9
|
+
error: boolean;
|
|
10
|
+
loaded: boolean;
|
|
11
|
+
points: LocationPoint[];
|
|
12
|
+
loading: boolean;
|
|
13
|
+
revalidating: boolean;
|
|
14
|
+
loadNext: (bounds: Bounds) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { Locale, Namespaces } from "./types/i18n";
|
|
2
|
+
export declare const defaultNS: Namespaces;
|
|
3
|
+
export declare const defaultLocale: Locale;
|
|
4
|
+
export declare const resources: {
|
|
5
|
+
readonly en: {
|
|
6
|
+
readonly common: {
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
loading_message: string;
|
|
10
|
+
no_options_message: string;
|
|
11
|
+
choose: string;
|
|
12
|
+
details: string;
|
|
13
|
+
location_aside: {
|
|
14
|
+
choose_country: string;
|
|
15
|
+
choose_city: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
};
|
|
18
|
+
location_selector: {
|
|
19
|
+
placeholder: string;
|
|
20
|
+
};
|
|
21
|
+
current_location: {
|
|
22
|
+
choose_from_map: string;
|
|
23
|
+
};
|
|
24
|
+
header: {
|
|
25
|
+
self_pickup: string;
|
|
26
|
+
};
|
|
27
|
+
type_filter: {
|
|
28
|
+
all: string;
|
|
29
|
+
post_office: string;
|
|
30
|
+
pick_point: string;
|
|
31
|
+
};
|
|
32
|
+
receive_filter: {
|
|
33
|
+
title: string;
|
|
34
|
+
dressing_room: string;
|
|
35
|
+
check_order: string;
|
|
36
|
+
pay_by_cash: string;
|
|
37
|
+
};
|
|
38
|
+
send_filter: {
|
|
39
|
+
title: string;
|
|
40
|
+
return: string;
|
|
41
|
+
shipping: string;
|
|
42
|
+
payment: string;
|
|
43
|
+
};
|
|
44
|
+
days_of_week: {
|
|
45
|
+
mon: string;
|
|
46
|
+
tue: string;
|
|
47
|
+
wed: string;
|
|
48
|
+
thu: string;
|
|
49
|
+
fri: string;
|
|
50
|
+
sat: string;
|
|
51
|
+
sun: string;
|
|
52
|
+
};
|
|
53
|
+
details_modal: {
|
|
54
|
+
address: string;
|
|
55
|
+
schedule: string;
|
|
56
|
+
payment_method: string;
|
|
57
|
+
services: string;
|
|
58
|
+
location: string;
|
|
59
|
+
is_pickup: string;
|
|
60
|
+
is_delivery: string;
|
|
61
|
+
is_dressing_room: string;
|
|
62
|
+
is_check_order: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly ru: {
|
|
67
|
+
readonly common: {
|
|
68
|
+
from: string;
|
|
69
|
+
to: string;
|
|
70
|
+
loading_message: string;
|
|
71
|
+
no_options_message: string;
|
|
72
|
+
choose: string;
|
|
73
|
+
details: string;
|
|
74
|
+
location_aside: {
|
|
75
|
+
choose_country: string;
|
|
76
|
+
choose_city: string;
|
|
77
|
+
placeholder: string;
|
|
78
|
+
};
|
|
79
|
+
location_selector: {
|
|
80
|
+
placeholder: string;
|
|
81
|
+
};
|
|
82
|
+
current_location: {
|
|
83
|
+
choose_from_map: string;
|
|
84
|
+
};
|
|
85
|
+
header: {
|
|
86
|
+
self_pickup: string;
|
|
87
|
+
};
|
|
88
|
+
type_filter: {
|
|
89
|
+
all: string;
|
|
90
|
+
post_office: string;
|
|
91
|
+
pick_point: string;
|
|
92
|
+
};
|
|
93
|
+
receive_filter: {
|
|
94
|
+
title: string;
|
|
95
|
+
dressing_room: string;
|
|
96
|
+
check_order: string;
|
|
97
|
+
pay_by_cash: string;
|
|
98
|
+
};
|
|
99
|
+
send_filter: {
|
|
100
|
+
title: string;
|
|
101
|
+
return: string;
|
|
102
|
+
shipping: string;
|
|
103
|
+
payment: string;
|
|
104
|
+
};
|
|
105
|
+
days_of_week: {
|
|
106
|
+
mon: string;
|
|
107
|
+
tue: string;
|
|
108
|
+
wed: string;
|
|
109
|
+
thu: string;
|
|
110
|
+
fri: string;
|
|
111
|
+
sat: string;
|
|
112
|
+
sun: string;
|
|
113
|
+
};
|
|
114
|
+
details_modal: {
|
|
115
|
+
address: string;
|
|
116
|
+
schedule: string;
|
|
117
|
+
payment_method: string;
|
|
118
|
+
services: string;
|
|
119
|
+
location: string;
|
|
120
|
+
is_pickup: string;
|
|
121
|
+
is_delivery: string;
|
|
122
|
+
is_dressing_room: string;
|
|
123
|
+
is_check_order: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./views/Widget";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { City } from '../types/cities';
|
|
2
|
+
interface CitiesRequestParams {
|
|
3
|
+
q?: string;
|
|
4
|
+
uid?: string;
|
|
5
|
+
page?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
page_size?: number;
|
|
8
|
+
region_uid?: string;
|
|
9
|
+
national_id?: string;
|
|
10
|
+
country_uid?: string;
|
|
11
|
+
region_name?: string;
|
|
12
|
+
country_name?: string;
|
|
13
|
+
region_national_id?: string;
|
|
14
|
+
country_abbreviation?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const fetchCitiesRequest: (params: CitiesRequestParams) => Promise<import("axios").AxiosResponse<HttpResponse<ResponseList<City>>, any>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Country } from '../types/countries';
|
|
2
|
+
interface CountriesRequestParams {
|
|
3
|
+
q?: string;
|
|
4
|
+
uid?: string;
|
|
5
|
+
page?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
page_size?: number;
|
|
8
|
+
national_id?: string;
|
|
9
|
+
country_uid?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const fetchCountriesRequest: (params: CountriesRequestParams) => Promise<import("axios").AxiosResponse<HttpResponse<ResponseList<Country>>, any>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { City } from '../types/cities';
|
|
2
|
+
import { PointsList } from '../types/points';
|
|
3
|
+
import { Filter } from '../types/filters';
|
|
4
|
+
interface FetchPointsRequestParams {
|
|
5
|
+
q?: string;
|
|
6
|
+
city?: City;
|
|
7
|
+
bounds?: Bounds;
|
|
8
|
+
filter?: Filter;
|
|
9
|
+
}
|
|
10
|
+
export declare const fetchPointsRequest: ({ q, city, filter, bounds }?: FetchPointsRequestParams) => Promise<import("axios").AxiosResponse<HttpResponse<PointsList>, any>>;
|
|
11
|
+
export {};
|