@wayke-se/components-react 5.1.0 → 5.2.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 +476 -626
- package/dist/index.d.ts +2 -4317
- package/dist/index.js +786 -792
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +783 -789
- package/dist/index.mjs.map +4 -4
- package/dist/types/src/@types/action.d.ts +3 -0
- package/dist/types/src/@types/codegen/types.d.ts +433 -0
- package/dist/types/src/@types/conversion.d.ts +45 -0
- package/dist/types/src/@types/filter.d.ts +5 -0
- package/dist/types/src/@types/market.d.ts +1 -0
- package/dist/types/src/@types/queryFilter.d.ts +5 -0
- package/dist/types/src/@types/search.d.ts +114 -0
- package/dist/types/src/@types/vehicle-properties.d.ts +29 -0
- package/dist/types/src/State/CentralStorage/CentralStorageContext.d.ts +5 -0
- package/dist/types/src/State/CentralStorage/CentralStorageProvider.d.ts +6 -0
- package/dist/types/src/State/CentralStorage/useCentralStorage.d.ts +6 -0
- package/dist/types/src/State/Path/PathContext.d.ts +8 -0
- package/dist/types/src/State/Path/PathProvider.d.ts +6 -0
- package/dist/types/src/State/Path/reducer.d.ts +14 -0
- package/dist/types/src/State/Path/usePath.d.ts +3 -0
- package/dist/types/src/State/RelatedSearch/RelatedSearchContext.d.ts +9 -0
- package/dist/types/src/State/RelatedSearch/RelatedSearchProvider.d.ts +9 -0
- package/dist/types/src/State/RelatedSearch/useRelatedSearch.d.ts +2 -0
- package/dist/types/src/State/Search/SearchContext.d.ts +14 -0
- package/dist/types/src/State/Search/SearchProvider.d.ts +10 -0
- package/dist/types/src/State/Search/useSearch.d.ts +2 -0
- package/dist/types/src/State/Settings/SettingsContext.d.ts +12 -0
- package/dist/types/src/State/Settings/SettingsProvider.d.ts +11 -0
- package/dist/types/src/State/Settings/useSettings.d.ts +2 -0
- package/dist/types/src/components/AccessoryCard/index.d.ts +16 -0
- package/dist/types/src/components/AccessoryCard/wrapper.d.ts +54 -0
- package/dist/types/src/components/Accordion/index.d.ts +13 -0
- package/dist/types/src/components/Accordion/wrapper.d.ts +42 -0
- package/dist/types/src/components/ActionList/index.d.ts +17 -0
- package/dist/types/src/components/ActionList/toggle-item.d.ts +13 -0
- package/dist/types/src/components/Avatar/index.d.ts +7 -0
- package/dist/types/src/components/Avatar/wrapper.d.ts +9 -0
- package/dist/types/src/components/Badge/index.d.ts +7 -0
- package/dist/types/src/components/Badge/wrapper.d.ts +9 -0
- package/dist/types/src/components/Blockquote/index.d.ts +9 -0
- package/dist/types/src/components/Blockquote/wrapper.d.ts +23 -0
- package/dist/types/src/components/Button/index.d.ts +207 -0
- package/dist/types/src/components/CheckMarkList/index.d.ts +7 -0
- package/dist/types/src/components/CheckMarkList/wrapper.d.ts +14 -0
- package/dist/types/src/components/Checklist/index.d.ts +13 -0
- package/dist/types/src/components/Checklist/wrapper.d.ts +28 -0
- package/dist/types/src/components/ColorSelect/index.d.ts +14 -0
- package/dist/types/src/components/ColorSelect/wrapper.d.ts +29 -0
- package/dist/types/src/components/ColumnRow/index.d.ts +6 -0
- package/dist/types/src/components/Columns/index.d.ts +20 -0
- package/dist/types/src/components/Container/index.d.ts +6 -0
- package/dist/types/src/components/Container/wrapper.d.ts +3 -0
- package/dist/types/src/components/Content/index.d.ts +6 -0
- package/dist/types/src/components/Content/wrapper.d.ts +7 -0
- package/dist/types/src/components/ContentLogo/index.d.ts +9 -0
- package/dist/types/src/components/CreditorDisclaimer/index.d.ts +2 -0
- package/dist/types/src/components/CreditorDisclaimer/wrapper.d.ts +14 -0
- package/dist/types/src/components/DataList/index.d.ts +10 -0
- package/dist/types/src/components/DataList/wrapper.d.ts +14 -0
- package/dist/types/src/components/DetailBox/index.d.ts +8 -0
- package/dist/types/src/components/DetailBox/wrapper.d.ts +98 -0
- package/dist/types/src/components/DocumentList/index.d.ts +11 -0
- package/dist/types/src/components/DocumentList/wrapper.d.ts +25 -0
- package/dist/types/src/components/ExtendContent/index.d.ts +8 -0
- package/dist/types/src/components/ExtendContent/wrapper.d.ts +13 -0
- package/dist/types/src/components/ExtendInfo/index.d.ts +7 -0
- package/dist/types/src/components/ExtendInfo/wrapper.d.ts +38 -0
- package/dist/types/src/components/Filter/index.d.ts +9 -0
- package/dist/types/src/components/Filter/wrapper.d.ts +27 -0
- package/dist/types/src/components/FilterPanel/checkListFacet.d.ts +7 -0
- package/dist/types/src/components/FilterPanel/colorFacet.d.ts +7 -0
- package/dist/types/src/components/FilterPanel/faceSelector.d.ts +7 -0
- package/dist/types/src/components/FilterPanel/index.d.ts +20 -0
- package/dist/types/src/components/FilterPanel/rangeFacet.d.ts +9 -0
- package/dist/types/src/components/FinancialOptions/LoanModal.d.ts +12 -0
- package/dist/types/src/components/FinancialOptions/index.d.ts +11 -0
- package/dist/types/src/components/FinancialOptions/leasing.d.ts +7 -0
- package/dist/types/src/components/FinancialOptions/loan.d.ts +11 -0
- package/dist/types/src/components/Gallery/MediaButton.d.ts +7 -0
- package/dist/types/src/components/Gallery/index.d.ts +10 -0
- package/dist/types/src/components/Gallery/wrapper.d.ts +74 -0
- package/dist/types/src/components/Grid/index.d.ts +13 -0
- package/dist/types/src/components/Grid/wrapper.d.ts +9 -0
- package/dist/types/src/components/Heading/index.d.ts +145 -0
- package/dist/types/src/components/Icon/index.d.ts +17 -0
- package/dist/types/src/components/Image/index.d.ts +3 -0
- package/dist/types/src/components/InputCheckbox/index.d.ts +7 -0
- package/dist/types/src/components/InputCheckbox/wrapper.d.ts +31 -0
- package/dist/types/src/components/InputError/index.d.ts +7 -0
- package/dist/types/src/components/InputError/wrapper.d.ts +3 -0
- package/dist/types/src/components/InputGroup/index.d.ts +6 -0
- package/dist/types/src/components/InputLabel/index.d.ts +7 -0
- package/dist/types/src/components/InputLabel/wrapper.d.ts +5 -0
- package/dist/types/src/components/InputSearch/index.d.ts +11 -0
- package/dist/types/src/components/InputSearch/wrapper.d.ts +42 -0
- package/dist/types/src/components/InputSelect/index.d.ts +14 -0
- package/dist/types/src/components/InputSelect/wrapper.d.ts +14 -0
- package/dist/types/src/components/InputText/index.d.ts +7 -0
- package/dist/types/src/components/InputText/wrapper.d.ts +9 -0
- package/dist/types/src/components/InputTextarea/index.d.ts +7 -0
- package/dist/types/src/components/InputTextarea/wrapper.d.ts +8 -0
- package/dist/types/src/components/InsuranceOptions/Insurance.d.ts +9 -0
- package/dist/types/src/components/InsuranceOptions/InsuranceFree.d.ts +9 -0
- package/dist/types/src/components/InsuranceOptions/InsuranceFreeModal.d.ts +8 -0
- package/dist/types/src/components/InsuranceOptions/InsuranceModal.d.ts +10 -0
- package/dist/types/src/components/InsuranceOptions/index.d.ts +9 -0
- package/dist/types/src/components/LeadForm/index.d.ts +15 -0
- package/dist/types/src/components/LeadForm/wrapper.d.ts +3 -0
- package/dist/types/src/components/Lightbox/index.d.ts +9 -0
- package/dist/types/src/components/Lightbox/wrapper.d.ts +26 -0
- package/dist/types/src/components/Link/index.d.ts +9 -0
- package/dist/types/src/components/Loader/index.d.ts +7 -0
- package/dist/types/src/components/Loader/wrapper.d.ts +13 -0
- package/dist/types/src/components/LogoBox/index.d.ts +9 -0
- package/dist/types/src/components/LogoBox/wrapper.d.ts +7 -0
- package/dist/types/src/components/Map/index.d.ts +7 -0
- package/dist/types/src/components/Map/wrapper.d.ts +12 -0
- package/dist/types/src/components/Modal/index.d.ts +9 -0
- package/dist/types/src/components/Modal/wrapper.d.ts +51 -0
- package/dist/types/src/components/NavButton/index.d.ts +12 -0
- package/dist/types/src/components/OpeningHours/index.d.ts +7 -0
- package/dist/types/src/components/OptionBox/index.d.ts +9 -0
- package/dist/types/src/components/OptionBox/wrapper.d.ts +20 -0
- package/dist/types/src/components/OverflowBox/index.d.ts +6 -0
- package/dist/types/src/components/OverflowBox/wrapper.d.ts +3 -0
- package/dist/types/src/components/OverflowGrid/index.d.ts +12 -0
- package/dist/types/src/components/OverflowGrid/wrapper.d.ts +44 -0
- package/dist/types/src/components/Page/index.d.ts +12 -0
- package/dist/types/src/components/Panel/index.d.ts +10 -0
- package/dist/types/src/components/Panel/wrapper.d.ts +50 -0
- package/dist/types/src/components/PhoneNumber/index.d.ts +6 -0
- package/dist/types/src/components/Portal/index.d.ts +4 -0
- package/dist/types/src/components/Portal/portal-element.d.ts +6 -0
- package/dist/types/src/components/Portal/portal-namespace.d.ts +1 -0
- package/dist/types/src/components/Portal/portal.d.ts +7 -0
- package/dist/types/src/components/Price/index.d.ts +8 -0
- package/dist/types/src/components/PriceBox/index.d.ts +11 -0
- package/dist/types/src/components/PriceBox/wrapper.d.ts +18 -0
- package/dist/types/src/components/PriceTable/index.d.ts +7 -0
- package/dist/types/src/components/PriceTable/wrapper.d.ts +12 -0
- package/dist/types/src/components/ProductCard/index.d.ts +27 -0
- package/dist/types/src/components/ProductCard/wrapper.d.ts +62 -0
- package/dist/types/src/components/ProductPage/index.d.ts +22 -0
- package/dist/types/src/components/ProgressBar/index.d.ts +7 -0
- package/dist/types/src/components/ProgressBar/wrapper.d.ts +14 -0
- package/dist/types/src/components/RangeSlider/RangeSliderSimple.d.ts +13 -0
- package/dist/types/src/components/RangeSlider/SliderWithLabel.d.ts +13 -0
- package/dist/types/src/components/RangeSlider/handle.d.ts +9 -0
- package/dist/types/src/components/RangeSlider/index.d.ts +13 -0
- package/dist/types/src/components/RangeSlider/track.d.ts +9 -0
- package/dist/types/src/components/RangeSlider/wrapper.d.ts +22 -0
- package/dist/types/src/components/RangeSliderLabel/index.d.ts +8 -0
- package/dist/types/src/components/RangeSliderLabel/wrapper.d.ts +17 -0
- package/dist/types/src/components/Repeat/index.d.ts +9 -0
- package/dist/types/src/components/Result/index.d.ts +6 -0
- package/dist/types/src/components/Result/wrapper.d.ts +27 -0
- package/dist/types/src/components/Root/index.d.ts +6 -0
- package/dist/types/src/components/SearchBar/index.d.ts +8 -0
- package/dist/types/src/components/SearchFilter/index.d.ts +3 -0
- package/dist/types/src/components/SearchTerm/index.d.ts +8 -0
- package/dist/types/src/components/SearchTerm/wrapper.d.ts +20 -0
- package/dist/types/src/components/SectionHeader/index.d.ts +8 -0
- package/dist/types/src/components/SectionHeader/wrapper.d.ts +9 -0
- package/dist/types/src/components/Snackbar/index.d.ts +9 -0
- package/dist/types/src/components/Snackbar/wrapper.d.ts +21 -0
- package/dist/types/src/components/SortSelect/index.d.ts +14 -0
- package/dist/types/src/components/SortSelect/wrapper.d.ts +14 -0
- package/dist/types/src/components/Sphere/Sphere.d.ts +6 -0
- package/dist/types/src/components/Sphere/SphereLightbox.d.ts +6 -0
- package/dist/types/src/components/Sphere/SphereViewer.d.ts +9 -0
- package/dist/types/src/components/Sphere/wrapper.d.ts +5 -0
- package/dist/types/src/components/SrOnly/index.d.ts +3 -0
- package/dist/types/src/components/StateIndicator/index.d.ts +7 -0
- package/dist/types/src/components/SwitchBar/index.d.ts +10 -0
- package/dist/types/src/components/SwitchBar/wrapper.d.ts +46 -0
- package/dist/types/src/components/TableColumn/index.d.ts +9 -0
- package/dist/types/src/components/TableList/index.d.ts +18 -0
- package/dist/types/src/components/Tabs/index.d.ts +12 -0
- package/dist/types/src/components/Tabs/wrapper.d.ts +37 -0
- package/dist/types/src/components/ThreeSixty/Rotation.d.ts +6 -0
- package/dist/types/src/components/ThreeSixty/ThreeSixtLightbox.d.ts +6 -0
- package/dist/types/src/components/ThreeSixty/ThreeSixty.d.ts +9 -0
- package/dist/types/src/components/UspList/index.d.ts +11 -0
- package/dist/types/src/components/UspList/wrapper.d.ts +37 -0
- package/dist/types/src/components/Utility/index.d.ts +16 -0
- package/dist/types/src/components/Video/CustomPlayer.d.ts +10 -0
- package/dist/types/src/components/Video/EmbeddedVideoLightbox.d.ts +8 -0
- package/dist/types/src/components/Video/EmbededVideo.d.ts +8 -0
- package/dist/types/src/components/Video/QuickNavEmbeded.d.ts +7 -0
- package/dist/types/src/components/Video/QuickNavVideo.d.ts +7 -0
- package/dist/types/src/components/Video/Video.d.ts +8 -0
- package/dist/types/src/components/Video/VimeoPlayer.d.ts +7 -0
- package/dist/types/src/components/Video/YoutubePlayer.d.ts +7 -0
- package/dist/types/src/components/Video/useThumbnail.d.ts +2 -0
- package/dist/types/src/components/Video/utils.d.ts +9 -0
- package/dist/types/src/components/Video/wrapper.d.ts +13 -0
- package/dist/types/src/hooks/apolloTypes.d.ts +6 -0
- package/dist/types/src/hooks/useFetch.d.ts +7 -0
- package/dist/types/src/hooks/useHasBeenVisible.d.ts +2 -0
- package/dist/types/src/hooks/useHashGuid.d.ts +2 -0
- package/dist/types/src/hooks/useInitializeTranslation.d.ts +3 -0
- package/dist/types/src/hooks/useInsurance.d.ts +4 -0
- package/dist/types/src/hooks/useIsInViewport.d.ts +5 -0
- package/dist/types/src/hooks/useLoan.d.ts +4 -0
- package/dist/types/src/hooks/useOnScreen.d.ts +2 -0
- package/dist/types/src/hooks/useOutsideClick.d.ts +2 -0
- package/dist/types/src/hooks/usePrevious.d.ts +2 -0
- package/dist/types/src/hooks/useSearchItem.d.ts +4 -0
- package/dist/types/src/hooks/useSearchItemBranch.d.ts +4 -0
- package/dist/types/src/hooks/useSessionStorage.d.ts +7 -0
- package/dist/types/src/hooks/useSubmitLead.d.ts +29 -0
- package/dist/types/src/hooks/useVimeoThumbnail.d.ts +2 -0
- package/dist/types/src/index.d.ts +13 -0
- package/dist/types/src/layout/helpers.d.ts +1 -0
- package/dist/types/src/layout/keyframes.d.ts +3 -0
- package/dist/types/src/layout/theme.d.ts +49 -0
- package/dist/types/src/layouts/WaykeComposite.d.ts +12 -0
- package/dist/types/src/layouts/WaykeCompositeWithProvider.d.ts +9 -0
- package/dist/types/src/layouts/search/index.d.ts +19 -0
- package/dist/types/src/layouts/searchItem/Accessories/AccessoryModal.d.ts +8 -0
- package/dist/types/src/layouts/searchItem/Accessories/index.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/Branch.d.ts +9 -0
- package/dist/types/src/layouts/searchItem/BranchModal.d.ts +9 -0
- package/dist/types/src/layouts/searchItem/CheckList.d.ts +21 -0
- package/dist/types/src/layouts/searchItem/DemoCarModal.d.ts +6 -0
- package/dist/types/src/layouts/searchItem/Documents.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/ManufacturerPackagesOption.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/MetadataItem.d.ts +10 -0
- package/dist/types/src/layouts/searchItem/PackageOptionModal.d.ts +17 -0
- package/dist/types/src/layouts/searchItem/PackageOptions.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/Page404.d.ts +3 -0
- package/dist/types/src/layouts/searchItem/PageLoading.d.ts +3 -0
- package/dist/types/src/layouts/searchItem/Property.d.ts +8 -0
- package/dist/types/src/layouts/searchItem/Related.d.ts +11 -0
- package/dist/types/src/layouts/searchItem/index.d.ts +17 -0
- package/dist/types/src/layouts/searchItem/useEcom.d.ts +8 -0
- package/dist/types/src/providers/WaykeItemProvidet.d.ts +24 -0
- package/dist/types/src/providers/WaykeProvider.d.ts +26 -0
- package/dist/types/src/providers/graphqlProvider.d.ts +6 -0
- package/dist/types/src/providers/themeProvider.d.ts +6 -0
- package/dist/types/src/queries/INSURANCE_CALCULATION.d.ts +2 -0
- package/dist/types/src/queries/LOAN_CALCULATION.d.ts +2 -0
- package/dist/types/src/queries/SEARCH_ITEM_BRANCH_QUERY.d.ts +2 -0
- package/dist/types/src/queries/SEARCH_ITEM_QUERY.d.ts +2 -0
- package/dist/types/src/utils/I18n.d.ts +4 -0
- package/dist/types/src/utils/constants.d.ts +67 -0
- package/dist/types/src/utils/converters.d.ts +1 -0
- package/dist/types/src/utils/deep-copy.d.ts +5 -0
- package/dist/types/src/utils/formats.d.ts +8 -0
- package/dist/types/src/utils/phonenumbers.d.ts +1 -0
- package/dist/types/src/utils/pubsub/Actions.d.ts +16 -0
- package/dist/types/src/utils/pubsub/Events.d.ts +147 -0
- package/dist/types/src/utils/pubsub/pubsub.d.ts +44 -0
- package/dist/types/src/utils/regex.d.ts +3 -0
- package/dist/types/src/utils/sortOptions.d.ts +13 -0
- package/dist/types/src/utils/specification.d.ts +28 -0
- package/dist/types/src/utils/ssn.d.ts +1 -0
- package/dist/types/src/utils/url.d.ts +1 -0
- package/dist/types/src/utils/vehicle-properties/compare-basic-properties.d.ts +3 -0
- package/dist/types/src/utils/vehicle-properties/compare-categories.d.ts +3 -0
- package/dist/types/src/utils/vehicle-properties/compare-properties.d.ts +3 -0
- package/dist/types/src/utils/vehicle-properties/custom-property-adder.d.ts +13 -0
- package/dist/types/src/utils/vehicle-properties/property-remover.d.ts +7 -0
- package/dist/types/src/utils/vehicle-properties/property-tree-creator.d.ts +31 -0
- package/dist/types/src/utils/vehicle-properties/property-tree-sorter.d.ts +3 -0
- package/package.json +29 -26
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
export type Maybe<T> = T | null;
|
|
2
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
|
+
export type Scalars = {
|
|
24
|
+
ID: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
DateTime: {
|
|
45
|
+
input: Date;
|
|
46
|
+
output: Date;
|
|
47
|
+
};
|
|
48
|
+
Email: {
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
|
+
};
|
|
52
|
+
FileDocument: {
|
|
53
|
+
input: {
|
|
54
|
+
webp: string;
|
|
55
|
+
category: string;
|
|
56
|
+
contentType: string;
|
|
57
|
+
name: string;
|
|
58
|
+
url: string;
|
|
59
|
+
};
|
|
60
|
+
output: {
|
|
61
|
+
webp: string;
|
|
62
|
+
category: string;
|
|
63
|
+
contentType: string;
|
|
64
|
+
name: string;
|
|
65
|
+
url: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
PersonalNumber: {
|
|
69
|
+
input: string;
|
|
70
|
+
output: string;
|
|
71
|
+
};
|
|
72
|
+
PhoneNumber: {
|
|
73
|
+
input: string;
|
|
74
|
+
output: string;
|
|
75
|
+
};
|
|
76
|
+
Time: {
|
|
77
|
+
input: string;
|
|
78
|
+
output: string;
|
|
79
|
+
};
|
|
80
|
+
URL: {
|
|
81
|
+
input: string;
|
|
82
|
+
output: string;
|
|
83
|
+
};
|
|
84
|
+
VehicleDataPropertyMap: {
|
|
85
|
+
input: {
|
|
86
|
+
[key: string]: string | number | boolean;
|
|
87
|
+
};
|
|
88
|
+
output: {
|
|
89
|
+
[key: string]: string | number | boolean;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
VehicleDataPropertySet: {
|
|
93
|
+
input: any;
|
|
94
|
+
output: any;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export type Accessory = {
|
|
98
|
+
__typename?: 'Accessory';
|
|
99
|
+
articleNumber?: Maybe<Scalars['String']['output']>;
|
|
100
|
+
assemblyPrice?: Maybe<Scalars['Float']['output']>;
|
|
101
|
+
description: Scalars['String']['output'];
|
|
102
|
+
excerpt: Scalars['String']['output'];
|
|
103
|
+
id: Scalars['ID']['output'];
|
|
104
|
+
images: Array<Scalars['String']['output']>;
|
|
105
|
+
logotype?: Maybe<Scalars['String']['output']>;
|
|
106
|
+
manufacturer?: Maybe<Scalars['String']['output']>;
|
|
107
|
+
model?: Maybe<Scalars['String']['output']>;
|
|
108
|
+
name: Scalars['String']['output'];
|
|
109
|
+
price: Scalars['Float']['output'];
|
|
110
|
+
productPage?: Maybe<Link>;
|
|
111
|
+
salePrice?: Maybe<Scalars['Float']['output']>;
|
|
112
|
+
};
|
|
113
|
+
export type Branch = {
|
|
114
|
+
__typename?: 'Branch';
|
|
115
|
+
connections: Array<BranchConnection>;
|
|
116
|
+
contact?: Maybe<ContactOptions>;
|
|
117
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
118
|
+
flags?: Maybe<BranchFlags>;
|
|
119
|
+
homepage?: Maybe<Scalars['URL']['output']>;
|
|
120
|
+
id: Scalars['ID']['output'];
|
|
121
|
+
location?: Maybe<Location>;
|
|
122
|
+
logotype?: Maybe<Scalars['URL']['output']>;
|
|
123
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
124
|
+
openingHours?: Maybe<OpeningHours>;
|
|
125
|
+
organization?: Maybe<Organization>;
|
|
126
|
+
promos: Array<Promo>;
|
|
127
|
+
services: Array<Service>;
|
|
128
|
+
};
|
|
129
|
+
export type BranchConnection = {
|
|
130
|
+
__typename?: 'BranchConnection';
|
|
131
|
+
id: Scalars['ID']['output'];
|
|
132
|
+
location?: Maybe<Location>;
|
|
133
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
134
|
+
};
|
|
135
|
+
export type BranchFlags = {
|
|
136
|
+
__typename?: 'BranchFlags';
|
|
137
|
+
authorizedReseller?: Maybe<Scalars['Boolean']['output']>;
|
|
138
|
+
centralStorage?: Maybe<Scalars['Boolean']['output']>;
|
|
139
|
+
ecommerce?: Maybe<Scalars['Boolean']['output']>;
|
|
140
|
+
mrf?: Maybe<Scalars['Boolean']['output']>;
|
|
141
|
+
};
|
|
142
|
+
export type ContactOptions = {
|
|
143
|
+
__typename?: 'ContactOptions';
|
|
144
|
+
avatar?: Maybe<Scalars['URL']['output']>;
|
|
145
|
+
email?: Maybe<Scalars['Email']['output']>;
|
|
146
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
147
|
+
phonenumber?: Maybe<Scalars['PhoneNumber']['output']>;
|
|
148
|
+
};
|
|
149
|
+
export declare enum DrivingDistance {
|
|
150
|
+
Between0And1000 = "BETWEEN0AND1000",
|
|
151
|
+
Between1000And1500 = "BETWEEN1000AND1500",
|
|
152
|
+
Between1500And2000 = "BETWEEN1500AND2000",
|
|
153
|
+
Between2000And2500 = "BETWEEN2000AND2500",
|
|
154
|
+
Over2500 = "OVER2500"
|
|
155
|
+
}
|
|
156
|
+
export type Ecommerce = {
|
|
157
|
+
__typename?: 'Ecommerce';
|
|
158
|
+
enabled?: Maybe<Scalars['Boolean']['output']>;
|
|
159
|
+
reserved?: Maybe<Scalars['Boolean']['output']>;
|
|
160
|
+
withHomeDelivery?: Maybe<Scalars['Boolean']['output']>;
|
|
161
|
+
withTradeIn?: Maybe<Scalars['Boolean']['output']>;
|
|
162
|
+
};
|
|
163
|
+
export type FinancialOption = {
|
|
164
|
+
__typename?: 'FinancialOption';
|
|
165
|
+
administrationFee?: Maybe<Scalars['Float']['output']>;
|
|
166
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
167
|
+
downPayment?: Maybe<FinancialOptionDetail>;
|
|
168
|
+
duration?: Maybe<FinancialOptionDetail>;
|
|
169
|
+
effectiveInterest?: Maybe<Scalars['Float']['output']>;
|
|
170
|
+
identifier?: Maybe<Scalars['String']['output']>;
|
|
171
|
+
image?: Maybe<Scalars['URL']['output']>;
|
|
172
|
+
includes: Array<FinancialOptionInclusion>;
|
|
173
|
+
interest?: Maybe<Scalars['Float']['output']>;
|
|
174
|
+
link?: Maybe<Link>;
|
|
175
|
+
loanAmount?: Maybe<Scalars['Float']['output']>;
|
|
176
|
+
logotype?: Maybe<Scalars['URL']['output']>;
|
|
177
|
+
mileage?: Maybe<FinancialOptionDetail>;
|
|
178
|
+
monthlyCost?: Maybe<Scalars['Float']['output']>;
|
|
179
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
180
|
+
residual?: Maybe<FinancialOptionDetail>;
|
|
181
|
+
setupFee?: Maybe<Scalars['Float']['output']>;
|
|
182
|
+
terms?: Maybe<Scalars['URL']['output']>;
|
|
183
|
+
totalCreditCost?: Maybe<Scalars['Float']['output']>;
|
|
184
|
+
totalResidualValue?: Maybe<Scalars['Float']['output']>;
|
|
185
|
+
type: Scalars['String']['output'];
|
|
186
|
+
url?: Maybe<Scalars['URL']['output']>;
|
|
187
|
+
};
|
|
188
|
+
export type FinancialOptionDetail = {
|
|
189
|
+
__typename?: 'FinancialOptionDetail';
|
|
190
|
+
current: Scalars['Float']['output'];
|
|
191
|
+
default: Scalars['Float']['output'];
|
|
192
|
+
max: Scalars['Float']['output'];
|
|
193
|
+
min: Scalars['Float']['output'];
|
|
194
|
+
step: Scalars['Float']['output'];
|
|
195
|
+
};
|
|
196
|
+
export declare enum FinancialOptionInclusion {
|
|
197
|
+
IncludesInsurance = "INCLUDES_INSURANCE",
|
|
198
|
+
IncludesService = "INCLUDES_SERVICE",
|
|
199
|
+
IncludesWintertires = "INCLUDES_WINTERTIRES"
|
|
200
|
+
}
|
|
201
|
+
export type HoursOpen = {
|
|
202
|
+
__typename?: 'HoursOpen';
|
|
203
|
+
from?: Maybe<Scalars['Time']['output']>;
|
|
204
|
+
until?: Maybe<Scalars['Time']['output']>;
|
|
205
|
+
};
|
|
206
|
+
export type Insurance = {
|
|
207
|
+
__typename?: 'Insurance';
|
|
208
|
+
addons: Array<InsuranceAddon>;
|
|
209
|
+
description: Scalars['String']['output'];
|
|
210
|
+
items: Array<InsuranceItem>;
|
|
211
|
+
legality?: Maybe<InsuranceLegality>;
|
|
212
|
+
logotype?: Maybe<Scalars['URL']['output']>;
|
|
213
|
+
name: Scalars['String']['output'];
|
|
214
|
+
price: Scalars['Float']['output'];
|
|
215
|
+
terms?: Maybe<Scalars['URL']['output']>;
|
|
216
|
+
unit: Scalars['String']['output'];
|
|
217
|
+
url?: Maybe<Scalars['URL']['output']>;
|
|
218
|
+
};
|
|
219
|
+
export type InsuranceAddon = {
|
|
220
|
+
__typename?: 'InsuranceAddon';
|
|
221
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
222
|
+
exclusions: Array<Scalars['String']['output']>;
|
|
223
|
+
id: Scalars['ID']['output'];
|
|
224
|
+
price: Scalars['Float']['output'];
|
|
225
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
226
|
+
unit: Scalars['String']['output'];
|
|
227
|
+
};
|
|
228
|
+
export type InsuranceItem = {
|
|
229
|
+
__typename?: 'InsuranceItem';
|
|
230
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
231
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
232
|
+
};
|
|
233
|
+
export type InsuranceLegality = {
|
|
234
|
+
__typename?: 'InsuranceLegality';
|
|
235
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
236
|
+
url?: Maybe<Scalars['URL']['output']>;
|
|
237
|
+
};
|
|
238
|
+
export type InsuranceOption = {
|
|
239
|
+
__typename?: 'InsuranceOption';
|
|
240
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
241
|
+
identifier?: Maybe<Scalars['String']['output']>;
|
|
242
|
+
institute?: Maybe<Scalars['String']['output']>;
|
|
243
|
+
insuranceHeader?: Maybe<Scalars['String']['output']>;
|
|
244
|
+
insuranceText?: Maybe<Scalars['String']['output']>;
|
|
245
|
+
logotype?: Maybe<Scalars['URL']['output']>;
|
|
246
|
+
longDescription?: Maybe<Scalars['String']['output']>;
|
|
247
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
248
|
+
requiresDistance?: Maybe<Scalars['Boolean']['output']>;
|
|
249
|
+
requiresPersonalNumber?: Maybe<Scalars['Boolean']['output']>;
|
|
250
|
+
/** @deprecated No longer supported */
|
|
251
|
+
terms?: Maybe<Scalars['URL']['output']>;
|
|
252
|
+
url?: Maybe<Scalars['URL']['output']>;
|
|
253
|
+
};
|
|
254
|
+
export type Link = {
|
|
255
|
+
__typename?: 'Link';
|
|
256
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
257
|
+
url?: Maybe<Scalars['URL']['output']>;
|
|
258
|
+
};
|
|
259
|
+
export type Location = {
|
|
260
|
+
__typename?: 'Location';
|
|
261
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
262
|
+
county?: Maybe<Scalars['String']['output']>;
|
|
263
|
+
position?: Maybe<Position>;
|
|
264
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
265
|
+
streetAddress?: Maybe<Scalars['String']['output']>;
|
|
266
|
+
};
|
|
267
|
+
export type Manufacturer = {
|
|
268
|
+
__typename?: 'Manufacturer';
|
|
269
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
270
|
+
logotype?: Maybe<Scalars['URL']['output']>;
|
|
271
|
+
name: Scalars['String']['output'];
|
|
272
|
+
packageOption?: Maybe<PackageOption>;
|
|
273
|
+
};
|
|
274
|
+
export type Media = {
|
|
275
|
+
__typename?: 'Media';
|
|
276
|
+
files: Array<MediaFile>;
|
|
277
|
+
type: Scalars['String']['output'];
|
|
278
|
+
};
|
|
279
|
+
export type MediaFile = {
|
|
280
|
+
__typename?: 'MediaFile';
|
|
281
|
+
formats: Array<Maybe<MediaFileFormat>>;
|
|
282
|
+
url: Scalars['URL']['output'];
|
|
283
|
+
};
|
|
284
|
+
export type MediaFileFormat = {
|
|
285
|
+
__typename?: 'MediaFileFormat';
|
|
286
|
+
format: Scalars['String']['output'];
|
|
287
|
+
url: Scalars['URL']['output'];
|
|
288
|
+
};
|
|
289
|
+
export type OdometerReading = {
|
|
290
|
+
__typename?: 'OdometerReading';
|
|
291
|
+
unit: Scalars['String']['output'];
|
|
292
|
+
value: Scalars['Int']['output'];
|
|
293
|
+
};
|
|
294
|
+
export type OpeningHours = {
|
|
295
|
+
__typename?: 'OpeningHours';
|
|
296
|
+
friday?: Maybe<HoursOpen>;
|
|
297
|
+
monday?: Maybe<HoursOpen>;
|
|
298
|
+
saturday?: Maybe<HoursOpen>;
|
|
299
|
+
sunday?: Maybe<HoursOpen>;
|
|
300
|
+
thursday?: Maybe<HoursOpen>;
|
|
301
|
+
tuesday?: Maybe<HoursOpen>;
|
|
302
|
+
wednesday?: Maybe<HoursOpen>;
|
|
303
|
+
};
|
|
304
|
+
export type Organization = {
|
|
305
|
+
__typename?: 'Organization';
|
|
306
|
+
branches: Array<Maybe<Branch>>;
|
|
307
|
+
contact?: Maybe<ContactOptions>;
|
|
308
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
309
|
+
flags?: Maybe<BranchFlags>;
|
|
310
|
+
homepage?: Maybe<Scalars['URL']['output']>;
|
|
311
|
+
id: Scalars['ID']['output'];
|
|
312
|
+
logotype?: Maybe<Scalars['URL']['output']>;
|
|
313
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
314
|
+
parent?: Maybe<Branch>;
|
|
315
|
+
};
|
|
316
|
+
export type PackageOption = {
|
|
317
|
+
__typename?: 'PackageOption';
|
|
318
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
319
|
+
image?: Maybe<Scalars['URL']['output']>;
|
|
320
|
+
link?: Maybe<Link>;
|
|
321
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
322
|
+
};
|
|
323
|
+
export type Position = {
|
|
324
|
+
__typename?: 'Position';
|
|
325
|
+
latitude?: Maybe<Scalars['Float']['output']>;
|
|
326
|
+
longitude?: Maybe<Scalars['Float']['output']>;
|
|
327
|
+
};
|
|
328
|
+
export type Promo = {
|
|
329
|
+
__typename?: 'Promo';
|
|
330
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
331
|
+
image?: Maybe<Scalars['URL']['output']>;
|
|
332
|
+
link?: Maybe<Link>;
|
|
333
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
334
|
+
};
|
|
335
|
+
export type Query = {
|
|
336
|
+
__typename?: 'Query';
|
|
337
|
+
branch?: Maybe<Branch>;
|
|
338
|
+
insurances: Array<Insurance>;
|
|
339
|
+
loan?: Maybe<FinancialOption>;
|
|
340
|
+
vehicle?: Maybe<Vehicle>;
|
|
341
|
+
};
|
|
342
|
+
export type QueryBranchArgs = {
|
|
343
|
+
id: Scalars['ID']['input'];
|
|
344
|
+
};
|
|
345
|
+
export type QueryInsurancesArgs = {
|
|
346
|
+
branch?: InputMaybe<Scalars['ID']['input']>;
|
|
347
|
+
drivingDistance: DrivingDistance;
|
|
348
|
+
id: Scalars['ID']['input'];
|
|
349
|
+
personalNumber: Scalars['PersonalNumber']['input'];
|
|
350
|
+
};
|
|
351
|
+
export type QueryLoanArgs = {
|
|
352
|
+
branch?: InputMaybe<Scalars['ID']['input']>;
|
|
353
|
+
downPayment: Scalars['Int']['input'];
|
|
354
|
+
duration: Scalars['Int']['input'];
|
|
355
|
+
id: Scalars['ID']['input'];
|
|
356
|
+
residual: Scalars['Float']['input'];
|
|
357
|
+
};
|
|
358
|
+
export type QueryVehicleArgs = {
|
|
359
|
+
branch?: InputMaybe<Scalars['ID']['input']>;
|
|
360
|
+
id: Scalars['ID']['input'];
|
|
361
|
+
};
|
|
362
|
+
export type SafetyOption = {
|
|
363
|
+
__typename?: 'SafetyOption';
|
|
364
|
+
content?: Maybe<Scalars['String']['output']>;
|
|
365
|
+
image?: Maybe<Scalars['URL']['output']>;
|
|
366
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
367
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
368
|
+
};
|
|
369
|
+
export type Service = {
|
|
370
|
+
__typename?: 'Service';
|
|
371
|
+
markdown?: Maybe<Scalars['String']['output']>;
|
|
372
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
373
|
+
};
|
|
374
|
+
export type Vehicle = {
|
|
375
|
+
__typename?: 'Vehicle';
|
|
376
|
+
accessories: Array<Accessory>;
|
|
377
|
+
availableFrom?: Maybe<Scalars['DateTime']['output']>;
|
|
378
|
+
branch?: Maybe<Branch>;
|
|
379
|
+
contact?: Maybe<ContactOptions>;
|
|
380
|
+
data: VehicleData;
|
|
381
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
382
|
+
discount?: Maybe<Scalars['Float']['output']>;
|
|
383
|
+
documents: Array<Scalars['FileDocument']['output']>;
|
|
384
|
+
ecommerce?: Maybe<Ecommerce>;
|
|
385
|
+
financialOptions: Array<FinancialOption>;
|
|
386
|
+
flags?: Maybe<VehicleFlags>;
|
|
387
|
+
id: Scalars['ID']['output'];
|
|
388
|
+
insuranceOptions: Array<InsuranceOption>;
|
|
389
|
+
location?: Maybe<Location>;
|
|
390
|
+
manufacturer?: Maybe<Manufacturer>;
|
|
391
|
+
media: Array<Media>;
|
|
392
|
+
packageOptions: Array<PackageOption>;
|
|
393
|
+
price: Scalars['Float']['output'];
|
|
394
|
+
publishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
395
|
+
safety: Array<SafetyOption>;
|
|
396
|
+
shortDescription?: Maybe<Scalars['String']['output']>;
|
|
397
|
+
title: Scalars['String']['output'];
|
|
398
|
+
};
|
|
399
|
+
export type VehicleData = {
|
|
400
|
+
__typename?: 'VehicleData';
|
|
401
|
+
enginePower?: Maybe<Scalars['Float']['output']>;
|
|
402
|
+
equipmentLevel?: Maybe<Scalars['String']['output']>;
|
|
403
|
+
fuelType?: Maybe<Scalars['String']['output']>;
|
|
404
|
+
gearbox?: Maybe<Scalars['String']['output']>;
|
|
405
|
+
gearboxType?: Maybe<Scalars['String']['output']>;
|
|
406
|
+
manufactureYear: Scalars['Int']['output'];
|
|
407
|
+
manufacturer: Scalars['String']['output'];
|
|
408
|
+
mileage: Scalars['Int']['output'];
|
|
409
|
+
modelName?: Maybe<Scalars['String']['output']>;
|
|
410
|
+
modelSeries?: Maybe<Scalars['String']['output']>;
|
|
411
|
+
modelYear: Scalars['Int']['output'];
|
|
412
|
+
odometerReading?: Maybe<OdometerReading>;
|
|
413
|
+
options: Array<Scalars['String']['output']>;
|
|
414
|
+
properties?: Maybe<Scalars['VehicleDataPropertyMap']['output']>;
|
|
415
|
+
propertySet?: Maybe<Scalars['VehicleDataPropertySet']['output']>;
|
|
416
|
+
registrationNumber?: Maybe<Scalars['String']['output']>;
|
|
417
|
+
salesName?: Maybe<Scalars['String']['output']>;
|
|
418
|
+
vin?: Maybe<Scalars['String']['output']>;
|
|
419
|
+
};
|
|
420
|
+
export type VehicleDataPropertySetArgs = {
|
|
421
|
+
category?: InputMaybe<Scalars['String']['input']>;
|
|
422
|
+
properties?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
423
|
+
};
|
|
424
|
+
export type VehicleFlags = {
|
|
425
|
+
__typename?: 'VehicleFlags';
|
|
426
|
+
auction?: Maybe<Scalars['Boolean']['output']>;
|
|
427
|
+
demoVersion?: Maybe<Scalars['Boolean']['output']>;
|
|
428
|
+
testDrive?: Maybe<Scalars['Boolean']['output']>;
|
|
429
|
+
};
|
|
430
|
+
export type _Service = {
|
|
431
|
+
__typename?: '_Service';
|
|
432
|
+
sdl: Scalars['String']['output'];
|
|
433
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conversion options control which call-to-action buttons are rendered on the item page,
|
|
3
|
+
* in which order, and how they look. Mirrors the "conversion_options" concept used on
|
|
4
|
+
* Wayke dealer websites, adapted to this package.
|
|
5
|
+
*/
|
|
6
|
+
export type ConversionOptionType =
|
|
7
|
+
/** "Buy online" - only rendered when the vehicle has e-commerce enabled. */
|
|
8
|
+
'ecom'
|
|
9
|
+
/** Opens the "Send message" lead form. The lead is registered in Wayke Dealer. */
|
|
10
|
+
| 'leadMessage'
|
|
11
|
+
/** Opens the "Get a callback" lead form. The lead is registered in Wayke Dealer. */
|
|
12
|
+
| 'leadCallMe'
|
|
13
|
+
/** Reveal the dealer email address. Opens the mail client with a pre-populated subject. */
|
|
14
|
+
| 'email'
|
|
15
|
+
/** Reveal the dealer phone number. */
|
|
16
|
+
| 'phone';
|
|
17
|
+
export interface ConversionOptionVehicle {
|
|
18
|
+
id: string;
|
|
19
|
+
title?: string | null;
|
|
20
|
+
registrationNumber?: string | null;
|
|
21
|
+
manufacturer?: string | null;
|
|
22
|
+
modelSeries?: string | null;
|
|
23
|
+
}
|
|
24
|
+
export type ConversionOptionText = string | ((vehicle: ConversionOptionVehicle) => string);
|
|
25
|
+
interface ConversionOptionBase {
|
|
26
|
+
type: ConversionOptionType;
|
|
27
|
+
/** Custom button label. Defaults to the translated label for the type. */
|
|
28
|
+
name?: string;
|
|
29
|
+
/** Render as primary button. Defaults to true for ecom/leadMessage/leadCallMe, false for email/phone. */
|
|
30
|
+
primary?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface ConversionOptionEmail extends ConversionOptionBase {
|
|
33
|
+
type: 'email';
|
|
34
|
+
/** Mail subject. Defaults to "<hostname> – I'm interested in <reg no>, <make> <model>". */
|
|
35
|
+
subject?: ConversionOptionText;
|
|
36
|
+
/** Mail body. Defaults to a link to the current page. Pass `false` to omit the body. */
|
|
37
|
+
body?: ConversionOptionText | false;
|
|
38
|
+
}
|
|
39
|
+
export interface ConversionOptionOther extends ConversionOptionBase {
|
|
40
|
+
type: Exclude<ConversionOptionType, 'email'>;
|
|
41
|
+
}
|
|
42
|
+
export type ConversionOption = ConversionOptionEmail | ConversionOptionOther;
|
|
43
|
+
/** Matches the behaviour before conversion options were introduced. */
|
|
44
|
+
export declare const defaultConversionOptions: ConversionOption[];
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type SearchFilterNameTypes = 'manufacturer' | 'modelSeries' | 'fuelType' | 'gearboxType' | 'branch' | 'color' | 'environmentClass' | 'properties.segment' | 'drivingWheel' | 'price' | 'mileage' | 'odometerValueAsKm' | 'modelYear' | 'leasingPrice' | 'businessLeasingPrice';
|
|
2
|
+
export type SearchFilterTypes = {
|
|
3
|
+
filterName: SearchFilterNameTypes;
|
|
4
|
+
displayName?: string;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MarketCode = 'NO' | 'SE';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export interface Stats {
|
|
2
|
+
totalHits: number;
|
|
3
|
+
searchEngineTimeInMillis: number;
|
|
4
|
+
searchEngineRoundTripTimeInMillis: number;
|
|
5
|
+
searchProcessingTimeInMillis: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Branch {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Format {
|
|
12
|
+
format: string;
|
|
13
|
+
id: string;
|
|
14
|
+
url: string;
|
|
15
|
+
webp: string;
|
|
16
|
+
jpeg: string;
|
|
17
|
+
}
|
|
18
|
+
export interface File {
|
|
19
|
+
formats: Format[];
|
|
20
|
+
id: string;
|
|
21
|
+
sortOrder: number;
|
|
22
|
+
url: string;
|
|
23
|
+
}
|
|
24
|
+
export interface FeaturedImage {
|
|
25
|
+
files: File[];
|
|
26
|
+
id: string;
|
|
27
|
+
sortOrder: number;
|
|
28
|
+
type: 'Image';
|
|
29
|
+
}
|
|
30
|
+
export interface PaginationPage {
|
|
31
|
+
displayName: string;
|
|
32
|
+
selected: boolean;
|
|
33
|
+
query: string;
|
|
34
|
+
}
|
|
35
|
+
export interface Pagination {
|
|
36
|
+
offset: number;
|
|
37
|
+
hitsPerPage: number;
|
|
38
|
+
firstPage: string | null;
|
|
39
|
+
previousPage: string | null;
|
|
40
|
+
nextPage: PaginationPage | null;
|
|
41
|
+
pages: PaginationPage[];
|
|
42
|
+
}
|
|
43
|
+
export interface SortOption {
|
|
44
|
+
displayName: string;
|
|
45
|
+
selected: boolean;
|
|
46
|
+
query: string;
|
|
47
|
+
}
|
|
48
|
+
export interface DocumentList {
|
|
49
|
+
id: string;
|
|
50
|
+
displayName: string;
|
|
51
|
+
numberOfHits: number;
|
|
52
|
+
documents: Document[];
|
|
53
|
+
pagination: Pagination;
|
|
54
|
+
sortOptions: SortOption[];
|
|
55
|
+
}
|
|
56
|
+
export type OdometerReadingUnit = 'Kilometer' | 'ScandinavianMile';
|
|
57
|
+
export interface OdometerReading {
|
|
58
|
+
unit: OdometerReadingUnit;
|
|
59
|
+
value: number;
|
|
60
|
+
}
|
|
61
|
+
export interface Document {
|
|
62
|
+
_id: string;
|
|
63
|
+
_type: string;
|
|
64
|
+
branches: Branch[];
|
|
65
|
+
deductibleVat: boolean;
|
|
66
|
+
featuredImage: FeaturedImage;
|
|
67
|
+
gearboxType: string;
|
|
68
|
+
hasManufacturerPackaging: boolean;
|
|
69
|
+
itemPublished: string;
|
|
70
|
+
itemUpdated: string;
|
|
71
|
+
manufacturer: string;
|
|
72
|
+
mileage: number;
|
|
73
|
+
odometerReading?: OdometerReading;
|
|
74
|
+
modelSeries: string;
|
|
75
|
+
modelYear: number;
|
|
76
|
+
fuelType: string;
|
|
77
|
+
price: number;
|
|
78
|
+
oldPrice?: number;
|
|
79
|
+
registrationNumber: string;
|
|
80
|
+
salesName: string;
|
|
81
|
+
shortDescription: string;
|
|
82
|
+
title: string;
|
|
83
|
+
leasingPrice?: number;
|
|
84
|
+
businessLeasingPrice?: number;
|
|
85
|
+
}
|
|
86
|
+
export interface FacetFilter {
|
|
87
|
+
displayName: string;
|
|
88
|
+
selected: boolean;
|
|
89
|
+
query: string;
|
|
90
|
+
count: number;
|
|
91
|
+
children: any[];
|
|
92
|
+
}
|
|
93
|
+
export interface Facet {
|
|
94
|
+
id: string;
|
|
95
|
+
displayName: string;
|
|
96
|
+
selectionType: 'OR';
|
|
97
|
+
multipleLevels: boolean;
|
|
98
|
+
filters: FacetFilter[];
|
|
99
|
+
}
|
|
100
|
+
export interface Query {
|
|
101
|
+
displayName: string;
|
|
102
|
+
id: string;
|
|
103
|
+
parameters: string | null;
|
|
104
|
+
queryString: string | null;
|
|
105
|
+
}
|
|
106
|
+
export interface Search {
|
|
107
|
+
stats: Stats;
|
|
108
|
+
query: Query | null;
|
|
109
|
+
documentList: DocumentList;
|
|
110
|
+
facets: Facet[];
|
|
111
|
+
spell: null;
|
|
112
|
+
quickLinks: null;
|
|
113
|
+
errorMessages: string[];
|
|
114
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface Property {
|
|
2
|
+
value: string | number | boolean | string[];
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
unit: string | null | undefined;
|
|
6
|
+
hint: string | null | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface Category {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
properties: Property[];
|
|
12
|
+
subCategories: Category[];
|
|
13
|
+
}
|
|
14
|
+
export interface Tree {
|
|
15
|
+
categories: Category[];
|
|
16
|
+
}
|
|
17
|
+
export interface EnhancedProperty {
|
|
18
|
+
value: number | string | boolean | string[];
|
|
19
|
+
name: string;
|
|
20
|
+
type: string;
|
|
21
|
+
unit: string | undefined | null;
|
|
22
|
+
category: ItemCategory | undefined | null;
|
|
23
|
+
hint: string | undefined | null;
|
|
24
|
+
}
|
|
25
|
+
export interface ItemCategory {
|
|
26
|
+
name: string;
|
|
27
|
+
id: number;
|
|
28
|
+
subCategory: ItemCategory | undefined | null;
|
|
29
|
+
}
|