UNPKG

instagram-graph-api

Version:

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

23 lines (22 loc) 899 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractGetPageTimedInsightsRequest = void 0; const AbstractGetPageInsightsRequest_1 = require("./AbstractGetPageInsightsRequest"); const GetPageTimedInsightsResponse_1 = require("./GetPageTimedInsightsResponse"); /** * An abstract class to represent Page Insights Get Requests that query a metric that is time bound. * * @param T the type of the metrics of the request. * * @author Tiago Grosso <tiagogrosso99@gmail.com> * @since 0.2.0 */ class AbstractGetPageTimedInsightsRequest extends AbstractGetPageInsightsRequest_1.AbstractGetPageInsightsRequest { /** * @inheritdoc */ parseResponse(response) { return new GetPageTimedInsightsResponse_1.GetPageTimedInsightsResponse(response.data); } } exports.AbstractGetPageTimedInsightsRequest = AbstractGetPageTimedInsightsRequest;