@hubs101/js-api-skd-client
Version:
Package for easy access to Event App API
35 lines (34 loc) • 3.97 kB
TypeScript
import { LoginResponse, ResetPasswordBody, SendResetPasswordBody } from "../context/types";
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, RegisterManagerInput, ResponseAccountEventsType } from "./types";
import { APIResponse } from "../../types/base";
import { AccountDetails, GroupType } from "../event/types";
import { ResponsePaginationType } from "../public/types";
export declare const _login: (basePath: string, email: string, password: string) => Promise<LoginResponse>;
export declare const _logout: (basePath: string, token: string) => Promise<APIResponse>;
export declare const _resetPassword: (basePath: string, body: ResetPasswordBody) => Promise<APIResponse>;
export declare const _sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<APIResponse>;
export declare const _fetchPaymentAccount: (basePath: string, token: string, paymentAccountId: string) => Promise<any>;
export declare const _fetchPaymentAccounts: (basePath: string, token: string, accountId: string) => Promise<any>;
export declare const _createPaymentAccount: (basePath: string, token: string, data: any) => Promise<any>;
export declare const _updatePaymentAccount: (basePath: string, token: string, paymentAccountId: string, data: any) => Promise<any>;
export declare const _inviteContentManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
export declare const _deleteContentManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
export declare const _registerManager: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
export declare const _registerManagerNative: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
export declare const _confirmManager: (basePath: string, accountId: string, data: any) => Promise<any>;
export declare const _confirmManagerNative: (basePath: string, accountId: string, data: any) => Promise<any>;
export declare const _inviteFinanceManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
export declare const _deleteFinanceManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
export declare const _deletePaymentAccount: (basePath: string, token: string, paymentAccountId: string) => Promise<any>;
export declare const _fetchAccountEvents: (basePath: string, token: string, url: string) => Promise<ResponseAccountEventsType>;
export declare const _fetchEventsByAccount: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponseAccountEventsType>;
export declare const _fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
export declare const _createAccountGroup: (basePath: string, token: string, accountId: string, data: GroupInputType) => Promise<GroupResponseType>;
export declare const _updateAccountGroup: (basePath: string, token: string, accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
export declare const _fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
export declare const _createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
export declare const _editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
export declare const _deleteColocatedEvents: (basePath: string, token: string, id: string) => Promise<string>;
export declare const _updatePackages: (basePath: string, token: string, accountId: string, data: {
packages: PackageType[];
}) => Promise<AccountDetails>;