intraactive-framework-restservice
v1.0.8
Published
REST calls for Sharepoint
Downloads
7
Keywords
Readme
IntraActive Framework - REST service
IntraActive Framework's "REST service" package is a collection of functions to work woth the SharePoint REST API
Installation
$ npm install intraactive-framework-restservice
Import
import { RestListService } from "intraactive-framework-restservice"
Usage
RestListService.getLists(): Promise<IList[]>
RestListService.getListByTitle(listName: string): Promise<IList>
RestListService.getListByGuid(listGuid: string): Promise<List>
RestListService.getListFields(list: IList): Promise<IODataField[]>
RestListService.getListItems(list: IList): Promise<ListItem[]>
RestListService.getListItem(list: IList, ID: number): Promise<IListItem>
RestListService.removeListItem(listItem: IListItem): Promise<boolean>
RestListService.updateListItem(listItem: IListItem): Promise<boolean>
RestListService.createListItem(list: IList, fieldValues: Map<string, any>, contentTypeId?: string): Promise<ListItem>
RestListService.validateFieldValues(list: IList, fieldValues: Map<string, any>): Promise<void>
RestListService.getUserPermissions(ownerId: string, memberId: string, visitorId: string, ): Promise<string>