UNPKG

spws

Version:

SharePoint Web Services Wrapper

23 lines (22 loc) 757 B
import { SpwsResponse } from "../types"; declare class SpwsRequest { escapeXml: (xml: string | number) => string; envelope: string; xhr: XMLHttpRequest; constructor({ webURL, webService, soapAction, }: { webService: string; webURL?: string; soapAction?: string; }); /** * Adds the body XML between the header and footer. * * @param body The body XML * @example * // Creates an envelope for a getList request * createEnvelope(`<GetList xmlns="http://schemas.microsoft.com/sharepoint/soap/"><listName>Announcements</listName></GetList>`) */ createEnvelope: (body: string) => this; send: () => Promise<SpwsResponse>; } export default SpwsRequest;