UNPKG

facebook-nodejs-business-sdk

Version:

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

73 lines (67 loc) 2.36 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'; /** * AdsReportBuilderSavedReport * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class AdsReportBuilderSavedReport extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ action_report_time: 'action_report_time', ad_account_id: 'ad_account_id', attribution_windows: 'attribution_windows', comparison_date_interval: 'comparison_date_interval', creation_source: 'creation_source', creation_time: 'creation_time', currency: 'currency', date_interval: 'date_interval', date_preset: 'date_preset', default_attribution_windows: 'default_attribution_windows', dimension_groups: 'dimension_groups', dimensions: 'dimensions', filtering: 'filtering', formatting: 'formatting', id: 'id', last_access_by: 'last_access_by', last_access_time: 'last_access_time', last_report_snapshot_id: 'last_report_snapshot_id', last_report_snapshot_time: 'last_report_snapshot_time', last_shared_report_expiration: 'last_shared_report_expiration', limit: 'limit', locked_dimensions: 'locked_dimensions', metrics: 'metrics', report_name: 'report_name', report_snapshot_async_percent_completion: 'report_snapshot_async_percent_completion', report_snapshot_async_status: 'report_snapshot_async_status', schedule_frequency: 'schedule_frequency', scope: 'scope', show_deprecate_aw_banner: 'show_deprecate_aw_banner', sorting: 'sorting', start_date: 'start_date', status: 'status', subscribers: 'subscribers', update_by: 'update_by', update_time: 'update_time', user: 'user', user_dimensions: 'user_dimensions', user_metrics: 'user_metrics', view_type: 'view_type', }); } get (fields: Array<string>, params: Object = {}): AdsReportBuilderSavedReport { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } }