sysone-api-mapper 1.0.158 → 1.0.159
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.
|
@@ -5,5 +5,6 @@ const Mapper_1 = require("../mapper/Mapper");
|
|
|
5
5
|
const collectionAdapter = (tenant) => ({
|
|
6
6
|
getCollections: (params) => (0, Mapper_1.apiMapper)("GET_COLLECTIONS", tenant, params),
|
|
7
7
|
getCollectionStatuses: () => (0, Mapper_1.apiMapper)("GET_COLLECTION_STATUSES", tenant),
|
|
8
|
+
getPaymentTypes: () => (0, Mapper_1.apiMapper)("GET_PAYMENT_TYPES", tenant),
|
|
8
9
|
});
|
|
9
10
|
exports.collectionAdapter = collectionAdapter;
|
|
@@ -2564,13 +2564,11 @@ export namespace tenantsConfig {
|
|
|
2564
2564
|
export { cnp_45 as cnp };
|
|
2565
2565
|
}
|
|
2566
2566
|
namespace GET_PAYMENT_TYPES {
|
|
2567
|
-
|
|
2567
|
+
namespace _default_46 {
|
|
2568
2568
|
let url_92: string;
|
|
2569
2569
|
export { url_92 as url };
|
|
2570
2570
|
import method_92 = methods.GET;
|
|
2571
2571
|
export { method_92 as method };
|
|
2572
|
-
let source_56: string;
|
|
2573
|
-
export { source_56 as source };
|
|
2574
2572
|
export function requestMapper_92(request: any): {
|
|
2575
2573
|
mappedParams: any;
|
|
2576
2574
|
};
|
|
@@ -2578,16 +2576,14 @@ export namespace tenantsConfig {
|
|
|
2578
2576
|
export function responseMapper_92(response: any): any;
|
|
2579
2577
|
export { responseMapper_92 as responseMapper };
|
|
2580
2578
|
}
|
|
2581
|
-
export {
|
|
2582
|
-
|
|
2583
|
-
namespace GET_BRANCHES {
|
|
2584
|
-
export namespace cnp_47 {
|
|
2579
|
+
export { _default_46 as default };
|
|
2580
|
+
export namespace cnp_46 {
|
|
2585
2581
|
let url_93: string;
|
|
2586
2582
|
export { url_93 as url };
|
|
2587
2583
|
import method_93 = methods.GET;
|
|
2588
2584
|
export { method_93 as method };
|
|
2589
|
-
let
|
|
2590
|
-
export {
|
|
2585
|
+
let source_56: string;
|
|
2586
|
+
export { source_56 as source };
|
|
2591
2587
|
export function requestMapper_93(request: any): {
|
|
2592
2588
|
mappedParams: any;
|
|
2593
2589
|
};
|
|
@@ -2595,16 +2591,16 @@ export namespace tenantsConfig {
|
|
|
2595
2591
|
export function responseMapper_93(response: any): any;
|
|
2596
2592
|
export { responseMapper_93 as responseMapper };
|
|
2597
2593
|
}
|
|
2598
|
-
export {
|
|
2594
|
+
export { cnp_46 as cnp };
|
|
2599
2595
|
}
|
|
2600
|
-
namespace
|
|
2601
|
-
namespace
|
|
2596
|
+
namespace GET_BRANCHES {
|
|
2597
|
+
export namespace cnp_47 {
|
|
2602
2598
|
let url_94: string;
|
|
2603
2599
|
export { url_94 as url };
|
|
2604
2600
|
import method_94 = methods.GET;
|
|
2605
2601
|
export { method_94 as method };
|
|
2606
|
-
let
|
|
2607
|
-
export {
|
|
2602
|
+
let source_57: string;
|
|
2603
|
+
export { source_57 as source };
|
|
2608
2604
|
export function requestMapper_94(request: any): {
|
|
2609
2605
|
mappedParams: any;
|
|
2610
2606
|
};
|
|
@@ -2612,52 +2608,54 @@ export namespace tenantsConfig {
|
|
|
2612
2608
|
export function responseMapper_94(response: any): any;
|
|
2613
2609
|
export { responseMapper_94 as responseMapper };
|
|
2614
2610
|
}
|
|
2615
|
-
export {
|
|
2616
|
-
|
|
2611
|
+
export { cnp_47 as cnp };
|
|
2612
|
+
}
|
|
2613
|
+
namespace GET_PARTIES {
|
|
2614
|
+
namespace _default_47 {
|
|
2617
2615
|
let url_95: string;
|
|
2618
2616
|
export { url_95 as url };
|
|
2619
2617
|
import method_95 = methods.GET;
|
|
2620
2618
|
export { method_95 as method };
|
|
2619
|
+
let source_58: string;
|
|
2620
|
+
export { source_58 as source };
|
|
2621
|
+
export function requestMapper_95(request: any): {
|
|
2622
|
+
mappedParams: any;
|
|
2623
|
+
};
|
|
2624
|
+
export { requestMapper_95 as requestMapper };
|
|
2625
|
+
export function responseMapper_95(response: any): any;
|
|
2626
|
+
export { responseMapper_95 as responseMapper };
|
|
2627
|
+
}
|
|
2628
|
+
export { _default_47 as default };
|
|
2629
|
+
export namespace cnp_48 {
|
|
2630
|
+
let url_96: string;
|
|
2631
|
+
export { url_96 as url };
|
|
2632
|
+
import method_96 = methods.GET;
|
|
2633
|
+
export { method_96 as method };
|
|
2621
2634
|
let source_59: string;
|
|
2622
2635
|
export { source_59 as source };
|
|
2623
|
-
export function
|
|
2636
|
+
export function requestMapper_96(request: any): {
|
|
2624
2637
|
mappedParams: {
|
|
2625
2638
|
firstName: any;
|
|
2626
2639
|
lastName: any;
|
|
2627
2640
|
identification: any;
|
|
2628
2641
|
};
|
|
2629
2642
|
};
|
|
2630
|
-
export {
|
|
2631
|
-
export function
|
|
2643
|
+
export { requestMapper_96 as requestMapper };
|
|
2644
|
+
export function responseMapper_96(response: any): {
|
|
2632
2645
|
values: any;
|
|
2633
2646
|
};
|
|
2634
|
-
export {
|
|
2647
|
+
export { responseMapper_96 as responseMapper };
|
|
2635
2648
|
}
|
|
2636
2649
|
export { cnp_48 as cnp };
|
|
2637
2650
|
}
|
|
2638
2651
|
namespace POST_AGE {
|
|
2639
|
-
namespace
|
|
2640
|
-
let url_96: string;
|
|
2641
|
-
export { url_96 as url };
|
|
2642
|
-
import method_96 = methods.POST;
|
|
2643
|
-
export { method_96 as method };
|
|
2644
|
-
let source_60: string;
|
|
2645
|
-
export { source_60 as source };
|
|
2646
|
-
export function requestMapper_96(params: any): {
|
|
2647
|
-
mappedBody: any;
|
|
2648
|
-
};
|
|
2649
|
-
export { requestMapper_96 as requestMapper };
|
|
2650
|
-
export function responseMapper_96(response: any): any;
|
|
2651
|
-
export { responseMapper_96 as responseMapper };
|
|
2652
|
-
}
|
|
2653
|
-
export { _default_47 as default };
|
|
2654
|
-
export namespace cnp_49 {
|
|
2652
|
+
namespace _default_48 {
|
|
2655
2653
|
let url_97: string;
|
|
2656
2654
|
export { url_97 as url };
|
|
2657
2655
|
import method_97 = methods.POST;
|
|
2658
2656
|
export { method_97 as method };
|
|
2659
|
-
let
|
|
2660
|
-
export {
|
|
2657
|
+
let source_60: string;
|
|
2658
|
+
export { source_60 as source };
|
|
2661
2659
|
export function requestMapper_97(params: any): {
|
|
2662
2660
|
mappedBody: any;
|
|
2663
2661
|
};
|
|
@@ -2665,24 +2663,24 @@ export namespace tenantsConfig {
|
|
|
2665
2663
|
export function responseMapper_97(response: any): any;
|
|
2666
2664
|
export { responseMapper_97 as responseMapper };
|
|
2667
2665
|
}
|
|
2668
|
-
export {
|
|
2669
|
-
|
|
2670
|
-
namespace GET_INTERMEDIARY_STRUCTURE {
|
|
2671
|
-
namespace _default_48 {
|
|
2666
|
+
export { _default_48 as default };
|
|
2667
|
+
export namespace cnp_49 {
|
|
2672
2668
|
let url_98: string;
|
|
2673
2669
|
export { url_98 as url };
|
|
2674
|
-
import method_98 = methods.
|
|
2670
|
+
import method_98 = methods.POST;
|
|
2675
2671
|
export { method_98 as method };
|
|
2676
|
-
|
|
2677
|
-
|
|
2672
|
+
let source_61: string;
|
|
2673
|
+
export { source_61 as source };
|
|
2674
|
+
export function requestMapper_98(params: any): {
|
|
2675
|
+
mappedBody: any;
|
|
2678
2676
|
};
|
|
2679
2677
|
export { requestMapper_98 as requestMapper };
|
|
2680
2678
|
export function responseMapper_98(response: any): any;
|
|
2681
2679
|
export { responseMapper_98 as responseMapper };
|
|
2682
2680
|
}
|
|
2683
|
-
export {
|
|
2681
|
+
export { cnp_49 as cnp };
|
|
2684
2682
|
}
|
|
2685
|
-
namespace
|
|
2683
|
+
namespace GET_INTERMEDIARY_STRUCTURE {
|
|
2686
2684
|
namespace _default_49 {
|
|
2687
2685
|
let url_99: string;
|
|
2688
2686
|
export { url_99 as url };
|
|
@@ -2697,7 +2695,7 @@ export namespace tenantsConfig {
|
|
|
2697
2695
|
}
|
|
2698
2696
|
export { _default_49 as default };
|
|
2699
2697
|
}
|
|
2700
|
-
namespace
|
|
2698
|
+
namespace GET_INTERMEDIARY_BY_CODE {
|
|
2701
2699
|
namespace _default_50 {
|
|
2702
2700
|
let url_100: string;
|
|
2703
2701
|
export { url_100 as url };
|
|
@@ -2712,7 +2710,7 @@ export namespace tenantsConfig {
|
|
|
2712
2710
|
}
|
|
2713
2711
|
export { _default_50 as default };
|
|
2714
2712
|
}
|
|
2715
|
-
namespace
|
|
2713
|
+
namespace GET_COMMERCIAL_STRUCTURE {
|
|
2716
2714
|
namespace _default_51 {
|
|
2717
2715
|
let url_101: string;
|
|
2718
2716
|
export { url_101 as url };
|
|
@@ -2726,35 +2724,50 @@ export namespace tenantsConfig {
|
|
|
2726
2724
|
export { responseMapper_101 as responseMapper };
|
|
2727
2725
|
}
|
|
2728
2726
|
export { _default_51 as default };
|
|
2729
|
-
|
|
2727
|
+
}
|
|
2728
|
+
namespace GET_MODULES {
|
|
2729
|
+
namespace _default_52 {
|
|
2730
2730
|
let url_102: string;
|
|
2731
2731
|
export { url_102 as url };
|
|
2732
2732
|
import method_102 = methods.GET;
|
|
2733
2733
|
export { method_102 as method };
|
|
2734
2734
|
export function requestMapper_102(request: any): {
|
|
2735
|
-
mappedParams:
|
|
2736
|
-
roles: any;
|
|
2737
|
-
};
|
|
2735
|
+
mappedParams: any;
|
|
2738
2736
|
};
|
|
2739
2737
|
export { requestMapper_102 as requestMapper };
|
|
2740
2738
|
export function responseMapper_102(response: any): any;
|
|
2741
2739
|
export { responseMapper_102 as responseMapper };
|
|
2742
2740
|
}
|
|
2743
|
-
export {
|
|
2744
|
-
|
|
2745
|
-
namespace GET_POWERBI_TOKEN {
|
|
2746
|
-
export namespace cnp_51 {
|
|
2741
|
+
export { _default_52 as default };
|
|
2742
|
+
export namespace cnp_50 {
|
|
2747
2743
|
let url_103: string;
|
|
2748
2744
|
export { url_103 as url };
|
|
2749
2745
|
import method_103 = methods.GET;
|
|
2750
2746
|
export { method_103 as method };
|
|
2751
2747
|
export function requestMapper_103(request: any): {
|
|
2752
|
-
mappedParams:
|
|
2748
|
+
mappedParams: {
|
|
2749
|
+
roles: any;
|
|
2750
|
+
};
|
|
2753
2751
|
};
|
|
2754
2752
|
export { requestMapper_103 as requestMapper };
|
|
2755
2753
|
export function responseMapper_103(response: any): any;
|
|
2756
2754
|
export { responseMapper_103 as responseMapper };
|
|
2757
2755
|
}
|
|
2756
|
+
export { cnp_50 as cnp };
|
|
2757
|
+
}
|
|
2758
|
+
namespace GET_POWERBI_TOKEN {
|
|
2759
|
+
export namespace cnp_51 {
|
|
2760
|
+
let url_104: string;
|
|
2761
|
+
export { url_104 as url };
|
|
2762
|
+
import method_104 = methods.GET;
|
|
2763
|
+
export { method_104 as method };
|
|
2764
|
+
export function requestMapper_104(request: any): {
|
|
2765
|
+
mappedParams: any;
|
|
2766
|
+
};
|
|
2767
|
+
export { requestMapper_104 as requestMapper };
|
|
2768
|
+
export function responseMapper_104(response: any): any;
|
|
2769
|
+
export { responseMapper_104 as responseMapper };
|
|
2770
|
+
}
|
|
2758
2771
|
export { cnp_51 as cnp };
|
|
2759
2772
|
}
|
|
2760
2773
|
}
|
|
@@ -340,6 +340,12 @@ const partyModule = {
|
|
|
340
340
|
},
|
|
341
341
|
},
|
|
342
342
|
GET_PAYMENT_TYPES: {
|
|
343
|
+
default: {
|
|
344
|
+
url: 'collection/v1/payment-types',
|
|
345
|
+
method: exports.methods.GET,
|
|
346
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
347
|
+
responseMapper: (response) => response.data,
|
|
348
|
+
},
|
|
343
349
|
cnp: {
|
|
344
350
|
url: 'party/v1/payment-types',
|
|
345
351
|
method: exports.methods.GET,
|