UNPKG

@orfeas126/box-ui-elements

Version:
23 lines (22 loc) 582 B
/** * * @file Helper for the Box Folder Collaborations API * @author Box */ import ItemCollaborations from './ItemCollaborations'; class FolderCollaborations extends ItemCollaborations { /** * API URL for retrieving folder collaborations * * @param {string} id - Box folder ID * @return {string} Base URL for folders */ getUrl(id) { if (!id) { throw new Error('Missing folder ID!'); } return `${this.getBaseApiUrl()}/folders/${id}/collaborations`; } } export default FolderCollaborations; //# sourceMappingURL=FolderCollaborations.js.map