@vergelijkdirect/insurance-transmission-client 1.3.31 → 1.3.32
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/package.json
CHANGED
|
@@ -29,18 +29,11 @@ var DataResource = /** @class */ (function (_super) {
|
|
|
29
29
|
'Comparison': vehicleType,
|
|
30
30
|
'LicensePlate': licensePlate,
|
|
31
31
|
};
|
|
32
|
-
if (
|
|
32
|
+
if (['car', 'motor', 'moped'].includes(vehicleType)) {
|
|
33
33
|
return this.http({
|
|
34
34
|
method: 'get',
|
|
35
35
|
url: '/data/vehicle/find?' + new URLSearchParams(data),
|
|
36
36
|
});
|
|
37
|
-
// @todo remove after finish all vehicle id integrations
|
|
38
|
-
}
|
|
39
|
-
else if (vehicleType === 'moped') {
|
|
40
|
-
return this.http({
|
|
41
|
-
method: 'get',
|
|
42
|
-
url: "/comparisons/".concat(vehicleType, "/find/").concat(licensePlate),
|
|
43
|
-
});
|
|
44
37
|
}
|
|
45
38
|
else {
|
|
46
39
|
throw new Error("There is no vehicle data resource for \"".concat(vehicleType, "\" comparison."));
|