sysone-api-mapper 1.0.193 → 1.0.195
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 +7 -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 +4 -0
- package/dist/src/adapters/policyAdapter.js +5 -1
- package/dist/src/mapper/endpointsConfig.d.ts +719 -603
- package/dist/src/mapper/endpointsConfig.js +64 -0
- package/package.json +1 -1
|
@@ -25,6 +25,9 @@ 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>;
|
|
28
31
|
};
|
|
29
32
|
location: {
|
|
30
33
|
getCountries: () => Promise<any>;
|
|
@@ -42,6 +45,10 @@ export interface Api {
|
|
|
42
45
|
getPolicyInsureds: (policyType: string, policyCode: string, params?: Object) => Promise<any>;
|
|
43
46
|
getInsuredsByFilters: (params?: Object) => Promise<any>;
|
|
44
47
|
getPolicyCertificate: (policyType: string, policyCode: string, params?: object) => Promise<any>;
|
|
48
|
+
getOwnerInfo: (ownerCode: string, params?: Object) => Promise<any>;
|
|
49
|
+
getAdherentsByOwner: (ownerCode: string, params?: Object) => Promise<any>;
|
|
50
|
+
getExclusionTypes: () => Promise<any>;
|
|
51
|
+
excludeInsuredFromPolicy: (policyCode: string, insuredCode: string, exclusionData: object) => Promise<any>;
|
|
45
52
|
};
|
|
46
53
|
collection: {
|
|
47
54
|
getCollections: (params?: Object) => Promise<any>;
|
|
@@ -18,4 +18,7 @@ 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>;
|
|
21
24
|
};
|
|
@@ -21,6 +21,9 @@ 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)
|
|
25
28
|
});
|
|
26
29
|
exports.partyAdapter = partyAdapter;
|
|
@@ -8,4 +8,8 @@ export function policyAdapter(tenant: any): {
|
|
|
8
8
|
getPolicyInsureds: (policyType: any, policyCode: any, params: any) => Promise<any>;
|
|
9
9
|
getInsuredsByFilters: (params: any) => Promise<any>;
|
|
10
10
|
getPolicyCertificate: (policyType: any, policyCode: any, params: any) => Promise<any>;
|
|
11
|
+
getOwnerInfo: (ownerCode: any, params: any) => Promise<any>;
|
|
12
|
+
getAdherentsByOwner: (ownerCode: any, params: any) => Promise<any>;
|
|
13
|
+
getExclusionTypes: () => Promise<any>;
|
|
14
|
+
excludeInsuredFromPolicy: (policyCode: any, insuredCode: any, exclusionData: any) => Promise<any>;
|
|
11
15
|
};
|
|
@@ -11,6 +11,10 @@ const policyAdapter = (tenant) => ({
|
|
|
11
11
|
getPolicyStatuses: () => (0, Mapper_1.apiMapper)("GET_POLICY_STATUSES", tenant),
|
|
12
12
|
getPolicyInsureds: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_INSUREDS", tenant, [policyType, policyCode], params),
|
|
13
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)
|
|
14
|
+
getPolicyCertificate: (policyType, policyCode, params) => (0, Mapper_1.apiMapper)("GET_POLICY_CERTIFICATE", tenant, [policyType, policyCode], params),
|
|
15
|
+
getOwnerInfo: (ownerCode, params) => (0, Mapper_1.apiMapper)("GET_OWNERS", tenant, [ownerCode], params),
|
|
16
|
+
getAdherentsByOwner: (ownerCode, params) => (0, Mapper_1.apiMapper)("GET_ADHERENTS_BY_OWNER", tenant, [ownerCode], params),
|
|
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)
|
|
15
19
|
});
|
|
16
20
|
exports.policyAdapter = policyAdapter;
|