sysone-api-mapper 1.0.153 → 1.0.155

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.
@@ -0,0 +1,3 @@
1
+ export function claimsAdapter(tenant: any): {
2
+ getClaims: (params: any) => Promise<any>;
3
+ };
@@ -0,0 +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;
@@ -0,0 +1,3 @@
1
+ export function collectionAdapter(tenant: any): {
2
+ getCollections: (params: any) => Promise<any>;
3
+ };
@@ -0,0 +1,8 @@
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)("GET_COLLECTIONS", tenant, params),
7
+ });
8
+ exports.collectionAdapter = collectionAdapter;
@@ -6,6 +6,8 @@ export interface Api {
6
6
  getCardTypes: () => Promise<any>;
7
7
  };
8
8
  party: {
9
+ getIndividualDetails: (partyCode: string) => Promise<any>;
10
+ getOrganisationDetails: (partyCode: string) => Promise<any>;
9
11
  getGenders: () => Promise<any>;
10
12
  getMaritalStatus: () => Promise<any>;
11
13
  getActivity: () => Promise<any>;
@@ -14,6 +16,23 @@ export interface Api {
14
16
  location: {
15
17
  getCountries: () => Promise<any>;
16
18
  getProvinces: (country: string) => Promise<any>;
19
+ getCities: (provinceCode: string) => Promise<any>;
20
+ };
21
+ policy: {
22
+ getEndorsements: (policyCode: string, params?: Object) => Promise<any>;
23
+ getPolicies: (params?: Object) => Promise<any>;
24
+ getPolicyDetail: (policyType: string, policyCode: string, params?: Object) => Promise<any>;
25
+ getPolicyHomeDetail: (policyCode: string) => Promise<any>;
26
+ getPolicyLifeDetail: (policyCode: string) => Promise<any>;
27
+ getPolicyStatuses: () => Promise<any>;
28
+ getPolicyInsureds: (policyType: string, policyCode: string, params?: Object) => Promise<any>;
29
+ getInsuredsByFilters: (params?: Object) => Promise<any>;
30
+ };
31
+ collection: {
32
+ getCollections: (params?: Object) => Promise<any>;
33
+ };
34
+ claims: {
35
+ getClaims: (params?: Object) => Promise<any>;
17
36
  };
18
37
  }
19
38
  export declare const createApiAdapter: (tenant?: string) => Api;
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createApiAdapter = void 0;
4
+ const claimsAdapter_1 = require("./claimsAdapter");
5
+ const collectionAdapter_1 = require("./collectionAdapter");
4
6
  const financeAdapter_1 = require("./financeAdapter");
5
7
  const locationAdapter_1 = require("./locationAdapter");
6
8
  const partyAdapter_1 = require("./partyAdapter");
9
+ const policyAdapter_1 = require("./policyAdapter");
7
10
  const createApiAdapter = (tenant = 'default') => ({
8
11
  finance: (0, financeAdapter_1.financeAdapter)(tenant),
9
12
  party: (0, partyAdapter_1.partyAdapter)(tenant),
10
- location: (0, locationAdapter_1.locationAdapter)(tenant)
13
+ location: (0, locationAdapter_1.locationAdapter)(tenant),
14
+ policy: (0, policyAdapter_1.policyAdapter)(tenant),
15
+ collection: (0, collectionAdapter_1.collectionAdapter)(tenant),
16
+ claims: (0, claimsAdapter_1.claimsAdapter)(tenant),
11
17
  });
12
18
  exports.createApiAdapter = createApiAdapter;
@@ -1,4 +1,5 @@
1
1
  export function locationAdapter(tenant: any): {
2
2
  getCountries: () => Promise<any>;
3
3
  getProvinces: (countryCode: any) => Promise<any>;
4
+ getCities: (provinceCode: any) => Promise<any>;
4
5
  };
@@ -5,5 +5,6 @@ const Mapper_1 = require("../mapper/Mapper");
5
5
  const locationAdapter = (tenant) => ({
6
6
  getCountries: () => (0, Mapper_1.apiMapper)("GET_COUNTRIES", tenant),
7
7
  getProvinces: (countryCode) => (0, Mapper_1.apiMapper)("GET_PROVINCES", tenant, [countryCode]),
8
+ getCities: (provinceCode) => (0, Mapper_1.apiMapper)("GET_CITIES", tenant, [provinceCode]),
8
9
  });
9
10
  exports.locationAdapter = locationAdapter;
@@ -1,4 +1,6 @@
1
1
  export function partyAdapter(tenant: any): {
2
+ getIndividualDetails: (partyCode: any) => Promise<any>;
3
+ getOrganisationDetails: (partyCode: any) => Promise<any>;
2
4
  getGenders: () => Promise<any>;
3
5
  getMaritalStatus: () => Promise<any>;
4
6
  getActivity: () => Promise<any>;
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.partyAdapter = void 0;
4
4
  const Mapper_1 = require("../mapper/Mapper");
5
5
  const partyAdapter = (tenant) => ({
6
+ getIndividualDetails: (partyCode) => (0, Mapper_1.apiMapper)("GET_INDIVIDUAL_DETAILS", tenant, [partyCode]),
7
+ getOrganisationDetails: (partyCode) => (0, Mapper_1.apiMapper)("GET_ORGANISATION_DETAILS", tenant, [partyCode]),
6
8
  getGenders: () => (0, Mapper_1.apiMapper)("GET_GENDERS", tenant),
7
9
  getMaritalStatus: () => (0, Mapper_1.apiMapper)("GET_MARITAL_STATUS", tenant),
8
10
  getActivity: () => (0, Mapper_1.apiMapper)("GET_ACTIVITY", tenant),
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,15 @@
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
+ });
15
+ exports.policyAdapter = policyAdapter;