@microsoft/msgraph-sdk-core
Version:
Core functionalities for the Microsoft Graph JavaScript SDK
51 lines • 2.31 kB
TypeScript
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/**
* @module BatchResponseContentCollection
*/
import { BatchResponseContent } from "./BatchResponseContent.js";
import { Parsable, ParsableFactory, ParseNodeFactoryRegistry } from "@microsoft/kiota-abstractions";
/**
* Represents a collection of BatchResponseContent.
*/
export declare class BatchResponseContentCollection {
/**
* An array of BatchResponseContent.
*/
readonly batchResponseContent: BatchResponseContent[];
/**
* Initializes a new instance of the BatchResponseContentCollection class.
* @param responseContents - An array of BatchResponseContent.
*/
constructor(responseContents: BatchResponseContent[]);
/**
* Finds the BatchResponseContent containing the specified request ID.
* @param requestId - The ID of the request.
* @returns The BatchResponseContent containing the request ID, or undefined if not found.
*/
private getBatchContentContaining;
/**
* Gets the BatchResponse by the specified request ID.
* @param requestId - The ID of the request.
* @returns The BatchResponse with the specified request ID, or undefined if not found.
*/
private getResponseById;
/**
* Gets the parsable response by the specified request ID.
* @param requestId - The ID of the request.
* @param parseNodeFactoryRegistry - The registry to create parse nodes.
* @param factory - The factory to create the Parsable instance.
* @returns The parsable response, or undefined if not found.
*/
getParsableResponseById<T extends Parsable>(requestId: string, parseNodeFactoryRegistry: ParseNodeFactoryRegistry, factory: ParsableFactory<T>): T | undefined;
/**
* Gets the status codes of all responses.
* @returns A promise that resolves to a map of request IDs to status codes.
*/
getResponsesStatusCodes(): Promise<Map<string, number>>;
}
//# sourceMappingURL=BatchResponseContentCollection.d.ts.map