UNPKG

facebook-nodejs-business-sdk

Version:
51 lines (46 loc) 1.2 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'; /** * VideoCopyrightRule * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class VideoCopyrightRule extends AbstractCrudObject { static get Fields () { return Object.freeze({ condition_groups: 'condition_groups', copyrights: 'copyrights', created_date: 'created_date', creator: 'creator', id: 'id', is_in_migration: 'is_in_migration', name: 'name' }); } static get Source (): Object { return Object.freeze({ match_settings_dialog: 'MATCH_SETTINGS_DIALOG', rules_selector: 'RULES_SELECTOR', rules_tab: 'RULES_TAB' }); } delete (fields, params): AbstractObject { return super.delete( params ); } get (fields, params): VideoCopyrightRule { return this.read( fields, params ); } }