sysone-api-mapper 1.0.171 → 1.0.172

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.
@@ -19,6 +19,8 @@ export interface Api {
19
19
  updatePerson: (partyCode: string, data: any) => Promise<any>;
20
20
  getPartyValidation: (indentificationType: string, identificationValue: string) => Promise<any>;
21
21
  postPartyValidation: (indentificationType: string, identificationValue: string, data: any) => Promise<any>;
22
+ getPartyOnboarding: (indentificationType: string, identificationValue: string) => Promise<any>;
23
+ postPartyOnboarding: (indentificationType: string, identificationValue: string, data: any) => Promise<any>;
22
24
  };
23
25
  location: {
24
26
  getCountries: () => Promise<any>;
@@ -12,4 +12,6 @@ export function partyAdapter(tenant: any): {
12
12
  updatePerson: (partyCode: any, data: any) => Promise<any>;
13
13
  getPartyValidation: (indentificationType: any, identificationValue: any) => Promise<any>;
14
14
  postPartyValidation: (indentificationType: any, identificationValue: any, data: any) => Promise<any>;
15
+ getPartyOnboarding: (indentificationType: any, identificationValue: any) => Promise<any>;
16
+ postPartyOnboarding: (indentificationType: any, identificationValue: any, data: any) => Promise<any>;
15
17
  };
@@ -15,6 +15,8 @@ const partyAdapter = (tenant) => ({
15
15
  updatePaymentMethodsByPartyCode: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PAYMENT_METHODS_BY_PARTY_CODE", tenant, [partyCode], data),
16
16
  updatePerson: (partyCode, data) => (0, Mapper_1.apiMapper)("PUT_PERSON", tenant, [partyCode], data),
17
17
  getPartyValidation: (indentificationType, identificationValue) => (0, Mapper_1.apiMapper)("GET_PARTY_VALIDATION", tenant, [indentificationType, identificationValue]),
18
- postPartyValidation: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_VALIDATION", tenant, [indentificationType, identificationValue], data)
18
+ postPartyValidation: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_VALIDATION", tenant, [indentificationType, identificationValue], data),
19
+ getPartyOnboarding: (indentificationType, identificationValue) => (0, Mapper_1.apiMapper)("GET_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue]),
20
+ postPartyOnboarding: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue], data)
19
21
  });
20
22
  exports.partyAdapter = partyAdapter;
@@ -2759,69 +2759,73 @@ export namespace tenantsConfig {
2759
2759
  }
2760
2760
  export { _default_54 as default };
2761
2761
  }
