sysone-api-mapper 1.0.162 → 1.0.163
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.
|
@@ -15,6 +15,8 @@ export interface Api {
|
|
|
15
15
|
getPaymentMethodsByPartyCode: (partyCode: string) => Promise<any>;
|
|
16
16
|
updatePaymentMethodsByPartyCode: (partyCode: string, data: any) => Promise<any>;
|
|
17
17
|
updatePerson: (partyCode: string, data: any) => Promise<any>;
|
|
18
|
+
getPartyValidation: (indentificationType: string, identificationValue: string) => Promise<any>;
|
|
19
|
+
postPartyValidation: (indentificationType: string, identificationValue: string, data: any) => Promise<any>;
|
|
18
20
|
};
|
|
19
21
|
location: {
|
|
20
22
|
getCountries: () => Promise<any>;
|
|
@@ -8,4 +8,6 @@ export function partyAdapter(tenant: any): {
|
|
|
8
8
|
getPaymentMethodsByPartyCode: (partyCode: any) => Promise<any>;
|
|
9
9
|
updatePaymentMethodsByPartyCode: (partyCode: any, data: any) => Promise<any>;
|
|
10
10
|
updatePerson: (partyCode: any, data: any) => Promise<any>;
|
|
11
|
+
getPartyValidation: (indentificationType: any, identificationValue: any) => Promise<any>;
|
|
12
|
+
postPartyValidation: (indentificationType: any, identificationValue: any, data: any) => Promise<any>;
|
|
11
13
|
};
|
|
@@ -12,5 +12,7 @@ const partyAdapter = (tenant) => ({
|
|
|
12
12
|
getPaymentMethodsByPartyCode: (partyCode) => (0, Mapper_1.apiMapper)("GET_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode]),
|
|
13
13
|
updatePaymentMethodsByPartyCode: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode], data),
|
|
14
14
|
updatePerson: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PERSON", tenant, [partyCode], data),
|
|
15
|
+
getPartyValidation: (indentificationType, identificationValue) => (0, Mapper_1.apiMapper)("GET_PARTY_VALIDATION", tenant, [indentificationType, identificationValue]),
|
|
16
|
+
postPartyValidation: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_VALIDATION", tenant, [indentificationType, identificationValue], data)
|
|
15
17
|
});
|
|
16
18
|
exports.partyAdapter = partyAdapter;
|
|
@@ -2678,69 +2678,73 @@ export namespace tenantsConfig {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
export { cnp_48 as cnp };
|
|
2680
2680
|
}
|
|
2681
|
-
namespace
|
|
2681
|
+
namespace GET_PARTY_VALIDATION {
|
|
2682
2682
|
namespace _default_50 {
|
|
2683
2683
|
let url_99: string;
|
|
2684
2684
|
export { url_99 as url };
|
|
2685
|
-
import method_99 = methods.
|
|
2685
|
+
import method_99 = methods.GET;
|
|
2686
2686
|
export { method_99 as method };
|
|
2687
2687
|
let source_60: string;
|
|
2688
2688
|
export { source_60 as source };
|
|
2689
|
-
export function requestMapper_99(
|
|
2690
|
-
|
|
2689
|
+
export function requestMapper_99(request: any): {
|
|
2690
|
+
mappedParams: any;
|
|
2691
2691
|
};
|
|
2692
2692
|
export { requestMapper_99 as requestMapper };
|
|
2693
2693
|
export function responseMapper_99(response: any): any;
|
|
2694
2694
|
export { responseMapper_99 as responseMapper };
|
|
2695
2695
|
}
|
|
2696
2696
|
export { _default_50 as default };
|
|
2697
|
-
|
|
2697
|
+
}
|
|
2698
|
+
namespace POST_PARTY_VALIDATION {
|
|
2699
|
+
namespace _default_51 {
|
|
2698
2700
|
let url_100: string;
|
|
2699
2701
|
export { url_100 as url };
|
|
2700
2702
|
import method_100 = methods.POST;
|
|
2701
2703
|
export { method_100 as method };
|
|
2702
2704
|
let source_61: string;
|
|
2703
2705
|
export { source_61 as source };
|
|
2704
|
-
export function requestMapper_100(
|
|
2705
|
-
|
|
2706
|
+
export function requestMapper_100(request: any): {
|
|
2707
|
+
mappedParams: any;
|
|
2706
2708
|
};
|
|
2707
2709
|
export { requestMapper_100 as requestMapper };
|
|
2708
2710
|
export function responseMapper_100(response: any): any;
|
|
2709
2711
|
export { responseMapper_100 as responseMapper };
|
|
2710
2712
|
}
|
|
2711
|
-
export {
|
|
2713
|
+
export { _default_51 as default };
|
|
2712
2714
|
}
|
|
2713
|
-
namespace
|
|
2714
|
-
namespace
|
|
2715
|
+
namespace POST_AGE {
|
|
2716
|
+
namespace _default_52 {
|
|
2715
2717
|
let url_101: string;
|
|
2716
2718
|
export { url_101 as url };
|
|
2717
|
-
import method_101 = methods.
|
|
2719
|
+
import method_101 = methods.POST;
|
|
2718
2720
|
export { method_101 as method };
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
+
let source_62: string;
|
|
2722
|
+
export { source_62 as source };
|
|
2723
|
+
export function requestMapper_101(params: any): {
|
|
2724
|
+
mappedBody: any;
|
|
2721
2725
|
};
|
|
2722
2726
|
export { requestMapper_101 as requestMapper };
|
|
2723
2727
|
export function responseMapper_101(response: any): any;
|
|
2724
2728
|
export { responseMapper_101 as responseMapper };
|
|
2725
2729
|
}
|
|
2726
|
-
export {
|
|
2727
|
-
|
|
2728
|
-
namespace GET_INTERMEDIARY_BY_CODE {
|
|
2729
|
-
namespace _default_52 {
|
|
2730
|
+
export { _default_52 as default };
|
|
2731
|
+
export namespace cnp_49 {
|
|
2730
2732
|
let url_102: string;
|
|
2731
2733
|
export { url_102 as url };
|
|
2732
|
-
import method_102 = methods.
|
|
2734
|
+
import method_102 = methods.POST;
|
|
2733
2735
|
export { method_102 as method };
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
+
let source_63: string;
|
|
2737
|
+
export { source_63 as source };
|
|
2738
|
+
export function requestMapper_102(params: any): {
|
|
2739
|
+
mappedBody: any;
|
|
2736
2740
|
};
|
|
2737
2741
|
export { requestMapper_102 as requestMapper };
|
|
2738
2742
|
export function responseMapper_102(response: any): any;
|
|
2739
2743
|
export { responseMapper_102 as responseMapper };
|
|
2740
2744
|
}
|
|
2741
|
-
export {
|
|
2745
|
+
export { cnp_49 as cnp };
|
|
2742
2746
|
}
|
|
2743
|
-
namespace
|
|
2747
|
+
namespace GET_INTERMEDIARY_STRUCTURE {
|
|
2744
2748
|
namespace _default_53 {
|
|
2745
2749
|
let url_103: string;
|
|
2746
2750
|
export { url_103 as url };
|
|
@@ -2755,7 +2759,7 @@ export namespace tenantsConfig {
|
|
|
2755
2759
|
}
|
|
2756
2760
|
export { _default_53 as default };
|
|
2757
2761
|
}
|
|
2758
|
-
namespace
|
|
2762
|
+
namespace GET_INTERMEDIARY_BY_CODE {
|
|
2759
2763
|
namespace _default_54 {
|
|
2760
2764
|
let url_104: string;
|
|
2761
2765
|
export { url_104 as url };
|
|
@@ -2769,24 +2773,24 @@ export namespace tenantsConfig {
|
|
|
2769
2773
|
export { responseMapper_104 as responseMapper };
|
|
2770
2774
|
}
|
|
2771
2775
|
export { _default_54 as default };
|
|
2772
|
-
|
|
2776
|
+
}
|
|
2777
|
+
namespace GET_COMMERCIAL_STRUCTURE {
|
|
2778
|
+
namespace _default_55 {
|
|
2773
2779
|
let url_105: string;
|
|
2774
2780
|
export { url_105 as url };
|
|
2775
2781
|
import method_105 = methods.GET;
|
|
2776
2782
|
export { method_105 as method };
|
|
2777
2783
|
export function requestMapper_105(request: any): {
|
|
2778
|
-
mappedParams:
|
|
2779
|
-
roles: any;
|
|
2780
|
-
};
|
|
2784
|
+
mappedParams: any;
|
|
2781
2785
|
};
|
|
2782
2786
|
export { requestMapper_105 as requestMapper };
|
|
2783
2787
|
export function responseMapper_105(response: any): any;
|
|
2784
2788
|
export { responseMapper_105 as responseMapper };
|
|
2785
2789
|
}
|
|
2786
|
-
export {
|
|
2790
|
+
export { _default_55 as default };
|
|
2787
2791
|
}
|
|
2788
|
-
namespace
|
|
2789
|
-
|
|
2792
|
+
namespace GET_MODULES {
|
|
2793
|
+
namespace _default_56 {
|
|
2790
2794
|
let url_106: string;
|
|
2791
2795
|
export { url_106 as url };
|
|
2792
2796
|
import method_106 = methods.GET;
|
|
@@ -2798,6 +2802,36 @@ export namespace tenantsConfig {
|
|
|
2798
2802
|
export function responseMapper_106(response: any): any;
|
|
2799
2803
|
export { responseMapper_106 as responseMapper };
|
|
2800
2804
|
}
|
|
2805
|
+
export { _default_56 as default };
|
|
2806
|
+
export namespace cnp_50 {
|
|
2807
|
+
let url_107: string;
|
|
2808
|
+
export { url_107 as url };
|
|
2809
|
+
import method_107 = methods.GET;
|
|
2810
|
+
export { method_107 as method };
|
|
2811
|
+
export function requestMapper_107(request: any): {
|
|
2812
|
+
mappedParams: {
|
|
2813
|
+
roles: any;
|
|
2814
|
+
};
|
|
2815
|
+
};
|
|
2816
|
+
export { requestMapper_107 as requestMapper };
|
|
2817
|
+
export function responseMapper_107(response: any): any;
|
|
2818
|
+
export { responseMapper_107 as responseMapper };
|
|
2819
|
+
}
|
|
2820
|
+
export { cnp_50 as cnp };
|
|
2821
|
+
}
|
|
2822
|
+
namespace GET_POWERBI_TOKEN {
|
|
2823
|
+
export namespace cnp_51 {
|
|
2824
|
+
let url_108: string;
|
|
2825
|
+
export { url_108 as url };
|
|
2826
|
+
import method_108 = methods.GET;
|
|
2827
|
+
export { method_108 as method };
|
|
2828
|
+
export function requestMapper_108(request: any): {
|
|
2829
|
+
mappedParams: any;
|
|
2830
|
+
};
|
|
2831
|
+
export { requestMapper_108 as requestMapper };
|
|
2832
|
+
export function responseMapper_108(response: any): any;
|
|
2833
|
+
export { responseMapper_108 as responseMapper };
|
|
2834
|
+
}
|
|
2801
2835
|
export { cnp_51 as cnp };
|
|
2802
2836
|
}
|
|
2803
2837
|
}
|
|
@@ -387,6 +387,24 @@ const partyModule = {
|
|
|
387
387
|
responseMapper: (response) => (0, party_1.partySearch)(response.data),
|
|
388
388
|
},
|
|
389
389
|
},
|
|
390
|
+
GET_PARTY_VALIDATION: {
|
|
391
|
+
default: {
|
|
392
|
+
url: 'party/v1/parties/{0}/{1}/validation',
|
|
393
|
+
method: exports.methods.GET,
|
|
394
|
+
source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/get",
|
|
395
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
396
|
+
responseMapper: (response) => response.data,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
POST_PARTY_VALIDATION: {
|
|
400
|
+
default: {
|
|
401
|
+
url: 'party/v1/parties/{0}/{1}/validation',
|
|
402
|
+
method: exports.methods.POST,
|
|
403
|
+
source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1validation/post",
|
|
404
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
405
|
+
responseMapper: (response) => response.data,
|
|
406
|
+
},
|
|
407
|
+
},
|
|
390
408
|
POST_AGE: {
|
|
391
409
|
default: {
|
|
392
410
|
url: '',
|