@bytebrand/export-cars 1.21.6 → 1.21.8

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.
Files changed (160) hide show
  1. package/.editorconfig +8 -8
  2. package/.eslintignore +1 -1
  3. package/.eslintrc.js +24 -24
  4. package/.prettierrc.js +7 -7
  5. package/README.md +65 -65
  6. package/dist/configs/index.d.ts +1 -0
  7. package/dist/configs/index.js +1 -0
  8. package/dist/configs/index.js.map +1 -1
  9. package/dist/configs/santander.config.d.ts +5 -0
  10. package/dist/configs/santander.config.js +18 -0
  11. package/dist/configs/santander.config.js.map +1 -0
  12. package/dist/enums/export-type.enum.d.ts +1 -0
  13. package/dist/enums/export-type.enum.js +1 -0
  14. package/dist/enums/export-type.enum.js.map +1 -1
  15. package/dist/export.command.js +1 -1
  16. package/dist/export.command.js.map +1 -1
  17. package/dist/export.schema.d.ts +6 -2
  18. package/dist/export.schema.js +4 -0
  19. package/dist/export.schema.js.map +1 -1
  20. package/dist/exporters/autouncle.exporter.js +5 -1
  21. package/dist/exporters/autouncle.exporter.js.map +1 -1
  22. package/dist/exporters/fb.exporter.js +7 -1
  23. package/dist/exporters/fb.exporter.js.map +1 -1
  24. package/dist/exporters/index.d.ts +1 -0
  25. package/dist/exporters/index.js +1 -0
  26. package/dist/exporters/index.js.map +1 -1
  27. package/dist/exporters/santander.exporter.d.ts +12 -0
  28. package/dist/exporters/santander.exporter.js +63 -0
  29. package/dist/exporters/santander.exporter.js.map +1 -0
  30. package/dist/formats/auto24-xml.builder.js +2 -2
  31. package/dist/formats/google-xml.builder.js +3 -3
  32. package/dist/formats/modix-xml.builder.js +2 -2
  33. package/dist/formats/ooyyo-xml.builder.js +1 -1
  34. package/dist/formats/santander-csv.builder.d.ts +6 -0
  35. package/dist/formats/santander-csv.builder.js +17 -0
  36. package/dist/formats/santander-csv.builder.js.map +1 -0
  37. package/dist/tsconfig.build.tsbuildinfo +1 -1
  38. package/nest-cli.json +5 -5
  39. package/package.json +61 -61
  40. package/src/app.module.ts +38 -38
  41. package/src/configs/alleskralle.config.ts +15 -15
  42. package/src/configs/as24.config.ts +13 -13
  43. package/src/configs/auto24.config.ts +15 -15
  44. package/src/configs/autoboerse.config.ts +16 -16
  45. package/src/configs/autouncle.config.ts +14 -14
  46. package/src/configs/awin.config.ts +15 -15
  47. package/src/configs/by-owner.config.ts +14 -14
  48. package/src/configs/config.ts +83 -83
  49. package/src/configs/criteo.config.ts +17 -17
  50. package/src/configs/dasparking.config.ts +15 -15
  51. package/src/configs/eauto.config.ts +15 -15
  52. package/src/configs/evium.config.ts +18 -18
  53. package/src/configs/facebook-shop.config.ts +16 -16
  54. package/src/configs/fb.config.ts +16 -16
  55. package/src/configs/google.config.ts +14 -14
  56. package/src/configs/index.ts +22 -21
  57. package/src/configs/kleinanzeigeFocus.config.ts +14 -14
  58. package/src/configs/marktde.config.ts +18 -18
  59. package/src/configs/meinstadt.config.ts +15 -15
  60. package/src/configs/mitula.config.ts +14 -14
  61. package/src/configs/ooyyo.config.ts +15 -15
  62. package/src/configs/santander.config.ts +15 -0
  63. package/src/configs/trovit.config.ts +14 -14
  64. package/src/configs/yescar.config.ts +17 -17
  65. package/src/constants/autouncle.contants.ts +4 -4
  66. package/src/constants/fb.constants.ts +7 -7
  67. package/src/constants/index.ts +1 -1
  68. package/src/constants/modix/body-color-name.constant.ts +20 -20
  69. package/src/constants/modix/category.constant.ts +14 -14
  70. package/src/constants/modix/fuel.constant.ts +14 -14
  71. package/src/constants/modix/index.ts +7 -7
  72. package/src/constants/modix/manufacturers.constant.ts +7498 -7498
  73. package/src/constants/modix/transmission.constant.ts +8 -8
  74. package/src/constants/modix/usage-type.constant.ts +13 -13
  75. package/src/constants/modix/vehicle-class.constant.ts +17 -17
  76. package/src/enums/environment.enum.ts +5 -5
  77. package/src/enums/export-type.enum.ts +33 -32
  78. package/src/enums/file-types.enum.ts +8 -8
  79. package/src/enums/image-type.enum.ts +4 -4
  80. package/src/enums/index.ts +4 -4
  81. package/src/export.command.ts +37 -37
  82. package/src/export.schema.ts +134 -128
  83. package/src/exporters/as24.exporter.ts +69 -69
  84. package/src/exporters/auto24.exporter.ts +48 -48
  85. package/src/exporters/autouncle.exporter.ts +60 -58
  86. package/src/exporters/awin.exporter.ts +47 -47
  87. package/src/exporters/by-owner.exporter.ts +44 -44
  88. package/src/exporters/facebook-shop.exporter.ts +51 -51
  89. package/src/exporters/fb.exporter.ts +52 -50
  90. package/src/exporters/google.exporter.ts +45 -45
  91. package/src/exporters/index.ts +15 -14
  92. package/src/exporters/meinstadt.exporter.ts +55 -55
  93. package/src/exporters/mobile.exporter.ts +64 -64
  94. package/src/exporters/modix.exporter.ts +56 -56
  95. package/src/exporters/ooyyo.exporter.ts +48 -48
  96. package/src/exporters/rubrikk.exporter.ts +53 -53
  97. package/src/exporters/santander.exporter.ts +50 -0
  98. package/src/exporters/trovit.exporter.ts +51 -51
  99. package/src/formats/auto24-xml.builder.ts +54 -54
  100. package/src/formats/autouncle-json.builder.ts +20 -20
  101. package/src/formats/awin-csv.builder.ts +16 -16
  102. package/src/formats/facebook-shop.builder.ts +69 -69
  103. package/src/formats/fb-xml.builder.ts +71 -71
  104. package/src/formats/google-xml.builder.ts +35 -35
  105. package/src/formats/index.ts +5 -5
  106. package/src/formats/meinstadt-json.builder.ts +19 -19
  107. package/src/formats/modix-xml.builder.ts +180 -180
  108. package/src/formats/ooyyo-xml.builder.ts +48 -48
  109. package/src/formats/rubrikk-xml.builder.ts +27 -27
  110. package/src/formats/santander-csv.builder.ts +15 -0
  111. package/src/formats/trovit-xml.builder.ts +44 -44
  112. package/src/interfaces/atributes-wrap-item.intreface.ts +6 -6
  113. package/src/interfaces/dealers-mapping.interface.ts +7 -7
  114. package/src/interfaces/description.interface.ts +24 -24
  115. package/src/interfaces/export-item.interface.ts +366 -366
  116. package/src/interfaces/exporter.interface.ts +3 -3
  117. package/src/interfaces/index.ts +3 -3
  118. package/src/interfaces/input.interface.ts +6 -6
  119. package/src/interfaces/mapping-rules.interface.ts +11 -11
  120. package/src/interfaces/modix/index.ts +1 -1
  121. package/src/interfaces/modix/modix-item-list.interface.ts +5 -5
  122. package/src/interfaces/params.interface.ts +13 -13
  123. package/src/interfaces/rule-parser.interface.ts +3 -3
  124. package/src/main.ts +14 -14
  125. package/src/rules/abstract.rule.ts +37 -37
  126. package/src/rules/date.rule.ts +19 -19
  127. package/src/rules/number.rule.ts +15 -15
  128. package/src/rules/string.rule.ts +8 -8
  129. package/src/services/car.service.ts +49 -49
  130. package/src/services/config.service.ts +15 -15
  131. package/src/services/images.service.ts +207 -207
  132. package/src/services/index.ts +9 -9
  133. package/src/services/loader.service.ts +29 -29
  134. package/src/services/mapping.service.ts +91 -91
  135. package/src/services/request.service.ts +44 -44
  136. package/src/services/rules.service.ts +61 -61
  137. package/src/services/transformer.service.ts +129 -129
  138. package/src/services/user.service.ts +57 -57
  139. package/src/transformers/as24.transformer.ts +253 -253
  140. package/src/transformers/auto24.transfomer.ts +155 -155
  141. package/src/transformers/autouncle.transformer.ts +236 -236
  142. package/src/transformers/awin.transformer.ts +193 -193
  143. package/src/transformers/by-owner.transformer.ts +354 -354
  144. package/src/transformers/facebook-shop.transformer.ts +93 -93
  145. package/src/transformers/fb-description.transformer.ts +316 -316
  146. package/src/transformers/fb-equipment.transformer.ts +161 -161
  147. package/src/transformers/fb.transformer.ts +655 -655
  148. package/src/transformers/google.transformer.ts +169 -169
  149. package/src/transformers/index.ts +5 -5
  150. package/src/transformers/meinstadt.transformer.ts +92 -92
  151. package/src/transformers/mobile.transformer.ts +482 -482
  152. package/src/transformers/modix.transformer.ts +227 -227
  153. package/src/transformers/ooyyo.transformer.ts +109 -109
  154. package/src/transformers/rubrikk.transformer.ts +200 -200
  155. package/src/transformers/trovit.transformer.ts +63 -63
  156. package/src/utils/converter.utils.ts +15 -15
  157. package/src/utils/index.ts +2 -2
  158. package/src/utils/validator.utils.ts +7 -7
  159. package/tsconfig.build.json +4 -4
  160. package/tsconfig.json +29 -29