2762
- namespace POST_AGE {
2762
+ namespace GET_PARTY_ONBOARDING {
2763
2763
  namespace _default_55 {
2764
2764
  let url_104: string;
2765
2765
  export { url_104 as url };
2766
- import method_104 = methods.POST;
2766
+ let method_104: any;
2767
2767
  export { method_104 as method };
2768
2768
  let source_62: string;
2769
2769
  export { source_62 as source };
2770
- export function requestMapper_104(params: any): {
2771
- mappedBody: any;
2770
+ export function requestMapper_104(request: any): {
2771
+ mappedParams: any;
2772
2772
  };
2773
2773
  export { requestMapper_104 as requestMapper };
2774
2774
  export function responseMapper_104(response: any): any;
2775
2775
  export { responseMapper_104 as responseMapper };
2776
2776
  }
2777
2777
  export { _default_55 as default };
2778
- export namespace cnp_49 {
2778
+ }
2779
+ namespace POST_PARTY_ONBOARDING {
2780
+ namespace _default_56 {
2779
2781
  let url_105: string;
2780
2782
  export { url_105 as url };
2781
- import method_105 = methods.POST;
2783
+ let method_105: any;
2782
2784
  export { method_105 as method };
2783
2785
  let source_63: string;
2784
2786
  export { source_63 as source };
2785
- export function requestMapper_105(params: any): {
2787
+ export function requestMapper_105(request: any): {
2786
2788
  mappedBody: any;
2787
2789
  };
2788
2790
  export { requestMapper_105 as requestMapper };
2789
2791
  export function responseMapper_105(response: any): any;
2790
2792
  export { responseMapper_105 as responseMapper };
2791
2793
  }
2792
- export { cnp_49 as cnp };
2794
+ export { _default_56 as default };
2793
2795
  }
2794
- namespace GET_INTERMEDIARY_STRUCTURE {
2795
- namespace _default_56 {
2796
+ namespace POST_AGE {
2797
+ namespace _default_57 {
2796
2798
  let url_106: string;
2797
2799
  export { url_106 as url };
2798
- import method_106 = methods.GET;
2800
+ import method_106 = methods.POST;
2799
2801
  export { method_106 as method };
2800
- export function requestMapper_106(request: any): {
2801
- mappedParams: any;
2802
+ let source_64: string;
2803
+ export { source_64 as source };
2804
+ export function requestMapper_106(params: any): {
2805
+ mappedBody: any;
2802
2806
  };
2803
2807
  export { requestMapper_106 as requestMapper };
2804
2808
  export function responseMapper_106(response: any): any;
2805
2809
  export { responseMapper_106 as responseMapper };
2806
2810
  }
2807
- export { _default_56 as default };
2808
- }
2809
- namespace GET_INTERMEDIARY_BY_CODE {
2810
- namespace _default_57 {
2811
+ export { _default_57 as default };
2812
+ export namespace cnp_49 {
2811
2813
  let url_107: string;
2812
2814
  export { url_107 as url };
2813
- import method_107 = methods.GET;
2815
+ import method_107 = methods.POST;
2814
2816
  export { method_107 as method };
2815
- export function requestMapper_107(request: any): {
2816
- mappedParams: any;
2817
+ let source_65: string;
2818
+ export { source_65 as source };
2819
+ export function requestMapper_107(params: any): {
2820
+ mappedBody: any;
2817
2821
  };
2818
2822
  export { requestMapper_107 as requestMapper };
2819
2823
  export function responseMapper_107(response: any): any;
2820
2824
  export { responseMapper_107 as responseMapper };
2821
2825
  }
2822
- export { _default_57 as default };
2826
+ export { cnp_49 as cnp };
2823
2827
  }
2824
- namespace GET_COMMERCIAL_STRUCTURE {
2828
+ namespace GET_INTERMEDIARY_STRUCTURE {
2825
2829
  namespace _default_58 {
2826
2830
  let url_108: string;
2827
2831
  export { url_108 as url };
@@ -2836,7 +2840,7 @@ export namespace tenantsConfig {
2836
2840
  }
2837
2841
  export { _default_58 as default };
2838
2842
  }
2839
- namespace GET_MODULES {
2843
+ namespace GET_INTERMEDIARY_BY_CODE {
2840
2844
  namespace _default_59 {
2841
2845
  let url_109: string;
2842
2846
  export { url_109 as url };
@@ -2850,24 +2854,24 @@ export namespace tenantsConfig {
2850
2854
  export { responseMapper_109 as responseMapper };
2851
2855
  }
2852
2856
  export { _default_59 as default };
2853
- export namespace cnp_50 {
2857
+ }
2858
+ namespace GET_COMMERCIAL_STRUCTURE {
2859
+ namespace _default_60 {
2854
2860
  let url_110: string;
2855
2861
  export { url_110 as url };
2856
2862
  import method_110 = methods.GET;
2857
2863
  export { method_110 as method };
2858
2864
  export function requestMapper_110(request: any): {
2859
- mappedParams: {
2860
- roles: any;
2861
- };
2865
+ mappedParams: any;
2862
2866
  };
2863
2867
  export { requestMapper_110 as requestMapper };
2864
2868
  export function responseMapper_110(response: any): any;
2865
2869
  export { responseMapper_110 as responseMapper };
2866
2870
  }
2867
- export { cnp_50 as cnp };
2871
+ export { _default_60 as default };
2868
2872
  }
2869
- namespace GET_POWERBI_TOKEN {
2870
- export namespace cnp_51 {
2873
+ namespace GET_MODULES {
2874
+ namespace _default_61 {
2871
2875
  let url_111: string;
2872
2876
  export { url_111 as url };
2873
2877
  import method_111 = methods.GET;
@@ -2879,6 +2883,36 @@ export namespace tenantsConfig {
2879
2883
  export function responseMapper_111(response: any): any;
2880
2884
  export { responseMapper_111 as responseMapper };
2881
2885
  }
2886
+ export { _default_61 as default };
2887
+ export namespace cnp_50 {
2888
+ let url_112: string;
2889
+ export { url_112 as url };
2890
+ import method_112 = methods.GET;
2891
+ export { method_112 as method };
2892
+ export function requestMapper_112(request: any): {
2893
+ mappedParams: {
2894
+ roles: any;
2895
+ };
2896
+ };
2897
+ export { requestMapper_112 as requestMapper };
2898
+ export function responseMapper_112(response: any): any;
2899
+ export { responseMapper_112 as responseMapper };
2900
+ }
2901
+ export { cnp_50 as cnp };
2902
+ }
2903
+ namespace GET_POWERBI_TOKEN {
2904
+ export namespace cnp_51 {
2905
+ let url_113: string;
2906
+ export { url_113 as url };
2907
+ import method_113 = methods.GET;
2908
+ export { method_113 as method };
2909
+ export function requestMapper_113(request: any): {
2910
+ mappedParams: any;
2911
+ };
2912
+ export { requestMapper_113 as requestMapper };
2913
+ export function responseMapper_113(response: any): any;
2914
+ export { responseMapper_113 as responseMapper };
2915
+ }
2882
2916
  export { cnp_51 as cnp };
2883
2917
  }
2884
2918
  }
@@ -424,6 +424,24 @@ const partyModule = {
424
424
  responseMapper: (response) => response.data,
425
425
  },
426
426
  },
427
+ GET_PARTY_ONBOARDING: {
428
+ default: {
429
+ url: 'party/v1/parties/{0}/{1}/onboarding',
430
+ method: exports.methods.GET,
431
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/get",
432
+ requestMapper: (request) => ({ mappedParams: request }),
433
+ responseMapper: (response) => response.data,
434
+ },
435
+ },
436
+ POST_PARTY_ONBOARDING: {
437
+ default: {
438
+ url: 'party/v1/parties/{0}/{1}/onboarding',
439
+ method: exports.methods.POST,
440
+ source: "https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bidentification-type-code%7D~1%7Bidentification-value%7D~1onboarding/post",
441
+ requestMapper: (request) => ({ mappedBody: request }),
442
+ responseMapper: (response) => response.data,
443
+ },
444
+ },
427
445
  POST_AGE: {
428
446
  default: {
429
447
  url: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.171",
3
+ "version": "1.0.172",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",