UNPKG

@microsoft/mgt

Version:
37 lines (36 loc) 1.08 kB
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import { Client } from '@microsoft/microsoft-graph-client'; /** * Method to reduce repetitive requests to the Graph * * @export * @class Batch */ export declare class Batch { private static baseUrl; private requests; private scopes; private client; constructor(client: Client); /** * sets new request and scopes * * @param {string} id * @param {string} resource * @param {string[]} [scopes] * @memberof Batch */ get(id: string, resource: string, scopes?: string[]): void; /** * Promise to handle Graph request response * * @returns {Promise<any>} * @memberof Batch */ execute(): Promise<any>; }