@wayke-se/components-react 5.2.0-beta.0 → 6.0.0-beta.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 +222 -122
- package/dist/index.js +1365 -1489
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +1381 -1505
- package/dist/index.mjs.map +4 -4
- package/dist/types/src/@types/filter.d.ts +7 -1
- package/dist/types/src/Gql/ad/legacyWaykeId.d.ts +1 -0
- package/dist/types/src/Gql/ad/propertyTree.d.ts +5 -0
- package/dist/types/src/Gql/ad/queries.d.ts +9 -0
- package/dist/types/src/Gql/ad/types.d.ts +378 -0
- package/dist/types/src/Gql/ad/useAd.d.ts +8 -0
- package/dist/types/src/Gql/ad/useInsuranceInquiry.d.ts +11 -0
- package/dist/types/src/Gql/ad/useLoanCalculation.d.ts +14 -0
- package/dist/types/src/Gql/ad/useRelatedAds.d.ts +12 -0
- package/dist/types/src/Gql/ad/view.d.ts +94 -0
- package/dist/types/src/Gql/client.d.ts +11 -0
- package/dist/types/src/Gql/config.d.ts +9 -0
- package/dist/types/src/Gql/facets.d.ts +19 -0
- package/dist/types/src/Gql/hit.d.ts +5 -0
- package/dist/types/src/Gql/legacyParams.d.ts +7 -0
- package/dist/types/src/Gql/queries.d.ts +17 -0
- package/dist/types/src/Gql/searchParams.d.ts +55 -0
- package/dist/types/src/Gql/suggest.d.ts +8 -0
- package/dist/types/src/Gql/types.d.ts +131 -0
- package/dist/types/src/Gql/useAdsSearch.d.ts +21 -0
- package/dist/types/src/State/Ad/AdContext.d.ts +5 -0
- package/dist/types/src/State/Router/RouterContext.d.ts +15 -0
- package/dist/types/src/State/Router/RouterProvider.d.ts +6 -0
- package/dist/types/src/State/Router/useRouter.d.ts +2 -0
- package/dist/types/src/State/Search/SearchContext.d.ts +15 -9
- package/dist/types/src/State/Search/SearchProvider.d.ts +1 -5
- package/dist/types/src/State/Settings/SettingsContext.d.ts +2 -12
- package/dist/types/src/State/Settings/settings.d.ts +56 -0
- package/dist/types/src/State/Settings/useSettings.d.ts +1 -1
- package/dist/types/src/components/ActionList/index.d.ts +3 -10
- package/dist/types/src/components/DocumentList/index.d.ts +3 -3
- package/dist/types/src/components/Filter/index.d.ts +1 -3
- package/dist/types/src/components/FilterPanel/checkListFacet.d.ts +2 -3
- package/dist/types/src/components/FilterPanel/colorFacet.d.ts +2 -3
- package/dist/types/src/components/FilterPanel/faceSelector.d.ts +2 -3
- package/dist/types/src/components/FilterPanel/index.d.ts +8 -15
- package/dist/types/src/components/FilterPanel/rangeFacet.d.ts +3 -3
- package/dist/types/src/components/FinancialOptions/LoanModal.d.ts +3 -7
- package/dist/types/src/components/FinancialOptions/index.d.ts +5 -7
- package/dist/types/src/components/FinancialOptions/leasing.d.ts +3 -3
- package/dist/types/src/components/FinancialOptions/loan.d.ts +3 -7
- package/dist/types/src/components/Gallery/index.d.ts +3 -5
- package/dist/types/src/components/Grid/index.d.ts +3 -7
- package/dist/types/src/components/InsuranceOptions/Insurance.d.ts +4 -6
- package/dist/types/src/components/InsuranceOptions/InsuranceFree.d.ts +5 -7
- package/dist/types/src/components/InsuranceOptions/InsuranceFreeModal.d.ts +4 -4
- package/dist/types/src/components/InsuranceOptions/InsuranceModal.d.ts +4 -6
- package/dist/types/src/components/InsuranceOptions/index.d.ts +5 -6
- package/dist/types/src/components/LeadForm/index.d.ts +1 -6
- package/dist/types/src/components/Lightbox/index.d.ts +2 -2
- package/dist/types/src/components/Map/index.d.ts +4 -2
- package/dist/types/src/components/OpeningHours/index.d.ts +2 -2
- package/dist/types/src/components/ProductCard/HitCard.d.ts +10 -0
- package/dist/types/src/components/ProductCard/index.d.ts +9 -13
- package/dist/types/src/components/SearchBar/index.d.ts +4 -1
- package/dist/types/src/components/SearchBar/wrapper.d.ts +10 -0
- package/dist/types/src/components/SortSelect/index.d.ts +1 -2
- package/dist/types/src/hooks/useSubmitLead.d.ts +1 -1
- package/dist/types/src/index.d.ts +5 -4
- package/dist/types/src/layouts/WaykeComposite.d.ts +3 -8
- package/dist/types/src/layouts/WaykeCompositeWithProvider.d.ts +1 -1
- package/dist/types/src/layouts/search/index.d.ts +6 -7
- package/dist/types/src/layouts/searchItem/Accessories/AccessoryModal.d.ts +2 -2
- package/dist/types/src/layouts/searchItem/Accessories/index.d.ts +2 -2
- package/dist/types/src/layouts/searchItem/Branch.d.ts +3 -4
- package/dist/types/src/layouts/searchItem/CheckList.d.ts +3 -15
- package/dist/types/src/layouts/searchItem/Documents.d.ts +2 -2
- package/dist/types/src/layouts/searchItem/ManufacturerPackagesOption.d.ts +2 -2
- package/dist/types/src/layouts/searchItem/PackageOptions.d.ts +3 -3
- package/dist/types/src/layouts/searchItem/Property.d.ts +1 -6
- package/dist/types/src/layouts/searchItem/Related.d.ts +5 -6
- package/dist/types/src/layouts/searchItem/index.d.ts +8 -6
- package/dist/types/src/layouts/searchItem/useEcom.d.ts +7 -3
- package/dist/types/src/providers/WaykeProvider.d.ts +7 -21
- package/dist/types/src/utils/image.d.ts +14 -0
- package/dist/types/src/utils/sortOptions.d.ts +4 -13
- package/package.json +10 -16
- package/dist/types/src/@types/action.d.ts +0 -3
- package/dist/types/src/@types/codegen/types.d.ts +0 -433
- package/dist/types/src/@types/queryFilter.d.ts +0 -5
- package/dist/types/src/@types/search.d.ts +0 -114
- package/dist/types/src/State/CentralStorage/CentralStorageContext.d.ts +0 -5
- package/dist/types/src/State/CentralStorage/CentralStorageProvider.d.ts +0 -6
- package/dist/types/src/State/CentralStorage/useCentralStorage.d.ts +0 -6
- package/dist/types/src/State/Path/PathContext.d.ts +0 -8
- package/dist/types/src/State/Path/PathProvider.d.ts +0 -6
- package/dist/types/src/State/Path/reducer.d.ts +0 -14
- package/dist/types/src/State/Path/usePath.d.ts +0 -3
- package/dist/types/src/State/RelatedSearch/RelatedSearchContext.d.ts +0 -9
- package/dist/types/src/State/RelatedSearch/RelatedSearchProvider.d.ts +0 -9
- package/dist/types/src/State/RelatedSearch/useRelatedSearch.d.ts +0 -2
- package/dist/types/src/State/Settings/SettingsProvider.d.ts +0 -11
- package/dist/types/src/components/Video/QuickNavVideo.d.ts +0 -7
- package/dist/types/src/hooks/apolloTypes.d.ts +0 -6
- package/dist/types/src/hooks/useHasBeenVisible.d.ts +0 -2
- package/dist/types/src/hooks/useHashGuid.d.ts +0 -2
- package/dist/types/src/hooks/useInsurance.d.ts +0 -4
- package/dist/types/src/hooks/useLoan.d.ts +0 -4
- package/dist/types/src/hooks/useOnScreen.d.ts +0 -2
- package/dist/types/src/hooks/usePrevious.d.ts +0 -2
- package/dist/types/src/hooks/useSearchItem.d.ts +0 -4
- package/dist/types/src/hooks/useSearchItemBranch.d.ts +0 -4
- package/dist/types/src/hooks/useSessionStorage.d.ts +0 -7
- package/dist/types/src/layouts/searchItem/BranchModal.d.ts +0 -9
- package/dist/types/src/providers/WaykeItemProvidet.d.ts +0 -24
- package/dist/types/src/providers/graphqlProvider.d.ts +0 -6
- package/dist/types/src/queries/INSURANCE_CALCULATION.d.ts +0 -2
- package/dist/types/src/queries/LOAN_CALCULATION.d.ts +0 -2
- package/dist/types/src/queries/SEARCH_ITEM_BRANCH_QUERY.d.ts +0 -2
- package/dist/types/src/queries/SEARCH_ITEM_QUERY.d.ts +0 -2
- package/dist/types/src/utils/deep-copy.d.ts +0 -5
- package/dist/types/src/utils/regex.d.ts +0 -3
- package/dist/types/src/utils/specification.d.ts +0 -28
- package/dist/types/src/utils/url.d.ts +0 -1
- package/dist/types/src/utils/vehicle-properties/compare-basic-properties.d.ts +0 -3
- package/dist/types/src/utils/vehicle-properties/compare-categories.d.ts +0 -3
- package/dist/types/src/utils/vehicle-properties/compare-properties.d.ts +0 -3
- package/dist/types/src/utils/vehicle-properties/custom-property-adder.d.ts +0 -13
- package/dist/types/src/utils/vehicle-properties/property-remover.d.ts +0 -7
- package/dist/types/src/utils/vehicle-properties/property-tree-creator.d.ts +0 -31
- package/dist/types/src/utils/vehicle-properties/property-tree-sorter.d.ts +0 -3
|
@@ -1,433 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseAction } from '../../@types/action';
|
|
2
|
-
export declare const SET_PATH = "SET_PATH";
|
|
3
|
-
type SET_PATH_TYPE = BaseAction<typeof SET_PATH> & {
|
|
4
|
-
path: string;
|
|
5
|
-
};
|
|
6
|
-
type PathAction = SET_PATH_TYPE;
|
|
7
|
-
interface PathState {
|
|
8
|
-
path: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const initialState: PathState;
|
|
11
|
-
declare const pathReducer: (state: PathState, action: PathAction) => {
|
|
12
|
-
path: string;
|
|
13
|
-
};
|
|
14
|
-
export default pathReducer;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Search } from '../../@types/search';
|
|
2
|
-
export interface RelatedSearchContextProps {
|
|
3
|
-
moreLikeThisUrl: boolean;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
response?: Search;
|
|
6
|
-
error: boolean;
|
|
7
|
-
fetchRelated: (searchParmas: URLSearchParams) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const RelatedSearchContext: import("react").Context<RelatedSearchContextProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface RelatedSearchProviderProps {
|
|
3
|
-
url: string;
|
|
4
|
-
urlMlt?: string;
|
|
5
|
-
apiKey?: string;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const RelatedSearchProvider: ({ url, urlMlt, apiKey, children }: RelatedSearchProviderProps) => React.JSX.Element;
|
|
9
|
-
export default RelatedSearchProvider;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EcomSettings } from '../../providers/WaykeProvider';
|
|
3
|
-
interface SettingsProps {
|
|
4
|
-
apiUrl?: string;
|
|
5
|
-
ecomSettings?: EcomSettings;
|
|
6
|
-
googleMapsApiKey?: string;
|
|
7
|
-
googleMapsMarker?: string;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare const SettingsProvider: ({ apiUrl, googleMapsApiKey, googleMapsMarker, ecomSettings, children, }: SettingsProps) => React.JSX.Element;
|
|
11
|
-
export default SettingsProvider;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { OperationVariables } from '@apollo/client';
|
|
2
|
-
import { QueryResult } from '@apollo/client/react';
|
|
3
|
-
export type StrictQueryResult<TData, TVars extends OperationVariables = OperationVariables> = Omit<QueryResult<TData, TVars>, 'data'> & {
|
|
4
|
-
data?: TData;
|
|
5
|
-
};
|
|
6
|
-
export declare const asStrict: <TData, TVars extends OperationVariables>(result: QueryResult<TData, TVars>) => StrictQueryResult<TData, TVars>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DrivingDistance, Query, QueryInsurancesArgs } from '../@types/codegen/types';
|
|
2
|
-
import { StrictQueryResult } from './apolloTypes';
|
|
3
|
-
declare const useInsuranceCalculation: (id: string, branchId?: string, personalNumber?: string, drivingDistance?: DrivingDistance) => StrictQueryResult<Query, QueryInsurancesArgs>;
|
|
4
|
-
export default useInsuranceCalculation;
|