import BaseClient from '../../base'; /** * Base class for blocked list item details. * See {@link BlockListSyncRes} */ export interface BaseBlockListItemDetail { applicationKey: string; createdAtTime: number; updatedAtTime: number; userBlocked: boolean; } /** * Detail item for {@link BlockListSyncRes.blockedByUserList} */ export interface BlockedByListItemDetail extends BaseBlockListItemDetail { /** userId of the user who has blocked currently logged in user */ blockedBy: string; } /** * Detail item for {@link BlockListSyncRes.blockedToUserList} */ export interface BlockedToListItemDetail extends BaseBlockListItemDetail { /** userId of the user blocked by currently logged in user */ blockedTo: string; } /** * Response format for {@link BlockListSyncApi} */ export interface BlockListSyncRes { /** Other users who have blocked the currently logged in user */ blockedByUserList: BlockedByListItemDetail[]; /** Users blocked by currently logged in user */ blockedToUserList: BlockedToListItemDetail[]; } /** * For usage, see {@link ContactsApi.blockListSync} */ export interface BlockListSyncApi { /** * @param lastSyncTime Last sync time in miliseconds */ (lastSyncTime?: number): Promise; } declare const blockListSyncBuilder: (applozicClient: BaseClient) => BlockListSyncApi; export default blockListSyncBuilder;