ggez-banking-sdk
Version:
A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.
30 lines (29 loc) • 1.34 kB
TypeScript
import { AxiosResponse } from "axios";
import { LimitedTokenInterface, LoginRequestInterface, LoginDeviceCredentialInterface, LoginWithGoogleInterface } from "../interfaces/signInterface";
export type HeadersData = {
header: boolean;
isUrlEncoded: boolean;
token: string | null | AxiosResponse<any, any>;
lang?: string;
installationId?: string | null;
disableCache?: boolean;
};
declare const Helper: (userInfo: any) => {
checkResponse: () => {
checkUserResponseAuth: (response: any, showMessageSuccess: boolean, funcName: string) => any;
checkGlobalResponse: (key: string, response: any, funcName: string, keyAction?: string) => {
newUserInfo: any;
};
errorHandler: (error: any, funcName: string, response?: string) => never;
};
headerConfig: (headersData: HeadersData) => any;
convertDataToUrlEncoded: () => {
dataSignInUrlEncoded: (values: LoginRequestInterface, programId: string) => string;
dataSignInDeviceEncoded: (values: LoginDeviceCredentialInterface, programId: string) => string;
dataSignInUrlEncodedWithGoogle: (values: LoginWithGoogleInterface, programId: string) => string;
dataTokenUrlEncoded: (values: LimitedTokenInterface) => {
installationId: string;
};
};
};
export default Helper;