@vergelijkdirect/insurance-transmission-client 1.3.57 → 1.3.58
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
|
@@ -47,6 +47,9 @@ var ApiServiceFactory = /** @class */ (function () {
|
|
|
47
47
|
else if (insuranceCategory === 'housing') {
|
|
48
48
|
return new services_1.HousingService();
|
|
49
49
|
}
|
|
50
|
+
else if (insuranceCategory === 'loan') {
|
|
51
|
+
return new services_1.LoanService();
|
|
52
|
+
}
|
|
50
53
|
else {
|
|
51
54
|
throw new Error('Undefined api service');
|
|
52
55
|
}
|
|
@@ -6,6 +6,11 @@ declare class DataResource extends BaseResource {
|
|
|
6
6
|
checkLicensePlate(licensePlate: string, signCode: string, vehicleType: string): Promise<any>;
|
|
7
7
|
validateIBAN(iban: string): Promise<any>;
|
|
8
8
|
calculateMaximumLoanAmount(criteria: any): Promise<any>;
|
|
9
|
+
uploadLoanDocument(comparisonId: string, convertedFiles: {
|
|
10
|
+
name: string;
|
|
11
|
+
base64: string | ArrayBuffer | null;
|
|
12
|
+
}[]): Promise<any>;
|
|
13
|
+
removeLoanDocument(fileId: string): Promise<any>;
|
|
9
14
|
searchBusinessInfo(companyData: {
|
|
10
15
|
companyName: string;
|
|
11
16
|
kvkNumber: string | number;
|
|
@@ -68,6 +68,22 @@ var DataResource = /** @class */ (function (_super) {
|
|
|
68
68
|
data: criteria
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
+
DataResource.prototype.uploadLoanDocument = function (comparisonId, convertedFiles) {
|
|
72
|
+
return this.http({
|
|
73
|
+
method: 'post',
|
|
74
|
+
url: '/data/file/loan',
|
|
75
|
+
data: {
|
|
76
|
+
comparison_id: comparisonId,
|
|
77
|
+
files: convertedFiles
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
DataResource.prototype.removeLoanDocument = function (fileId) {
|
|
82
|
+
return this.http({
|
|
83
|
+
method: 'delete',
|
|
84
|
+
url: "/data/file/loan/".concat(fileId),
|
|
85
|
+
});
|
|
86
|
+
};
|
|
71
87
|
DataResource.prototype.searchBusinessInfo = function (companyData, page, itemsPerPage) {
|
|
72
88
|
if (page === void 0) { page = 1; }
|
|
73
89
|
if (itemsPerPage === void 0) { itemsPerPage = 30; }
|
|
@@ -2,6 +2,11 @@ declare class DataService {
|
|
|
2
2
|
private client;
|
|
3
3
|
constructor();
|
|
4
4
|
calculateMaximumLoanAmount(criteria: any): Promise<any>;
|
|
5
|
+
uploadLoanDocument(comparisonId: string, convertedFiles: {
|
|
6
|
+
name: string;
|
|
7
|
+
base64: string | ArrayBuffer | null;
|
|
8
|
+
}[]): Promise<any>;
|
|
9
|
+
removeLoanDocument(fileId: string): Promise<any>;
|
|
5
10
|
findVehicle(licensePlate: string, vehicleType: string): Promise<any>;
|
|
6
11
|
checkLicensePlate(licensePlate: string, signCode: string, vehicleType: string): Promise<any>;
|
|
7
12
|
validateIBAN(iban: string): Promise<any>;
|
|
@@ -48,6 +48,20 @@ var DataService = /** @class */ (function () {
|
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
+
DataService.prototype.uploadLoanDocument = function (comparisonId, convertedFiles) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
53
|
+
return __generator(this, function (_a) {
|
|
54
|
+
return [2 /*return*/, this.client.uploadLoanDocument(comparisonId, convertedFiles)];
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
DataService.prototype.removeLoanDocument = function (fileId) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
60
|
+
return __generator(this, function (_a) {
|
|
61
|
+
return [2 /*return*/, this.client.removeLoanDocument(fileId)];
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
};
|
|
51
65
|
DataService.prototype.findVehicle = function (licensePlate, vehicleType) {
|
|
52
66
|
return __awaiter(this, void 0, void 0, function () {
|
|
53
67
|
return __generator(this, function (_a) {
|