sysone-api-mapper 1.0.195 → 1.0.197
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/adapters/createApiAdapter.d.ts +5 -0
- package/dist/src/adapters/partyAdapter.d.ts +3 -0
- package/dist/src/adapters/partyAdapter.js +4 -1
- package/dist/src/adapters/policyAdapter.d.ts +2 -0
- package/dist/src/adapters/policyAdapter.js +3 -1
- package/dist/src/mapper/endpointsConfig.d.ts +664 -589
- package/dist/src/mapper/endpointsConfig.js +40 -0
- package/package.json +1 -1
|
@@ -28,6 +28,9 @@ export interface Api {
|
|
|
28
28
|
getOrganizationTypes: () => Promise<any>;
|
|
29
29
|
createIndividual: (data: any) => Promise<any>;
|
|
30
30
|
createOrganization: (data: any) => Promise<any>;
|
|
31
|
+
getSectors: () => Promise<any>;
|
|
32
|
+
getActivities: (sectorCode: string) => Promise<any>;
|
|
33
|
+
getPractices: (activityCode: string) => Promise<any>;
|
|
31
34
|
};
|
|
32
35
|
location: {
|
|
33
36
|
getCountries: () => Promise<any>;
|
|
@@ -49,6 +52,8 @@ export interface Api {
|
|
|
49
52
|
getAdherentsByOwner: (ownerCode: string, params?: Object) => Promise<any>;
|
|
50
53
|
getExclusionTypes: () => Promise<any>;
|
|
51
54
|
excludeInsuredFromPolicy: (policyCode: string, insuredCode: string, exclusionData: object) => Promise<any>;
|
|
55
|
+
getRiskModes: () => Promise<any>;
|
|
56
|
+
policyCreateInsured: (policyCode: string, payload: any) => Promise<any>;
|
|
52
57
|
};
|
|
53
58
|
collection: {
|
|
54
59
|
getCollections: (params?: Object) => Promise<any>;
|
|
@@ -21,4 +21,7 @@ export function partyAdapter(tenant: any): {
|
|
|
21
21
|
getOrganizationTypes: () => Promise<any>;
|
|
22
22
|
createIndividual: (data: any) => Promise<any>;
|
|
23
23
|
createOrganization: (data: any) => Promise<any>;
|
|
24
|
+
getSectors: () => Promise<any>;
|
|
25
|
+
getActivities: (sectorCode: any) => Promise<any>;
|
|
26
|
+
getPractices: (activityCode: any) => Promise<any>;
|
|
24
27
|
};
|
|
@@ -24,6 +24,9 @@ const partyAdapter = (tenant) => ({
|
|
|
24
24
|
getAdressTypes: () => (0, Mapper_1.apiMapper)("GET_ADDRESS_TYPES", tenant),
|
|
25
25
|
getOrganizationTypes: () => (0, Mapper_1.apiMapper)("GET_ORGANIZATION_TYPES", tenant),
|
|
26
26
|
createIndividual: (data) => (0, Mapper_1.apiMapper)("CREATE_INDIVIDUAL", tenant, [], data),
|
|
27
|
-
createOrganization: (data) => (0, Mapper_1.apiMapper)("CREATE_ORGANIZATION", tenant, [], data)
|
|
27
|
+
createOrganization: (data) => (0, Mapper_1.apiMapper)("CREATE_ORGANIZATION", tenant, [], data),
|
|
28
|
+
getSectors: () => (0, Mapper_1.apiMapper)("GET_SECTORS", tenant),
|
|
29
|
+
getActivities: (sectorCode) => (0, Mapper_1.apiMapper)("GET_ACTIVITIES", tenant, [sectorCode]),
|
|
30
|
+
getPractices: (activityCode) => (0, Mapper_1.apiMapper)("GET_PRACTICES", tenant, [activityCode])
|
|
28
31
|
});
|
|
29
32
|
exports.partyAdapter = partyAdapter;
|
|
@@ -12,4 +12,6 @@ export function policyAdapter(tenant: any): {
|
|
|
12
12
|
getAdherentsByOwner: (ownerCode: any, params: any) => Promise<any>;
|
|
13
13
|
getExclusionTypes: () => Promise<any>;
|
|
14
14
|
excludeInsuredFromPolicy: (policyCode: any, insuredCode: any, exclusionData: any) => Promise<any>;
|
|
15
|
+
getRiskModes: () => Promise<any>;
|
|
16
|
+
policyCreateInsured: (policyCode: any, payload: any) => Promise<any>;
|
|
15
17
|
};
|
|
@@ -15,6 +15,8 @@ const policyAdapter = (tenant) => ({
|
|
|
15
15
|
getOwnerInfo: (ownerCode, params) => (0, Mapper_1.apiMapper)("GET_OWNERS", tenant, [ownerCode], params),
|
|
16
16
|
getAdherentsByOwner: (ownerCode, params) => (0, Mapper_1.apiMapper)("GET_ADHERENTS_BY_OWNER", tenant, [ownerCode], params),
|
|
17
17
|
getExclusionTypes: () => (0, Mapper_1.apiMapper)("GET_EXCLUSION_TYPES", tenant),
|
|
18
|
-
excludeInsuredFromPolicy: (policyCode, insuredCode, exclusionData) => (0, Mapper_1.apiMapper)("EXCLUDE_INSURED_FROM_POLICY", tenant, [policyCode, insuredCode], exclusionData)
|
|
18
|
+
excludeInsuredFromPolicy: (policyCode, insuredCode, exclusionData) => (0, Mapper_1.apiMapper)("EXCLUDE_INSURED_FROM_POLICY", tenant, [policyCode, insuredCode], exclusionData),
|
|
19
|
+
getRiskModes: () => (0, Mapper_1.apiMapper)("GET_RISK_MODES", tenant),
|
|
20
|
+
policyCreateInsured: (policyCode, payload) => (0, Mapper_1.apiMapper)("POLICY_LIFE_CREATE_INSURED", tenant, [policyCode], payload)
|
|
19
21
|
});
|
|
20
22
|
exports.policyAdapter = policyAdapter;
|