UNPKG

@microsoft/mgt

Version:
89 lines (88 loc) 2.54 kB
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import { MgtTemplatedComponent } from '../templatedComponent'; /** * Custom element for making Microsoft Graph get queries * * @export * @class mgt-get * @extends {MgtTemplatedComponent} */ export declare class MgtGet extends MgtTemplatedComponent { /** * The resource to get * * @type {string} * @memberof MgtGet */ resource: string; /** * The resource to get * * @type {string[]} * @memberof MgtGet */ scopes: string[]; /** * Api version to use for request * * @type {string} * @memberof MgtGet */ version: string; /** * Maximum number of pages to get for the resource * default = 3 * if <= 0, all pages will be fetched * * @type {boolean} * @memberof MgtGet */ maxPages: number; /** * Gets or sets the response of the request * * @type {*} * @memberof MgtGet */ response: any; /** * * Gets or sets the error (if any) of the request * @type {*} * @memberof MgtGet */ error: any; private loading; private _firstUpdated; /** * Synchronizes property values when attributes change. * * @param {*} name * @param {*} oldValue * @param {*} newValue * @memberof MgtPersonCard */ attributeChangedCallback(name: any, oldval: any, newval: any): void; /** * Invoked when the element is first updated. Implement to perform one time * work on the element after update. * * Setting properties inside this method will trigger the element to update * again after this update cycle completes. * * * @param _changedProperties Map of changed properties with old values */ firstUpdated(): void; /** * Invoked on each update to perform rendering tasks. This method must return * a lit-html TemplateResult. Setting properties inside this method will *not* * trigger the element to update. */ protected render(): import("lit-element").TemplateResult; private loadData; }