UNPKG

facebook-nodejs-business-sdk

Version:
59 lines (54 loc) 1.47 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'; /** * CalibratorExistingRule * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class CalibratorExistingRule extends AbstractCrudObject { static get Fields () { return Object.freeze({ value_7d_volume: '7d_volume', creation_source: 'creation_source', creation_time: 'creation_time', creator: 'creator', event_type: 'event_type', id: 'id', rule: 'rule', sample_urls: 'sample_urls', status: 'status' }); } static get CreationSource (): Object { return Object.freeze({ system_suggestion: 'SYSTEM_SUGGESTION', low_confidence_suggestion: 'LOW_CONFIDENCE_SUGGESTION', user_config: 'USER_CONFIG', iwl_suggestion: 'IWL_SUGGESTION', iwl_config: 'IWL_CONFIG' }); } getActivities (fields, params, fetchFirstPage = true): AbstractObject { return this.getEdge( AbstractObject, fields, params, fetchFirstPage, '/activities' ); } get (fields, params): CalibratorExistingRule { return this.read( fields, params ); } }