sysone-api-mapper 1.0.151 → 1.0.153

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.
@@ -3,6 +3,7 @@ export interface Api {
3
3
  getCurrencies: () => Promise<any>;
4
4
  getPaymentFrecuencies: () => Promise<any>;
5
5
  getBanks: () => Promise<any>;
6
+ getCardTypes: () => Promise<any>;
6
7
  };
7
8
  party: {
8
9
  getGenders: () => Promise<any>;
@@ -2,4 +2,5 @@ export function financeAdapter(tenant: any): {
2
2
  getCurrencies: () => Promise<any>;
3
3
  getPaymentFrecuencies: () => Promise<any>;
4
4
  getBanks: () => Promise<any>;
5
+ getCardTypes: () => Promise<any>;
5
6
  };
@@ -5,6 +5,7 @@ const Mapper_1 = require("../mapper/Mapper");
5
5
  const financeAdapter = (tenant) => ({
6
6
  getCurrencies: () => (0, Mapper_1.apiMapper)("GET_CURRENCIES", tenant),
7
7
  getPaymentFrecuencies: () => (0, Mapper_1.apiMapper)("GET_PAYMENT_FRECUENCIES", tenant),
8
- getBanks: () => (0, Mapper_1.apiMapper)("GET_BANKS", tenant)
8
+ getBanks: () => (0, Mapper_1.apiMapper)("GET_BANKS", tenant),
9
+ getCardTypes: () => (0, Mapper_1.apiMapper)("GET_CREDIT_CARD_TYPES", tenant)
9
10
  });
10
11
  exports.financeAdapter = financeAdapter;
@@ -2,4 +2,5 @@ export function useActions(): any;
2
2
  export function ActionsProvider({ initialData, children }: {
3
3
  initialData: any;
4
4
  children: any;
5
- }): any;
5
+ }): React.JSX.Element;
6
+ import React from "react";
@@ -1,2 +1,3 @@
1
- export const ApiContext: any;
2
- export function useApi(): any;
1
+ import type { Api } from "../adapters/createApiAdapter";
2
+ export declare const ApiContext: import("react").Context<Api | undefined>;
3
+ export declare const useApi: () => Api;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useApi = exports.ApiContext = void 0;
4
4
  const react_1 = require("react");
5
- exports.ApiContext = (0, react_1.createContext)(null);
5
+ exports.ApiContext = (0, react_1.createContext)(undefined);
6
6
  const useApi = () => {
7
7
  const ctx = (0, react_1.useContext)(exports.ApiContext);
8
8
  if (!ctx)
@@ -2,4 +2,5 @@ export function useTranslation(): any;
2
2
  export function TranslationProvider({ initialData, children }: {
3
3
  initialData: any;
4
4
  children: any;
5
- }): any;
5
+ }): React.JSX.Element;
6
+ import React from "react";