@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.
Files changed (246) hide show
  1. package/README.md +79 -0
  2. package/package.json +33 -0
  3. package/src/js/adapters/index.d.ts +1 -0
  4. package/src/js/adapters/index.js +5 -0
  5. package/src/js/adapters/local-storage.adapter.d.ts +15 -0
  6. package/src/js/adapters/local-storage.adapter.js +56 -0
  7. package/src/js/clients/index.d.ts +1 -0
  8. package/src/js/clients/index.js +5 -0
  9. package/src/js/clients/insurance-transmission.client.d.ts +14 -0
  10. package/src/js/clients/insurance-transmission.client.js +88 -0
  11. package/src/js/core/http.client.d.ts +32 -0
  12. package/src/js/core/http.client.js +146 -0
  13. package/src/js/core/index.d.ts +2 -0
  14. package/src/js/core/index.js +7 -0
  15. package/src/js/core/injector.d.ts +17 -0
  16. package/src/js/core/injector.js +67 -0
  17. package/src/js/factories/api-service.factory.d.ts +4 -0
  18. package/src/js/factories/api-service.factory.js +50 -0
  19. package/src/js/factories/comparison.factory.d.ts +32 -0
  20. package/src/js/factories/comparison.factory.js +23 -0
  21. package/src/js/factories/index.d.ts +3 -0
  22. package/src/js/factories/index.js +9 -0
  23. package/src/js/factories/rate.factory.d.ts +6 -0
  24. package/src/js/factories/rate.factory.js +92 -0
  25. package/src/js/handlers/error.handler.d.ts +7 -0
  26. package/src/js/handlers/error.handler.js +12 -0
  27. package/src/js/handlers/index.d.ts +3 -0
  28. package/src/js/handlers/index.js +9 -0
  29. package/src/js/handlers/rate-handler.d.ts +10 -0
  30. package/src/js/handlers/rate-handler.js +70 -0
  31. package/src/js/handlers/response.handler.d.ts +7 -0
  32. package/src/js/handlers/response.handler.js +12 -0
  33. package/src/js/index.d.ts +5 -0
  34. package/src/js/index.js +21 -0
  35. package/src/js/interfaces/additional-coverage.interface.d.ts +8 -0
  36. package/src/js/interfaces/additional-coverage.interface.js +2 -0
  37. package/src/js/interfaces/calculate-rates.interface.d.ts +5 -0
  38. package/src/js/interfaces/calculate-rates.interface.js +2 -0
  39. package/src/js/interfaces/comparison/comparison-data-collection.interface.d.ts +16 -0
  40. package/src/js/interfaces/comparison/comparison-data-collection.interface.js +2 -0
  41. package/src/js/interfaces/comparison/comparison-insurance-data.interface.d.ts +8 -0
  42. package/src/js/interfaces/comparison/comparison-insurance-data.interface.js +2 -0
  43. package/src/js/interfaces/comparison/comparison-insurance.interface.d.ts +11 -0
  44. package/src/js/interfaces/comparison/comparison-insurance.interface.js +2 -0
  45. package/src/js/interfaces/comparison/comparison.interface.d.ts +8 -0
  46. package/src/js/interfaces/comparison/comparison.interface.js +2 -0
  47. package/src/js/interfaces/comparison/index.d.ts +4 -0
  48. package/src/js/interfaces/comparison/index.js +2 -0
  49. package/src/js/interfaces/environment.interface.d.ts +7 -0
  50. package/src/js/interfaces/environment.interface.js +2 -0
  51. package/src/js/interfaces/index.d.ts +10 -0
  52. package/src/js/interfaces/index.js +19 -0
  53. package/src/js/interfaces/moped-rate.interface.d.ts +38 -0
  54. package/src/js/interfaces/moped-rate.interface.js +2 -0
  55. package/src/js/interfaces/nextable.interface.d.ts +4 -0
  56. package/src/js/interfaces/nextable.interface.js +2 -0
  57. package/src/js/interfaces/rate.interface.d.ts +12 -0
  58. package/src/js/interfaces/rate.interface.js +2 -0
  59. package/src/js/interfaces/requests/additional-coverages-request.interface.d.ts +5 -0
  60. package/src/js/interfaces/requests/additional-coverages-request.interface.js +2 -0
  61. package/src/js/interfaces/requests/index.d.ts +2 -0
  62. package/src/js/interfaces/requests/index.js +2 -0
  63. package/src/js/interfaces/requests/moped-rate-request.interface.d.ts +21 -0
  64. package/src/js/interfaces/requests/moped-rate-request.interface.js +2 -0
  65. package/src/js/interfaces/storage.interface.d.ts +8 -0
  66. package/src/js/interfaces/storage.interface.js +2 -0
  67. package/src/js/interfaces/user.interface.d.ts +23 -0
  68. package/src/js/interfaces/user.interface.js +2 -0
  69. package/src/js/interfaces/utils/index.d.ts +2 -0
  70. package/src/js/interfaces/utils/index.js +2 -0
  71. package/src/js/interfaces/utils/timestampable.interface.d.ts +5 -0
  72. package/src/js/interfaces/utils/timestampable.interface.js +2 -0
  73. package/src/js/interfaces/utils/to-object.interface.d.ts +4 -0
  74. package/src/js/interfaces/utils/to-object.interface.js +2 -0
  75. package/src/js/maps/index.d.ts +2 -0
  76. package/src/js/maps/index.js +7 -0
  77. package/src/js/maps/insurance-key.config.d.ts +2 -0
  78. package/src/js/maps/insurance-key.config.js +13 -0
  79. package/src/js/maps/risk-insurance.map.d.ts +1 -0
  80. package/src/js/maps/risk-insurance.map.js +24 -0
  81. package/src/js/models/comparison/comparison-data-collection.model.d.ts +23 -0
  82. package/src/js/models/comparison/comparison-data-collection.model.js +149 -0
  83. package/src/js/models/comparison/comparison-insurance-data.model.d.ts +15 -0
  84. package/src/js/models/comparison/comparison-insurance-data.model.js +85 -0
  85. package/src/js/models/comparison/comparison-insurance.model.d.ts +17 -0
  86. package/src/js/models/comparison/comparison-insurance.model.js +43 -0
  87. package/src/js/models/comparison/comparison.model.d.ts +20 -0
  88. package/src/js/models/comparison/comparison.model.js +47 -0
  89. package/src/js/models/comparison/index.d.ts +4 -0
  90. package/src/js/models/comparison/index.js +11 -0
  91. package/src/js/models/configuration/configuration.model.d.ts +18 -0
  92. package/src/js/models/configuration/configuration.model.js +52 -0
  93. package/src/js/models/configuration/default-configuration.model.d.ts +5 -0
  94. package/src/js/models/configuration/default-configuration.model.js +34 -0
  95. package/src/js/models/configuration/index.d.ts +2 -0
  96. package/src/js/models/configuration/index.js +7 -0
  97. package/src/js/models/dkm-rate.model.d.ts +4 -0
  98. package/src/js/models/dkm-rate.model.js +26 -0
  99. package/src/js/models/documents.model.d.ts +9 -0
  100. package/src/js/models/documents.model.js +16 -0
  101. package/src/js/models/enra-model.d.ts +7 -0
  102. package/src/js/models/enra-model.js +30 -0
  103. package/src/js/models/index.d.ts +15 -0
  104. package/src/js/models/index.js +45 -0
  105. package/src/js/models/laka-rate.model.d.ts +7 -0
  106. package/src/js/models/laka-rate.model.js +29 -0
  107. package/src/js/models/moneyview-rate.model.d.ts +7 -0
  108. package/src/js/models/moneyview-rate.model.js +30 -0
  109. package/src/js/models/package-rate.model.d.ts +11 -0
  110. package/src/js/models/package-rate.model.js +109 -0
  111. package/src/js/models/pet/index.d.ts +1 -0
  112. package/src/js/models/pet/index.js +5 -0
  113. package/src/js/models/pet/petsecur-rate.model.d.ts +6 -0
  114. package/src/js/models/pet/petsecur-rate.model.js +29 -0
  115. package/src/js/models/rate-collection.model.d.ts +16 -0
  116. package/src/js/models/rate-collection.model.js +91 -0
  117. package/src/js/models/rate.model.d.ts +21 -0
  118. package/src/js/models/rate.model.js +108 -0
  119. package/src/js/models/risk-rate.model.d.ts +6 -0
  120. package/src/js/models/risk-rate.model.js +30 -0
  121. package/src/js/models/rolls-rate.model.d.ts +6 -0
  122. package/src/js/models/rolls-rate.model.js +30 -0
  123. package/src/js/models/undefined-rate.model.d.ts +7 -0
  124. package/src/js/models/undefined-rate.model.js +29 -0
  125. package/src/js/models/user.model.d.ts +36 -0
  126. package/src/js/models/user.model.js +115 -0
  127. package/src/js/models/vergelijkdirect-rate.model.d.ts +6 -0
  128. package/src/js/models/vergelijkdirect-rate.model.js +30 -0
  129. package/src/js/resources/base.resource.d.ts +9 -0
  130. package/src/js/resources/base.resource.js +12 -0
  131. package/src/js/resources/bike.resource.d.ts +8 -0
  132. package/src/js/resources/bike.resource.js +47 -0
  133. package/src/js/resources/car.resource.d.ts +12 -0
  134. package/src/js/resources/car.resource.js +70 -0
  135. package/src/js/resources/caravan.resource.d.ts +12 -0
  136. package/src/js/resources/caravan.resource.js +64 -0
  137. package/src/js/resources/categories.resource.d.ts +13 -0
  138. package/src/js/resources/categories.resource.js +123 -0
  139. package/src/js/resources/comparison-module.resource.d.ts +8 -0
  140. package/src/js/resources/comparison-module.resource.js +41 -0
  141. package/src/js/resources/comparison.resource.d.ts +9 -0
  142. package/src/js/resources/comparison.resource.js +48 -0
  143. package/src/js/resources/data-validation.resource.d.ts +9 -0
  144. package/src/js/resources/data-validation.resource.js +59 -0
  145. package/src/js/resources/data.resource.d.ts +10 -0
  146. package/src/js/resources/data.resource.js +80 -0
  147. package/src/js/resources/document.resource.d.ts +7 -0
  148. package/src/js/resources/document.resource.js +36 -0
  149. package/src/js/resources/home.resource.d.ts +10 -0
  150. package/src/js/resources/home.resource.js +57 -0
  151. package/src/js/resources/household.resource.d.ts +8 -0
  152. package/src/js/resources/household.resource.js +43 -0
  153. package/src/js/resources/housing.resource.d.ts +8 -0
  154. package/src/js/resources/housing.resource.js +44 -0
  155. package/src/js/resources/index.d.ts +19 -0
  156. package/src/js/resources/index.js +41 -0
  157. package/src/js/resources/legal-assistance.resource.d.ts +10 -0
  158. package/src/js/resources/legal-assistance.resource.js +57 -0
  159. package/src/js/resources/liability.resource.d.ts +6 -0
  160. package/src/js/resources/liability.resource.js +35 -0
  161. package/src/js/resources/loan.resource.d.ts +7 -0
  162. package/src/js/resources/loan.resource.js +35 -0
  163. package/src/js/resources/moped.resource.d.ts +13 -0
  164. package/src/js/resources/moped.resource.js +78 -0
  165. package/src/js/resources/motor.resource.d.ts +12 -0
  166. package/src/js/resources/motor.resource.js +70 -0
  167. package/src/js/resources/package.resource.d.ts +14 -0
  168. package/src/js/resources/package.resource.js +84 -0
  169. package/src/js/resources/partner.resource.d.ts +8 -0
  170. package/src/js/resources/partner.resource.js +42 -0
  171. package/src/js/resources/pet.resource.d.ts +8 -0
  172. package/src/js/resources/pet.resource.js +41 -0
  173. package/src/js/resources/travel.resource.d.ts +9 -0
  174. package/src/js/resources/travel.resource.js +49 -0
  175. package/src/js/resources/user.resource.d.ts +7 -0
  176. package/src/js/resources/user.resource.js +35 -0
  177. package/src/js/resources/v1.resource.d.ts +22 -0
  178. package/src/js/resources/v1.resource.js +119 -0
  179. package/src/js/services/bike.service.d.ts +10 -0
  180. package/src/js/services/bike.service.js +97 -0
  181. package/src/js/services/car.service.d.ts +14 -0
  182. package/src/js/services/car.service.js +108 -0
  183. package/src/js/services/caravan.service.d.ts +15 -0
  184. package/src/js/services/caravan.service.js +130 -0
  185. package/src/js/services/comparison-module.service.d.ts +7 -0
  186. package/src/js/services/comparison-module.service.js +16 -0
  187. package/src/js/services/comparison.service.d.ts +9 -0
  188. package/src/js/services/comparison.service.js +102 -0
  189. package/src/js/services/configurations.service.d.ts +12 -0
  190. package/src/js/services/configurations.service.js +81 -0
  191. package/src/js/services/data-validation.service.d.ts +8 -0
  192. package/src/js/services/data-validation.service.js +20 -0
  193. package/src/js/services/data.service.d.ts +9 -0
  194. package/src/js/services/data.service.js +74 -0
  195. package/src/js/services/document.service.d.ts +8 -0
  196. package/src/js/services/document.service.js +86 -0
  197. package/src/js/services/home.service.d.ts +12 -0
  198. package/src/js/services/home.service.js +90 -0
  199. package/src/js/services/household.service.d.ts +10 -0
  200. package/src/js/services/household.service.js +84 -0
  201. package/src/js/services/housing.service.d.ts +10 -0
  202. package/src/js/services/housing.service.js +97 -0
  203. package/src/js/services/index.d.ts +24 -0
  204. package/src/js/services/index.js +51 -0
  205. package/src/js/services/legal-assistance.service.d.ts +12 -0
  206. package/src/js/services/legal-assistance.service.js +90 -0
  207. package/src/js/services/liability.service.d.ts +9 -0
  208. package/src/js/services/liability.service.js +81 -0
  209. package/src/js/services/loan.service.d.ts +9 -0
  210. package/src/js/services/loan.service.js +80 -0
  211. package/src/js/services/moped.service.d.ts +16 -0
  212. package/src/js/services/moped.service.js +129 -0
  213. package/src/js/services/motor.service.d.ts +16 -0
  214. package/src/js/services/motor.service.js +128 -0
  215. package/src/js/services/package.service.d.ts +15 -0
  216. package/src/js/services/package.service.js +160 -0
  217. package/src/js/services/partner.service.d.ts +7 -0
  218. package/src/js/services/partner.service.js +17 -0
  219. package/src/js/services/pet.service.d.ts +10 -0
  220. package/src/js/services/pet.service.js +84 -0
  221. package/src/js/services/rate.service.d.ts +5 -0
  222. package/src/js/services/rate.service.js +43 -0
  223. package/src/js/services/travel.service.d.ts +11 -0
  224. package/src/js/services/travel.service.js +95 -0
  225. package/src/js/services/user.service.d.ts +6 -0
  226. package/src/js/services/user.service.js +13 -0
  227. package/src/js/services/v1.service.d.ts +19 -0
  228. package/src/js/services/v1.service.js +52 -0
  229. package/src/js/types/common/condition-url.type.d.ts +6 -0
  230. package/src/js/types/common/condition-url.type.js +2 -0
  231. package/src/js/types/common/index.d.ts +2 -0
  232. package/src/js/types/common/index.js +2 -0
  233. package/src/js/types/common/timestamps.type.d.ts +6 -0
  234. package/src/js/types/common/timestamps.type.js +2 -0
  235. package/src/js/types/index.d.ts +1 -0
  236. package/src/js/types/index.js +17 -0
  237. package/src/js/utils/compare-rate-by-coverage.util.d.ts +4 -0
  238. package/src/js/utils/compare-rate-by-coverage.util.js +64 -0
  239. package/src/js/utils/index.d.ts +2 -0
  240. package/src/js/utils/index.js +7 -0
  241. package/src/js/utils/range.util.d.ts +2 -0
  242. package/src/js/utils/range.util.js +5 -0
  243. package/src/js/utils/sorting.util.d.ts +5 -0
  244. package/src/js/utils/sorting.util.js +11 -0
  245. package/src/js/utils/supplierPlacementTracker.util.d.ts +4 -0
  246. package/src/js/utils/supplierPlacementTracker.util.js +18 -0
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataValidationResource = exports.ComparisonResource = exports.DocumentResource = exports.ComparisonModuleResource = exports.PartnerResource = exports.LegalAssistanceResource = exports.LiabilityResource = exports.HousingResource = exports.HouseholdResource = exports.PackageResource = exports.BikeResource = exports.CaravanResource = exports.CarResource = exports.MotorResource = exports.MopedResource = exports.HomeResource = exports.DataResource = exports.LoanResource = exports.PetResource = void 0;
4
+ var pet_resource_1 = require("./pet.resource");
5
+ Object.defineProperty(exports, "PetResource", { enumerable: true, get: function () { return pet_resource_1.default; } });
6
+ var loan_resource_1 = require("./loan.resource");
7
+ Object.defineProperty(exports, "LoanResource", { enumerable: true, get: function () { return loan_resource_1.default; } });
8
+ var data_resource_1 = require("./data.resource");
9
+ Object.defineProperty(exports, "DataResource", { enumerable: true, get: function () { return data_resource_1.default; } });
10
+ var home_resource_1 = require("./home.resource");
11
+ Object.defineProperty(exports, "HomeResource", { enumerable: true, get: function () { return home_resource_1.default; } });
12
+ var moped_resource_1 = require("./moped.resource");
13
+ Object.defineProperty(exports, "MopedResource", { enumerable: true, get: function () { return moped_resource_1.default; } });
14
+ var motor_resource_1 = require("./motor.resource");
15
+ Object.defineProperty(exports, "MotorResource", { enumerable: true, get: function () { return motor_resource_1.default; } });
16
+ var car_resource_1 = require("./car.resource");
17
+ Object.defineProperty(exports, "CarResource", { enumerable: true, get: function () { return car_resource_1.default; } });
18
+ var caravan_resource_1 = require("./caravan.resource");
19
+ Object.defineProperty(exports, "CaravanResource", { enumerable: true, get: function () { return caravan_resource_1.default; } });
20
+ var bike_resource_1 = require("./bike.resource");
21
+ Object.defineProperty(exports, "BikeResource", { enumerable: true, get: function () { return bike_resource_1.default; } });
22
+ var package_resource_1 = require("./package.resource");
23
+ Object.defineProperty(exports, "PackageResource", { enumerable: true, get: function () { return package_resource_1.default; } });
24
+ var household_resource_1 = require("./household.resource");
25
+ Object.defineProperty(exports, "HouseholdResource", { enumerable: true, get: function () { return household_resource_1.default; } });
26
+ var housing_resource_1 = require("./housing.resource");
27
+ Object.defineProperty(exports, "HousingResource", { enumerable: true, get: function () { return housing_resource_1.default; } });
28
+ var liability_resource_1 = require("./liability.resource");
29
+ Object.defineProperty(exports, "LiabilityResource", { enumerable: true, get: function () { return liability_resource_1.default; } });
30
+ var legal_assistance_resource_1 = require("./legal-assistance.resource");
31
+ Object.defineProperty(exports, "LegalAssistanceResource", { enumerable: true, get: function () { return legal_assistance_resource_1.default; } });
32
+ var partner_resource_1 = require("./partner.resource");
33
+ Object.defineProperty(exports, "PartnerResource", { enumerable: true, get: function () { return partner_resource_1.default; } });
34
+ var comparison_module_resource_1 = require("./comparison-module.resource");
35
+ Object.defineProperty(exports, "ComparisonModuleResource", { enumerable: true, get: function () { return comparison_module_resource_1.default; } });
36
+ var document_resource_1 = require("./document.resource");
37
+ Object.defineProperty(exports, "DocumentResource", { enumerable: true, get: function () { return document_resource_1.default; } });
38
+ var comparison_resource_1 = require("./comparison.resource");
39
+ Object.defineProperty(exports, "ComparisonResource", { enumerable: true, get: function () { return comparison_resource_1.default; } });
40
+ var data_validation_resource_1 = require("./data-validation.resource");
41
+ Object.defineProperty(exports, "DataValidationResource", { enumerable: true, get: function () { return data_validation_resource_1.default; } });
@@ -0,0 +1,10 @@
1
+ import { AdditionalCoveragesRequestInterface } from "../interfaces";
2
+ import CategoryResource from "./categories.resource";
3
+ declare class LegalAssistanceResource extends CategoryResource {
4
+ protected getCategory(): string;
5
+ protected getAvailableServices(): string[];
6
+ getRiskAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
7
+ getMoneyviewAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
8
+ getVergelijkdirectAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
9
+ }
10
+ export default LegalAssistanceResource;
@@ -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 LegalAssistanceResource = /** @class */ (function (_super) {
20
+ __extends(LegalAssistanceResource, _super);
21
+ function LegalAssistanceResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ LegalAssistanceResource.prototype.getCategory = function () {
25
+ return 'legal-assistance';
26
+ };
27
+ LegalAssistanceResource.prototype.getAvailableServices = function () {
28
+ return [
29
+ 'risk',
30
+ 'moneyview',
31
+ 'vergelijkdirect'
32
+ ];
33
+ };
34
+ LegalAssistanceResource.prototype.getRiskAdditionalCoverages = function (data) {
35
+ return this.http({
36
+ method: 'post',
37
+ url: '/risk/additional_coverages',
38
+ data: data
39
+ });
40
+ };
41
+ LegalAssistanceResource.prototype.getMoneyviewAdditionalCoverages = function (data) {
42
+ return this.http({
43
+ method: 'post',
44
+ url: '/moneyview/additional_coverages',
45
+ data: data
46
+ });
47
+ };
48
+ LegalAssistanceResource.prototype.getVergelijkdirectAdditionalCoverages = function (data) {
49
+ return this.http({
50
+ method: 'post',
51
+ url: '/vergelijkdirect/additional_coverages',
52
+ data: data
53
+ });
54
+ };
55
+ return LegalAssistanceResource;
56
+ }(categories_resource_1.default));
57
+ exports.default = LegalAssistanceResource;
@@ -0,0 +1,6 @@
1
+ import CategoryResource from "./categories.resource";
2
+ declare class LiabilityResource extends CategoryResource {
3
+ protected getCategory(): string;
4
+ protected getAvailableServices(): string[];
5
+ }
6
+ export default LiabilityResource;
@@ -0,0 +1,35 @@
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 LiabilityResource = /** @class */ (function (_super) {
20
+ __extends(LiabilityResource, _super);
21
+ function LiabilityResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ LiabilityResource.prototype.getCategory = function () {
25
+ return 'liability';
26
+ };
27
+ LiabilityResource.prototype.getAvailableServices = function () {
28
+ return [
29
+ 'risk',
30
+ 'moneyview',
31
+ ];
32
+ };
33
+ return LiabilityResource;
34
+ }(categories_resource_1.default));
35
+ exports.default = LiabilityResource;
@@ -0,0 +1,7 @@
1
+ import CategoryResource from "./categories.resource";
2
+ declare class LoanResource extends CategoryResource {
3
+ protected getCategory(): string;
4
+ getConfiguredServices(): string[];
5
+ protected getAvailableServices(): string[];
6
+ }
7
+ export default LoanResource;
@@ -0,0 +1,35 @@
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 LoanResource = /** @class */ (function (_super) {
20
+ __extends(LoanResource, _super);
21
+ function LoanResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ LoanResource.prototype.getCategory = function () {
25
+ return 'loan';
26
+ };
27
+ LoanResource.prototype.getConfiguredServices = function () {
28
+ return ['dkm'];
29
+ };
30
+ LoanResource.prototype.getAvailableServices = function () {
31
+ return ['dkm'];
32
+ };
33
+ return LoanResource;
34
+ }(categories_resource_1.default));
35
+ exports.default = LoanResource;
@@ -0,0 +1,13 @@
1
+ import { AdditionalCoveragesRequestInterface } from "../interfaces";
2
+ import CategoryResource from "./categories.resource";
3
+ declare class MopedResource extends CategoryResource {
4
+ protected getCategory(): string;
5
+ protected getAvailableServices(): string[];
6
+ findMoped(licensePlate: string): Promise<any>;
7
+ checkValidity(data: any): Promise<any>;
8
+ getRiskAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
9
+ getMoneyviewAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
10
+ getVergelijkdirectAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
11
+ getEnraAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
12
+ }
13
+ export default MopedResource;
@@ -0,0 +1,78 @@
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 MopedResource = /** @class */ (function (_super) {
20
+ __extends(MopedResource, _super);
21
+ function MopedResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ MopedResource.prototype.getCategory = function () {
25
+ return 'moped';
26
+ };
27
+ MopedResource.prototype.getAvailableServices = function () {
28
+ return [
29
+ 'risk',
30
+ 'moneyview',
31
+ 'vergelijkdirect',
32
+ 'enra',
33
+ ];
34
+ };
35
+ MopedResource.prototype.findMoped = function (licensePlate) {
36
+ return this.http({
37
+ method: 'get',
38
+ url: "/find/".concat(licensePlate),
39
+ });
40
+ };
41
+ MopedResource.prototype.checkValidity = function (data) {
42
+ return this.http({
43
+ method: 'post',
44
+ url: '/check_validity',
45
+ data: data,
46
+ });
47
+ };
48
+ MopedResource.prototype.getRiskAdditionalCoverages = function (data) {
49
+ return this.http({
50
+ method: 'post',
51
+ url: '/risk/additional_coverages',
52
+ data: data
53
+ });
54
+ };
55
+ MopedResource.prototype.getMoneyviewAdditionalCoverages = function (data) {
56
+ return this.http({
57
+ method: 'post',
58
+ url: '/moneyview/additional_coverages',
59
+ data: data
60
+ });
61
+ };
62
+ MopedResource.prototype.getVergelijkdirectAdditionalCoverages = function (data) {
63
+ return this.http({
64
+ method: 'post',
65
+ url: '/vergelijkdirect/additional_coverages',
66
+ data: data
67
+ });
68
+ };
69
+ MopedResource.prototype.getEnraAdditionalCoverages = function (data) {
70
+ return this.http({
71
+ method: 'post',
72
+ url: '/enra/additional_coverages',
73
+ data: data
74
+ });
75
+ };
76
+ return MopedResource;
77
+ }(categories_resource_1.default));
78
+ exports.default = MopedResource;
@@ -0,0 +1,12 @@
1
+ import { AdditionalCoveragesRequestInterface } from "../interfaces";
2
+ import CategoriesResource from "./categories.resource";
3
+ declare class MotorResource extends CategoriesResource {
4
+ protected getCategory(): string;
5
+ protected getAvailableServices(): string[];
6
+ findMotor(licensePlate: string): Promise<any>;
7
+ checkValidity(data: any): Promise<any>;
8
+ getRiskAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
9
+ getMoneyviewAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
10
+ getRollsAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
11
+ }
12
+ export default MotorResource;
@@ -0,0 +1,70 @@
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 MotorResource = /** @class */ (function (_super) {
20
+ __extends(MotorResource, _super);
21
+ function MotorResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ MotorResource.prototype.getCategory = function () {
25
+ return 'motor';
26
+ };
27
+ MotorResource.prototype.getAvailableServices = function () {
28
+ return [
29
+ 'risk',
30
+ 'moneyview',
31
+ 'rolls',
32
+ ];
33
+ };
34
+ MotorResource.prototype.findMotor = function (licensePlate) {
35
+ return this.http({
36
+ method: 'get',
37
+ url: "/find/".concat(licensePlate),
38
+ });
39
+ };
40
+ MotorResource.prototype.checkValidity = function (data) {
41
+ return this.http({
42
+ method: 'post',
43
+ url: '/check_validity',
44
+ data: data,
45
+ });
46
+ };
47
+ MotorResource.prototype.getRiskAdditionalCoverages = function (data) {
48
+ return this.http({
49
+ method: 'post',
50
+ url: '/risk/additional_coverages',
51
+ data: data
52
+ });
53
+ };
54
+ MotorResource.prototype.getMoneyviewAdditionalCoverages = function (data) {
55
+ return this.http({
56
+ method: 'post',
57
+ url: '/moneyview/additional_coverages',
58
+ data: data
59
+ });
60
+ };
61
+ MotorResource.prototype.getRollsAdditionalCoverages = function (data) {
62
+ return this.http({
63
+ method: 'post',
64
+ url: '/rolls/additional_coverages',
65
+ data: data
66
+ });
67
+ };
68
+ return MotorResource;
69
+ }(categories_resource_1.default));
70
+ exports.default = MotorResource;
@@ -0,0 +1,14 @@
1
+ import { EnvironmentInterface } from "../interfaces";
2
+ import BaseResource from "./base.resource";
3
+ declare class PackageResource extends BaseResource {
4
+ protected getBaseUrl(env: EnvironmentInterface): string;
5
+ calculatePackage(criteria: any): Promise<any>;
6
+ calculateAdditionalCoverages(criteria: any): Promise<any>;
7
+ calculatePackageDiscount(companyName: string, criteria: any): Promise<any>;
8
+ calculatePackages(id: string): Promise<any>;
9
+ requestPackage(criteria: any): Promise<any>;
10
+ addAdditionalUserInfo(criteria: any): Promise<any>;
11
+ annualDiscount(criteria: any): Promise<any>;
12
+ savePackage(criteria: any): Promise<any>;
13
+ }
14
+ export default PackageResource;
@@ -0,0 +1,84 @@
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 PackageResource = /** @class */ (function (_super) {
20
+ __extends(PackageResource, _super);
21
+ function PackageResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ PackageResource.prototype.getBaseUrl = function (env) {
25
+ return "".concat(env.api.baseUrl, "/v2/package");
26
+ };
27
+ PackageResource.prototype.calculatePackage = function (criteria) {
28
+ return this.http({
29
+ method: 'post',
30
+ url: '/calculate',
31
+ data: criteria
32
+ });
33
+ };
34
+ PackageResource.prototype.calculateAdditionalCoverages = function (criteria) {
35
+ return this.http({
36
+ method: 'post',
37
+ url: '/calculate_additional_coverages',
38
+ data: criteria
39
+ });
40
+ };
41
+ PackageResource.prototype.calculatePackageDiscount = function (companyName, criteria) {
42
+ return this.http({
43
+ method: 'post',
44
+ url: "/discount/".concat(companyName, "/calculate"),
45
+ data: criteria
46
+ });
47
+ };
48
+ PackageResource.prototype.calculatePackages = function (id) {
49
+ return this.http({
50
+ method: 'post',
51
+ url: "/".concat(id, "/calculate"),
52
+ });
53
+ };
54
+ PackageResource.prototype.requestPackage = function (criteria) {
55
+ return this.http({
56
+ method: 'post',
57
+ url: '/request',
58
+ data: criteria
59
+ });
60
+ };
61
+ PackageResource.prototype.addAdditionalUserInfo = function (criteria) {
62
+ return this.http({
63
+ method: 'post',
64
+ url: '/add_additional_user_info',
65
+ data: criteria
66
+ });
67
+ };
68
+ PackageResource.prototype.annualDiscount = function (criteria) {
69
+ return this.http({
70
+ method: 'post',
71
+ url: '/annual_discount',
72
+ data: criteria
73
+ });
74
+ };
75
+ PackageResource.prototype.savePackage = function (criteria) {
76
+ return this.http({
77
+ method: 'post',
78
+ url: '/save',
79
+ data: criteria
80
+ });
81
+ };
82
+ return PackageResource;
83
+ }(base_resource_1.default));
84
+ exports.default = PackageResource;
@@ -0,0 +1,8 @@
1
+ import { EnvironmentInterface } from "../interfaces";
2
+ import BaseResource from "./base.resource";
3
+ declare class PartnerResource extends BaseResource {
4
+ protected getBaseUrl(env: EnvironmentInterface): string;
5
+ getPartnerInfo(id: number | null): Promise<any>;
6
+ getPartnerVersion(): Promise<any>;
7
+ }
8
+ export default PartnerResource;
@@ -0,0 +1,42 @@
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 PartnerResource = /** @class */ (function (_super) {
20
+ __extends(PartnerResource, _super);
21
+ function PartnerResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ PartnerResource.prototype.getBaseUrl = function (env) {
25
+ return "".concat(env.api.baseUrl, "/partner");
26
+ };
27
+ PartnerResource.prototype.getPartnerInfo = function (id) {
28
+ var partnerId = id === null ? '' : id;
29
+ return this.http({
30
+ method: 'get',
31
+ url: "/info/".concat(partnerId),
32
+ });
33
+ };
34
+ PartnerResource.prototype.getPartnerVersion = function () {
35
+ return this.http({
36
+ method: 'get',
37
+ url: "/info/version",
38
+ });
39
+ };
40
+ return PartnerResource;
41
+ }(base_resource_1.default));
42
+ exports.default = PartnerResource;
@@ -0,0 +1,8 @@
1
+ import { AdditionalCoveragesRequestInterface } from "../interfaces";
2
+ import CategoryResource from "./categories.resource";
3
+ declare class PetResource extends CategoryResource {
4
+ protected getCategory(): string;
5
+ protected getAvailableServices(): string[];
6
+ getPetsecurAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
7
+ }
8
+ export default PetResource;
@@ -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 categories_resource_1 = require("./categories.resource");
19
+ var PetResource = /** @class */ (function (_super) {
20
+ __extends(PetResource, _super);
21
+ function PetResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ PetResource.prototype.getCategory = function () {
25
+ return 'pet';
26
+ };
27
+ PetResource.prototype.getAvailableServices = function () {
28
+ return [
29
+ 'petsecur',
30
+ ];
31
+ };
32
+ PetResource.prototype.getPetsecurAdditionalCoverages = function (data) {
33
+ return this.http({
34
+ method: 'post',
35
+ url: '/petsecur/additional_coverages',
36
+ data: data
37
+ });
38
+ };
39
+ return PetResource;
40
+ }(categories_resource_1.default));
41
+ exports.default = PetResource;
@@ -0,0 +1,9 @@
1
+ import CategoryResource from "./categories.resource";
2
+ import { AdditionalCoveragesRequestInterface } from "../interfaces";
3
+ declare class TravelResource extends CategoryResource {
4
+ protected getCategory(): string;
5
+ protected getAvailableServices(): string[];
6
+ getRiskAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
7
+ getVergelijkdirectAdditionalCoverages(data: AdditionalCoveragesRequestInterface): Promise<any>;
8
+ }
9
+ export default TravelResource;
@@ -0,0 +1,49 @@
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 TravelResource = /** @class */ (function (_super) {
20
+ __extends(TravelResource, _super);
21
+ function TravelResource() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ TravelResource.prototype.getCategory = function () {
25
+ return 'travel';
26
+ };
27
+ TravelResource.prototype.getAvailableServices = function () {
28
+ return [
29
+ 'risk',
30
+ 'vergelijkdirect'
31
+ ];
32
+ };
33
+ TravelResource.prototype.getRiskAdditionalCoverages = function (data) {
34
+ return this.http({
35
+ method: 'post',
36
+ url: '/risk/additional_coverages',
37
+ data: data
38
+ });
39
+ };
40
+ TravelResource.prototype.getVergelijkdirectAdditionalCoverages = function (data) {
41
+ return this.http({
42
+ method: 'post',
43
+ url: '/vergelijkdirect/additional_coverages',
44
+ data: data
45
+ });
46
+ };
47
+ return TravelResource;
48
+ }(categories_resource_1.default));
49
+ exports.default = TravelResource;
@@ -0,0 +1,7 @@
1
+ import { NextableInterface, EnvironmentInterface } from "../interfaces";
2
+ import BaseResource from "./base.resource";
3
+ declare class UserResource extends BaseResource {
4
+ protected getBaseUrl(env: EnvironmentInterface): string;
5
+ create(data: any): Promise<NextableInterface>;
6
+ }
7
+ export default UserResource;