sysone-api-mapper 1.0.175 → 1.0.177

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 (56) hide show
  1. package/dist/axiosInstance.d.ts +3 -3
  2. package/dist/axiosInstance.js +10 -10
  3. package/dist/index.d.ts +8 -8
  4. package/dist/index.js +20 -20
  5. package/dist/services.d.ts +2 -2
  6. package/dist/services.js +100 -100
  7. package/dist/servicesData.d.ts +143 -143
  8. package/dist/servicesData.js +999 -999
  9. package/dist/src/adapters/billingAdapter.d.ts +6 -6
  10. package/dist/src/adapters/billingAdapter.js +11 -11
  11. package/dist/src/adapters/claimsAdapter.d.ts +3 -3
  12. package/dist/src/adapters/claimsAdapter.js +8 -8
  13. package/dist/src/adapters/collectionAdapter.d.ts +6 -6
  14. package/dist/src/adapters/collectionAdapter.js +11 -11
  15. package/dist/src/adapters/createApiAdapter.d.ts +57 -57
  16. package/dist/src/adapters/createApiAdapter.js +20 -20
  17. package/dist/src/adapters/financeAdapter.d.ts +6 -6
  18. package/dist/src/adapters/financeAdapter.js +11 -11
  19. package/dist/src/adapters/locationAdapter.d.ts +6 -6
  20. package/dist/src/adapters/locationAdapter.js +11 -11
  21. package/dist/src/adapters/partyAdapter.d.ts +17 -17
  22. package/dist/src/adapters/partyAdapter.js +22 -22
  23. package/dist/src/adapters/policyAdapter.d.ts +11 -11
  24. package/dist/src/adapters/policyAdapter.js +16 -16
  25. package/dist/src/components/notificationToast.js +35 -35
  26. package/dist/src/contexts/actionsContext.d.ts +6 -6
  27. package/dist/src/contexts/actionsContext.js +78 -78
  28. package/dist/src/contexts/apiContext.d.ts +3 -3
  29. package/dist/src/contexts/apiContext.js +12 -12
  30. package/dist/src/contexts/translationContext.d.ts +6 -6
  31. package/dist/src/contexts/translationContext.js +54 -54
  32. package/dist/src/mapper/Mapper.d.ts +2 -2
  33. package/dist/src/mapper/Mapper.js +115 -115
  34. package/dist/src/mapper/endpointsConfig.d.ts +2952 -2918
  35. package/dist/src/mapper/endpointsConfig.js +1050 -1034
  36. package/dist/src/mapper/helpers/mappingHelpers.d.ts +3 -3
  37. package/dist/src/mapper/helpers/mappingHelpers.js +30 -30
  38. package/dist/src/mapper/modules/billing/index.d.ts +20 -20
  39. package/dist/src/mapper/modules/billing/index.js +136 -136
  40. package/dist/src/mapper/modules/claim/index.d.ts +3 -3
  41. package/dist/src/mapper/modules/claim/index.js +19 -19
  42. package/dist/src/mapper/modules/general/index.d.ts +4 -4
  43. package/dist/src/mapper/modules/general/index.js +11 -11
  44. package/dist/src/mapper/modules/party/index.d.ts +32 -29
  45. package/dist/src/mapper/modules/party/index.js +143 -131
  46. package/dist/src/mapper/modules/policy/index.d.ts +366 -366
  47. package/dist/src/mapper/modules/policy/index.js +592 -592
  48. package/dist/src/mapper/modules/quotation/index.d.ts +297 -297
  49. package/dist/src/mapper/modules/quotation/index.js +494 -494
  50. package/dist/src/mapper/modules/request/index.d.ts +42 -42
  51. package/dist/src/mapper/modules/request/index.js +65 -65
  52. package/dist/src/public/index.d.ts +3 -3
  53. package/dist/src/public/index.js +7 -7
  54. package/dist/src/server.d.ts +1 -1
  55. package/dist/src/server.js +18 -18
  56. package/package.json +1 -1
