UNPKG

facebook-nodejs-business-sdk

Version:
56 lines (52 loc) 1.48 kB
/** * Copyright (c) 2017-present, Facebook, Inc. * 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'; import AbstractObject from './../abstract-object'; /** * DraftPost * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class DraftPost extends AbstractCrudObject { static get Fields () { return Object.freeze({ admin_creator: 'admin_creator', creation_time: 'creation_time', feed_audience_description: 'feed_audience_description', feed_targeting: 'feed_targeting', id: 'id', message: 'message', modified_time: 'modified_time', og_action_summary: 'og_action_summary', permalink_url: 'permalink_url', place: 'place', privacy_description: 'privacy_description', promotion_info: 'promotion_info', scheduled_publish_time: 'scheduled_publish_time', story_token: 'story_token', thumbnail: 'thumbnail', video_id: 'video_id' }); } getEditActions (fields, params, fetchFirstPage = true): AbstractObject { return this.getEdge( AbstractObject, fields, params, fetchFirstPage, '/edit_actions' ); } get (fields, params): DraftPost { return this.read( fields, params ); } }