UNPKG

facebook-nodejs-business-sdk

Version:
133 lines (126 loc) 3.81 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'; /** * PageCallToAction * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class PageCallToAction extends AbstractCrudObject { static get Fields () { return Object.freeze({ android_app: 'android_app', android_deeplink: 'android_deeplink', android_destination_type: 'android_destination_type', android_package_name: 'android_package_name', android_url: 'android_url', created_time: 'created_time', email_address: 'email_address', from: 'from', id: 'id', intl_number_with_plus: 'intl_number_with_plus', iphone_app: 'iphone_app', iphone_deeplink: 'iphone_deeplink', iphone_destination_type: 'iphone_destination_type', iphone_url: 'iphone_url', status: 'status', type: 'type', updated_time: 'updated_time', web_destination_type: 'web_destination_type', web_url: 'web_url', }); } static get AndroidDestinationType (): Object { return Object.freeze({ app_deeplink: 'APP_DEEPLINK', email: 'EMAIL', facebook_app: 'FACEBOOK_APP', messenger: 'MESSENGER', none: 'NONE', phone_call: 'PHONE_CALL', shop_on_facebook: 'SHOP_ON_FACEBOOK', website: 'WEBSITE', }); } static get IphoneDestinationType (): Object { return Object.freeze({ app_deeplink: 'APP_DEEPLINK', email: 'EMAIL', facebook_app: 'FACEBOOK_APP', messenger: 'MESSENGER', none: 'NONE', phone_call: 'PHONE_CALL', shop_on_facebook: 'SHOP_ON_FACEBOOK', website: 'WEBSITE', }); } static get Type (): Object { return Object.freeze({ book_appointment: 'BOOK_APPOINTMENT', book_now: 'BOOK_NOW', buy_tickets: 'BUY_TICKETS', call_now: 'CALL_NOW', charity_donate: 'CHARITY_DONATE', contact_us: 'CONTACT_US', donate_now: 'DONATE_NOW', email: 'EMAIL', get_directions: 'GET_DIRECTIONS', get_offer: 'GET_OFFER', get_offer_view: 'GET_OFFER_VIEW', interested: 'INTERESTED', learn_more: 'LEARN_MORE', listen: 'LISTEN', local_dev_platform: 'LOCAL_DEV_PLATFORM', message: 'MESSAGE', open_app: 'OPEN_APP', play_music: 'PLAY_MUSIC', play_now: 'PLAY_NOW', request_appointment: 'REQUEST_APPOINTMENT', request_quote: 'REQUEST_QUOTE', shop_now: 'SHOP_NOW', shop_on_facebook: 'SHOP_ON_FACEBOOK', sign_up: 'SIGN_UP', visit_group: 'VISIT_GROUP', watch_now: 'WATCH_NOW', woodhenge_support: 'WOODHENGE_SUPPORT', }); } static get WebDestinationType (): Object { return Object.freeze({ become_supporter: 'BECOME_SUPPORTER', email: 'EMAIL', messenger: 'MESSENGER', none: 'NONE', shop_on_facebook: 'SHOP_ON_FACEBOOK', website: 'WEBSITE', }); } // $FlowFixMe : Support Generic Types delete (fields: Array<string>, params: Object = {}): AbstractObject { // $FlowFixMe : Support Generic Types return super.delete( params ); } get (fields: Array<string>, params: Object = {}): PageCallToAction { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } // $FlowFixMe : Support Generic Types update (fields: Array<string>, params: Object = {}): PageCallToAction { // $FlowFixMe : Support Generic Types return super.update( params ); } }