@@ -1,42 +1,42 @@
1
- export function getRequest_Params(i: any): {
2
- number: any;
3
- statusCode: any;
4
- productCode: any;
5
- from: any;
6
- to: any;
7
- };
8
- export function getRequestDetail(data: any): {
9
- code: any;
10
- commercialStructure: null;
11
- creationDate: any;
12
- email: any;
13
- expirationDate: any;
14
- holder: any;
15
- intermediary: null;
16
- legalConstraint: null;
17
- number: any;
18
- paymentMethods: {
19
- payment: any;
20
- };
21
- paymentFrequency: any;
22
- phone: any;
23
- product: any;
24
- productSegment: null;
25
- quotationNumber: any;
26
- quotationCode: any;
27
- requiresBilling: null;
28
- status: any;
29
- validity: null;
30
- values: {
31
- risks: {
32
- coverages: any;
33
- }[];
34
- };
35
- vigencyDateFrom: null;
36
- wordingPlan: null;
37
- holderPep: any;
38
- holderSoi: any;
39
- insured: any;
40
- questionnaires: any;
41
- spouse: any;
42
- };
1
+ export function getRequest_Params(i: any): {
2
+ number: any;
3
+ statusCode: any;
4
+ productCode: any;
5
+ from: any;
6
+ to: any;
7
+ };
8
+ export function getRequestDetail(data: any): {
9
+ code: any;
10
+ commercialStructure: null;
11
+ creationDate: any;
12
+ email: any;
13
+ expirationDate: any;
14
+ holder: any;
15
+ intermediary: null;
16
+ legalConstraint: null;
17
+ number: any;
18
+ paymentMethods: {
19
+ payment: any;
20
+ };
21
+ paymentFrequency: any;
22
+ phone: any;
23
+ product: any;
24
+ productSegment: null;
25
+ quotationNumber: any;
26
+ quotationCode: any;
27
+ requiresBilling: null;
28
+ status: any;
29
+ validity: null;
30
+ values: {
31
+ risks: {
32
+ coverages: any;
33
+ }[];
34
+ };
35
+ vigencyDateFrom: null;
36
+ wordingPlan: null;
37
+ holderPep: any;
38
+ holderSoi: any;
39
+ insured: any;
40
+ questionnaires: any;
41
+ spouse: any;
42
+ };
@@ -1,65 +1,65 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRequestDetail = exports.getRequest_Params = void 0;
4
- const getRequest_Params = (i) => {
5
- return {
6
- number: i.quotationNumber,
7
- statusCode: i.status,
8
- productCode: i.productCode,
9
- from: i.creationDateFrom,
10
- to: i.creationDateTo
11
- };
12
- };
13
- exports.getRequest_Params = getRequest_Params;
14
- const getRequestDetail = (data) => {
15
- const mappedCoverages = data.coverages.map(cov => ({
16
- code: cov.code || null,
17
- name: cov.name || null,
18
- deductible: null,
19
- economicValues: [],
20
- coverageValues: cov.coverageValues.map(val => ({
21
- value: val.value,
22
- type: {
23
- name: val.type.name,
24
- code: val.type.code
25
- }
26
- }))
27
- }));
28
- const request = {
29
- code: data.number,
30
- commercialStructure: null,
31
- creationDate: data.creationDate,
32
- email: data.insured.email,
33
- expirationDate: (data === null || data === void 0 ? void 0 : data.expirationDate) || null,
34
- holder: data.holder || null,
35
- intermediary: null,
36
- legalConstraint: null,
37
- number: data.number || null,
38
- paymentMethods: {
39
- payment: data.payment
40
- },
41
- paymentFrequency: data.payment.period || null,
42
- phone: data.insured.phoneNumber || null,
43
- product: data.product || null,
44
- productSegment: null,
45
- quotationNumber: data.quotationNumber || null,
46
- quotationCode: data.quotationNumber || null,
47
- requiresBilling: null,
48
- status: data.status || null,
49
- validity: null,
50
- values: {
51
- risks: [{
52
- coverages: mappedCoverages
53
- }]
54
- } || null,
55
- vigencyDateFrom: null,
56
- wordingPlan: null,
57
- holderPep: data.holderPep,
58
- holderSoi: data.holderSoi,
59
- insured: data.insured || null,
60
- questionnaires: data.questionnaires || null,
61
- spouse: data.spouse || null,
62
- };
63
- return request;
64
- };
65
- exports.getRequestDetail = getRequestDetail;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRequestDetail = exports.getRequest_Params = void 0;
4
+ const getRequest_Params = (i) => {
5
+ return {
6
+ number: i.quotationNumber,
7
+ statusCode: i.status,
8
+ productCode: i.productCode,
9
+ from: i.creationDateFrom,
10
+ to: i.creationDateTo
11
+ };
12
+ };
13
+ exports.getRequest_Params = getRequest_Params;
14
+ const getRequestDetail = (data) => {
15
+ const mappedCoverages = data.coverages.map(cov => ({
16
+ code: cov.code || null,
17
+ name: cov.name || null,
18
+ deductible: null,
19
+ economicValues: [],
20
+ coverageValues: cov.coverageValues.map(val => ({
21
+ value: val.value,
22
+ type: {
23
+ name: val.type.name,
24
+ code: val.type.code
25
+ }
26
+ }))
27
+ }));
28
+ const request = {
29
+ code: data.number,
30
+ commercialStructure: null,
31
+ creationDate: data.creationDate,
32
+ email: data.insured.email,
33
+ expirationDate: (data === null || data === void 0 ? void 0 : data.expirationDate) || null,
34
+ holder: data.holder || null,
35
+ intermediary: null,
36
+ legalConstraint: null,
37
+ number: data.number || null,
38
+ paymentMethods: {
39
+ payment: data.payment
40
+ },
41
+ paymentFrequency: data.payment.period || null,
42
+ phone: data.insured.phoneNumber || null,
43
+ product: data.product || null,
44
+ productSegment: null,
45
+ quotationNumber: data.quotationNumber || null,
46
+ quotationCode: data.quotationNumber || null,
47
+ requiresBilling: null,
48
+ status: data.status || null,
49
+ validity: null,
50
+ values: {
51
+ risks: [{
52
+ coverages: mappedCoverages
53
+ }]
54
+ } || null,
55
+ vigencyDateFrom: null,
56
+ wordingPlan: null,
57
+ holderPep: data.holderPep,
58
+ holderSoi: data.holderSoi,
59
+ insured: data.insured || null,
60
+ questionnaires: data.questionnaires || null,
61
+ spouse: data.spouse || null,
62
+ };
63
+ return request;
64
+ };
65
+ exports.getRequestDetail = getRequestDetail;
@@ -1,3 +1,3 @@
1
- declare const root: HTMLElement | null;
2
- declare const header: HTMLHeadingElement;
3
- declare const div: HTMLDivElement;
1
+ declare const root: HTMLElement | null;
2
+ declare const header: HTMLHeadingElement;
3
+ declare const div: HTMLDivElement;
@@ -1,7 +1,7 @@
1
- "use strict";
2
- const root = document.getElementById("root");
3
- const header = document.createElement("h1");
4
- const div = document.createElement("div");
5
- header.innerHTML = "HOLA";
6
- div.append(header);
7
- root.append(div);
1
+ "use strict";
2
+ const root = document.getElementById("root");
3
+ const header = document.createElement("h1");
4
+ const div = document.createElement("div");
5
+ header.innerHTML = "HOLA";
6
+ div.append(header);
7
+ root.append(div);
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,18 +1,18 @@
1
- "use strict";
2
- const express = require("express");
3
- const cors = require("cors");
4
- require("dotenv").config();
5
- const path = require("path");
6
- const app = express();
7
- const port = process.env.PORT || 3000;
8
- // Middleware
9
- app.use(cors());
10
- app.use(express.json());
11
- // Ruta raíz
12
- app.get("*", (req, res) => {
13
- res.sendFile(path.join(__dirname, "public", "index.html"));
14
- });
15
- // Iniciar el servidor
16
- app.listen(port, () => {
17
- console.log(`Server is running on http://localhost:${port}`);
18
- });
1
+ "use strict";
2
+ const express = require("express");
3
+ const cors = require("cors");
4
+ require("dotenv").config();
5
+ const path = require("path");
6
+ const app = express();
7
+ const port = process.env.PORT || 3000;
8
+ // Middleware
9
+ app.use(cors());
10
+ app.use(express.json());
11
+ // Ruta raíz
12
+ app.get("*", (req, res) => {
13
+ res.sendFile(path.join(__dirname, "public", "index.html"));
14
+ });
15
+ // Iniciar el servidor
16
+ app.listen(port, () => {
17
+ console.log(`Server is running on http://localhost:${port}`);
18
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.175",
3
+ "version": "1.0.177",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",