sysone-api-mapper 1.0.176 → 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,6 +1,6 @@
1
- export function billingAdapter(tenant: any): {
2
- getBillings: (params: any) => Promise<any>;
3
- getBillingByCode: (billingCode: any) => Promise<any>;
4
- getBillingReport: (billingCode: any) => Promise<any>;
5
- getBillingPaymentStatus: () => Promise<any>;
6
- };
1
+ export function billingAdapter(tenant: any): {
2
+ getBillings: (params: any) => Promise<any>;
3
+ getBillingByCode: (billingCode: any) => Promise<any>;
4
+ getBillingReport: (billingCode: any) => Promise<any>;
5
+ getBillingPaymentStatus: () => Promise<any>;
6
+ };
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.billingAdapter = void 0;
4
- const Mapper_1 = require("../mapper/Mapper");
5
- const billingAdapter = (tenant) => ({
6
- getBillings: (params) => (0, Mapper_1.apiMapper)("GET_BILLINGS", tenant, [], params),
7
- getBillingByCode: (billingCode) => (0, Mapper_1.apiMapper)("BILLING_GET_BY_CODE", tenant, [billingCode]),
8
- getBillingReport: (billingCode) => (0, Mapper_1.apiMapper)("GET_BILLING_REPORT", tenant, [billingCode]),
9
- getBillingPaymentStatus: () => (0, Mapper_1.apiMapper)("GET_BILLING_PAYMENT_STATUS", tenant, []),
10
- });
11
- exports.billingAdapter = billingAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.billingAdapter = void 0;
4
+ const Mapper_1 = require("../mapper/Mapper");
5
+ const billingAdapter = (tenant) => ({
6
+ getBillings: (params) => (0, Mapper_1.apiMapper)("GET_BILLINGS", tenant, [], params),
7
+ getBillingByCode: (billingCode) => (0, Mapper_1.apiMapper)("BILLING_GET_BY_CODE", tenant, [billingCode]),
8
+ getBillingReport: (billingCode) => (0, Mapper_1.apiMapper)("GET_BILLING_REPORT", tenant, [billingCode]),
9
+ getBillingPaymentStatus: () => (0, Mapper_1.apiMapper)("GET_BILLING_PAYMENT_STATUS", tenant, []),
10
+ });
11
+ exports.billingAdapter = billingAdapter;
@@ -1,3 +1,3 @@
1
- export function claimsAdapter(tenant: any): {
2
- getClaims: (params: any) => Promise<any>;
3
- };
1
+ export function claimsAdapter(tenant: any): {
2
+ getClaims: (params: any) => Promise<any>;
3
+ };
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.claimsAdapter = void 0;
4
- const Mapper_1 = require("../mapper/Mapper");
5
- const claimsAdapter = (tenant) => ({
6
- getClaims: (params) => (0, Mapper_1.apiMapper)("GET_CLAIMS", tenant, [], params),
7
- });
8
- exports.claimsAdapter = claimsAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.claimsAdapter = void 0;
4
+ const Mapper_1 = require("../mapper/Mapper");
5
+ const claimsAdapter = (tenant) => ({
6
+ getClaims: (params) => (0, Mapper_1.apiMapper)("GET_CLAIMS", tenant, [], params),
7
+ });
8
+ exports.claimsAdapter = claimsAdapter;
@@ -1,6 +1,6 @@
1
- export function collectionAdapter(tenant: any): {
2
- getCollections: (params: any) => Promise<any>;
3
- getPolicyCollections: (params: any) => Promise<any>;
4
- getCollectionStatuses: () => Promise<any>;
5
- getPaymentTypes: () => Promise<any>;
6
- };
1
+ export function collectionAdapter(tenant: any): {
2
+ getCollections: (params: any) => Promise<any>;
3
+ getPolicyCollections: (params: any) => Promise<any>;
4
+ getCollectionStatuses: () => Promise<any>;
5
+ getPaymentTypes: () => Promise<any>;
6
+ };
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.collectionAdapter = void 0;
4
- const Mapper_1 = require("../mapper/Mapper");
5
- const collectionAdapter = (tenant) => ({
6
- getCollections: (params) => (0, Mapper_1.apiMapper)("SEARCH_COLLECTIONS", tenant, [], params),
7
- getPolicyCollections: (params) => (0, Mapper_1.apiMapper)("GET_COLLECTIONS", tenant, [], params),
8
- getCollectionStatuses: () => (0, Mapper_1.apiMapper)("GET_COLLECTION_STATUSES", tenant),
9
- getPaymentTypes: () => (0, Mapper_1.apiMapper)("GET_PAYMENT_TYPES", tenant),
10
- });
11
- exports.collectionAdapter = collectionAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionAdapter = void 0;
4
+ const Mapper_1 = require("../mapper/Mapper");
5
+ const collectionAdapter = (tenant) => ({
6
+ getCollections: (params) => (0, Mapper_1.apiMapper)("SEARCH_COLLECTIONS", tenant, [], params),
7
+ getPolicyCollections: (params) => (0, Mapper_1.apiMapper)("GET_COLLECTIONS", tenant, [], params),
8
+ getCollectionStatuses: () => (0, Mapper_1.apiMapper)("GET_COLLECTION_STATUSES", tenant),
9
+ getPaymentTypes: () => (0, Mapper_1.apiMapper)("GET_PAYMENT_TYPES", tenant),
10
+ });
11
+ exports.collectionAdapter = collectionAdapter;
@@ -1,57 +1,57 @@
1
- export interface Api {
2
- finance: {
3
- getCurrencies: () => Promise<any>;
4
- getPaymentFrecuencies: () => Promise<any>;
5
- getBanks: () => Promise<any>;
6
- getCardTypes: () => Promise<any>;
7
- };
8
- party: {
9
- getIndividuals: (params: any) => Promise<any>;
10
- getOrganisations: (params: any) => Promise<any>;
11
- getIndividualDetails: (partyCode: string) => Promise<any>;
12
- getOrganisationDetails: (partyCode: string) => Promise<any>;
13
- getGenders: () => Promise<any>;
14
- getMaritalStatus: () => Promise<any>;
15
- getActivity: () => Promise<any>;
16
- getIdentificationTypes: (country: string) => Promise<any>;
17
- getPaymentMethodsByPartyCode: (partyCode: string) => Promise<any>;
18
- updatePaymentMethodsByPartyCode: (partyCode: string, data: any) => Promise<any>;
19
- updatePerson: (partyCode: string, data: any) => Promise<any>;
20
- getPartyValidation: (indentificationType: string, identificationValue: string) => Promise<any>;
21
- postPartyValidation: (indentificationType: string, identificationValue: string, data: any) => Promise<any>;
22
- getPartyOnboarding: (indentificationType: string, identificationValue: string) => Promise<any>;
23
- postPartyOnboarding: (indentificationType: string, identificationValue: string, data: any) => Promise<any>;
24
- };
25
- location: {
26
- getCountries: () => Promise<any>;
27
- getProvinces: (country: string) => Promise<any>;
28
- getCities: (provinceCode: string) => Promise<any>;
29
- getPostalCodes: (cityCode: string) => Promise<any>;
30
- };
31
- policy: {
32
- getEndorsements: (policyCode: string, params?: Object) => Promise<any>;
33
- getPolicies: (params?: Object) => Promise<any>;
34
- getPolicyDetail: (policyType: string, policyCode: string, params?: Object) => Promise<any>;
35
- getPolicyHomeDetail: (policyCode: string) => Promise<any>;
36
- getPolicyLifeDetail: (policyCode: string) => Promise<any>;
37
- getPolicyStatuses: () => Promise<any>;
38
- getPolicyInsureds: (policyType: string, policyCode: string, params?: Object) => Promise<any>;
39
- getInsuredsByFilters: (params?: Object) => Promise<any>;
40
- getPolicyCertificate: (policyType: string, policyCode: string, params?: object) => Promise<any>;
41
- };
42
- collection: {
43
- getCollections: (params?: Object) => Promise<any>;
44
- getCollectionStatuses: () => Promise<any>;
45
- getPaymentTypes: () => Promise<any>;
46
- };
47
- claims: {
48
- getClaims: (params?: Object) => Promise<any>;
49
- };
50
- billing: {
51
- getBillings: (params?: Object) => Promise<any>;
52
- getBillingByCode: (billingCode: string) => Promise<any>;
53
- getBillingReport: (billingCode: string) => Promise<any>;
54
- getBillingPaymentStatus: () => Promise<any>;
55
- };
56
- }
57
- export declare const createApiAdapter: (tenant?: string) => Api;
1
+ export interface Api {
2
+ finance: {
3
+ getCurrencies: () => Promise<any>;
4
+ getPaymentFrecuencies: () => Promise<any>;
5
+ getBanks: () => Promise<any>;
6
+ getCardTypes: () => Promise<any>;
7
+ };
8
+ party: {
9
+ getIndividuals: (params: any) => Promise<any>;
10
+ getOrganisations: (params: any) => Promise<any>;
11
+ getIndividualDetails: (partyCode: string) => Promise<any>;
12
+ getOrganisationDetails: (partyCode: string) => Promise<any>;
13
+ getGenders: () => Promise<any>;
14
+ getMaritalStatus: () => Promise<any>;
15
+ getActivity: () => Promise<any>;
16
+ getIdentificationTypes: (country: string) => Promise<any>;
17
+ getPaymentMethodsByPartyCode: (partyCode: string) => Promise<any>;
18
+ updatePaymentMethodsByPartyCode: (partyCode: string, data: any) => Promise<any>;
19
+ updatePerson: (partyCode: string, data: any) => Promise<any>;
20
+ getPartyValidation: (indentificationType: string, identificationValue: string) => Promise<any>;
21
+ postPartyValidation: (indentificationType: string, identificationValue: string, data: any) => Promise<any>;
22
+ getPartyOnboarding: (indentificationType: string, identificationValue: string) => Promise<any>;
23
+ postPartyOnboarding: (indentificationType: string, identificationValue: string, data: any) => Promise<any>;
24
+ };
25
+ location: {
26
+ getCountries: () => Promise<any>;
27
+ getProvinces: (country: string) => Promise<any>;
28
+ getCities: (provinceCode: string) => Promise<any>;
29
+ getPostalCodes: (cityCode: string) => Promise<any>;
30
+ };
31
+ policy: {
32
+ getEndorsements: (policyCode: string, params?: Object) => Promise<any>;
33
+ getPolicies: (params?: Object) => Promise<any>;
34
+ getPolicyDetail: (policyType: string, policyCode: string, params?: Object) => Promise<any>;
35
+ getPolicyHomeDetail: (policyCode: string) => Promise<any>;
36
+ getPolicyLifeDetail: (policyCode: string) => Promise<any>;
37
+ getPolicyStatuses: () => Promise<any>;
38
+ getPolicyInsureds: (policyType: string, policyCode: string, params?: Object) => Promise<any>;
39
+ getInsuredsByFilters: (params?: Object) => Promise<any>;
40
+ getPolicyCertificate: (policyType: string, policyCode: string, params?: object) => Promise<any>;
41
+ };
42
+ collection: {
43
+ getCollections: (params?: Object) => Promise<any>;
44
+ getCollectionStatuses: () => Promise<any>;
45
+ getPaymentTypes: () => Promise<any>;
46
+ };
47
+ claims: {
48
+ getClaims: (params?: Object) => Promise<any>;
49
+ };
50
+ billing: {
51
+ getBillings: (params?: Object) => Promise<any>;
52
+ getBillingByCode: (billingCode: string) => Promise<any>;
53
+ getBillingReport: (billingCode: string) => Promise<any>;
54
+ getBillingPaymentStatus: () => Promise<any>;
55
+ };
56
+ }
57
+ export declare const createApiAdapter: (tenant?: string) => Api;
@@ -1,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createApiAdapter = void 0;
4
- const billingAdapter_1 = require("./billingAdapter");
5
- const claimsAdapter_1 = require("./claimsAdapter");
6
- const collectionAdapter_1 = require("./collectionAdapter");
7
- const financeAdapter_1 = require("./financeAdapter");
8
- const locationAdapter_1 = require("./locationAdapter");
9
- const partyAdapter_1 = require("./partyAdapter");
10
- const policyAdapter_1 = require("./policyAdapter");
11
- const createApiAdapter = (tenant = 'default') => ({
12
- finance: (0, financeAdapter_1.financeAdapter)(tenant),
13
- party: (0, partyAdapter_1.partyAdapter)(tenant),
14
- location: (0, locationAdapter_1.locationAdapter)(tenant),
15
- policy: (0, policyAdapter_1.policyAdapter)(tenant),
16
- collection: (0, collectionAdapter_1.collectionAdapter)(tenant),
17
- claims: (0, claimsAdapter_1.claimsAdapter)(tenant),
18
- billing: (0, billingAdapter_1.billingAdapter)(tenant)
19
- });
20
- exports.createApiAdapter = createApiAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createApiAdapter = void 0;
4
+ const billingAdapter_1 = require("./billingAdapter");
5
+ const claimsAdapter_1 = require("./claimsAdapter");
6
+ const collectionAdapter_1 = require("./collectionAdapter");
7
+ const financeAdapter_1 = require("./financeAdapter");
8
+ const locationAdapter_1 = require("./locationAdapter");
9
+ const partyAdapter_1 = require("./partyAdapter");
10
+ const policyAdapter_1 = require("./policyAdapter");
11
+ const createApiAdapter = (tenant = 'default') => ({
12
+ finance: (0, financeAdapter_1.financeAdapter)(tenant),
13
+ party: (0, partyAdapter_1.partyAdapter)(tenant),
14
+ location: (0, locationAdapter_1.locationAdapter)(tenant),
15
+ policy: (0, policyAdapter_1.policyAdapter)(tenant),
16
+ collection: (0, collectionAdapter_1.collectionAdapter)(tenant),
17
+ claims: (0, claimsAdapter_1.claimsAdapter)(tenant),
18
+ billing: (0, billingAdapter_1.billingAdapter)(tenant)
19
+ });
20
+ exports.createApiAdapter = createApiAdapter;
@@ -1,6 +1,6 @@
1
- export function financeAdapter(tenant: any): {
2
- getCurrencies: () => Promise<any>;
3
- getPaymentFrecuencies: () => Promise<any>;
4
- getBanks: () => Promise<any>;
5
- getCardTypes: () => Promise<any>;
6
- };
1
+ export function financeAdapter(tenant: any): {
2
+ getCurrencies: () => Promise<any>;
3
+ getPaymentFrecuencies: () => Promise<any>;
4
+ getBanks: () => Promise<any>;
5
+ getCardTypes: () => Promise<any>;
6
+ };
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.financeAdapter = void 0;
4
- const Mapper_1 = require("../mapper/Mapper");
5
- const financeAdapter = (tenant) => ({
6
- getCurrencies: () => (0, Mapper_1.apiMapper)("GET_CURRENCIES", tenant),
7
- getPaymentFrecuencies: () => (0, Mapper_1.apiMapper)("GET_PAYMENT_FRECUENCIES", tenant),
8
- getBanks: () => (0, Mapper_1.apiMapper)("GET_BANKS", tenant),
9
- getCardTypes: () => (0, Mapper_1.apiMapper)("GET_CREDIT_CARD_TYPES", tenant)
10
- });
11
- exports.financeAdapter = financeAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.financeAdapter = void 0;
4
+ const Mapper_1 = require("../mapper/Mapper");
5
+ const financeAdapter = (tenant) => ({
6
+ getCurrencies: () => (0, Mapper_1.apiMapper)("GET_CURRENCIES", tenant),
7
+ getPaymentFrecuencies: () => (0, Mapper_1.apiMapper)("GET_PAYMENT_FRECUENCIES", tenant),
8
+ getBanks: () => (0, Mapper_1.apiMapper)("GET_BANKS", tenant),
9
+ getCardTypes: () => (0, Mapper_1.apiMapper)("GET_CREDIT_CARD_TYPES", tenant)
10
+ });
11
+ exports.financeAdapter = financeAdapter;
@@ -1,6 +1,6 @@
1
- export function locationAdapter(tenant: any): {
2
- getCountries: () => Promise<any>;
3
- getProvinces: (countryCode: any) => Promise<any>;
4
- getCities: (provinceCode: any) => Promise<any>;
5
- getPostalCodes: (cityCode: any) => Promise<any>;
6
- };
1
+ export function locationAdapter(tenant: any): {
2
+ getCountries: () => Promise<any>;
3
+ getProvinces: (countryCode: any) => Promise<any>;
4
+ getCities: (provinceCode: any) => Promise<any>;
5
+ getPostalCodes: (cityCode: any) => Promise<any>;
6
+ };
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.locationAdapter = void 0;
4
- const Mapper_1 = require("../mapper/Mapper");
5
- const locationAdapter = (tenant) => ({
6
- getCountries: () => (0, Mapper_1.apiMapper)("GET_COUNTRIES", tenant),
7
- getProvinces: (countryCode) => (0, Mapper_1.apiMapper)("GET_PROVINCES", tenant, [countryCode]),
8
- getCities: (provinceCode) => (0, Mapper_1.apiMapper)("GET_CITIES", tenant, [provinceCode]),
9
- getPostalCodes: (cityCode) => (0, Mapper_1.apiMapper)("GET_POSTAL_CODES", tenant, [cityCode]),
10
- });
11
- exports.locationAdapter = locationAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.locationAdapter = void 0;
4
+ const Mapper_1 = require("../mapper/Mapper");
5
+ const locationAdapter = (tenant) => ({
6
+ getCountries: () => (0, Mapper_1.apiMapper)("GET_COUNTRIES", tenant),
7
+ getProvinces: (countryCode) => (0, Mapper_1.apiMapper)("GET_PROVINCES", tenant, [countryCode]),
8
+ getCities: (provinceCode) => (0, Mapper_1.apiMapper)("GET_CITIES", tenant, [provinceCode]),
9
+ getPostalCodes: (cityCode) => (0, Mapper_1.apiMapper)("GET_POSTAL_CODES", tenant, [cityCode]),
10
+ });
11
+ exports.locationAdapter = locationAdapter;
@@ -1,17 +1,17 @@
1
- export function partyAdapter(tenant: any): {
2
- getIndividuals: (params: any) => Promise<any>;
3
- getOrganisations: (params: any) => Promise<any>;
4
- getIndividualDetails: (partyCode: any) => Promise<any>;
5
- getOrganisationDetails: (partyCode: any) => Promise<any>;
6
- getGenders: () => Promise<any>;
7
- getMaritalStatus: () => Promise<any>;
8
- getActivity: () => Promise<any>;
9
- getIdentificationTypes: (countryCode: any) => Promise<any>;
10
- getPaymentMethodsByPartyCode: (partyCode: any) => Promise<any>;
11
- updatePaymentMethodsByPartyCode: (partyCode: any, data: any) => Promise<any>;
12
- updatePerson: (partyCode: any, data: any) => Promise<any>;
13
- getPartyValidation: (indentificationType: any, identificationValue: any) => Promise<any>;
14
- postPartyValidation: (indentificationType: any, identificationValue: any, data: any) => Promise<any>;
15
- getPartyOnboarding: (indentificationType: any, identificationValue: any) => Promise<any>;
16
- postPartyOnboarding: (indentificationType: any, identificationValue: any, data: any) => Promise<any>;
17
- };
1
+ export function partyAdapter(tenant: any): {
2
+ getIndividuals: (params: any) => Promise<any>;
3
+ getOrganisations: (params: any) => Promise<any>;
4
+ getIndividualDetails: (partyCode: any) => Promise<any>;
5
+ getOrganisationDetails: (partyCode: any) => Promise<any>;
6
+ getGenders: () => Promise<any>;
7
+ getMaritalStatus: () => Promise<any>;
8
+ getActivity: () => Promise<any>;
9
+ getIdentificationTypes: (countryCode: any) => Promise<any>;
10
+ getPaymentMethodsByPartyCode: (partyCode: any) => Promise<any>;
11
+ updatePaymentMethodsByPartyCode: (partyCode: any, data: any) => Promise<any>;
12
+ updatePerson: (partyCode: any, data: any) => Promise<any>;
13
+ getPartyValidation: (indentificationType: any, identificationValue: any) => Promise<any>;
14
+ postPartyValidation: (indentificationType: any, identificationValue: any, data: any) => Promise<any>;
15
+ getPartyOnboarding: (indentificationType: any, identificationValue: any) => Promise<any>;
16
+ postPartyOnboarding: (indentificationType: any, identificationValue: any, data: any) => Promise<any>;
17
+ };
@@ -1,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.partyAdapter = void 0;
4
- const Mapper_1 = require("../mapper/Mapper");
5
- const partyAdapter = (tenant) => ({
6
- getIndividuals: (params) => (0, Mapper_1.apiMapper)("GET_PARTIES", tenant, ["individuals"], params),
7
- getOrganisations: (params) => (0, Mapper_1.apiMapper)("GET_PARTIES", tenant, ["organisations"], params),
8
- getIndividualDetails: (partyCode) => (0, Mapper_1.apiMapper)("GET_INDIVIDUAL_DETAILS", tenant, [partyCode]),
9
- getOrganisationDetails: (partyCode) => (0, Mapper_1.apiMapper)("GET_ORGANISATION_DETAILS", tenant, [partyCode]),
10
- getGenders: () => (0, Mapper_1.apiMapper)("GET_GENDERS", tenant),
11
- getMaritalStatus: () => (0, Mapper_1.apiMapper)("GET_MARITAL_STATUS", tenant),
12
- getActivity: () => (0, Mapper_1.apiMapper)("GET_ACTIVITY", tenant),
13
- getIdentificationTypes: (countryCode) => (0, Mapper_1.apiMapper)("GET_IDENTIFICATION_TYPES", tenant, [countryCode]),
14
- getPaymentMethodsByPartyCode: (partyCode) => (0, Mapper_1.apiMapper)("GET_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode]),
15
- updatePaymentMethodsByPartyCode: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode], data),
16
- updatePerson: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PERSON", tenant, [partyCode], data),
17
- getPartyValidation: (indentificationType, identificationValue) => (0, Mapper_1.apiMapper)("GET_PARTY_VALIDATION", tenant, [indentificationType, identificationValue]),
18
- postPartyValidation: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_VALIDATION", tenant, [indentificationType, identificationValue], data),
19
- getPartyOnboarding: (indentificationType, identificationValue) => (0, Mapper_1.apiMapper)("GET_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue]),
20
- postPartyOnboarding: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue], data)
21
- });
22
- exports.partyAdapter = partyAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.partyAdapter = void 0;
4
+ const Mapper_1 = require("../mapper/Mapper");
5
+ const partyAdapter = (tenant) => ({
6
+ getIndividuals: (params) => (0, Mapper_1.apiMapper)("GET_PARTIES", tenant, ["individuals"], params),
7
+ getOrganisations: (params) => (0, Mapper_1.apiMapper)("GET_PARTIES", tenant, ["organisations"], params),
8
+ getIndividualDetails: (partyCode) => (0, Mapper_1.apiMapper)("GET_INDIVIDUAL_DETAILS", tenant, [partyCode]),
9
+ getOrganisationDetails: (partyCode) => (0, Mapper_1.apiMapper)("GET_ORGANISATION_DETAILS", tenant, [partyCode]),
10
+ getGenders: () => (0, Mapper_1.apiMapper)("GET_GENDERS", tenant),
11
+ getMaritalStatus: () => (0, Mapper_1.apiMapper)("GET_MARITAL_STATUS", tenant),
12
+ getActivity: () => (0, Mapper_1.apiMapper)("GET_ACTIVITY", tenant),
13
+ getIdentificationTypes: (countryCode) => (0, Mapper_1.apiMapper)("GET_IDENTIFICATION_TYPES", tenant, [countryCode]),
14
+ getPaymentMethodsByPartyCode: (partyCode) => (0, Mapper_1.apiMapper)("GET_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode]),
15
+ updatePaymentMethodsByPartyCode: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode], data),
16
+ updatePerson: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PERSON", tenant, [partyCode], data),
17
+ getPartyValidation: (indentificationType, identificationValue) => (0, Mapper_1.apiMapper)("GET_PARTY_VALIDATION", tenant, [indentificationType, identificationValue]),
18
+ postPartyValidation: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_VALIDATION", tenant, [indentificationType, identificationValue], data),
19
+ getPartyOnboarding: (indentificationType, identificationValue) => (0, Mapper_1.apiMapper)("GET_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue]),
20
+ postPartyOnboarding: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue], data)
21
+ });
22
+ exports.partyAdapter = partyAdapter;
@@ -1,11 +1,11 @@
1
- export function policyAdapter(tenant: any): {
2
- getEndorsements: (policyCode: any, params: any) => Promise<any>;
3
- getPolicies: (params: any) => Promise<any>;
4
- getPolicyDetail: (policyType: any, policyCode: any, params: any) => Promise<any>;
5
- getPolicyHomeDetail: (policyCode: any) => Promise<any>;
6
- getPolicyLifeDetail: (policyCode: any) => Promise<any>;
7
- getPolicyStatuses: () => Promise<any>;
8
- getPolicyInsureds: (policyType: any, policyCode: any, params: any) => Promise<any>;
9
- getInsuredsByFilters: (params: any) => Promise<any>;
10
- getPolicyCertificate: (policyType: any, policyCode: any, params: any) => Promise<any>;
11
- };
1
+ export function policyAdapter(tenant: any): {
2
+ getEndorsements: (policyCode: any, params: any) => Promise<any>;
3
+ getPolicies: (params: any) => Promise<any>;
4
+ getPolicyDetail: (policyType: any, policyCode: any, params: any) => Promise<any>;
5
+ getPolicyHomeDetail: (policyCode: any) => Promise<any>;
6
+ getPolicyLifeDetail: (policyCode: any) => Promise<any>;
7
+ getPolicyStatuses: () => Promise<any>;
8
+ getPolicyInsureds: (policyType: any, policyCode: any, params: any) => Promise<any>;
9
+ getInsuredsByFilters: (params: any) => Promise<any>;
10
+ getPolicyCertificate: (policyType: any, policyCode: any, params: any) => Promise<any>;
11
+ };
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.policyAdapter = void 0;
4
- const Mapper_1 = require("../mapper/Mapper");
5
- const policyAdapter = (tenant) => ({
6
- getEndorsements: (policyCode, params) => (0, Mapper_1.apiMapper)("GET_ENDORSEMENTS", tenant, [policyCode], params),
7
- getPolicies: (params) => (0, Mapper_1.apiMapper)("GET_POLICIES", tenant, [], params),
8
- getPolicyDetail: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_POLICY_DETAIL", tenant, [policyType, policyCode], params),
9
- getPolicyHomeDetail: (policyCode) => (0, Mapper_1.apiMapper)("GET_POLICY_HOME_INDIVIDUAL_DETAIL", tenant, [policyCode]),
10
- getPolicyLifeDetail: (policyCode) => (0, Mapper_1.apiMapper)("GET_POLICY_LIFE_INDIVIDUAL_DETAIL", tenant, [policyCode]),
11
- getPolicyStatuses: () => (0, Mapper_1.apiMapper)("GET_POLICY_STATUSES", tenant),
12
- getPolicyInsureds: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_INSUREDS", tenant, [policyType, policyCode], params),
13
- getInsuredsByFilters: (params) => (0, Mapper_1.apiMapper)("GET_INSUREDS_BY_FILTERS", tenant, [], params),
14
- getPolicyCertificate: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_POLICY_CERTIFICATE", tenant, [policyType, policyCode], params)
15
- });
16
- exports.policyAdapter = policyAdapter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.policyAdapter = void 0;
4
+ const Mapper_1 = require("../mapper/Mapper");
5
+ const policyAdapter = (tenant) => ({
6
+ getEndorsements: (policyCode, params) => (0, Mapper_1.apiMapper)("GET_ENDORSEMENTS", tenant, [policyCode], params),
7
+ getPolicies: (params) => (0, Mapper_1.apiMapper)("GET_POLICIES", tenant, [], params),
8
+ getPolicyDetail: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_POLICY_DETAIL", tenant, [policyType, policyCode], params),
9
+ getPolicyHomeDetail: (policyCode) => (0, Mapper_1.apiMapper)("GET_POLICY_HOME_INDIVIDUAL_DETAIL", tenant, [policyCode]),
10
+ getPolicyLifeDetail: (policyCode) => (0, Mapper_1.apiMapper)("GET_POLICY_LIFE_INDIVIDUAL_DETAIL", tenant, [policyCode]),
11
+ getPolicyStatuses: () => (0, Mapper_1.apiMapper)("GET_POLICY_STATUSES", tenant),
12
+ getPolicyInsureds: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_INSUREDS", tenant, [policyType, policyCode], params),
13
+ getInsuredsByFilters: (params) => (0, Mapper_1.apiMapper)("GET_INSUREDS_BY_FILTERS", tenant, [], params),
14
+ getPolicyCertificate: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_POLICY_CERTIFICATE", tenant, [policyType, policyCode], params)
15
+ });
16
+ exports.policyAdapter = policyAdapter;
@@ -1,35 +1,35 @@
1
- "use strict";
2
- // import React from "react";
3
- // import { notification } from "antd";
4
- // const TYPE = {
5
- // SUCCESS: "success",
6
- // ERROR: "error",
7
- // INFO: "info",
8
- // WARNING: "warning",
9
- // };
10
- // const openNotificationWithIcon = (type, message, description, subErrors) => {
11
- // return notification[type]({
12
- // message,
13
- // style: {
14
- // minHeight:
15
- // description || (subErrors && subErrors.length > 0) ? "0" : "70px",
16
- // },
17
- // description: (
18
- // <>
19
- // {description ? (
20
- // <>
21
- // <div style={{ fontSize: "13px" }}>{description}</div>
22
- // <br />
23
- // </>
24
- // ) : null}
25
- // {subErrors?.map((e, idx) => (
26
- // <React.Fragment key={`sub_error_${idx}`}>
27
- // <div style={{ fontSize: "16px" }}>- {e}</div>
28
- // <br />
29
- // </React.Fragment>
30
- // ))}
31
- // </>
32
- // ),
33
- // });
34
- // };
35
- // export { openNotificationWithIcon, TYPE };
1
+ "use strict";
2
+ // import React from "react";
3
+ // import { notification } from "antd";
4
+ // const TYPE = {
5
+ // SUCCESS: "success",
6
+ // ERROR: "error",
7
+ // INFO: "info",
8
+ // WARNING: "warning",
9
+ // };
10
+ // const openNotificationWithIcon = (type, message, description, subErrors) => {
11
+ // return notification[type]({
12
+ // message,
13
+ // style: {
14
+ // minHeight:
15
+ // description || (subErrors && subErrors.length > 0) ? "0" : "70px",
16
+ // },
17
+ // description: (
18
+ // <>
19
+ // {description ? (
20
+ // <>
21
+ // <div style={{ fontSize: "13px" }}>{description}</div>
22
+ // <br />
23
+ // </>
24
+ // ) : null}
25
+ // {subErrors?.map((e, idx) => (
26
+ // <React.Fragment key={`sub_error_${idx}`}>
27
+ // <div style={{ fontSize: "16px" }}>- {e}</div>
28
+ // <br />
29
+ // </React.Fragment>
30
+ // ))}
31
+ // </>
32
+ // ),
33
+ // });
34
+ // };
35
+ // export { openNotificationWithIcon, TYPE };
@@ -1,6 +1,6 @@
1
- export function useActions(): any;
2
- export function ActionsProvider({ initialData, children }: {
3
- initialData: any;
4
- children: any;
5
- }): React.JSX.Element;
6
- import React from "react";
1
+ export function useActions(): any;
2
+ export function ActionsProvider({ initialData, children }: {
3
+ initialData: any;
4
+ children: any;
5
+ }): React.JSX.Element;
6
+ import React from "react";