UNPKG

crunchyroll-js-api

Version:
220 lines (219 loc) 6.64 kB
declare namespace _default { export { addItemToCustomList }; export { addWatchlistItem }; export { changeCustomListItemPosition }; export { createPrivateCustomList }; export { deleteCustomListItem }; export { deletePrivateCustomList }; export { deleteWatchlistItem }; export { getCustomListItems }; export { getCustomLists }; export { getData }; export { getPlayheads }; export { getWatchHistory }; export { getWatchlistItems }; export { savePlayhead }; export { updateCustomList }; export { updateWatchlistItemFavoriteStatus }; } export default _default; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.listId * @param {String} obj.contentId * @returns {Promise} */ declare function addItemToCustomList({ account, listId, contentId }: { account: import('../types').AccountAuth; listId: string; contentId: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.contentId * @returns {Promise} */ declare function addWatchlistItem({ account, contentId }: { account: import('../types').AccountAuth; contentId: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.listId * @param {String} obj.contentId * @param {String} obj.location * @param {String} obj.refContentId * @returns {Promise} */ declare function changeCustomListItemPosition({ account, listId, contentId, location, refContentId }: { account: import('../types').AccountAuth; listId: string; contentId: string; location: string; refContentId: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.title * @returns {Promise<{data: Array<import('../types').CustomListResponse>}>} */ declare function createPrivateCustomList({ account, title }: { account: import('../types').AccountAuth; title: string; }): Promise<{ data: Array<import('../types').CustomListResponse>; }>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.listId * @param {String} obj.contentId * @returns {Promise} */ declare function deleteCustomListItem({ account, listId, contentId }: { account: import('../types').AccountAuth; listId: string; contentId: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.listId * @returns {Promise} */ declare function deletePrivateCustomList({ account, listId }: { account: import('../types').AccountAuth; listId: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.contentId * @returns {Promise} */ declare function deleteWatchlistItem({ account, contentId }: { account: import('../types').AccountAuth; contentId: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.listId * @param {String} [obj.page] * @param {String} [obj.pageSize] * @param {String} [obj.sort] manual, date_added * @param {String} [obj.order] asc, desc * @returns {Promise<Object>} */ declare function getCustomListItems({ account, listId, page, pageSize, sort, order }: { account: import('../types').AccountAuth; listId: string; page?: string; pageSize?: string; sort?: string; order?: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @returns {Promise<{total: Number, data: Object, meta: Object}>} */ declare function getCustomLists({ account }: { account: import('../types').AccountAuth; }): Promise<{ total: number; data: any; meta: any; }>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.method http method * @param {Boolean} [obj.baseUrlIncluded] * @param {String} obj.url if url incluse a domain pass baseUrlIncluded=true * @param {Object} [obj.body] * @param {Object} [obj.headers] * @param {Object} [obj.queryParams] * @returns {Promise<Object>} */ declare function getData({ account, method, baseUrlIncluded, url, body, headers, queryParams, }: { account: import('../types').AccountAuth; method: string; baseUrlIncluded?: boolean; url: string; body?: any; headers?: any; queryParams?: any; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {Array<String>} obj.contentIds * @returns {Promise<Object>} */ declare function getPlayheads({ account, contentIds }: { account: import('../types').AccountAuth; contentIds: Array<string>; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {Number} obj.page it has to be > 1 * @param {Number} obj.pageSize * @returns {Promise<Object>} */ declare function getWatchHistory({ account, page, pageSize }: { account: import('../types').AccountAuth; page: number; pageSize: number; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {Array<String>} [obj.contentIds] * @returns {Promise<Object>} */ declare function getWatchlistItems({ account, contentIds }: { account: import('../types').AccountAuth; contentIds?: Array<string>; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.contentId * @param {Number} obj.playhead * @returns {Promise} */ declare function savePlayhead({ account, contentId, playhead }: { account: import('../types').AccountAuth; contentId: string; playhead: number; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.listId * @param {String} obj.title * @returns {Promise} */ declare function updateCustomList({ account, listId, title }: { account: import('../types').AccountAuth; listId: string; title: string; }): Promise<any>; /** * @param {Object} obj * @param {import('../types').AccountAuth} obj.account * @param {String} obj.contentId * @param {Boolean} obj.isFavorite * @returns {Promise} */ declare function updateWatchlistItemFavoriteStatus({ account, contentId, isFavorite }: { account: import('../types').AccountAuth; contentId: string; isFavorite: boolean; }): Promise<any>;