UNPKG

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.

17 lines (16 loc) 1.44 kB
import { AxiosRequestConfig, InternalAxiosRequestConfig } from "axios"; import { ClientContextProvider } from "../.."; import { CookiesHelper } from "../../.."; import type { AuthService } from "../../../api/service/authService"; type TGetAxiosConfig = (token: string, baseURL: string, lang?: string, installationId?: string) => AxiosRequestConfig; type TGetAuthAxiosConfig = (baseURL: string, lang: string, installationId: string) => AxiosRequestConfig; type TAddAxiosConfigHeader = (config: AxiosRequestConfig, key: string, value: string) => void; type TInjectRequest<D> = (req: InternalAxiosRequestConfig<D>) => InternalAxiosRequestConfig<D>; type InjectBaseHeaders<D> = (req: InternalAxiosRequestConfig, context: ClientContextProvider, cookiesHelper: CookiesHelper) => Promise<InternalAxiosRequestConfig<D>>; type InjectLimitedToken = (req: InternalAxiosRequestConfig, authService: AuthService, cookiesHelper: CookiesHelper) => Promise<InternalAxiosRequestConfig>; type GetLimitedToken = (authService: AuthService, cookiesHelper: CookiesHelper) => Promise<string | null>; type GetLimitedAuthHeaders = (authService: AuthService, cookiesHelper: CookiesHelper) => Promise<{ Authorization: string; } | undefined>; type Bearer = (token: string) => string; export { TGetAxiosConfig, TGetAuthAxiosConfig, TAddAxiosConfigHeader, TInjectRequest, InjectBaseHeaders, InjectLimitedToken, GetLimitedToken, GetLimitedAuthHeaders, Bearer, };