@hubs101/js-api-skd-client
Version:
Package for easy access to Event App API
47 lines (46 loc) • 5.45 kB
TypeScript
import { LoginResponse, ResetPasswordBody, SendResetPasswordBody } from "../context/types";
import { ColocatedEventDetailsResponse, ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, RegisterManagerInput, ResponseAccountEventsType, SessionType, FeedType, FeedInputType, FeedDetailsType } 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 _inviteSalesManager: (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 _deleteSalesManager: (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 _fetchColocatedEventDetails: (basePath: string, token: string, accountId: string, eventId: string) => Promise<ColocatedEventDetailsResponse>;
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>;
export declare const _fetchSessionTypes: (basePath: string, token: string, accountId: string) => Promise<SessionType[]>;
export declare const _updateSessionTypes: (basePath: string, token: string, accountId: string, data: {
session_types: string;
}) => Promise<AccountDetails>;
export declare const _fetchFeeds: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<FeedType>>;
export declare const _fetchFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<FeedDetailsType>;
export declare const _createFeed: (basePath: string, token: string, accountId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
export declare const _updateFeed: (basePath: string, token: string, accountId: string, feedId: string, data: FeedInputType, files: any[]) => Promise<any>;
export declare const _deleteFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<any>;