UNPKG

facebook-nodejs-business-sdk

Version:

SDK for the Facebook Marketing API in Javascript and Node.js

94 lines (90 loc) 2.6 kB
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {AbstractCrudObject} from './../abstract-crud-object'; /** * InstagramInsightsResult * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class InstagramInsightsResult extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ description: 'description', id: 'id', name: 'name', period: 'period', title: 'title', total_value: 'total_value', values: 'values', }); } static get Breakdown (): Object { return Object.freeze({ action_type: 'action_type', follow_type: 'follow_type', story_navigation_action_type: 'story_navigation_action_type', surface_type: 'surface_type', }); } static get Metric (): Object { return Object.freeze({ clips_replays_count: 'clips_replays_count', comments: 'comments', follows: 'follows', ig_reels_aggregated_all_plays_count: 'ig_reels_aggregated_all_plays_count', ig_reels_avg_watch_time: 'ig_reels_avg_watch_time', ig_reels_video_view_total_time: 'ig_reels_video_view_total_time', impressions: 'impressions', likes: 'likes', navigation: 'navigation', peak_concurrent_viewers: 'peak_concurrent_viewers', plays: 'plays', profile_activity: 'profile_activity', profile_visits: 'profile_visits', quotes: 'quotes', reach: 'reach', replies: 'replies', reposts: 'reposts', saved: 'saved', shares: 'shares', thread_replies: 'thread_replies', total_interactions: 'total_interactions', video_views: 'video_views', views: 'views', }); } static get Period (): Object { return Object.freeze({ day: 'day', days_28: 'days_28', lifetime: 'lifetime', month: 'month', total_over_range: 'total_over_range', week: 'week', }); } static get MetricType (): Object { return Object.freeze({ default: 'default', time_series: 'time_series', total_value: 'total_value', }); } static get Timeframe (): Object { return Object.freeze({ last_14_days: 'last_14_days', last_30_days: 'last_30_days', last_90_days: 'last_90_days', prev_month: 'prev_month', this_month: 'this_month', this_week: 'this_week', }); } }