sysone-api-mapper 1.0.194 → 1.0.196
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 +8 -0
- package/dist/src/adapters/partyAdapter.d.ts +6 -0
- package/dist/src/adapters/partyAdapter.js +7 -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 +709 -585
- package/dist/src/mapper/endpointsConfig.js +66 -0
- package/package.json +1 -1
|
@@ -25,6 +25,12 @@ export interface Api {
|
|
|
25
25
|
getPartyStatus: (partyCode: string) => Promise<any>;
|
|
26
26
|
getPhoneTypes: () => Promise<any>;
|
|
27
27
|
getAdressTypes: () => Promise<any>;
|
|
28
|
+
getOrganizationTypes: () => Promise<any>;
|
|
29
|
+
createIndividual: (data: any) => Promise<any>;
|
|
30
|
+
createOrganization: (data: any) => Promise<any>;
|
|
31
|
+
getSectors: () => Promise<any>;
|
|
32
|
+
getActivities: (sectorCode: string) => Promise<any>;
|
|
33
|
+
getPractices: (activityCode: string) => Promise<any>;
|
|
28
34
|
};
|
|
29
35
|
location: {
|
|
30
36
|
getCountries: () => Promise<any>;
|
|
@@ -46,6 +52,8 @@ export interface Api {
|
|
|
46
52
|
getAdherentsByOwner: (ownerCode: string, params?: Object) => Promise<any>;
|
|
47
53
|
getExclusionTypes: () => Promise<any>;
|
|
48
54
|
excludeInsuredFromPolicy: (policyCode: string, insuredCode: string, exclusionData: object) => Promise<any>;
|
|
55
|
+
getRiskModes: () => Promise<any>;
|
|
56
|
+
policyCreateInsured: (policyCode: string, payload: any) => Promise<any>;
|
|
49
57
|
};
|
|
50
58
|
collection: {
|
|
51
59
|
getCollections: (params?: Object) => Promise<any>;
|
|
@@ -18,4 +18,10 @@ export function partyAdapter(tenant: any): {
|
|
|
18
18
|
getPartyStatus: (partyCode: any) => Promise<any>;
|
|
19
19
|
getPhoneTypes: () => Promise<any>;
|
|
20
20
|
getAdressTypes: () => Promise<any>;
|
|
21
|
+
getOrganizationTypes: () => Promise<any>;
|
|
22
|
+
createIndividual: (data: any) => Promise<any>;
|
|
23
|
+
createOrganization: (data: any) => Promise<any>;
|
|
24
|
+
getSectors: () => Promise<any>;
|
|
25
|
+
getActivities: (sectorCode: any) => Promise<any>;
|
|
26
|
+
getPractices: (activityCode: any) => Promise<any>;
|
|
21
27
|
};
|
|
@@ -21,6 +21,12 @@ const partyAdapter = (tenant) => ({
|
|
|
21
21
|
postPartyOnboarding: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue], data),
|
|
22
22
|
getPartyStatus: (partyCode) => (0, Mapper_1.apiMapper)("GET_PARTY_STATUS", tenant, [partyCode]),
|
|
23
23
|
getPhoneTypes: () => (0, Mapper_1.apiMapper)("GET_PHONE_TYPES", tenant),
|
|
24
|
-
getAdressTypes: () => (0, Mapper_1.apiMapper)("GET_ADDRESS_TYPES", tenant)
|
|
24
|
+
getAdressTypes: () => (0, Mapper_1.apiMapper)("GET_ADDRESS_TYPES", tenant),
|
|
25
|
+
getOrganizationTypes: () => (0, Mapper_1.apiMapper)("GET_ORGANIZATION_TYPES", tenant),
|
|
26
|
+
createIndividual: (data) => (0, Mapper_1.apiMapper)("CREATE_INDIVIDUAL", 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])
|
|
25
31
|
});
|
|
26
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;
|