@monkvision/common 5.1.8 → 5.2.1
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/INTERNATIONALIZATION.md +15 -1
- package/lib/apps/searchParams.d.ts +6 -1
- package/lib/apps/searchParams.js +6 -0
- package/lib/i18n/translations/damageTypes.js +18 -0
- package/lib/i18n/translations/image.js +59 -1
- package/lib/i18n/translations/vehicleParts.js +83 -0
- package/lib/state/actions/deletedOneImage.d.ts +37 -0
- package/lib/state/actions/deletedOneImage.js +52 -0
- package/lib/state/actions/index.d.ts +1 -0
- package/lib/state/actions/index.js +1 -0
- package/lib/state/actions/monkAction.d.ts +4 -0
- package/lib/state/actions/monkAction.js +4 -0
- package/lib/state/reducer.js +3 -0
- package/package.json +13 -13
|
@@ -12,497 +12,580 @@ exports.vehiclePartLabels = (_a = {},
|
|
|
12
12
|
fr: 'IGNORE',
|
|
13
13
|
de: 'IGNORE',
|
|
14
14
|
nl: 'IGNORE',
|
|
15
|
+
it: 'IGNORE',
|
|
15
16
|
},
|
|
16
17
|
_a[types_1.VehiclePart.BUMPER_BACK] = {
|
|
17
18
|
en: 'Rear Bumper',
|
|
18
19
|
fr: 'Pare-chocs arrière',
|
|
19
20
|
de: 'Hintere Stoßstange',
|
|
20
21
|
nl: 'Achterbumper',
|
|
22
|
+
it: 'Paraurti posteriore',
|
|
21
23
|
},
|
|
22
24
|
_a[types_1.VehiclePart.BUMPER_FRONT] = {
|
|
23
25
|
en: 'Front Bumper',
|
|
24
26
|
fr: 'Pare-chocs avant',
|
|
25
27
|
de: 'Vordere Stoßstange',
|
|
26
28
|
nl: 'Voorbumper',
|
|
29
|
+
it: 'Paraurti anteriore',
|
|
27
30
|
},
|
|
28
31
|
_a[types_1.VehiclePart.DOOR_BACK_LEFT] = {
|
|
29
32
|
en: 'Rear Door Left',
|
|
30
33
|
fr: 'Portière arrière gauche',
|
|
31
34
|
de: 'Tür hinten links',
|
|
32
35
|
nl: 'Achterdeur links',
|
|
36
|
+
it: 'Porta posteriore sinistra',
|
|
33
37
|
},
|
|
34
38
|
_a[types_1.VehiclePart.DOOR_BACK_RIGHT] = {
|
|
35
39
|
en: 'Rear Door Right',
|
|
36
40
|
fr: 'Portière arrière droite',
|
|
37
41
|
de: 'Tür hinten rechts',
|
|
38
42
|
nl: 'Achterdeur rechts',
|
|
43
|
+
it: 'Porta posteriore destra',
|
|
39
44
|
},
|
|
40
45
|
_a[types_1.VehiclePart.DOOR_FRONT_LEFT] = {
|
|
41
46
|
en: 'Front Door Left',
|
|
42
47
|
fr: 'Portière avant gauche',
|
|
43
48
|
de: 'Tür vorne links',
|
|
44
49
|
nl: 'Voordeur links',
|
|
50
|
+
it: 'Porta anteriore sinistra',
|
|
45
51
|
},
|
|
46
52
|
_a[types_1.VehiclePart.DOOR_FRONT_RIGHT] = {
|
|
47
53
|
en: 'Front Door Right',
|
|
48
54
|
fr: 'Portière avant droite',
|
|
49
55
|
de: 'Tür vorne rechts',
|
|
50
56
|
nl: 'Voordeur rechts',
|
|
57
|
+
it: 'Porta anteriore destra',
|
|
51
58
|
},
|
|
52
59
|
_a[types_1.VehiclePart.FENDER_BACK_LEFT] = {
|
|
53
60
|
en: 'Rear Fender Left',
|
|
54
61
|
fr: 'Aile arrière gauche',
|
|
55
62
|
de: 'Kotflügel hinten links',
|
|
56
63
|
nl: 'Achterkant linker spatbord',
|
|
64
|
+
it: 'Parafango posteriore sinistro',
|
|
57
65
|
},
|
|
58
66
|
_a[types_1.VehiclePart.FENDER_BACK_RIGHT] = {
|
|
59
67
|
en: 'Rear Fender Right',
|
|
60
68
|
fr: 'Aile arrière droite',
|
|
61
69
|
de: 'Kotflügel hinten rechts',
|
|
62
70
|
nl: 'Achterkant rechter spatbord',
|
|
71
|
+
it: 'Parafango posteriore destro',
|
|
63
72
|
},
|
|
64
73
|
_a[types_1.VehiclePart.FENDER_FRONT_LEFT] = {
|
|
65
74
|
en: 'Front Fender Left',
|
|
66
75
|
fr: 'Aile avant gauche',
|
|
67
76
|
de: 'Linker vorderer Kotflügel',
|
|
68
77
|
nl: 'Voorste linker spatbord',
|
|
78
|
+
it: 'Parafango anteriore sinistro',
|
|
69
79
|
},
|
|
70
80
|
_a[types_1.VehiclePart.FENDER_FRONT_RIGHT] = {
|
|
71
81
|
en: 'Front Fender Right',
|
|
72
82
|
fr: 'Aile avant droite',
|
|
73
83
|
de: 'Rechter vorderer Flügel',
|
|
74
84
|
nl: 'Voorste rechter spatbord',
|
|
85
|
+
it: 'Parafango anteriore destro',
|
|
75
86
|
},
|
|
76
87
|
_a[types_1.VehiclePart.FOG_LIGHT_BACK_LEFT] = {
|
|
77
88
|
en: 'Rear Fog Light Left',
|
|
78
89
|
fr: 'Phare anti-brouillard arrière gauche',
|
|
79
90
|
de: 'Nebelscheinwerfer hinten links',
|
|
80
91
|
nl: 'Achterste linker mistlamp',
|
|
92
|
+
it: 'Faro antinebbia posteriore sinistro',
|
|
81
93
|
},
|
|
82
94
|
_a[types_1.VehiclePart.FOG_LIGHT_BACK_RIGHT] = {
|
|
83
95
|
en: 'Rear Fog Light Right',
|
|
84
96
|
fr: 'Phare anti-brouillard arrière droit',
|
|
85
97
|
de: 'Nebelscheinwerfer hinten rechts',
|
|
86
98
|
nl: 'Achterste rechter mistlamp',
|
|
99
|
+
it: 'Faro antinebbia posteriore destro',
|
|
87
100
|
},
|
|
88
101
|
_a[types_1.VehiclePart.FOG_LIGHT_FRONT_LEFT] = {
|
|
89
102
|
en: 'Front Fog Light Left',
|
|
90
103
|
fr: 'Phare anti-brouillard avant gauche',
|
|
91
104
|
de: 'Nebelscheinwerfer vorne links',
|
|
92
105
|
nl: 'Voorste linker mistlamp',
|
|
106
|
+
it: 'Faro antinebbia anteriore sinistro',
|
|
93
107
|
},
|
|
94
108
|
_a[types_1.VehiclePart.FOG_LIGHT_FRONT_RIGHT] = {
|
|
95
109
|
en: 'Front Fog Light Right',
|
|
96
110
|
fr: 'Phare anti-brouillard avant droit',
|
|
97
111
|
de: 'Nebelscheinwerfer vorne rechts',
|
|
98
112
|
nl: 'Voorste rechter mistlamp',
|
|
113
|
+
it: 'Faro antinebbia anteriore destro',
|
|
99
114
|
},
|
|
100
115
|
_a[types_1.VehiclePart.GRILL] = {
|
|
101
116
|
en: 'Grill',
|
|
102
117
|
fr: 'Grille',
|
|
103
118
|
de: 'Gitter',
|
|
104
119
|
nl: 'Grill',
|
|
120
|
+
it: 'Griglia',
|
|
105
121
|
},
|
|
106
122
|
_a[types_1.VehiclePart.GRILL_LOW] = {
|
|
107
123
|
en: 'Grill Low',
|
|
108
124
|
fr: 'Grille bas',
|
|
109
125
|
de: 'Gitter unten',
|
|
110
126
|
nl: 'Lage grill',
|
|
127
|
+
it: 'Griglia bassa',
|
|
111
128
|
},
|
|
112
129
|
_a[types_1.VehiclePart.GRILL_RADIATOR] = {
|
|
113
130
|
en: 'Radiator Grill',
|
|
114
131
|
fr: 'Grille radiateur',
|
|
115
132
|
de: 'Heizkörpergitter',
|
|
116
133
|
nl: 'Radiatorgrill',
|
|
134
|
+
it: 'Griglia del radiatore',
|
|
117
135
|
},
|
|
118
136
|
_a[types_1.VehiclePart.HANDLE_BACK_LEFT] = {
|
|
119
137
|
en: 'Rear Handle Left',
|
|
120
138
|
fr: 'Poignée arrière gauche',
|
|
121
139
|
de: 'Griff hinten links',
|
|
122
140
|
nl: 'Achterste linker greep',
|
|
141
|
+
it: 'Maniglia posteriore sinistra',
|
|
123
142
|
},
|
|
124
143
|
_a[types_1.VehiclePart.HANDLE_BACK_RIGHT] = {
|
|
125
144
|
en: 'Rear Handle Right',
|
|
126
145
|
fr: 'Poignée arrière droite',
|
|
127
146
|
de: 'Griff hinten rechts',
|
|
128
147
|
nl: 'Achterste rechter greep',
|
|
148
|
+
it: 'Maniglia posteriore destra',
|
|
129
149
|
},
|
|
130
150
|
_a[types_1.VehiclePart.HANDLE_FRONT_LEFT] = {
|
|
131
151
|
en: 'Front Handle Left',
|
|
132
152
|
fr: 'Poignée avant gauche',
|
|
133
153
|
de: 'Griff vorne links',
|
|
134
154
|
nl: 'Voorste linker greep',
|
|
155
|
+
it: 'Maniglia anteriore sinistra',
|
|
135
156
|
},
|
|
136
157
|
_a[types_1.VehiclePart.HANDLE_FRONT_RIGHT] = {
|
|
137
158
|
en: 'Front Handle Right',
|
|
138
159
|
fr: 'Poignée avant droite',
|
|
139
160
|
de: 'Griff vorne rechts',
|
|
140
161
|
nl: 'Voorste rechter greep',
|
|
162
|
+
it: 'Maniglia anteriore destra',
|
|
141
163
|
},
|
|
142
164
|
_a[types_1.VehiclePart.HEADER_PANEL] = {
|
|
143
165
|
en: 'Header Panel',
|
|
144
166
|
fr: 'Panneau de tête',
|
|
145
167
|
de: 'Kopfleiste',
|
|
146
168
|
nl: 'Headerpaneel',
|
|
169
|
+
it: 'Pannello superiore',
|
|
147
170
|
},
|
|
148
171
|
_a[types_1.VehiclePart.HEAD_LIGHT_LEFT] = {
|
|
149
172
|
en: 'Head Light Left',
|
|
150
173
|
fr: 'Phare gauche',
|
|
151
174
|
de: 'Linker Scheinwerfer',
|
|
152
175
|
nl: 'Linker koplamp',
|
|
176
|
+
it: 'Faro sinistro',
|
|
153
177
|
},
|
|
154
178
|
_a[types_1.VehiclePart.HEAD_LIGHT_RIGHT] = {
|
|
155
179
|
en: 'Head Light Right',
|
|
156
180
|
fr: 'Phare droit',
|
|
157
181
|
de: 'Rechter Scheinwerfer',
|
|
158
182
|
nl: 'Rechter koplamp',
|
|
183
|
+
it: 'Faro destro',
|
|
159
184
|
},
|
|
160
185
|
_a[types_1.VehiclePart.HOOK] = {
|
|
161
186
|
en: 'Tow Hook',
|
|
162
187
|
fr: 'Crochet de remorquage',
|
|
163
188
|
de: 'Abschlepphaken',
|
|
164
189
|
nl: 'Trekhaak',
|
|
190
|
+
it: 'Gancio di traino',
|
|
165
191
|
},
|
|
166
192
|
_a[types_1.VehiclePart.HUBCAP] = {
|
|
167
193
|
en: 'Hubcap',
|
|
168
194
|
fr: 'Enjoliveur',
|
|
169
195
|
de: 'Radkappe',
|
|
170
196
|
nl: 'Velgmuts',
|
|
197
|
+
it: 'Copricerchio',
|
|
171
198
|
},
|
|
172
199
|
_a[types_1.VehiclePart.HUBCAP_BACK_LEFT] = {
|
|
173
200
|
en: 'Rear Hubcap Left',
|
|
174
201
|
fr: 'Enjoliveur arrière gauche',
|
|
175
202
|
de: 'Radkappe hinten links',
|
|
176
203
|
nl: 'Achterste linker velgmuts',
|
|
204
|
+
it: 'Copricerchio posteriore sinistro',
|
|
177
205
|
},
|
|
178
206
|
_a[types_1.VehiclePart.HUBCAP_BACK_RIGHT] = {
|
|
179
207
|
en: 'Rear Hubcap Right',
|
|
180
208
|
fr: 'Enjoliveur arrière droit',
|
|
181
209
|
de: 'Radkappe hinten rechts',
|
|
182
210
|
nl: 'Achterste rechter velgmuts',
|
|
211
|
+
it: 'Copricerchio posteriore destro',
|
|
183
212
|
},
|
|
184
213
|
_a[types_1.VehiclePart.HUBCAP_FRONT_LEFT] = {
|
|
185
214
|
en: 'Front Hubcap Left',
|
|
186
215
|
fr: 'Enjoliveur avant gauche',
|
|
187
216
|
de: 'Radkappe vorne links',
|
|
188
217
|
nl: 'Voorste linker velgmuts',
|
|
218
|
+
it: 'Copricerchio anteriore sinistro',
|
|
189
219
|
},
|
|
190
220
|
_a[types_1.VehiclePart.HUBCAP_FRONT_RIGHT] = {
|
|
191
221
|
en: 'Front Hubcap Right',
|
|
192
222
|
fr: 'Enjoliveur avant droite',
|
|
193
223
|
de: 'Radkappe vorne rechts',
|
|
194
224
|
nl: 'Voorste rechter velgmuts',
|
|
225
|
+
it: 'Copricerchio anteriore destro',
|
|
195
226
|
},
|
|
196
227
|
_a[types_1.VehiclePart.INDICATOR_LIGHT_LEFT] = {
|
|
197
228
|
en: 'Indicator Light Left',
|
|
198
229
|
fr: 'Clignotant gauche',
|
|
199
230
|
de: 'Blinkend links',
|
|
200
231
|
nl: 'Linker richtingaanwijzer',
|
|
232
|
+
it: 'Indicator di direzione sinistro',
|
|
201
233
|
},
|
|
202
234
|
_a[types_1.VehiclePart.INDICATOR_LIGHT_RIGHT] = {
|
|
203
235
|
en: 'Indicator Light Right',
|
|
204
236
|
fr: 'Clignotant droit',
|
|
205
237
|
de: 'Blinkend rechts',
|
|
206
238
|
nl: 'Rechter richtingaanwijzer',
|
|
239
|
+
it: 'Indicator di direzione destro',
|
|
207
240
|
},
|
|
208
241
|
_a[types_1.VehiclePart.LICENSE_PLATE_BACK] = {
|
|
209
242
|
en: 'Rear License Plate',
|
|
210
243
|
fr: "Plaque d'immatriculation arrière",
|
|
211
244
|
de: 'Autokennzeichen hinten',
|
|
212
245
|
nl: 'Achterste nummerplaat',
|
|
246
|
+
it: 'Targa posteriore',
|
|
213
247
|
},
|
|
214
248
|
_a[types_1.VehiclePart.LICENSE_PLATE_FRONT] = {
|
|
215
249
|
en: 'Front License Plate',
|
|
216
250
|
fr: "Plaque d'immatriculation avant",
|
|
217
251
|
de: 'Autokennzeichen vorne',
|
|
218
252
|
nl: 'Voorste nummerplaat',
|
|
253
|
+
it: 'Targa anteriore',
|
|
219
254
|
},
|
|
220
255
|
_a[types_1.VehiclePart.LOGO] = {
|
|
221
256
|
en: 'Logo',
|
|
222
257
|
fr: 'Logo',
|
|
223
258
|
de: 'Logo',
|
|
224
259
|
nl: 'Logo',
|
|
260
|
+
it: 'Logo',
|
|
225
261
|
},
|
|
226
262
|
_a[types_1.VehiclePart.MIRROR_LEFT] = {
|
|
227
263
|
en: 'Mirror Left',
|
|
228
264
|
fr: 'Rétroviseur gauche',
|
|
229
265
|
de: 'Linker Spiegel',
|
|
230
266
|
nl: 'Linker spiegel',
|
|
267
|
+
it: 'Specchietto sinistro',
|
|
231
268
|
},
|
|
232
269
|
_a[types_1.VehiclePart.MIRROR_RIGHT] = {
|
|
233
270
|
en: 'Mirror Right',
|
|
234
271
|
fr: 'Rétroviseur droit',
|
|
235
272
|
de: 'Rechter Spiegel',
|
|
236
273
|
nl: 'Rechter spiegel',
|
|
274
|
+
it: 'Specchietto destro',
|
|
237
275
|
},
|
|
238
276
|
_a[types_1.VehiclePart.MIRROR_SUPPORT] = {
|
|
239
277
|
en: 'Mirror Support',
|
|
240
278
|
fr: 'Support de rétroviseur',
|
|
241
279
|
de: 'Spiegelhalterung',
|
|
242
280
|
nl: 'Spiegelsteun',
|
|
281
|
+
it: 'Supporto specchietto',
|
|
243
282
|
},
|
|
244
283
|
_a[types_1.VehiclePart.QUARTER_WINDOW_BACK_LEFT] = {
|
|
245
284
|
en: 'Rear Quarter Window Left',
|
|
246
285
|
fr: 'Vitres latérale arrière gauche',
|
|
247
286
|
de: 'Seitenfenster hinten links',
|
|
248
287
|
nl: 'Achterste linker zijkantvenster',
|
|
288
|
+
it: 'Vetro laterale posteriore sinistro',
|
|
249
289
|
},
|
|
250
290
|
_a[types_1.VehiclePart.QUARTER_WINDOW_BACK_RIGHT] = {
|
|
251
291
|
en: 'Rear Quarter Window Right',
|
|
252
292
|
fr: 'Vitres latérale arrière droite',
|
|
253
293
|
de: 'Seitenfenster hinten rechts',
|
|
254
294
|
nl: 'Achterste rechter zijkantvenster',
|
|
295
|
+
it: 'Vetro laterale posteriore destro',
|
|
255
296
|
},
|
|
256
297
|
_a[types_1.VehiclePart.QUARTER_WINDOW_FRONT_LEFT] = {
|
|
257
298
|
en: 'Front Quarter Window Left',
|
|
258
299
|
fr: 'Vitres latérale avant gauche',
|
|
259
300
|
de: 'Seitenfenster vorne links',
|
|
260
301
|
nl: 'Voorste linker zijkantvenster',
|
|
302
|
+
it: 'Vetro laterale anteriore sinistro',
|
|
261
303
|
},
|
|
262
304
|
_a[types_1.VehiclePart.QUARTER_WINDOW_FRONT_RIGHT] = {
|
|
263
305
|
en: 'Front Quarter Window Right',
|
|
264
306
|
fr: 'Vitres latérale avant droite',
|
|
265
307
|
de: 'Seitenfenster vorne rechts',
|
|
266
308
|
nl: 'Voorste rechter zijkantvenster',
|
|
309
|
+
it: 'Vetro laterale anteriore destro',
|
|
267
310
|
},
|
|
268
311
|
_a[types_1.VehiclePart.ROCKER_PANEL] = {
|
|
269
312
|
en: 'Rocker Panel',
|
|
270
313
|
fr: 'Bas de caisse',
|
|
271
314
|
de: 'Schweller',
|
|
272
315
|
nl: 'Rockerpaneel',
|
|
316
|
+
it: 'Basamento',
|
|
273
317
|
},
|
|
274
318
|
_a[types_1.VehiclePart.ROCKER_PANEL_LEFT] = {
|
|
275
319
|
en: 'Rocker Panel Left',
|
|
276
320
|
fr: 'Bas de caisse gauche',
|
|
277
321
|
de: 'Schweller links',
|
|
278
322
|
nl: 'Linker rockerpaneel',
|
|
323
|
+
it: 'Basamento sinistro',
|
|
279
324
|
},
|
|
280
325
|
_a[types_1.VehiclePart.ROCKER_PANEL_RIGHT] = {
|
|
281
326
|
en: 'Rocker Panel Right',
|
|
282
327
|
fr: 'Bas de caisse droit',
|
|
283
328
|
de: 'Rechter Schweller',
|
|
284
329
|
nl: 'Rechter rockerpaneel',
|
|
330
|
+
it: 'Basamento destro',
|
|
285
331
|
},
|
|
286
332
|
_a[types_1.VehiclePart.TAIL_LIGHT_CENTER] = {
|
|
287
333
|
en: 'Tail Light Left',
|
|
288
334
|
fr: 'Feu arrière centre',
|
|
289
335
|
de: 'Rücklicht Mitte',
|
|
290
336
|
nl: 'Achterlicht midden',
|
|
337
|
+
it: 'Luce posteriore centrale',
|
|
291
338
|
},
|
|
292
339
|
_a[types_1.VehiclePart.TAIL_LIGHT_LEFT] = {
|
|
293
340
|
en: 'Tail Light Left',
|
|
294
341
|
fr: 'Feu arrière gauche',
|
|
295
342
|
de: 'Rücklicht links',
|
|
296
343
|
nl: 'Linker achterlicht',
|
|
344
|
+
it: 'Luce posteriore sinistra',
|
|
297
345
|
},
|
|
298
346
|
_a[types_1.VehiclePart.TAIL_LIGHT_RIGHT] = {
|
|
299
347
|
en: 'Tail Light Right',
|
|
300
348
|
fr: 'Feu arrière droite',
|
|
301
349
|
de: 'Rücklicht rechts',
|
|
302
350
|
nl: 'Rechter achterlicht',
|
|
351
|
+
it: 'Luce posteriore destra',
|
|
303
352
|
},
|
|
304
353
|
_a[types_1.VehiclePart.TURN_SIGNAL_FRONT_LATERAL_LEFT] = {
|
|
305
354
|
en: 'Front Turn Signal Lateral Left',
|
|
306
355
|
fr: 'Clignotant avant latéral gauche',
|
|
307
356
|
de: 'Blinker vorne seitlich links',
|
|
308
357
|
nl: 'Voorste linker zijblinker',
|
|
358
|
+
it: 'Indicatore di direzione anteriore laterale sinistro',
|
|
309
359
|
},
|
|
310
360
|
_a[types_1.VehiclePart.TURN_SIGNAL_FRONT_LATERAL_RIGHT] = {
|
|
311
361
|
en: 'Front Turn Signal Lateral Right',
|
|
312
362
|
fr: 'Clignotant avant latéral droit',
|
|
313
363
|
de: 'Blinker vorne seitlich rechts',
|
|
314
364
|
nl: 'Voorste rechter zijblinker',
|
|
365
|
+
it: 'Indicatore di direzione anteriore laterale destro',
|
|
315
366
|
},
|
|
316
367
|
_a[types_1.VehiclePart.WHEEL] = {
|
|
317
368
|
en: 'Wheel',
|
|
318
369
|
fr: 'Roue',
|
|
319
370
|
de: 'Rad',
|
|
320
371
|
nl: 'Wiel',
|
|
372
|
+
it: 'Ruota',
|
|
321
373
|
},
|
|
322
374
|
_a[types_1.VehiclePart.WHEEL_BACK_LEFT] = {
|
|
323
375
|
en: 'Rear Wheel Left',
|
|
324
376
|
fr: 'Roue arrière gauche',
|
|
325
377
|
de: 'Linkes Hinterrad',
|
|
326
378
|
nl: 'Achterste linker wiel',
|
|
379
|
+
it: 'Ruota posteriore sinistra',
|
|
327
380
|
},
|
|
328
381
|
_a[types_1.VehiclePart.WHEEL_BACK_RIGHT] = {
|
|
329
382
|
en: 'Rear Wheel Right',
|
|
330
383
|
fr: 'Roue arrière droite',
|
|
331
384
|
de: 'Rechtes Hinterrad',
|
|
332
385
|
nl: 'Achterste rechter wiel',
|
|
386
|
+
it: 'Ruota posteriore destra',
|
|
333
387
|
},
|
|
334
388
|
_a[types_1.VehiclePart.WHEEL_FRONT_LEFT] = {
|
|
335
389
|
en: 'Front Wheel Left',
|
|
336
390
|
fr: 'Roue avant gauche',
|
|
337
391
|
de: 'Vorderrad links',
|
|
338
392
|
nl: 'Voorste linker wiel',
|
|
393
|
+
it: 'Ruota anteriore sinistra',
|
|
339
394
|
},
|
|
340
395
|
_a[types_1.VehiclePart.WHEEL_FRONT_RIGHT] = {
|
|
341
396
|
en: 'Front Wheel Right',
|
|
342
397
|
fr: 'Roue avant droite',
|
|
343
398
|
de: 'Vorderrad rechts',
|
|
344
399
|
nl: 'Voorste rechter wiel',
|
|
400
|
+
it: 'Ruota anteriore destra',
|
|
345
401
|
},
|
|
346
402
|
_a[types_1.VehiclePart.WINDOW_BACK_LEFT] = {
|
|
347
403
|
en: 'Rear Window Left',
|
|
348
404
|
fr: 'Vitre arrière gauche',
|
|
349
405
|
de: 'Hintere linke Scheibe',
|
|
350
406
|
nl: 'Achterste linker raam',
|
|
407
|
+
it: 'Vetro posteriore sinistro',
|
|
351
408
|
},
|
|
352
409
|
_a[types_1.VehiclePart.WINDOW_BACK_RIGHT] = {
|
|
353
410
|
en: 'Rear Window Right',
|
|
354
411
|
fr: 'Vitre arrière droite',
|
|
355
412
|
de: 'Fenster hinten rechts',
|
|
356
413
|
nl: 'Achterste rechter raam',
|
|
414
|
+
it: 'Vetro posteriore destro',
|
|
357
415
|
},
|
|
358
416
|
_a[types_1.VehiclePart.WINDOW_CORNER_LEFT] = {
|
|
359
417
|
en: 'Corner Window Left',
|
|
360
418
|
fr: "Vitre d'angle gauche",
|
|
361
419
|
de: 'Fenster in der linken Ecke',
|
|
362
420
|
nl: 'Linker hoekraam',
|
|
421
|
+
it: "Vetro d'angolo sinistro",
|
|
363
422
|
},
|
|
364
423
|
_a[types_1.VehiclePart.WINDOW_CORNER_RIGHT] = {
|
|
365
424
|
en: 'Corner Window Right',
|
|
366
425
|
fr: "Vitre d'angle droite",
|
|
367
426
|
de: 'Fenster in der rechten Ecke',
|
|
368
427
|
nl: 'Rechter hoekraam',
|
|
428
|
+
it: "Vetro d'angolo destro",
|
|
369
429
|
},
|
|
370
430
|
_a[types_1.VehiclePart.WINDOW_FRONT_LEFT] = {
|
|
371
431
|
en: 'Front Window Left',
|
|
372
432
|
fr: 'Vitre avant gauche',
|
|
373
433
|
de: 'Linke vordere Fensterscheibe',
|
|
374
434
|
nl: 'Voorste linker raam',
|
|
435
|
+
it: 'Vetro anteriore sinistro',
|
|
375
436
|
},
|
|
376
437
|
_a[types_1.VehiclePart.WINDOW_FRONT_RIGHT] = {
|
|
377
438
|
en: 'Front Window Right',
|
|
378
439
|
fr: 'Vitre avant droite',
|
|
379
440
|
de: 'Fenster vorne rechts',
|
|
380
441
|
nl: 'Voorste rechter raam',
|
|
442
|
+
it: 'Vetro anteriore destro',
|
|
381
443
|
},
|
|
382
444
|
_a[types_1.VehiclePart.WINDSHIELD_BACK] = {
|
|
383
445
|
en: 'Windshield Back',
|
|
384
446
|
fr: 'Pare-brise arrière',
|
|
385
447
|
de: 'Hintere Windschutzscheibe',
|
|
386
448
|
nl: 'Achterste ruit',
|
|
449
|
+
it: 'Parabrezza posteriore',
|
|
387
450
|
},
|
|
388
451
|
_a[types_1.VehiclePart.WINDSHIELD_FRONT] = {
|
|
389
452
|
en: 'Windshield Front',
|
|
390
453
|
fr: 'Pare-brise avant',
|
|
391
454
|
de: 'Windschutzscheibe vorne',
|
|
392
455
|
nl: 'Voorruit',
|
|
456
|
+
it: 'Parabrezza anteriore',
|
|
393
457
|
},
|
|
394
458
|
_a[types_1.VehiclePart.WIPER] = {
|
|
395
459
|
en: 'Wiper',
|
|
396
460
|
fr: 'Essuie-glace',
|
|
397
461
|
de: 'Scheibenwischer',
|
|
398
462
|
nl: 'Scheerwiper',
|
|
463
|
+
it: 'Tergicristallo',
|
|
399
464
|
},
|
|
400
465
|
_a[types_1.VehiclePart.WIPER_BACK] = {
|
|
401
466
|
en: 'Rear Wiper',
|
|
402
467
|
fr: 'Essuie-glace arrière',
|
|
403
468
|
de: 'Heckscheibenwischer',
|
|
404
469
|
nl: 'Achterste scheerwiper',
|
|
470
|
+
it: 'Tergicristallo posteriore',
|
|
405
471
|
},
|
|
406
472
|
_a[types_1.VehiclePart.WIPER_FRONT] = {
|
|
407
473
|
en: 'Front Wiper',
|
|
408
474
|
fr: 'Essuie-glace avant',
|
|
409
475
|
de: 'Scheibenwischer vorne',
|
|
410
476
|
nl: 'Voorste scheerwiper',
|
|
477
|
+
it: 'Tergicristallo anteriore',
|
|
411
478
|
},
|
|
412
479
|
_a[types_1.VehiclePart.FRONT_SPOILER] = {
|
|
413
480
|
en: 'Front Spoiler',
|
|
414
481
|
fr: 'Aileron avant',
|
|
415
482
|
de: 'Frontspoiler',
|
|
416
483
|
nl: 'Voorste spoiler',
|
|
484
|
+
it: 'Alerone anteriore',
|
|
417
485
|
},
|
|
418
486
|
_a[types_1.VehiclePart.REAR_SPOILER] = {
|
|
419
487
|
en: 'Rear Spoiler',
|
|
420
488
|
fr: 'Aileron arrière',
|
|
421
489
|
de: 'Heckspoiler',
|
|
422
490
|
nl: 'Achterste spoiler',
|
|
491
|
+
it: 'Alerone posteriore',
|
|
423
492
|
},
|
|
424
493
|
_a[types_1.VehiclePart.HOOD] = {
|
|
425
494
|
en: 'Hood',
|
|
426
495
|
fr: 'Capot',
|
|
427
496
|
de: 'Motorhaube',
|
|
428
497
|
nl: 'Motorkap',
|
|
498
|
+
it: 'Cofano',
|
|
429
499
|
},
|
|
430
500
|
_a[types_1.VehiclePart.PETROL_DOOR] = {
|
|
431
501
|
en: 'Petrol Door',
|
|
432
502
|
fr: 'Trappe à essence',
|
|
433
503
|
de: 'Tankklappe',
|
|
434
504
|
nl: 'Brandstofklep',
|
|
505
|
+
it: 'Sportello carburante',
|
|
435
506
|
},
|
|
436
507
|
_a[types_1.VehiclePart.PILLAR] = {
|
|
437
508
|
en: 'Pillar',
|
|
438
509
|
fr: 'Carrosserie',
|
|
439
510
|
de: 'Karosserie',
|
|
440
511
|
nl: 'Kolom',
|
|
512
|
+
it: 'Montante',
|
|
441
513
|
},
|
|
442
514
|
_a[types_1.VehiclePart.ROOF] = {
|
|
443
515
|
en: 'Roof',
|
|
444
516
|
fr: 'Toit',
|
|
445
517
|
de: 'Dach',
|
|
446
518
|
nl: 'Dak',
|
|
519
|
+
it: 'Tetto',
|
|
447
520
|
},
|
|
448
521
|
_a[types_1.VehiclePart.TRUNK] = {
|
|
449
522
|
en: 'Trunk',
|
|
450
523
|
fr: 'Coffre',
|
|
451
524
|
de: 'Kofferraum',
|
|
452
525
|
nl: 'Kofferbak',
|
|
526
|
+
it: 'Bagagliaio',
|
|
453
527
|
},
|
|
454
528
|
_a[types_1.VehiclePart.BACKGROUND] = {
|
|
455
529
|
en: 'Background',
|
|
456
530
|
fr: 'Arrière-plan',
|
|
457
531
|
de: 'Hintergrund',
|
|
458
532
|
nl: 'Achtergrond',
|
|
533
|
+
it: 'Sfondo',
|
|
459
534
|
},
|
|
460
535
|
_a[types_1.VehiclePart.CAR_INSIDE] = {
|
|
461
536
|
en: 'Car Inside',
|
|
462
537
|
fr: 'Intérieur',
|
|
463
538
|
de: 'Auto innen',
|
|
464
539
|
nl: 'Auto binnen',
|
|
540
|
+
it: 'Interno auto',
|
|
465
541
|
},
|
|
466
542
|
_a[types_1.VehiclePart.DAMAGED_CAR_INSIDE] = {
|
|
467
543
|
en: 'Damaged Car Inside',
|
|
468
544
|
fr: 'Intérieur endommagé',
|
|
469
545
|
de: 'Beschädigtes Auto innen',
|
|
470
546
|
nl: 'Beschadigde auto binnen',
|
|
547
|
+
it: 'Interno auto danneggiato',
|
|
471
548
|
},
|
|
472
549
|
_a[types_1.VehiclePart.HANDLE_BACK_CENTER] = {
|
|
473
550
|
en: 'Handle Back Center',
|
|
474
551
|
fr: 'Poignée arrière centre',
|
|
475
552
|
de: 'Griff Rückseite Mitte',
|
|
476
553
|
nl: 'Handgreep Terug Midden',
|
|
554
|
+
it: 'Maniglia posteriore centrale',
|
|
477
555
|
},
|
|
478
556
|
_a[types_1.VehiclePart.RIM_BACK_LEFT] = {
|
|
479
557
|
en: 'Back left rim',
|
|
480
558
|
fr: 'Jante arrière gauche',
|
|
481
559
|
de: 'Hintere linke Felge',
|
|
482
560
|
nl: 'Achtervelg links',
|
|
561
|
+
it: 'Rim posteriore sinistro',
|
|
483
562
|
},
|
|
484
563
|
_a[types_1.VehiclePart.RIM_BACK_RIGHT] = {
|
|
485
564
|
en: 'Back right rim',
|
|
486
565
|
fr: 'Jante arrière droite',
|
|
487
566
|
de: 'Hintere rechte Felge',
|
|
488
567
|
nl: 'Achtervelg rechts',
|
|
568
|
+
it: 'Rim posteriore destro',
|
|
489
569
|
},
|
|
490
570
|
_a[types_1.VehiclePart.RIM_FRONT_LEFT] = {
|
|
491
571
|
en: 'Front left rim',
|
|
492
572
|
fr: 'Jante avant gauche',
|
|
493
573
|
de: 'Vordere linke Felge',
|
|
494
574
|
nl: 'Voorvelg links',
|
|
575
|
+
it: 'Rim anteriore sinistro',
|
|
495
576
|
},
|
|
496
577
|
_a[types_1.VehiclePart.RIM_FRONT_RIGHT] = {
|
|
497
578
|
en: 'Front right rim',
|
|
498
579
|
fr: 'Jante avant droite',
|
|
499
580
|
de: 'Vordere rechte Felge',
|
|
500
581
|
nl: 'Voorvelg rechts',
|
|
582
|
+
it: 'Rim anteriore destro',
|
|
501
583
|
},
|
|
502
584
|
_a[types_1.VehiclePart.INTERIOR] = {
|
|
503
585
|
en: 'Interior',
|
|
504
586
|
fr: 'Intérieur',
|
|
505
587
|
de: 'Innenraum',
|
|
506
588
|
nl: 'Interieur',
|
|
589
|
+
it: 'Interni',
|
|
507
590
|
},
|
|
508
591
|
_a);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { MonkState } from '../state';
|
|
2
|
+
import { MonkAction, MonkActionType } from './monkAction';
|
|
3
|
+
/**
|
|
4
|
+
* The payload of a MonkDeletedOneImagePayload.
|
|
5
|
+
*/
|
|
6
|
+
export interface MonkDeletedOneImagePayload {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the inspection to which the image was deleted.
|
|
9
|
+
*/
|
|
10
|
+
inspectionId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The image ID deleted.
|
|
13
|
+
*/
|
|
14
|
+
imageId: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Action dispatched when an image have been deleted.
|
|
18
|
+
*/
|
|
19
|
+
export interface MonkDeletedOneImageAction extends MonkAction {
|
|
20
|
+
/**
|
|
21
|
+
* The type of the action : `MonkActionType.DELETED_ONE_IMAGE`.
|
|
22
|
+
*/
|
|
23
|
+
type: MonkActionType.DELETED_ONE_IMAGE;
|
|
24
|
+
/**
|
|
25
|
+
* The payload of the action containing the fetched entities.
|
|
26
|
+
*/
|
|
27
|
+
payload: MonkDeletedOneImagePayload;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Matcher function that matches a DeletedOneImage while also inferring its type using TypeScript's type predicate
|
|
31
|
+
* feature.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isDeletedOneImageAction(action: MonkAction): action is MonkDeletedOneImageAction;
|
|
34
|
+
/**
|
|
35
|
+
* Reducer function for a deletedOneImage action.
|
|
36
|
+
*/
|
|
37
|
+
export declare function deletedOneImage(state: MonkState, action: MonkDeletedOneImageAction): MonkState;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.deletedOneImage = exports.isDeletedOneImageAction = void 0;
|
|
24
|
+
var monkAction_1 = require("./monkAction");
|
|
25
|
+
/**
|
|
26
|
+
* Matcher function that matches a DeletedOneImage while also inferring its type using TypeScript's type predicate
|
|
27
|
+
* feature.
|
|
28
|
+
*/
|
|
29
|
+
function isDeletedOneImageAction(action) {
|
|
30
|
+
return action.type === monkAction_1.MonkActionType.DELETED_ONE_IMAGE;
|
|
31
|
+
}
|
|
32
|
+
exports.isDeletedOneImageAction = isDeletedOneImageAction;
|
|
33
|
+
/**
|
|
34
|
+
* Reducer function for a deletedOneImage action.
|
|
35
|
+
*/
|
|
36
|
+
function deletedOneImage(state, action) {
|
|
37
|
+
var _a;
|
|
38
|
+
var images = state.images, inspections = state.inspections, damages = state.damages, parts = state.parts, renderedOutputs = state.renderedOutputs, views = state.views;
|
|
39
|
+
var payload = action.payload;
|
|
40
|
+
var inspection = inspections.find(function (value) { return value.id === payload.inspectionId; });
|
|
41
|
+
if (inspection) {
|
|
42
|
+
inspection.images = (_a = inspection.images) === null || _a === void 0 ? void 0 : _a.filter(function (imageId) { return imageId !== payload.imageId; });
|
|
43
|
+
}
|
|
44
|
+
var deletedImage = images.find(function (image) { return image.id === payload.imageId; });
|
|
45
|
+
var newImages = images.filter(function (image) { return image.id !== payload.imageId; });
|
|
46
|
+
var newDamages = damages.map(function (damage) { return (__assign(__assign({}, damage), { relatedImages: damage.relatedImages.filter(function (imageId) { return imageId !== payload.imageId; }) })); });
|
|
47
|
+
var newParts = parts.map(function (part) { return (__assign(__assign({}, part), { relatedImages: part.relatedImages.filter(function (imageId) { return imageId !== payload.imageId; }) })); });
|
|
48
|
+
var newViews = views.map(function (view) { return (__assign(__assign({}, view), { renderedOutputs: view.renderedOutputs.filter(function (outputId) { return !(deletedImage === null || deletedImage === void 0 ? void 0 : deletedImage.renderedOutputs.includes(outputId)); }) })); });
|
|
49
|
+
var newRenderedOutputs = renderedOutputs.filter(function (output) { return !(deletedImage === null || deletedImage === void 0 ? void 0 : deletedImage.renderedOutputs.includes(output.id)); });
|
|
50
|
+
return __assign(__assign({}, state), { images: __spreadArray([], newImages, true), inspections: __spreadArray([], inspections, true), damages: __spreadArray([], newDamages, true), parts: __spreadArray([], newParts, true), renderedOutputs: __spreadArray([], newRenderedOutputs, true), views: __spreadArray([], newViews, true) });
|
|
51
|
+
}
|
|
52
|
+
exports.deletedOneImage = deletedOneImage;
|
|
@@ -2,6 +2,7 @@ export * from './monkAction';
|
|
|
2
2
|
export * from './resetState';
|
|
3
3
|
export * from './gotOneInspection';
|
|
4
4
|
export * from './createdOneImage';
|
|
5
|
+
export * from './deletedOneImage';
|
|
5
6
|
export * from './updatedManyTasks';
|
|
6
7
|
export * from './updatedVehicle';
|
|
7
8
|
export * from './createdOnePricing';
|