UNPKG

facebook-nodejs-business-sdk

Version:
54 lines (48 loc) 1.3 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'; /** * URL * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class URL extends AbstractCrudObject { static get Fields () { return Object.freeze({ app_links: 'app_links', development_instant_article: 'development_instant_article', engagement: 'engagement', id: 'id', instant_article: 'instant_article', og_object: 'og_object', ownership_permissions: 'ownership_permissions', scopes: 'scopes', }); } static get Scopes (): Object { return Object.freeze({ news_tab: 'NEWS_TAB', news_tab_dev_env: 'NEWS_TAB_DEV_ENV', }); } get (fields: Array<string>, params: Object = {}): URL { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } // $FlowFixMe : Support Generic Types update (fields: Array<string>, params: Object = {}): URL { // $FlowFixMe : Support Generic Types return super.update( params ); } }