@vergelijkdirect/insurance-transmission-client 1.3.21
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.md +79 -0
- package/package.json +33 -0
- package/src/js/adapters/index.d.ts +1 -0
- package/src/js/adapters/index.js +5 -0
- package/src/js/adapters/local-storage.adapter.d.ts +15 -0
- package/src/js/adapters/local-storage.adapter.js +56 -0
- package/src/js/clients/index.d.ts +1 -0
- package/src/js/clients/index.js +5 -0
- package/src/js/clients/insurance-transmission.client.d.ts +14 -0
- package/src/js/clients/insurance-transmission.client.js +88 -0
- package/src/js/core/http.client.d.ts +32 -0
- package/src/js/core/http.client.js +146 -0
- package/src/js/core/index.d.ts +2 -0
- package/src/js/core/index.js +7 -0
- package/src/js/core/injector.d.ts +17 -0
- package/src/js/core/injector.js +67 -0
- package/src/js/factories/api-service.factory.d.ts +4 -0
- package/src/js/factories/api-service.factory.js +50 -0
- package/src/js/factories/comparison.factory.d.ts +32 -0
- package/src/js/factories/comparison.factory.js +23 -0
- package/src/js/factories/index.d.ts +3 -0
- package/src/js/factories/index.js +9 -0
- package/src/js/factories/rate.factory.d.ts +6 -0
- package/src/js/factories/rate.factory.js +92 -0
- package/src/js/handlers/error.handler.d.ts +7 -0
- package/src/js/handlers/error.handler.js +12 -0
- package/src/js/handlers/index.d.ts +3 -0
- package/src/js/handlers/index.js +9 -0
- package/src/js/handlers/rate-handler.d.ts +10 -0
- package/src/js/handlers/rate-handler.js +70 -0
- package/src/js/handlers/response.handler.d.ts +7 -0
- package/src/js/handlers/response.handler.js +12 -0
- package/src/js/index.d.ts +5 -0
- package/src/js/index.js +21 -0
- package/src/js/interfaces/additional-coverage.interface.d.ts +8 -0
- package/src/js/interfaces/additional-coverage.interface.js +2 -0
- package/src/js/interfaces/calculate-rates.interface.d.ts +5 -0
- package/src/js/interfaces/calculate-rates.interface.js +2 -0
- package/src/js/interfaces/comparison/comparison-data-collection.interface.d.ts +16 -0
- package/src/js/interfaces/comparison/comparison-data-collection.interface.js +2 -0
- package/src/js/interfaces/comparison/comparison-insurance-data.interface.d.ts +8 -0
- package/src/js/interfaces/comparison/comparison-insurance-data.interface.js +2 -0
- package/src/js/interfaces/comparison/comparison-insurance.interface.d.ts +11 -0
- package/src/js/interfaces/comparison/comparison-insurance.interface.js +2 -0
- package/src/js/interfaces/comparison/comparison.interface.d.ts +8 -0
- package/src/js/interfaces/comparison/comparison.interface.js +2 -0
- package/src/js/interfaces/comparison/index.d.ts +4 -0
- package/src/js/interfaces/comparison/index.js +2 -0
- package/src/js/interfaces/environment.interface.d.ts +7 -0
- package/src/js/interfaces/environment.interface.js +2 -0
- package/src/js/interfaces/index.d.ts +10 -0
- package/src/js/interfaces/index.js +19 -0
- package/src/js/interfaces/moped-rate.interface.d.ts +38 -0
- package/src/js/interfaces/moped-rate.interface.js +2 -0
- package/src/js/interfaces/nextable.interface.d.ts +4 -0
- package/src/js/interfaces/nextable.interface.js +2 -0
- package/src/js/interfaces/rate.interface.d.ts +12 -0
- package/src/js/interfaces/rate.interface.js +2 -0
- package/src/js/interfaces/requests/additional-coverages-request.interface.d.ts +5 -0
- package/src/js/interfaces/requests/additional-coverages-request.interface.js +2 -0
- package/src/js/interfaces/requests/index.d.ts +2 -0
- package/src/js/interfaces/requests/index.js +2 -0
- package/src/js/interfaces/requests/moped-rate-request.interface.d.ts +21 -0
- package/src/js/interfaces/requests/moped-rate-request.interface.js +2 -0
- package/src/js/interfaces/storage.interface.d.ts +8 -0
- package/src/js/interfaces/storage.interface.js +2 -0
- package/src/js/interfaces/user.interface.d.ts +23 -0
- package/src/js/interfaces/user.interface.js +2 -0
- package/src/js/interfaces/utils/index.d.ts +2 -0
- package/src/js/interfaces/utils/index.js +2 -0
- package/src/js/interfaces/utils/timestampable.interface.d.ts +5 -0
- package/src/js/interfaces/utils/timestampable.interface.js +2 -0
- package/src/js/interfaces/utils/to-object.interface.d.ts +4 -0
- package/src/js/interfaces/utils/to-object.interface.js +2 -0
- package/src/js/maps/index.d.ts +2 -0
- package/src/js/maps/index.js +7 -0
- package/src/js/maps/insurance-key.config.d.ts +2 -0
- package/src/js/maps/insurance-key.config.js +13 -0
- package/src/js/maps/risk-insurance.map.d.ts +1 -0
- package/src/js/maps/risk-insurance.map.js +24 -0
- package/src/js/models/comparison/comparison-data-collection.model.d.ts +23 -0
- package/src/js/models/comparison/comparison-data-collection.model.js +149 -0
- package/src/js/models/comparison/comparison-insurance-data.model.d.ts +15 -0
- package/src/js/models/comparison/comparison-insurance-data.model.js +85 -0
- package/src/js/models/comparison/comparison-insurance.model.d.ts +17 -0
- package/src/js/models/comparison/comparison-insurance.model.js +43 -0
- package/src/js/models/comparison/comparison.model.d.ts +20 -0
- package/src/js/models/comparison/comparison.model.js +47 -0
- package/src/js/models/comparison/index.d.ts +4 -0
- package/src/js/models/comparison/index.js +11 -0
- package/src/js/models/configuration/configuration.model.d.ts +18 -0
- package/src/js/models/configuration/configuration.model.js +52 -0
- package/src/js/models/configuration/default-configuration.model.d.ts +5 -0
- package/src/js/models/configuration/default-configuration.model.js +34 -0
- package/src/js/models/configuration/index.d.ts +2 -0
- package/src/js/models/configuration/index.js +7 -0
- package/src/js/models/dkm-rate.model.d.ts +4 -0
- package/src/js/models/dkm-rate.model.js +26 -0
- package/src/js/models/documents.model.d.ts +9 -0
- package/src/js/models/documents.model.js +16 -0
- package/src/js/models/enra-model.d.ts +7 -0
- package/src/js/models/enra-model.js +30 -0
- package/src/js/models/index.d.ts +15 -0
- package/src/js/models/index.js +45 -0
- package/src/js/models/laka-rate.model.d.ts +7 -0
- package/src/js/models/laka-rate.model.js +29 -0
- package/src/js/models/moneyview-rate.model.d.ts +7 -0
- package/src/js/models/moneyview-rate.model.js +30 -0
- package/src/js/models/package-rate.model.d.ts +11 -0
- package/src/js/models/package-rate.model.js +109 -0
- package/src/js/models/pet/index.d.ts +1 -0
- package/src/js/models/pet/index.js +5 -0
- package/src/js/models/pet/petsecur-rate.model.d.ts +6 -0
- package/src/js/models/pet/petsecur-rate.model.js +29 -0
- package/src/js/models/rate-collection.model.d.ts +16 -0
- package/src/js/models/rate-collection.model.js +91 -0
- package/src/js/models/rate.model.d.ts +21 -0
- package/src/js/models/rate.model.js +108 -0
- package/src/js/models/risk-rate.model.d.ts +6 -0
- package/src/js/models/risk-rate.model.js +30 -0
- package/src/js/models/rolls-rate.model.d.ts +6 -0
- package/src/js/models/rolls-rate.model.js +30 -0
- package/src/js/models/undefined-rate.model.d.ts +7 -0
- package/src/js/models/undefined-rate.model.js +29 -0
- package/src/js/models/user.model.d.ts +36 -0
- package/src/js/models/user.model.js +115 -0
- package/src/js/models/vergelijkdirect-rate.model.d.ts +6 -0
- package/src/js/models/vergelijkdirect-rate.model.js +30 -0
- package/src/js/resources/base.resource.d.ts +9 -0
- package/src/js/resources/base.resource.js +12 -0
- package/src/js/resources/bike.resource.d.ts +8 -0
- package/src/js/resources/bike.resource.js +47 -0
- package/src/js/resources/car.resource.d.ts +12 -0
- package/src/js/resources/car.resource.js +70 -0
- package/src/js/resources/caravan.resource.d.ts +12 -0
- package/src/js/resources/caravan.resource.js +64 -0
- package/src/js/resources/categories.resource.d.ts +13 -0
- package/src/js/resources/categories.resource.js +123 -0
- package/src/js/resources/comparison-module.resource.d.ts +8 -0
- package/src/js/resources/comparison-module.resource.js +41 -0
- package/src/js/resources/comparison.resource.d.ts +9 -0
- package/src/js/resources/comparison.resource.js +48 -0
- package/src/js/resources/data-validation.resource.d.ts +9 -0
- package/src/js/resources/data-validation.resource.js +59 -0
- package/src/js/resources/data.resource.d.ts +10 -0
- package/src/js/resources/data.resource.js +80 -0
- package/src/js/resources/document.resource.d.ts +7 -0
- package/src/js/resources/document.resource.js +36 -0
- package/src/js/resources/home.resource.d.ts +10 -0
- package/src/js/resources/home.resource.js +57 -0
- package/src/js/resources/household.resource.d.ts +8 -0
- package/src/js/resources/household.resource.js +43 -0
- package/src/js/resources/housing.resource.d.ts +8 -0
- package/src/js/resources/housing.resource.js +44 -0
- package/src/js/resources/index.d.ts +19 -0
- package/src/js/resources/index.js +41 -0
- package/src/js/resources/legal-assistance.resource.d.ts +10 -0
- package/src/js/resources/legal-assistance.resource.js +57 -0
- package/src/js/resources/liability.resource.d.ts +6 -0
- package/src/js/resources/liability.resource.js +35 -0
- package/src/js/resources/loan.resource.d.ts +7 -0
- package/src/js/resources/loan.resource.js +35 -0
- package/src/js/resources/moped.resource.d.ts +13 -0
- package/src/js/resources/moped.resource.js +78 -0
- package/src/js/resources/motor.resource.d.ts +12 -0
- package/src/js/resources/motor.resource.js +70 -0
- package/src/js/resources/package.resource.d.ts +14 -0
- package/src/js/resources/package.resource.js +84 -0
- package/src/js/resources/partner.resource.d.ts +8 -0
- package/src/js/resources/partner.resource.js +42 -0
- package/src/js/resources/pet.resource.d.ts +8 -0
- package/src/js/resources/pet.resource.js +41 -0
- package/src/js/resources/travel.resource.d.ts +9 -0
- package/src/js/resources/travel.resource.js +49 -0
- package/src/js/resources/user.resource.d.ts +7 -0
- package/src/js/resources/user.resource.js +35 -0
- package/src/js/resources/v1.resource.d.ts +22 -0
- package/src/js/resources/v1.resource.js +119 -0
- package/src/js/services/bike.service.d.ts +10 -0
- package/src/js/services/bike.service.js +97 -0
- package/src/js/services/car.service.d.ts +14 -0
- package/src/js/services/car.service.js +108 -0
- package/src/js/services/caravan.service.d.ts +15 -0
- package/src/js/services/caravan.service.js +130 -0
- package/src/js/services/comparison-module.service.d.ts +7 -0
- package/src/js/services/comparison-module.service.js +16 -0
- package/src/js/services/comparison.service.d.ts +9 -0
- package/src/js/services/comparison.service.js +102 -0
- package/src/js/services/configurations.service.d.ts +12 -0
- package/src/js/services/configurations.service.js +81 -0
- package/src/js/services/data-validation.service.d.ts +8 -0
- package/src/js/services/data-validation.service.js +20 -0
- package/src/js/services/data.service.d.ts +9 -0
- package/src/js/services/data.service.js +74 -0
- package/src/js/services/document.service.d.ts +8 -0
- package/src/js/services/document.service.js +86 -0
- package/src/js/services/home.service.d.ts +12 -0
- package/src/js/services/home.service.js +90 -0
- package/src/js/services/household.service.d.ts +10 -0
- package/src/js/services/household.service.js +84 -0
- package/src/js/services/housing.service.d.ts +10 -0
- package/src/js/services/housing.service.js +97 -0
- package/src/js/services/index.d.ts +24 -0
- package/src/js/services/index.js +51 -0
- package/src/js/services/legal-assistance.service.d.ts +12 -0
- package/src/js/services/legal-assistance.service.js +90 -0
- package/src/js/services/liability.service.d.ts +9 -0
- package/src/js/services/liability.service.js +81 -0
- package/src/js/services/loan.service.d.ts +9 -0
- package/src/js/services/loan.service.js +80 -0
- package/src/js/services/moped.service.d.ts +16 -0
- package/src/js/services/moped.service.js +129 -0
- package/src/js/services/motor.service.d.ts +16 -0
- package/src/js/services/motor.service.js +128 -0
- package/src/js/services/package.service.d.ts +15 -0
- package/src/js/services/package.service.js +160 -0
- package/src/js/services/partner.service.d.ts +7 -0
- package/src/js/services/partner.service.js +17 -0
- package/src/js/services/pet.service.d.ts +10 -0
- package/src/js/services/pet.service.js +84 -0
- package/src/js/services/rate.service.d.ts +5 -0
- package/src/js/services/rate.service.js +43 -0
- package/src/js/services/travel.service.d.ts +11 -0
- package/src/js/services/travel.service.js +95 -0
- package/src/js/services/user.service.d.ts +6 -0
- package/src/js/services/user.service.js +13 -0
- package/src/js/services/v1.service.d.ts +19 -0
- package/src/js/services/v1.service.js +52 -0
- package/src/js/types/common/condition-url.type.d.ts +6 -0
- package/src/js/types/common/condition-url.type.js +2 -0
- package/src/js/types/common/index.d.ts +2 -0
- package/src/js/types/common/index.js +2 -0
- package/src/js/types/common/timestamps.type.d.ts +6 -0
- package/src/js/types/common/timestamps.type.js +2 -0
- package/src/js/types/index.d.ts +1 -0
- package/src/js/types/index.js +17 -0
- package/src/js/utils/compare-rate-by-coverage.util.d.ts +4 -0
- package/src/js/utils/compare-rate-by-coverage.util.js +64 -0
- package/src/js/utils/index.d.ts +2 -0
- package/src/js/utils/index.js +7 -0
- package/src/js/utils/range.util.d.ts +2 -0
- package/src/js/utils/range.util.js +5 -0
- package/src/js/utils/sorting.util.d.ts +5 -0
- package/src/js/utils/sorting.util.js +11 -0
- package/src/js/utils/supplierPlacementTracker.util.d.ts +4 -0
- package/src/js/utils/supplierPlacementTracker.util.js +18 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import BaseResource from "./base.resource";
|
|
2
|
+
import { EnvironmentInterface, NextableInterface } from "../interfaces";
|
|
3
|
+
declare abstract class CategoriesResource extends BaseResource {
|
|
4
|
+
protected abstract getCategory(): string;
|
|
5
|
+
protected abstract getAvailableServices(): string[];
|
|
6
|
+
constructor();
|
|
7
|
+
protected getBaseUrl(env: EnvironmentInterface): string;
|
|
8
|
+
protected getConfiguredServices(): string[];
|
|
9
|
+
private getFunnel;
|
|
10
|
+
getRates(data: any): Promise<NextableInterface[]>;
|
|
11
|
+
getCoverageRateComparison(data: any, coverage?: string): Promise<NextableInterface[]>;
|
|
12
|
+
}
|
|
13
|
+
export default CategoriesResource;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __values = (this && this.__values) || function(o) {
|
|
29
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
30
|
+
if (m) return m.call(o);
|
|
31
|
+
if (o && typeof o.length === "number") return {
|
|
32
|
+
next: function () {
|
|
33
|
+
if (o && i >= o.length) o = void 0;
|
|
34
|
+
return { value: o && o[i++], done: !o };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
var base_resource_1 = require("./base.resource");
|
|
41
|
+
var core_1 = require("../core");
|
|
42
|
+
var handlers_1 = require("../handlers");
|
|
43
|
+
var CategoriesResource = /** @class */ (function (_super) {
|
|
44
|
+
__extends(CategoriesResource, _super);
|
|
45
|
+
function CategoriesResource() {
|
|
46
|
+
var _this = _super.call(this) || this;
|
|
47
|
+
_this.http.interceptors.request.use(function (config) {
|
|
48
|
+
config.headers = __assign(__assign({}, config.headers), {
|
|
49
|
+
'X-Comparison-Funnel': _this.getFunnel()
|
|
50
|
+
});
|
|
51
|
+
return config;
|
|
52
|
+
});
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
CategoriesResource.prototype.getBaseUrl = function (env) {
|
|
56
|
+
var category = this.getCategory();
|
|
57
|
+
return "".concat(env.api.baseUrl, "/").concat(env.api.version, "/comparisons/").concat(category);
|
|
58
|
+
};
|
|
59
|
+
CategoriesResource.prototype.getConfiguredServices = function () {
|
|
60
|
+
var configurationService = core_1.Injector.instance.get('configuration-service');
|
|
61
|
+
if (configurationService.isConfigured()) {
|
|
62
|
+
return configurationService.getConfigurations().getServices(this.getCategory(), this.getFunnel());
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
return this.getAvailableServices();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
CategoriesResource.prototype.getFunnel = function () {
|
|
69
|
+
try {
|
|
70
|
+
return core_1.Injector.instance.get('X-Comparison-Funnel');
|
|
71
|
+
}
|
|
72
|
+
catch (e) {
|
|
73
|
+
return this.getCategory();
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
CategoriesResource.prototype.getRates = function (data) {
|
|
77
|
+
var e_1, _a;
|
|
78
|
+
var services = [];
|
|
79
|
+
try {
|
|
80
|
+
for (var _b = __values(this.getConfiguredServices()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
81
|
+
var service = _c.value;
|
|
82
|
+
services.push(this.http({
|
|
83
|
+
method: 'post',
|
|
84
|
+
url: "/".concat(service, "/rates"),
|
|
85
|
+
data: data
|
|
86
|
+
}).then(function (r) { return new handlers_1.ResponseHandler(r); }).catch(function (e) { return new handlers_1.ErrorHandler(e); }));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
90
|
+
finally {
|
|
91
|
+
try {
|
|
92
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
93
|
+
}
|
|
94
|
+
finally { if (e_1) throw e_1.error; }
|
|
95
|
+
}
|
|
96
|
+
return Promise.all(services);
|
|
97
|
+
};
|
|
98
|
+
CategoriesResource.prototype.getCoverageRateComparison = function (data, coverage) {
|
|
99
|
+
var e_2, _a;
|
|
100
|
+
if (coverage === void 0) { coverage = ''; }
|
|
101
|
+
var services = [];
|
|
102
|
+
try {
|
|
103
|
+
for (var _b = __values(this.getConfiguredServices()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
104
|
+
var service = _c.value;
|
|
105
|
+
services.push(this.http({
|
|
106
|
+
method: 'post',
|
|
107
|
+
url: "/".concat(service, "/coverage_rate_comparison/").concat(coverage),
|
|
108
|
+
data: data
|
|
109
|
+
}).then(function (r) { return new handlers_1.ResponseHandler(r); }).catch(function (e) { return new handlers_1.ErrorHandler(e); }));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
return Promise.all(services);
|
|
120
|
+
};
|
|
121
|
+
return CategoriesResource;
|
|
122
|
+
}(base_resource_1.default));
|
|
123
|
+
exports.default = CategoriesResource;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EnvironmentInterface } from "../interfaces";
|
|
2
|
+
import BaseResource from "./base.resource";
|
|
3
|
+
declare class ComparisonModuleResource extends BaseResource {
|
|
4
|
+
protected getBaseUrl(env: EnvironmentInterface): string;
|
|
5
|
+
getScriptSource(): Promise<any>;
|
|
6
|
+
getInitializationData(): Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
export default ComparisonModuleResource;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var base_resource_1 = require("./base.resource");
|
|
19
|
+
var ComparisonModuleResource = /** @class */ (function (_super) {
|
|
20
|
+
__extends(ComparisonModuleResource, _super);
|
|
21
|
+
function ComparisonModuleResource() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
ComparisonModuleResource.prototype.getBaseUrl = function (env) {
|
|
25
|
+
return "".concat(env.api.baseUrl, "/scripts/comparison-module");
|
|
26
|
+
};
|
|
27
|
+
ComparisonModuleResource.prototype.getScriptSource = function () {
|
|
28
|
+
return this.http({
|
|
29
|
+
method: 'get',
|
|
30
|
+
url: "/source",
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
ComparisonModuleResource.prototype.getInitializationData = function () {
|
|
34
|
+
return this.http({
|
|
35
|
+
method: 'get',
|
|
36
|
+
url: "/initialize",
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
return ComparisonModuleResource;
|
|
40
|
+
}(base_resource_1.default));
|
|
41
|
+
exports.default = ComparisonModuleResource;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EnvironmentInterface, NextableInterface } from "../interfaces";
|
|
2
|
+
import BaseResource from "./base.resource";
|
|
3
|
+
declare class ComparisonResource extends BaseResource {
|
|
4
|
+
protected getBaseUrl(env: EnvironmentInterface): string;
|
|
5
|
+
update(data: any, id: string): Promise<NextableInterface>;
|
|
6
|
+
create(data: any): Promise<NextableInterface>;
|
|
7
|
+
get(id: string): Promise<NextableInterface>;
|
|
8
|
+
}
|
|
9
|
+
export default ComparisonResource;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var base_resource_1 = require("./base.resource");
|
|
19
|
+
var ComparisonResource = /** @class */ (function (_super) {
|
|
20
|
+
__extends(ComparisonResource, _super);
|
|
21
|
+
function ComparisonResource() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
ComparisonResource.prototype.getBaseUrl = function (env) {
|
|
25
|
+
return "".concat(env.api.baseUrl, "/v2/comparison");
|
|
26
|
+
};
|
|
27
|
+
ComparisonResource.prototype.update = function (data, id) {
|
|
28
|
+
return this.http({
|
|
29
|
+
method: 'put',
|
|
30
|
+
url: "/".concat(id),
|
|
31
|
+
data: data
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
ComparisonResource.prototype.create = function (data) {
|
|
35
|
+
return this.http({
|
|
36
|
+
method: 'post',
|
|
37
|
+
data: data
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
ComparisonResource.prototype.get = function (id) {
|
|
41
|
+
return this.http({
|
|
42
|
+
method: 'get',
|
|
43
|
+
url: "/".concat(id)
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
return ComparisonResource;
|
|
47
|
+
}(base_resource_1.default));
|
|
48
|
+
exports.default = ComparisonResource;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EnvironmentInterface } from "../interfaces";
|
|
2
|
+
import BaseResource from "./base.resource";
|
|
3
|
+
declare class DataValidationResource extends BaseResource {
|
|
4
|
+
protected getBaseUrl(env: EnvironmentInterface): string;
|
|
5
|
+
validateEmail(email: string): Promise<any>;
|
|
6
|
+
validateIBAN(iban: string): Promise<any>;
|
|
7
|
+
validateZipCode(zipCode: string, houseNumber: string, houseNumberAddition?: string): Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
export default DataValidationResource;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var base_resource_1 = require("./base.resource");
|
|
19
|
+
var DataValidationResource = /** @class */ (function (_super) {
|
|
20
|
+
__extends(DataValidationResource, _super);
|
|
21
|
+
function DataValidationResource() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
DataValidationResource.prototype.getBaseUrl = function (env) {
|
|
25
|
+
return "".concat(env.api.baseUrl, "/v1");
|
|
26
|
+
};
|
|
27
|
+
DataValidationResource.prototype.validateEmail = function (email) {
|
|
28
|
+
return this.http({
|
|
29
|
+
method: 'post',
|
|
30
|
+
url: "/address/validate",
|
|
31
|
+
data: {
|
|
32
|
+
email: email
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
DataValidationResource.prototype.validateIBAN = function (iban) {
|
|
37
|
+
return this.http({
|
|
38
|
+
method: 'post',
|
|
39
|
+
url: "/iban/validate",
|
|
40
|
+
data: {
|
|
41
|
+
iban: iban
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
DataValidationResource.prototype.validateZipCode = function (zipCode, houseNumber, houseNumberAddition) {
|
|
46
|
+
if (houseNumberAddition === void 0) { houseNumberAddition = ''; }
|
|
47
|
+
return this.http({
|
|
48
|
+
method: 'post',
|
|
49
|
+
url: "/zipcode/validate",
|
|
50
|
+
data: {
|
|
51
|
+
ZipCode: zipCode,
|
|
52
|
+
HouseNumber: houseNumber,
|
|
53
|
+
HouseNumberAddition: houseNumberAddition
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
return DataValidationResource;
|
|
58
|
+
}(base_resource_1.default));
|
|
59
|
+
exports.default = DataValidationResource;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EnvironmentInterface } from "../interfaces";
|
|
2
|
+
import BaseResource from "./base.resource";
|
|
3
|
+
declare class DataResource extends BaseResource {
|
|
4
|
+
protected getBaseUrl(env: EnvironmentInterface): string;
|
|
5
|
+
findVehicle(licensePlate: string, vehicleType: string): Promise<any>;
|
|
6
|
+
checkLicensePlate(licensePlate: string, signCode: string, vehicleType: string): Promise<any>;
|
|
7
|
+
validateIBAN(iban: string): Promise<any>;
|
|
8
|
+
calculateMaximumLoanAmount(criteria: any): Promise<any>;
|
|
9
|
+
}
|
|
10
|
+
export default DataResource;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var base_resource_1 = require("./base.resource");
|
|
19
|
+
var DataResource = /** @class */ (function (_super) {
|
|
20
|
+
__extends(DataResource, _super);
|
|
21
|
+
function DataResource() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
DataResource.prototype.getBaseUrl = function (env) {
|
|
25
|
+
return "".concat(env.api.baseUrl, "/v2");
|
|
26
|
+
};
|
|
27
|
+
DataResource.prototype.findVehicle = function (licensePlate, vehicleType) {
|
|
28
|
+
var data = {
|
|
29
|
+
'Comparison': vehicleType,
|
|
30
|
+
'LicensePlate': licensePlate,
|
|
31
|
+
};
|
|
32
|
+
if (vehicleType === 'car') {
|
|
33
|
+
return this.http({
|
|
34
|
+
method: 'get',
|
|
35
|
+
url: '/data/vehicle/find?' + new URLSearchParams(data),
|
|
36
|
+
});
|
|
37
|
+
// @todo remove after finish all vehicle id integrations
|
|
38
|
+
}
|
|
39
|
+
else if (vehicleType === 'motor' || vehicleType === 'moped') {
|
|
40
|
+
return this.http({
|
|
41
|
+
method: 'get',
|
|
42
|
+
url: "/comparisons/".concat(vehicleType, "/find/").concat(licensePlate),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
throw new Error("There is no vehicle data resource for \"".concat(vehicleType, "\" comparison."));
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
DataResource.prototype.checkLicensePlate = function (licensePlate, signCode, vehicleType) {
|
|
50
|
+
var signCodeField = vehicleType.charAt(0).toUpperCase() + vehicleType.slice(1) + 'SignCode';
|
|
51
|
+
var criteria = {
|
|
52
|
+
'LicensePlate': licensePlate,
|
|
53
|
+
'Comparison': vehicleType,
|
|
54
|
+
};
|
|
55
|
+
criteria[signCodeField] = signCode;
|
|
56
|
+
return this.http({
|
|
57
|
+
method: 'post',
|
|
58
|
+
url: '/data/vehicle/check_license_plate',
|
|
59
|
+
data: criteria
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
DataResource.prototype.validateIBAN = function (iban) {
|
|
63
|
+
return this.http({
|
|
64
|
+
method: 'post',
|
|
65
|
+
url: '/data/iban/validate',
|
|
66
|
+
data: {
|
|
67
|
+
'IBAN': iban
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
DataResource.prototype.calculateMaximumLoanAmount = function (criteria) {
|
|
72
|
+
return this.http({
|
|
73
|
+
method: 'post',
|
|
74
|
+
url: '/data/loan/dkm/maximum-amount',
|
|
75
|
+
data: criteria
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
return DataResource;
|
|
79
|
+
}(base_resource_1.default));
|
|
80
|
+
exports.default = DataResource;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NextableInterface, EnvironmentInterface } from "../interfaces";
|
|
2
|
+
import BaseResource from "./base.resource";
|
|
3
|
+
declare class DocumentResource extends BaseResource {
|
|
4
|
+
protected getBaseUrl(env: EnvironmentInterface): string;
|
|
5
|
+
getMoneyviewDocumentList(data: any): Promise<NextableInterface>;
|
|
6
|
+
}
|
|
7
|
+
export default DocumentResource;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var base_resource_1 = require("./base.resource");
|
|
19
|
+
var DocumentResource = /** @class */ (function (_super) {
|
|
20
|
+
__extends(DocumentResource, _super);
|
|
21
|
+
function DocumentResource() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
DocumentResource.prototype.getBaseUrl = function (env) {
|
|
25
|
+
return "".concat(env.api.baseUrl, "/v2/categories/documents/moneyview");
|
|
26
|
+
};
|
|
27
|
+
DocumentResource.prototype.getMoneyviewDocumentList = function (data) {
|
|
28
|
+
return this.http({
|
|
29
|
+
method: 'post',
|
|
30
|
+
url: "/list",
|
|
31
|
+
data: data
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
return DocumentResource;
|
|
35
|
+
}(base_resource_1.default));
|
|
36
|
+
exports.default = DocumentResource;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NextableInterface } from "../interfaces";
|
|
2
|
+
import CategoryResource from "./categories.resource";
|
|
3
|
+
declare class HomeResource extends CategoryResource {
|
|
4
|
+
protected getCategory(): string;
|
|
5
|
+
protected getAvailableServices(): string[];
|
|
6
|
+
getAmount(data: any): Promise<NextableInterface>;
|
|
7
|
+
findHome(data: any): Promise<NextableInterface>;
|
|
8
|
+
getAddition(data: any): Promise<NextableInterface>;
|
|
9
|
+
}
|
|
10
|
+
export default HomeResource;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var categories_resource_1 = require("./categories.resource");
|
|
19
|
+
var HomeResource = /** @class */ (function (_super) {
|
|
20
|
+
__extends(HomeResource, _super);
|
|
21
|
+
function HomeResource() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
HomeResource.prototype.getCategory = function () {
|
|
25
|
+
return 'home';
|
|
26
|
+
};
|
|
27
|
+
HomeResource.prototype.getAvailableServices = function () {
|
|
28
|
+
return [
|
|
29
|
+
'risk',
|
|
30
|
+
'moneyview',
|
|
31
|
+
'rolls'
|
|
32
|
+
];
|
|
33
|
+
};
|
|
34
|
+
HomeResource.prototype.getAmount = function (data) {
|
|
35
|
+
return this.http({
|
|
36
|
+
method: 'post',
|
|
37
|
+
url: '/risk/amount',
|
|
38
|
+
data: data
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
HomeResource.prototype.findHome = function (data) {
|
|
42
|
+
return this.http({
|
|
43
|
+
method: 'post',
|
|
44
|
+
url: '/risk/find',
|
|
45
|
+
data: data
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
HomeResource.prototype.getAddition = function (data) {
|
|
49
|
+
return this.http({
|
|
50
|
+
method: 'post',
|
|
51
|
+
url: '/risk/addition',
|
|
52
|
+
data: data
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
return HomeResource;
|
|
56
|
+
}(categories_resource_1.default));
|
|
57
|
+
exports.default = HomeResource;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NextableInterface } from "../interfaces";
|
|
2
|
+
import CategoryResource from "./categories.resource";
|
|
3
|
+
declare class HouseholdResource extends CategoryResource {
|
|
4
|
+
protected getCategory(): string;
|
|
5
|
+
protected getAvailableServices(): string[];
|
|
6
|
+
getAmount(data: any): Promise<NextableInterface>;
|
|
7
|
+
}
|
|
8
|
+
export default HouseholdResource;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var categories_resource_1 = require("./categories.resource");
|
|
19
|
+
var HouseholdResource = /** @class */ (function (_super) {
|
|
20
|
+
__extends(HouseholdResource, _super);
|
|
21
|
+
function HouseholdResource() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
HouseholdResource.prototype.getCategory = function () {
|
|
25
|
+
return 'household';
|
|
26
|
+
};
|
|
27
|
+
HouseholdResource.prototype.getAvailableServices = function () {
|
|
28
|
+
return [
|
|
29
|
+
'risk',
|
|
30
|
+
'moneyview',
|
|
31
|
+
'rolls',
|
|
32
|
+
];
|
|
33
|
+
};
|
|
34
|
+
HouseholdResource.prototype.getAmount = function (data) {
|
|
35
|
+
return this.http({
|
|
36
|
+
method: 'post',
|
|
37
|
+
url: '/risk/amount',
|
|
38
|
+
data: data
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
return HouseholdResource;
|
|
42
|
+
}(categories_resource_1.default));
|
|
43
|
+
exports.default = HouseholdResource;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NextableInterface } from "../interfaces";
|
|
2
|
+
import CategoryResource from "./categories.resource";
|
|
3
|
+
declare class HousingResource extends CategoryResource {
|
|
4
|
+
protected getCategory(): string;
|
|
5
|
+
protected getAvailableServices(): string[];
|
|
6
|
+
getMoneyviewRates(data: any): Promise<NextableInterface>;
|
|
7
|
+
}
|
|
8
|
+
export default HousingResource;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var handlers_1 = require("../handlers");
|
|
19
|
+
var categories_resource_1 = require("./categories.resource");
|
|
20
|
+
var HousingResource = /** @class */ (function (_super) {
|
|
21
|
+
__extends(HousingResource, _super);
|
|
22
|
+
function HousingResource() {
|
|
23
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
}
|
|
25
|
+
HousingResource.prototype.getCategory = function () {
|
|
26
|
+
return 'housing';
|
|
27
|
+
};
|
|
28
|
+
HousingResource.prototype.getAvailableServices = function () {
|
|
29
|
+
return [
|
|
30
|
+
'risk',
|
|
31
|
+
'moneyview',
|
|
32
|
+
'rolls',
|
|
33
|
+
];
|
|
34
|
+
};
|
|
35
|
+
HousingResource.prototype.getMoneyviewRates = function (data) {
|
|
36
|
+
return this.http({
|
|
37
|
+
method: 'post',
|
|
38
|
+
url: '/moneyview/rates',
|
|
39
|
+
data: data
|
|
40
|
+
}).then(function (r) { return new handlers_1.ResponseHandler(r); }).catch(function (e) { return new handlers_1.ErrorHandler(e); });
|
|
41
|
+
};
|
|
42
|
+
return HousingResource;
|
|
43
|
+
}(categories_resource_1.default));
|
|
44
|
+
exports.default = HousingResource;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { default as PetResource } from "./pet.resource";
|
|
2
|
+
export { default as LoanResource } from "./loan.resource";
|
|
3
|
+
export { default as DataResource } from "./data.resource";
|
|
4
|
+
export { default as HomeResource } from "./home.resource";
|
|
5
|
+
export { default as MopedResource } from "./moped.resource";
|
|
6
|
+
export { default as MotorResource } from "./motor.resource";
|
|
7
|
+
export { default as CarResource } from "./car.resource";
|
|
8
|
+
export { default as CaravanResource } from "./caravan.resource";
|
|
9
|
+
export { default as BikeResource } from "./bike.resource";
|
|
10
|
+
export { default as PackageResource } from "./package.resource";
|
|
11
|
+
export { default as HouseholdResource } from "./household.resource";
|
|
12
|
+
export { default as HousingResource } from "./housing.resource";
|
|
13
|
+
export { default as LiabilityResource } from "./liability.resource";
|
|
14
|
+
export { default as LegalAssistanceResource } from "./legal-assistance.resource";
|
|
15
|
+
export { default as PartnerResource } from "./partner.resource";
|
|
16
|
+
export { default as ComparisonModuleResource } from "./comparison-module.resource";
|
|
17
|
+
export { default as DocumentResource } from "./document.resource";
|
|
18
|
+
export { default as ComparisonResource } from "./comparison.resource";
|
|
19
|
+
export { default as DataValidationResource } from "./data-validation.resource";
|