@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,23 @@
|
|
|
1
|
+
import { ToObjectInterface } from "./index";
|
|
2
|
+
interface UserInterface extends ToObjectInterface {
|
|
3
|
+
getName(): string | null;
|
|
4
|
+
getEmail(): string | null;
|
|
5
|
+
getZipCode(): string | null;
|
|
6
|
+
getLastName(): string | null;
|
|
7
|
+
getPublicId(): number | null;
|
|
8
|
+
getBirthDate(): string | null;
|
|
9
|
+
getHouseNumber(): number | null;
|
|
10
|
+
getFamilyComposition(): string | null;
|
|
11
|
+
getHouseNumberAddition(): string | null;
|
|
12
|
+
setHouseNumberAddition(house_number_addition: string): this;
|
|
13
|
+
setFamilyComposition(family_composition: string): this;
|
|
14
|
+
setHouseNumber(house_number: number): this;
|
|
15
|
+
setBirthDate(birth_date: string): this;
|
|
16
|
+
setLastName(lastName: string): this;
|
|
17
|
+
setZipCode(zip_code: string): this;
|
|
18
|
+
setEmail(email: string): this;
|
|
19
|
+
setName(name: string): this;
|
|
20
|
+
getDetail(key: string | null): any;
|
|
21
|
+
setDetail(key: string | null, value: any): this;
|
|
22
|
+
}
|
|
23
|
+
export default UserInterface;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.insuranceKeyConfig = exports.mapRiskInsurances = void 0;
|
|
4
|
+
var risk_insurance_map_1 = require("./risk-insurance.map");
|
|
5
|
+
Object.defineProperty(exports, "mapRiskInsurances", { enumerable: true, get: function () { return risk_insurance_map_1.default; } });
|
|
6
|
+
var insurance_key_config_1 = require("./insurance-key.config");
|
|
7
|
+
Object.defineProperty(exports, "insuranceKeyConfig", { enumerable: true, get: function () { return insurance_key_config_1.default; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
'MopedInsurances',
|
|
5
|
+
'MotorInsurances',
|
|
6
|
+
'PetInsurances',
|
|
7
|
+
'HomeInsurances',
|
|
8
|
+
'HouseholdInsurances',
|
|
9
|
+
'LiabilityInsurances',
|
|
10
|
+
'LegalAssistanceInsurances',
|
|
11
|
+
'CarInsurances',
|
|
12
|
+
'TravelInsurances',
|
|
13
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (key: string, invert?: boolean): any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function default_1(key, invert) {
|
|
4
|
+
if (invert === void 0) { invert = false; }
|
|
5
|
+
var map = {
|
|
6
|
+
'moped': 'MopedInsurances',
|
|
7
|
+
'motor': 'MotorInsurances',
|
|
8
|
+
'pet': 'PetInsurances',
|
|
9
|
+
'home': 'HomeInsurances',
|
|
10
|
+
'household': 'HouseholdInsurances',
|
|
11
|
+
'liability': 'LiabilityInsurances',
|
|
12
|
+
'legal-assistance': 'LegalAssistanceInsurances',
|
|
13
|
+
'car': 'CarInsurances',
|
|
14
|
+
'travel': 'TravelInsurances'
|
|
15
|
+
};
|
|
16
|
+
if (invert) {
|
|
17
|
+
map = Object.keys(map).reduce(function (ret, key) {
|
|
18
|
+
ret[map[key]] = key;
|
|
19
|
+
return ret;
|
|
20
|
+
}, {});
|
|
21
|
+
}
|
|
22
|
+
return map[key];
|
|
23
|
+
}
|
|
24
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComparisonDataCollectionInterface, ComparisonInsuranceDataInterface } from "../../interfaces";
|
|
2
|
+
declare class ComparisonDataCollection implements ComparisonDataCollectionInterface {
|
|
3
|
+
private data;
|
|
4
|
+
constructor(data?: {
|
|
5
|
+
[insuranceType: string]: ComparisonInsuranceDataInterface;
|
|
6
|
+
});
|
|
7
|
+
addItem(insuranceType: string, item: ComparisonInsuranceDataInterface): this;
|
|
8
|
+
removeItem(insuranceType: string): this;
|
|
9
|
+
getItem(insuranceType: string): ComparisonInsuranceDataInterface;
|
|
10
|
+
all(): {
|
|
11
|
+
[p: string]: ComparisonInsuranceDataInterface;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Id can be used to calculate specific insurance
|
|
15
|
+
*
|
|
16
|
+
* @param insuranceType
|
|
17
|
+
* @param id
|
|
18
|
+
*/
|
|
19
|
+
calculate(insuranceType: string, id?: number | null): Promise<this>;
|
|
20
|
+
static fromObject(object: any): ComparisonDataCollection;
|
|
21
|
+
toObject(): any;
|
|
22
|
+
}
|
|
23
|
+
export default ComparisonDataCollection;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __values = (this && this.__values) || function(o) {
|
|
39
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
40
|
+
if (m) return m.call(o);
|
|
41
|
+
if (o && typeof o.length === "number") return {
|
|
42
|
+
next: function () {
|
|
43
|
+
if (o && i >= o.length) o = void 0;
|
|
44
|
+
return { value: o && o[i++], done: !o };
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
var factories_1 = require("../../factories");
|
|
51
|
+
var index_1 = require("./index");
|
|
52
|
+
var ComparisonDataCollection = /** @class */ (function () {
|
|
53
|
+
function ComparisonDataCollection(data) {
|
|
54
|
+
if (data === void 0) { data = {}; }
|
|
55
|
+
this.data = data;
|
|
56
|
+
}
|
|
57
|
+
ComparisonDataCollection.prototype.addItem = function (insuranceType, item) {
|
|
58
|
+
this.data[insuranceType] = item;
|
|
59
|
+
return this;
|
|
60
|
+
};
|
|
61
|
+
ComparisonDataCollection.prototype.removeItem = function (insuranceType) {
|
|
62
|
+
delete this.data[insuranceType];
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
ComparisonDataCollection.prototype.getItem = function (insuranceType) {
|
|
66
|
+
if (this.data.hasOwnProperty(insuranceType)) {
|
|
67
|
+
return this.data[insuranceType];
|
|
68
|
+
}
|
|
69
|
+
throw new Error("".concat(insuranceType, " collection doesn't exist."));
|
|
70
|
+
};
|
|
71
|
+
ComparisonDataCollection.prototype.all = function () {
|
|
72
|
+
return this.data;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Id can be used to calculate specific insurance
|
|
76
|
+
*
|
|
77
|
+
* @param insuranceType
|
|
78
|
+
* @param id
|
|
79
|
+
*/
|
|
80
|
+
ComparisonDataCollection.prototype.calculate = function (insuranceType, id) {
|
|
81
|
+
if (id === void 0) { id = null; }
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var service, insurances, insurances_1, insurances_1_1, insurance, rates, e_1_1;
|
|
84
|
+
var e_1, _a;
|
|
85
|
+
return __generator(this, function (_b) {
|
|
86
|
+
switch (_b.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
service = factories_1.ApiServiceFactory.get(insuranceType);
|
|
89
|
+
if (id === null) {
|
|
90
|
+
insurances = this.data[insuranceType].getData();
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
insurances = [this.data[insuranceType].getItem(id)];
|
|
94
|
+
}
|
|
95
|
+
_b.label = 1;
|
|
96
|
+
case 1:
|
|
97
|
+
_b.trys.push([1, 6, 7, 8]);
|
|
98
|
+
insurances_1 = __values(insurances), insurances_1_1 = insurances_1.next();
|
|
99
|
+
_b.label = 2;
|
|
100
|
+
case 2:
|
|
101
|
+
if (!!insurances_1_1.done) return [3 /*break*/, 5];
|
|
102
|
+
insurance = insurances_1_1.value;
|
|
103
|
+
return [4 /*yield*/, service.getRates(insurance.getModel())];
|
|
104
|
+
case 3:
|
|
105
|
+
rates = _b.sent();
|
|
106
|
+
insurance.setRates(rates);
|
|
107
|
+
_b.label = 4;
|
|
108
|
+
case 4:
|
|
109
|
+
insurances_1_1 = insurances_1.next();
|
|
110
|
+
return [3 /*break*/, 2];
|
|
111
|
+
case 5: return [3 /*break*/, 8];
|
|
112
|
+
case 6:
|
|
113
|
+
e_1_1 = _b.sent();
|
|
114
|
+
e_1 = { error: e_1_1 };
|
|
115
|
+
return [3 /*break*/, 8];
|
|
116
|
+
case 7:
|
|
117
|
+
try {
|
|
118
|
+
if (insurances_1_1 && !insurances_1_1.done && (_a = insurances_1.return)) _a.call(insurances_1);
|
|
119
|
+
}
|
|
120
|
+
finally { if (e_1) throw e_1.error; }
|
|
121
|
+
return [7 /*endfinally*/];
|
|
122
|
+
case 8: return [2 /*return*/, this];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
ComparisonDataCollection.fromObject = function (object) {
|
|
128
|
+
var comparisonDataCollection = new this();
|
|
129
|
+
var insuranceTypes = Object.keys(object);
|
|
130
|
+
for (var i = 0; i < insuranceTypes.length; i++) {
|
|
131
|
+
var data = {};
|
|
132
|
+
data.insuranceType = insuranceTypes[i];
|
|
133
|
+
data.data = object[insuranceTypes[i]];
|
|
134
|
+
comparisonDataCollection.addItem(insuranceTypes[i], index_1.ComparisonInsuranceData.fromObject(data));
|
|
135
|
+
}
|
|
136
|
+
return comparisonDataCollection;
|
|
137
|
+
};
|
|
138
|
+
ComparisonDataCollection.prototype.toObject = function () {
|
|
139
|
+
var res = {};
|
|
140
|
+
var insuranceTypes = Object.keys(this.data);
|
|
141
|
+
for (var i = 0; i < insuranceTypes.length; i++) {
|
|
142
|
+
var insuranceType = insuranceTypes[i];
|
|
143
|
+
res[insuranceType] = this.data[insuranceType].toObject();
|
|
144
|
+
}
|
|
145
|
+
return res;
|
|
146
|
+
};
|
|
147
|
+
return ComparisonDataCollection;
|
|
148
|
+
}());
|
|
149
|
+
exports.default = ComparisonDataCollection;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComparisonInsuranceDataInterface, ComparisonInsuranceInterface } from "../../interfaces";
|
|
2
|
+
declare class ComparisonInsuranceData implements ComparisonInsuranceDataInterface {
|
|
3
|
+
private readonly data;
|
|
4
|
+
private pointer;
|
|
5
|
+
constructor(data: ComparisonInsuranceInterface[]);
|
|
6
|
+
getData(): ComparisonInsuranceInterface[];
|
|
7
|
+
count(): number;
|
|
8
|
+
addItem(item: ComparisonInsuranceInterface): this;
|
|
9
|
+
getItem(id: number): ComparisonInsuranceInterface;
|
|
10
|
+
next(): IteratorResult<ComparisonInsuranceInterface>;
|
|
11
|
+
[Symbol.iterator](): IterableIterator<ComparisonInsuranceInterface>;
|
|
12
|
+
static fromObject(object: any): ComparisonInsuranceData;
|
|
13
|
+
toObject(): any;
|
|
14
|
+
}
|
|
15
|
+
export default ComparisonInsuranceData;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __values = (this && this.__values) || function(o) {
|
|
3
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
+
if (m) return m.call(o);
|
|
5
|
+
if (o && typeof o.length === "number") return {
|
|
6
|
+
next: function () {
|
|
7
|
+
if (o && i >= o.length) o = void 0;
|
|
8
|
+
return { value: o && o[i++], done: !o };
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var comparison_insurance_model_1 = require("./comparison-insurance.model");
|
|
15
|
+
var ComparisonInsuranceData = /** @class */ (function () {
|
|
16
|
+
function ComparisonInsuranceData(data) {
|
|
17
|
+
this.pointer = 0;
|
|
18
|
+
this.data = data;
|
|
19
|
+
}
|
|
20
|
+
ComparisonInsuranceData.prototype.getData = function () {
|
|
21
|
+
return this.data;
|
|
22
|
+
};
|
|
23
|
+
ComparisonInsuranceData.prototype.count = function () {
|
|
24
|
+
return this.data.length;
|
|
25
|
+
};
|
|
26
|
+
ComparisonInsuranceData.prototype.addItem = function (item) {
|
|
27
|
+
this.data.push(item);
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
ComparisonInsuranceData.prototype.getItem = function (id) {
|
|
31
|
+
for (var i = 0; i < this.data.length; i++) {
|
|
32
|
+
if (id === this.data[i].getId()) {
|
|
33
|
+
return this.data[i];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
throw new Error('Insurance data not found.');
|
|
37
|
+
};
|
|
38
|
+
ComparisonInsuranceData.prototype.next = function () {
|
|
39
|
+
if (this.pointer < this.count()) {
|
|
40
|
+
return {
|
|
41
|
+
done: false,
|
|
42
|
+
value: this.data[this.pointer++]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return {
|
|
47
|
+
done: true,
|
|
48
|
+
value: null
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ComparisonInsuranceData.prototype[Symbol.iterator] = function () {
|
|
53
|
+
return this;
|
|
54
|
+
};
|
|
55
|
+
ComparisonInsuranceData.fromObject = function (object) {
|
|
56
|
+
var insurances = [];
|
|
57
|
+
for (var j = 0; j < object.data.length; j++) {
|
|
58
|
+
var insuranceData = {};
|
|
59
|
+
insuranceData.insurance = object.data[j];
|
|
60
|
+
insuranceData.insuranceType = object.insuranceType;
|
|
61
|
+
insurances.push(comparison_insurance_model_1.default.fromObject(insuranceData));
|
|
62
|
+
}
|
|
63
|
+
return new this(insurances);
|
|
64
|
+
};
|
|
65
|
+
ComparisonInsuranceData.prototype.toObject = function () {
|
|
66
|
+
var e_1, _a;
|
|
67
|
+
var res = [];
|
|
68
|
+
try {
|
|
69
|
+
for (var _b = __values(this.data), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
70
|
+
var insurance = _c.value;
|
|
71
|
+
res.push(insurance.toObject());
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
75
|
+
finally {
|
|
76
|
+
try {
|
|
77
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
78
|
+
}
|
|
79
|
+
finally { if (e_1) throw e_1.error; }
|
|
80
|
+
}
|
|
81
|
+
return res;
|
|
82
|
+
};
|
|
83
|
+
return ComparisonInsuranceData;
|
|
84
|
+
}());
|
|
85
|
+
exports.default = ComparisonInsuranceData;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComparisonInsuranceInterface } from "../../interfaces";
|
|
2
|
+
import { RateCollection } from "../index";
|
|
3
|
+
declare class ComparisonInsurance implements ComparisonInsuranceInterface {
|
|
4
|
+
private readonly id;
|
|
5
|
+
private model;
|
|
6
|
+
private rates;
|
|
7
|
+
constructor(id: number, model: object, rates: RateCollection);
|
|
8
|
+
setModel(model: object): this;
|
|
9
|
+
updateModel(key: string, value: any): this;
|
|
10
|
+
setRates(rates: RateCollection): this;
|
|
11
|
+
getId(): number;
|
|
12
|
+
getModel(): any;
|
|
13
|
+
getRates(): RateCollection;
|
|
14
|
+
toObject(): any;
|
|
15
|
+
static fromObject(object: any): InstanceType<any>;
|
|
16
|
+
}
|
|
17
|
+
export default ComparisonInsurance;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var index_1 = require("../index");
|
|
4
|
+
var ComparisonInsurance = /** @class */ (function () {
|
|
5
|
+
function ComparisonInsurance(id, model, rates) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.model = model;
|
|
8
|
+
this.rates = rates;
|
|
9
|
+
}
|
|
10
|
+
ComparisonInsurance.prototype.setModel = function (model) {
|
|
11
|
+
this.model = model;
|
|
12
|
+
return this;
|
|
13
|
+
};
|
|
14
|
+
ComparisonInsurance.prototype.updateModel = function (key, value) {
|
|
15
|
+
this.model[key] = value;
|
|
16
|
+
return this;
|
|
17
|
+
};
|
|
18
|
+
ComparisonInsurance.prototype.setRates = function (rates) {
|
|
19
|
+
this.rates = rates;
|
|
20
|
+
return this;
|
|
21
|
+
};
|
|
22
|
+
ComparisonInsurance.prototype.getId = function () {
|
|
23
|
+
return this.id;
|
|
24
|
+
};
|
|
25
|
+
ComparisonInsurance.prototype.getModel = function () {
|
|
26
|
+
return this.model;
|
|
27
|
+
};
|
|
28
|
+
ComparisonInsurance.prototype.getRates = function () {
|
|
29
|
+
return this.rates;
|
|
30
|
+
};
|
|
31
|
+
ComparisonInsurance.prototype.toObject = function () {
|
|
32
|
+
return {
|
|
33
|
+
id: this.id,
|
|
34
|
+
model: this.model,
|
|
35
|
+
rates: this.rates.toObject(),
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
ComparisonInsurance.fromObject = function (object) {
|
|
39
|
+
return new this(object.insurance.id, object.insurance.model, new index_1.RateCollection(object.insuranceType, object.insurance.rates));
|
|
40
|
+
};
|
|
41
|
+
return ComparisonInsurance;
|
|
42
|
+
}());
|
|
43
|
+
exports.default = ComparisonInsurance;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComparisonInterface, ComparisonDataCollectionInterface, UserInterface } from "../../interfaces";
|
|
2
|
+
import { TimeStamps } from "../../types";
|
|
3
|
+
declare class Comparison implements ComparisonInterface {
|
|
4
|
+
private readonly unique_id;
|
|
5
|
+
private readonly funnel;
|
|
6
|
+
private readonly data;
|
|
7
|
+
private readonly user;
|
|
8
|
+
private readonly location;
|
|
9
|
+
private readonly updated_at;
|
|
10
|
+
private readonly created_at;
|
|
11
|
+
constructor(unique_id: string, funnel: string, data: ComparisonDataCollectionInterface, user: UserInterface, updated_at: string, created_at: string);
|
|
12
|
+
getId(): string;
|
|
13
|
+
getFunnel(): string;
|
|
14
|
+
getData(): ComparisonDataCollectionInterface;
|
|
15
|
+
getUser(): UserInterface;
|
|
16
|
+
getTimeStamps(): TimeStamps;
|
|
17
|
+
static fromObject(object: any): Comparison;
|
|
18
|
+
toObject(): any;
|
|
19
|
+
}
|
|
20
|
+
export default Comparison;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var moment = require("moment");
|
|
4
|
+
var index_1 = require("../index");
|
|
5
|
+
var Comparison = /** @class */ (function () {
|
|
6
|
+
function Comparison(unique_id, funnel, data, user, updated_at, created_at) {
|
|
7
|
+
this.unique_id = unique_id;
|
|
8
|
+
this.funnel = funnel;
|
|
9
|
+
this.data = data;
|
|
10
|
+
this.user = user;
|
|
11
|
+
this.location = window.location;
|
|
12
|
+
this.updated_at = updated_at;
|
|
13
|
+
this.created_at = created_at;
|
|
14
|
+
}
|
|
15
|
+
Comparison.prototype.getId = function () {
|
|
16
|
+
return this.unique_id;
|
|
17
|
+
};
|
|
18
|
+
Comparison.prototype.getFunnel = function () {
|
|
19
|
+
return this.funnel;
|
|
20
|
+
};
|
|
21
|
+
Comparison.prototype.getData = function () {
|
|
22
|
+
return this.data;
|
|
23
|
+
};
|
|
24
|
+
Comparison.prototype.getUser = function () {
|
|
25
|
+
return this.user;
|
|
26
|
+
};
|
|
27
|
+
Comparison.prototype.getTimeStamps = function () {
|
|
28
|
+
return {
|
|
29
|
+
updated_at: moment(this.updated_at),
|
|
30
|
+
created_at: moment(this.created_at),
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
Comparison.fromObject = function (object) {
|
|
34
|
+
return new this(object.unique_id, object.funnel, index_1.ComparisonDataCollection.fromObject(object.data), index_1.User.fromObject(object.user), object.updated_at, object.created_at);
|
|
35
|
+
};
|
|
36
|
+
Comparison.prototype.toObject = function () {
|
|
37
|
+
return {
|
|
38
|
+
unique_id: this.unique_id,
|
|
39
|
+
referrer: this.location.href,
|
|
40
|
+
funnel: this.funnel,
|
|
41
|
+
data: this.data.toObject(),
|
|
42
|
+
user: this.user
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return Comparison;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = Comparison;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as Comparison } from './comparison.model';
|
|
2
|
+
export { default as ComparisonDataCollection } from './comparison-data-collection.model';
|
|
3
|
+
export { default as ComparisonInsuranceData } from './comparison-insurance-data.model';
|
|
4
|
+
export { default as ComparisonInsurance } from './comparison-insurance.model';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComparisonInsurance = exports.ComparisonInsuranceData = exports.ComparisonDataCollection = exports.Comparison = void 0;
|
|
4
|
+
var comparison_model_1 = require("./comparison.model");
|
|
5
|
+
Object.defineProperty(exports, "Comparison", { enumerable: true, get: function () { return comparison_model_1.default; } });
|
|
6
|
+
var comparison_data_collection_model_1 = require("./comparison-data-collection.model");
|
|
7
|
+
Object.defineProperty(exports, "ComparisonDataCollection", { enumerable: true, get: function () { return comparison_data_collection_model_1.default; } });
|
|
8
|
+
var comparison_insurance_data_model_1 = require("./comparison-insurance-data.model");
|
|
9
|
+
Object.defineProperty(exports, "ComparisonInsuranceData", { enumerable: true, get: function () { return comparison_insurance_data_model_1.default; } });
|
|
10
|
+
var comparison_insurance_model_1 = require("./comparison-insurance.model");
|
|
11
|
+
Object.defineProperty(exports, "ComparisonInsurance", { enumerable: true, get: function () { return comparison_insurance_model_1.default; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare class ConfigurationModel {
|
|
2
|
+
protected partnerId: number;
|
|
3
|
+
protected afmLicenseNumber: any;
|
|
4
|
+
protected insuranceLogos: any;
|
|
5
|
+
protected comparisonLinks: any;
|
|
6
|
+
protected configurations: any;
|
|
7
|
+
protected partnerPixels: any;
|
|
8
|
+
constructor(configurations?: any);
|
|
9
|
+
configure(configurations: any): void;
|
|
10
|
+
getPartnerId(): number;
|
|
11
|
+
getAfmLicenseNumber(): any;
|
|
12
|
+
getAllInsuranceLogos(): any;
|
|
13
|
+
getAllComparisonLinks(): any;
|
|
14
|
+
getPartnerPixels(): any;
|
|
15
|
+
getAllConfigurations(): any;
|
|
16
|
+
getServices(comparison: string, funnel: string): [];
|
|
17
|
+
}
|
|
18
|
+
export default ConfigurationModel;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ConfigurationModel = /** @class */ (function () {
|
|
4
|
+
function ConfigurationModel(configurations) {
|
|
5
|
+
if (configurations === void 0) { configurations = {}; }
|
|
6
|
+
this.partnerId = 0;
|
|
7
|
+
this.configure(configurations);
|
|
8
|
+
}
|
|
9
|
+
ConfigurationModel.prototype.configure = function (configurations) {
|
|
10
|
+
this.partnerId = configurations.id;
|
|
11
|
+
this.afmLicenseNumber = configurations.afm_license_number;
|
|
12
|
+
this.insuranceLogos = configurations.insuranceLogos;
|
|
13
|
+
this.comparisonLinks = configurations.comparisonLinks;
|
|
14
|
+
this.partnerPixels = configurations.partner_pixels;
|
|
15
|
+
this.configurations = configurations.configurations;
|
|
16
|
+
};
|
|
17
|
+
ConfigurationModel.prototype.getPartnerId = function () {
|
|
18
|
+
return this.partnerId;
|
|
19
|
+
};
|
|
20
|
+
ConfigurationModel.prototype.getAfmLicenseNumber = function () {
|
|
21
|
+
return this.afmLicenseNumber;
|
|
22
|
+
};
|
|
23
|
+
ConfigurationModel.prototype.getAllInsuranceLogos = function () {
|
|
24
|
+
return this.insuranceLogos;
|
|
25
|
+
};
|
|
26
|
+
ConfigurationModel.prototype.getAllComparisonLinks = function () {
|
|
27
|
+
return this.comparisonLinks;
|
|
28
|
+
};
|
|
29
|
+
ConfigurationModel.prototype.getPartnerPixels = function () {
|
|
30
|
+
return this.partnerPixels;
|
|
31
|
+
};
|
|
32
|
+
ConfigurationModel.prototype.getAllConfigurations = function () {
|
|
33
|
+
return this.configurations;
|
|
34
|
+
};
|
|
35
|
+
ConfigurationModel.prototype.getServices = function (comparison, funnel) {
|
|
36
|
+
if (comparison === funnel) {
|
|
37
|
+
if (this.configurations.hasOwnProperty(comparison)) {
|
|
38
|
+
return this.configurations[comparison];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
if (this.configurations.hasOwnProperty(funnel)) {
|
|
43
|
+
if (this.configurations[funnel].hasOwnProperty(comparison)) {
|
|
44
|
+
return this.configurations[funnel][comparison];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return [];
|
|
49
|
+
};
|
|
50
|
+
return ConfigurationModel;
|
|
51
|
+
}());
|
|
52
|
+
exports.default = ConfigurationModel;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 index_1 = require("./index");
|
|
19
|
+
var DefaultConfigurationModel = /** @class */ (function (_super) {
|
|
20
|
+
__extends(DefaultConfigurationModel, _super);
|
|
21
|
+
function DefaultConfigurationModel() {
|
|
22
|
+
var configurations = {
|
|
23
|
+
id: 0,
|
|
24
|
+
afm_license_number: null,
|
|
25
|
+
insuranceLogos: {},
|
|
26
|
+
comparisonLinks: [],
|
|
27
|
+
configurations: {},
|
|
28
|
+
partner_pixels: [],
|
|
29
|
+
};
|
|
30
|
+
return _super.call(this, configurations) || this;
|
|
31
|
+
}
|
|
32
|
+
return DefaultConfigurationModel;
|
|
33
|
+
}(index_1.ConfigurationModel));
|
|
34
|
+
exports.default = DefaultConfigurationModel;
|