@@ -1,367 +1,367 @@
1
- import { DataSchemes } from '@bytebrand/car-schema';
2
-
3
- import { IAtributeWrapItem } from './atributes-wrap-item.intreface';
4
- import { Description } from './description.interface';
5
-
6
- export interface FbXmlItem {
7
- url: string;
8
- title: string;
9
- content: string;
10
- price: string;
11
- make: string;
12
- model: string;
13
- engine_size: string;
14
- trim: string;
15
- body_type: string;
16
- color: string;
17
- year: string;
18
- fuel_type: string;
19
- transmission: string;
20
- power: string;
21
- doors: string;
22
- seats: string;
23
- gears: string;
24
- pictures: string[];
25
- vin: string;
26
- is_new: string;
27
- date: string;
28
- time: string;
29
- location: {
30
- city: string;
31
- postcode: string;
32
- region: string;
33
- };
34
- }
35
-
36
- export interface Auto24XmlItem {
37
- autodeid: string;
38
- userlink: string;
39
- brand: string;
40
- modell: string;
41
- cartype: string;
42
- variant: string;
43
- bodytype: string;
44
- fueltype: string;
45
- consumptionK: string;
46
- co2: string;
47
- efficiencyclass: string;
48
- image: string;
49
- registration: string;
50
- images: string[];
51
- price: string;
52
- power: string;
53
- zip: string;
54
- city: string;
55
- mileage: string;
56
- companyname: string;
57
- extras: string;
58
- sellertype: string;
59
- condition: string;
60
- dealer_homepage_url: string;
61
- dealer_email: string;
62
- dealer_name: string;
63
- dealer_phone: string;
64
- }
65
-
66
- export interface OoyyoXmlItem extends FbXmlItem {
67
- euronorm: string;
68
- mileage: string;
69
- }
70
-
71
- export interface MeinstadtJsonItem {
72
- id: string;
73
- make: string;
74
- model: string;
75
- cpc: string;
76
- listingUrl: string;
77
- title: string;
78
- accidentFree: boolean;
79
- mileage: number;
80
- initialRegistration: string;
81
- offerCreationDate: string;
82
- numberOfDoors: number;
83
- numberOfSeats: number;
84
- numberOfPreviousOwners: number;
85
- price: number;
86
- powerPS: string;
87
- powerKS: string;
88
- co2Emissions: number;
89
- fuelConsumptionCombined: number;
90
- equipment: string;
91
- color: string;
92
- bodyType: string;
93
- emissionClass: string;
94
- emissionSticker: string;
95
- fuelType: string;
96
- transmissionType: string;
97
- sellerType: string;
98
- usageState: string;
99
- imagesCount: number;
100
- images: string;
101
- power: number;
102
- 'transmissionType/transmission': string;
103
- 'customerType/sellerType': string;
104
- }
105
-
106
- export interface AutouncleJsonItem {
107
- back_link: string;
108
- make: string;
109
- model_name: string;
110
- model_variant: string;
111
- fuel: string;
112
- body: string;
113
- doors: string;
114
- price: string;
115
- year: string;
116
- mileage: string;
117
- leasing: string;
118
- color: string;
119
- engine_size: string;
120
- power: string;
121
- gear_type: string;
122
- has_4wd: string;
123
- seller_type: string;
124
- seller_region: string;
125
- seller_city: string;
126
- seller_street_address: string;
127
- seller_postcode: string;
128
- seller_name: string;
129
- seller_id: string;
130
- description: string;
131
- images: { url: string }[];
132
- fuel_economy: string;
133
- co2_emission: string;
134
- co2_effiency_class: string;
135
- euro_emission_class: string;
136
- enviromental_sticker: string;
137
- status: string;
138
- }
139
-
140
- export interface GoogleXmlItem {
141
- id: string;
142
- title: string;
143
- description: string;
144
- google_product_category: string;
145
- product_type: string;
146
- link: string;
147
- image_link: string;
148
- condition: string;
149
- availability: string;
150
- brand: any;
151
- price: string;
152
- sale_price: string;
153
- energy_efficiency_class: string;
154
- color: string;
155
- installment: { paybackPeriod: any; monthlyInstallment: any };
156
- custom_label_0: string;
157
- }
158
-
159
- export interface RubrikkXmlItem {
160
- ad__all_imageurls: string[];
161
- ad__condition_new_used_etc: string;
162
- ad__description: string;
163
- ad__headline: string;
164
- ad__imageurl: string;
165
- ad__price: number;
166
- ad__price_currency: string;
167
- product__type: string;
168
- ad__url: string;
169
- efficiency_class: string;
170
- ad__number_ad__number_reference_id: string;
171
- category_original: string;
172
- maincategory_original: string;
173
- advertiser__company_homepage_url: string;
174
- advertiser__company_logo_url: string;
175
- advertiser__email: string;
176
- advertiser__name_company_name: string;
177
- advertiser__phone: string;
178
- location__country: string;
179
- location__municipality_city: string;
180
- location__zip_postal_code: string;
181
- motoring__body_type: string;
182
- motoring__color: string;
183
- motoring__drivetrain: string;
184
- motoring__emission_class: string;
185
- motoring__emission_co2: number;
186
- motoring__emission_co2_unit: string;
187
- motoring__emission_sticker: string;
188
- motoring__engine_displacement_cubic_centimeters: number;
189
- motoring__fuel_consumption_combined: number;
190
- motoring__fuel_consumption_extra_urban: number;
191
- motoring__fuel_consumption_extra_urban_unit: string;
192
- motoring__fuel_consumption_combined_unit: string;
193
- motoring__fuel_consumption_urban: number;
194
- motoring__fuel_consumption_urban_unit: string;
195
- motoring__fuel_type: string;
196
- motoring__make: string;
197
- motoring__mileage_kilometers: number;
198
- motoring__model: string;
199
- motoring__model_year: string;
200
- motoring__number_of_doors: number;
201
- motoring__number_of_seats: number;
202
- motoring__power_kw: number;
203
- motoring__power_hp: number;
204
- motoring__transmission: string;
205
- }
206
-
207
- export interface ModixXmlItem {
208
- maindata: {
209
- category: IAtributeWrapItem;
210
- manufacturer: IAtributeWrapItem;
211
- model: IAtributeWrapItem;
212
- submodel: IAtributeWrapItem;
213
- mileage: IAtributeWrapItem;
214
- cylinderCapacity: IAtributeWrapItem;
215
- enginePower: IAtributeWrapItem;
216
- fuel: IAtributeWrapItem;
217
- accident: IAtributeWrapItem;
218
- transmission: IAtributeWrapItem;
219
- usageCategory: IAtributeWrapItem;
220
- bodyStyle: IAtributeWrapItem;
221
- isOnline: IAtributeWrapItem;
222
- };
223
- bodyColors: bodyColorItem;
224
- dates: mapSameTagsItem[];
225
- identification: identificationItem;
226
- prices: priceItem;
227
- images: imageItem;
228
- dealer: dealerItem;
229
- options: Omit<DataSchemes.Car, 'state'>;
230
- }
231
-
232
- export interface mapSameTagsItem {
233
- tag: string;
234
- value: any;
235
- atributes?: any;
236
- }
237
-
238
- export interface tagWrapperItem {
239
- [key: string]: { value: any; atributes?: any };
240
- }
241
-
242
- export interface bodyColorItem {
243
- id: number;
244
- data: {
245
- name: IAtributeWrapItem;
246
- description: IAtributeWrapItem;
247
- paint: IAtributeWrapItem;
248
- };
249
- }
250
-
251
- export interface identificationItem {
252
- hsnTsn: {
253
- hsn: IAtributeWrapItem;
254
- tsn: IAtributeWrapItem;
255
- };
256
- vin: IAtributeWrapItem;
257
- datEuropacode: IAtributeWrapItem;
258
- schwackecode: IAtributeWrapItem;
259
- }
260
-
261
- export interface imageItem {
262
- url: string;
263
- imageList: IAtributeWrapItem[];
264
- }
265
-
266
- export interface priceItem {
267
- vatReclaimable: boolean;
268
- grossPrice: IAtributeWrapItem;
269
- }
270
-
271
- export interface dealerItem {
272
- address: {
273
- company: IAtributeWrapItem;
274
- street: IAtributeWrapItem;
275
- city: IAtributeWrapItem;
276
- zip: IAtributeWrapItem;
277
- country: IAtributeWrapItem;
278
- phone: IAtributeWrapItem;
279
- fax: IAtributeWrapItem;
280
- email: IAtributeWrapItem;
281
- homepage: IAtributeWrapItem;
282
- };
283
- imprint: {
284
- registerId: IAtributeWrapItem;
285
- representitive: IAtributeWrapItem;
286
- vatid: IAtributeWrapItem;
287
- };
288
- }
289
-
290
- export interface FacebookShopItem {
291
- id: FacebookShopTag;
292
- title: FacebookShopTag;
293
- description: { value: Description[]; isGoogle: boolean };
294
- availability: FacebookShopTag;
295
- condition: FacebookShopTag;
296
- price: FacebookShopTag;
297
- link: FacebookShopTag;
298
- image_link: FacebookShopTag;
299
- additional_image_link: FacebookShopTag;
300
- brand: FacebookShopTag;
301
-
302
- quantity_to_sell_on_facebook: FacebookShopTag;
303
- google_product_category: FacebookShopTag;
304
- sale_price: FacebookShopTag;
305
- status: FacebookShopTag;
306
- color: FacebookShopTag;
307
- product_type: FacebookShopTag;
308
- }
309
-
310
- export interface FacebookShopTag {
311
- isGoogle: boolean;
312
- value: any;
313
- }
314
-
315
- export interface TrovitXmlItem {
316
- id: IAtributeWrapItem;
317
- url: IAtributeWrapItem;
318
- title: IAtributeWrapItem;
319
- content: IAtributeWrapItem;
320
- price: IAtributeWrapItem;
321
- car_type: IAtributeWrapItem;
322
- dealer: IAtributeWrapItem;
323
- postcode: IAtributeWrapItem;
324
- vin_database: IAtributeWrapItem;
325
- make: IAtributeWrapItem;
326
- model: IAtributeWrapItem;
327
- color: IAtributeWrapItem;
328
- year: IAtributeWrapItem;
329
- mileage: IAtributeWrapItem;
330
- doors: IAtributeWrapItem;
331
- seats: IAtributeWrapItem;
332
- engine_size: IAtributeWrapItem;
333
- cylinders: IAtributeWrapItem;
334
- fuel: IAtributeWrapItem;
335
- transmission: IAtributeWrapItem;
336
- power: IAtributeWrapItem;
337
- fuel_consumption: IAtributeWrapItem;
338
- co2_emissions: IAtributeWrapItem;
339
- pictures: Array<string>;
340
- is_new: IAtributeWrapItem;
341
- }
342
-
343
- export interface Awin {
344
- product_id: string;
345
- product_name: string;
346
- brand_name: string;
347
- product_model: string;
348
- deep_link: string;
349
- image_url: string;
350
- alternate_image: string;
351
- alternate_image_two: string;
352
- alternate_image_three: string;
353
- alternate_image_four: string;
354
- price: number | string;
355
- currency: string;
356
- rrp_price: number | string;
357
- saving: number| string;
358
- savings_percent: number| string;
359
- colour: string;
360
- condition: string;
361
- delivery_time: string;
362
- last_updated: string;
363
- merchant_category: string;
364
- warranty: string;
365
- energy_label: string;
366
- description: string;
1
+ import { DataSchemes } from '@bytebrand/car-schema';
2
+
3
+ import { IAtributeWrapItem } from './atributes-wrap-item.intreface';
4
+ import { Description } from './description.interface';
5
+
6
+ export interface FbXmlItem {
7
+ url: string;
8
+ title: string;
9
+ content: string;
10
+ price: string;
11
+ make: string;
12
+ model: string;
13
+ engine_size: string;
14
+ trim: string;
15
+ body_type: string;
16
+ color: string;
17
+ year: string;
18
+ fuel_type: string;
19
+ transmission: string;
20
+ power: string;
21
+ doors: string;
22
+ seats: string;
23
+ gears: string;
24
+ pictures: string[];
25
+ vin: string;
26
+ is_new: string;
27
+ date: string;
28
+ time: string;
29
+ location: {
30
+ city: string;
31
+ postcode: string;
32
+ region: string;
33
+ };
34
+ }
35
+
36
+ export interface Auto24XmlItem {
37
+ autodeid: string;
38
+ userlink: string;
39
+ brand: string;
40
+ modell: string;
41
+ cartype: string;
42
+ variant: string;
43
+ bodytype: string;
44
+ fueltype: string;
45
+ consumptionK: string;
46
+ co2: string;
47
+ efficiencyclass: string;
48
+ image: string;
49
+ registration: string;
50
+ images: string[];
51
+ price: string;
52
+ power: string;
53
+ zip: string;
54
+ city: string;
55
+ mileage: string;
56
+ companyname: string;
57
+ extras: string;
58
+ sellertype: string;
59
+ condition: string;
60
+ dealer_homepage_url: string;
61
+ dealer_email: string;
62
+ dealer_name: string;
63
+ dealer_phone: string;
64
+ }
65
+
66
+ export interface OoyyoXmlItem extends FbXmlItem {
67
+ euronorm: string;
68
+ mileage: string;
69
+ }
70
+
71
+ export interface MeinstadtJsonItem {
72
+ id: string;
73
+ make: string;
74
+ model: string;
75
+ cpc: string;
76
+ listingUrl: string;
77
+ title: string;
78
+ accidentFree: boolean;
79
+ mileage: number;
80
+ initialRegistration: string;
81
+ offerCreationDate: string;
82
+ numberOfDoors: number;
83
+ numberOfSeats: number;
84
+ numberOfPreviousOwners: number;
85
+ price: number;
86
+ powerPS: string;
87
+ powerKS: string;
88
+ co2Emissions: number;
89
+ fuelConsumptionCombined: number;
90
+ equipment: string;
91
+ color: string;
92
+ bodyType: string;
93
+ emissionClass: string;
94
+ emissionSticker: string;
95
+ fuelType: string;
96
+ transmissionType: string;
97
+ sellerType: string;
98
+ usageState: string;
99
+ imagesCount: number;
100
+ images: string;
101
+ power: number;
102
+ 'transmissionType/transmission': string;
103
+ 'customerType/sellerType': string;
104
+ }
105
+
106
+ export interface AutouncleJsonItem {
107
+ back_link: string;
108
+ make: string;
109
+ model_name: string;
110
+ model_variant: string;
111
+ fuel: string;
112
+ body: string;
113
+ doors: string;
114
+ price: string;
115
+ year: string;
116
+ mileage: string;
117
+ leasing: string;
118
+ color: string;
119
+ engine_size: string;
120
+ power: string;
121
+ gear_type: string;
122
+ has_4wd: string;
123
+ seller_type: string;
124
+ seller_region: string;
125
+ seller_city: string;
126
+ seller_street_address: string;
127
+ seller_postcode: string;
128
+ seller_name: string;
129
+ seller_id: string;
130
+ description: string;
131
+ images: { url: string }[];
132
+ fuel_economy: string;
133
+ co2_emission: string;
134
+ co2_effiency_class: string;
135
+ euro_emission_class: string;
136
+ enviromental_sticker: string;
137
+ status: string;
138
+ }
139
+
140
+ export interface GoogleXmlItem {
141
+ id: string;
142
+ title: string;
143
+ description: string;
144
+ google_product_category: string;
145
+ product_type: string;
146
+ link: string;
147
+ image_link: string;
148
+ condition: string;
149
+ availability: string;
150
+ brand: any;
151
+ price: string;
152
+ sale_price: string;
153
+ energy_efficiency_class: string;
154
+ color: string;
155
+ installment: { paybackPeriod: any; monthlyInstallment: any };
156
+ custom_label_0: string;
157
+ }
158
+
159
+ export interface RubrikkXmlItem {
160
+ ad__all_imageurls: string[];
161
+ ad__condition_new_used_etc: string;
162
+ ad__description: string;
163
+ ad__headline: string;
164
+ ad__imageurl: string;
165
+ ad__price: number;
166
+ ad__price_currency: string;
167
+ product__type: string;
168
+ ad__url: string;
169
+ efficiency_class: string;
170
+ ad__number_ad__number_reference_id: string;
171
+ category_original: string;
172
+ maincategory_original: string;
173
+ advertiser__company_homepage_url: string;
174
+ advertiser__company_logo_url: string;
175
+ advertiser__email: string;
176
+ advertiser__name_company_name: string;
177
+ advertiser__phone: string;
178
+ location__country: string;
179
+ location__municipality_city: string;
180
+ location__zip_postal_code: string;
181
+ motoring__body_type: string;
182
+ motoring__color: string;
183
+ motoring__drivetrain: string;
184
+ motoring__emission_class: string;
185
+ motoring__emission_co2: number;
186
+ motoring__emission_co2_unit: string;
187
+ motoring__emission_sticker: string;
188
+ motoring__engine_displacement_cubic_centimeters: number;
189
+ motoring__fuel_consumption_combined: number;
190
+ motoring__fuel_consumption_extra_urban: number;
191
+ motoring__fuel_consumption_extra_urban_unit: string;
192
+ motoring__fuel_consumption_combined_unit: string;
193
+ motoring__fuel_consumption_urban: number;
194
+ motoring__fuel_consumption_urban_unit: string;
195
+ motoring__fuel_type: string;
196
+ motoring__make: string;
197
+ motoring__mileage_kilometers: number;
198
+ motoring__model: string;
199
+ motoring__model_year: string;
200
+ motoring__number_of_doors: number;
201
+ motoring__number_of_seats: number;
202
+ motoring__power_kw: number;
203
+ motoring__power_hp: number;
204
+ motoring__transmission: string;
205
+ }
206
+
207
+ export interface ModixXmlItem {
208
+ maindata: {
209
+ category: IAtributeWrapItem;
210
+ manufacturer: IAtributeWrapItem;
211
+ model: IAtributeWrapItem;
212
+ submodel: IAtributeWrapItem;
213
+ mileage: IAtributeWrapItem;
214
+ cylinderCapacity: IAtributeWrapItem;
215
+ enginePower: IAtributeWrapItem;
216
+ fuel: IAtributeWrapItem;
217
+ accident: IAtributeWrapItem;
218
+ transmission: IAtributeWrapItem;
219
+ usageCategory: IAtributeWrapItem;
220
+ bodyStyle: IAtributeWrapItem;
221
+ isOnline: IAtributeWrapItem;
222
+ };
223
+ bodyColors: bodyColorItem;
224
+ dates: mapSameTagsItem[];
225
+ identification: identificationItem;
226
+ prices: priceItem;
227
+ images: imageItem;
228
+ dealer: dealerItem;
229
+ options: Omit<DataSchemes.Car, 'state'>;
230
+ }
231
+
232
+ export interface mapSameTagsItem {
233
+ tag: string;
234
+ value: any;
235
+ atributes?: any;
236
+ }
237
+
238
+ export interface tagWrapperItem {
239
+ [key: string]: { value: any; atributes?: any };
240
+ }
241
+
242
+ export interface bodyColorItem {
243
+ id: number;
244
+ data: {
245
+ name: IAtributeWrapItem;
246
+ description: IAtributeWrapItem;
247
+ paint: IAtributeWrapItem;
248
+ };
249
+ }
250
+
251
+ export interface identificationItem {
252
+ hsnTsn: {
253
+ hsn: IAtributeWrapItem;
254
+ tsn: IAtributeWrapItem;
255
+ };
256
+ vin: IAtributeWrapItem;
257
+ datEuropacode: IAtributeWrapItem;
258
+ schwackecode: IAtributeWrapItem;
259
+ }
260
+
261
+ export interface imageItem {
262
+ url: string;
263
+ imageList: IAtributeWrapItem[];
264
+ }
265
+
266
+ export interface priceItem {
267
+ vatReclaimable: boolean;
268
+ grossPrice: IAtributeWrapItem;
269
+ }
270
+
271
+ export interface dealerItem {
272
+ address: {
273
+ company: IAtributeWrapItem;
274
+ street: IAtributeWrapItem;
275
+ city: IAtributeWrapItem;
276
+ zip: IAtributeWrapItem;
277
+ country: IAtributeWrapItem;
278
+ phone: IAtributeWrapItem;
279
+ fax: IAtributeWrapItem;
280
+ email: IAtributeWrapItem;
281
+ homepage: IAtributeWrapItem;
282
+ };
283
+ imprint: {
284
+ registerId: IAtributeWrapItem;
285
+ representitive: IAtributeWrapItem;
286
+ vatid: IAtributeWrapItem;
287
+ };
288
+ }
289
+
290
+ export interface FacebookShopItem {
291
+ id: FacebookShopTag;
292
+ title: FacebookShopTag;
293
+ description: { value: Description[]; isGoogle: boolean };
294
+ availability: FacebookShopTag;
295
+ condition: FacebookShopTag;
296
+ price: FacebookShopTag;
297
+ link: FacebookShopTag;
298
+ image_link: FacebookShopTag;
299
+ additional_image_link: FacebookShopTag;
300
+ brand: FacebookShopTag;
301
+
302
+ quantity_to_sell_on_facebook: FacebookShopTag;
303
+ google_product_category: FacebookShopTag;
304
+ sale_price: FacebookShopTag;
305
+ status: FacebookShopTag;
306
+ color: FacebookShopTag;
307
+ product_type: FacebookShopTag;
308
+ }
309
+
310
+ export interface FacebookShopTag {
311
+ isGoogle: boolean;
312
+ value: any;
313
+ }
314
+
315
+ export interface TrovitXmlItem {
316
+ id: IAtributeWrapItem;
317
+ url: IAtributeWrapItem;
318
+ title: IAtributeWrapItem;
319
+ content: IAtributeWrapItem;
320
+ price: IAtributeWrapItem;
321
+ car_type: IAtributeWrapItem;
322
+ dealer: IAtributeWrapItem;
323
+ postcode: IAtributeWrapItem;
324
+ vin_database: IAtributeWrapItem;
325
+ make: IAtributeWrapItem;
326
+ model: IAtributeWrapItem;
327
+ color: IAtributeWrapItem;
328
+ year: IAtributeWrapItem;
329
+ mileage: IAtributeWrapItem;
330
+ doors: IAtributeWrapItem;
331
+ seats: IAtributeWrapItem;
332
+ engine_size: IAtributeWrapItem;
333
+ cylinders: IAtributeWrapItem;
334
+ fuel: IAtributeWrapItem;
335
+ transmission: IAtributeWrapItem;
336
+ power: IAtributeWrapItem;
337
+ fuel_consumption: IAtributeWrapItem;
338
+ co2_emissions: IAtributeWrapItem;
339
+ pictures: Array<string>;
340
+ is_new: IAtributeWrapItem;
341
+ }
342
+
343
+ export interface Awin {
344
+ product_id: string;
345
+ product_name: string;
346
+ brand_name: string;
347
+ product_model: string;
348
+ deep_link: string;
349
+ image_url: string;
350
+ alternate_image: string;
351
+ alternate_image_two: string;
352
+ alternate_image_three: string;
353
+ alternate_image_four: string;
354
+ price: number | string;
355
+ currency: string;
356
+ rrp_price: number | string;
357
+ saving: number| string;
358
+ savings_percent: number| string;
359
+ colour: string;
360
+ condition: string;
361
+ delivery_time: string;
362
+ last_updated: string;
363
+ merchant_category: string;
364
+ warranty: string;
365
+ energy_label: string;
366
+ description: string;
367
367
  }