@simplito/privmx-webendpoint
Version:
PrivMX Web Endpoint library
69 lines (68 loc) • 2.33 kB
TypeScript
import { Types } from "../../index";
export declare function createBaseEvent(subsId: string): {
type: string;
data: {};
channel: string;
connectionId: number;
subscriptions: string[];
version: number;
timestamp: number;
};
export declare const MOCK_INBOX_CREATED_EVENT: (subsId: string) => {
type: string;
channel: string;
data: {};
connectionId: number;
subscriptions: string[];
version: number;
timestamp: number;
};
export declare const MOCK_INBOX_ENTRY_DELETED_EVENT: (inboxID: string, subsId: string) => {
readonly type: "inboxEntryDeleted";
readonly channel: `inbox/${string}/entries`;
readonly data: {};
readonly connectionId: number;
readonly subscriptions: string[];
readonly version: number;
readonly timestamp: number;
};
export declare const MOCK_STORE_CREATED_EVENT: (subsId: string) => {
type: string;
channel: string;
data: {};
connectionId: number;
subscriptions: string[];
version: number;
timestamp: number;
};
export declare const MOCK_STORE_FILE_DELETED_EVENT: (storeID: string, subsId: string) => {
readonly type: "storeFileCreated";
readonly channel: `store/${string}/files`;
readonly data: {};
readonly connectionId: number;
readonly subscriptions: string[];
readonly version: number;
readonly timestamp: number;
};
export declare const MOCK_THREAD_CREATED_EVENT: (subsId: string) => {
type: string;
channel: string;
data: {};
connectionId: number;
subscriptions: string[];
version: number;
timestamp: number;
};
export declare const MOCK_THREAD_MESSAGE_DELETED_EVENT: (threadID: string, subsId: string) => {
readonly type: "threadNewMessage";
readonly channel: `thread/${string}/messages`;
readonly data: {};
readonly connectionId: number;
readonly subscriptions: string[];
readonly version: number;
readonly timestamp: number;
};
export declare const MOCK_CONNECTION_USER_ADDED_EVENT: (subsId: string) => Types.Event;
export declare const MOCK_CONNECTION_USER_STATUS_EVENT: (subsId: string) => Types.Event;
export declare const MOCK_LIB_CONNECTED_EVENT: (connectionId: number) => Types.Event;
export declare const MOCK_CUSTOM_EVENT: (subsId: string, contextId?: string, channelName?: string) => Types.Event;