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.
91 lines (90 loc) • 2.86 kB
TypeScript
import { LoginWithGoogleInterface, SignUpInterface, SignUpWithGoogleInterface, LoginRequestInterface, LoginDeviceCredentialInterface } from "../interfaces/signInterface";
import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
import { LimitedTokenInterface } from "../interfaces/signInterface";
import { Gift } from "../interfaces";
export declare const useAuth: (baseUrl: string, nodeUrl: string, userInfo: UserInfo, tokenData: LimitedTokenInterface, programId: string, geoCoordinates?: IGeoCoordinates | null, lang?: string) => {
GetUser: (installationId: string, token?: string, userId?: string) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: {};
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
SignUpApi: (values: SignUpInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: {};
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
LoginRequest: (values: LoginRequestInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: {};
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
LoginDeviceCredential: (values: LoginDeviceCredentialInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: {};
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
SignUpWithGoogle: (values: SignUpWithGoogleInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: {};
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
LoginWithGoogle: (values: LoginWithGoogleInterface) => Promise<{
response: import("axios").AxiosResponse<any, any>;
newUser: {};
message: any;
status: string;
} | {
response: any;
newUser: any;
message: any;
status: string;
}>;
incrementPromotionParticipants: (giftData: Gift) => Promise<{
response: any;
newUser: any;
message: any;
status: string;
}>;
getPromotionDataByCode: (promotionCode: string) => Promise<{
response: any;
newUser: any;
message: any;
status: string;
}>;
getTwitterSpotlightPostIds: () => Promise<{
response: any;
newUser: any;
message: any;
status: string;
}>;
};