@vergelijkdirect/insurance-transmission-client 1.3.39 → 1.3.40
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
|
@@ -3,6 +3,7 @@ import BaseResource from "./base.resource";
|
|
|
3
3
|
declare class DataValidationResource extends BaseResource {
|
|
4
4
|
protected getBaseUrl(env: EnvironmentInterface): string;
|
|
5
5
|
validateEmail(email: string): Promise<any>;
|
|
6
|
+
validatePhone(phone: string): Promise<any>;
|
|
6
7
|
validateIBAN(iban: string): Promise<any>;
|
|
7
8
|
validateZipCode(zipCode: string, houseNumber: string, houseNumberAddition?: string): Promise<any>;
|
|
8
9
|
}
|
|
@@ -33,6 +33,15 @@ var DataValidationResource = /** @class */ (function (_super) {
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
+
DataValidationResource.prototype.validatePhone = function (phone) {
|
|
37
|
+
return this.http({
|
|
38
|
+
method: 'post',
|
|
39
|
+
url: "/phone/validate",
|
|
40
|
+
data: {
|
|
41
|
+
phone: phone
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
};
|
|
36
45
|
DataValidationResource.prototype.validateIBAN = function (iban) {
|
|
37
46
|
return this.http({
|
|
38
47
|
method: 'post',
|
|
@@ -2,6 +2,7 @@ declare class DataValidationService {
|
|
|
2
2
|
private client;
|
|
3
3
|
constructor();
|
|
4
4
|
validateEmail(email: string): Promise<any>;
|
|
5
|
+
validatePhone(phone: string): Promise<any>;
|
|
5
6
|
validateIBAN(iban: string): Promise<any>;
|
|
6
7
|
validateZipCode(zipCode: string, houseNumber: string, houseNumberAddition?: string): Promise<any>;
|
|
7
8
|
}
|
|
@@ -8,6 +8,9 @@ var DataValidationService = /** @class */ (function () {
|
|
|
8
8
|
DataValidationService.prototype.validateEmail = function (email) {
|
|
9
9
|
return this.client.validateEmail(email);
|
|
10
10
|
};
|
|
11
|
+
DataValidationService.prototype.validatePhone = function (phone) {
|
|
12
|
+
return this.client.validatePhone(phone);
|
|
13
|
+
};
|
|
11
14
|
DataValidationService.prototype.validateIBAN = function (iban) {
|
|
12
15
|
return this.client.validateIBAN(iban);
|
|
13
16
|
};
|