UNPKG

instagram-graph-api

Version:

A library to help perform requests to the Instagram Graph API.

23 lines (22 loc) 831 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetPageLifetimeInsightsResponse = void 0; const AbstractGetInsightsResponse_1 = require("../../AbstractGetInsightsResponse"); const ComplexMetric_1 = require("../../data/insights/ComplexMetric"); /** * Class that represents a response from a Page Insights request for Lifetime metrics. * * @author Tiago Grosso <tiagogrosso99@gmail.com> * @since 0.1.0 */ class GetPageLifetimeInsightsResponse extends AbstractGetInsightsResponse_1.AbstractGetInsightsResponse { /** * The constructor. * * @param body the body of the response. */ constructor(body) { super(body.data.map((elem) => new ComplexMetric_1.ComplexMetric(elem))); } } exports.GetPageLifetimeInsightsResponse = GetPageLifetimeInsightsResponse;