UNPKG

facebook-nodejs-business-sdk

Version:

SDK for the Facebook Marketing API in Javascript and Node.js

69 lines (63 loc) 1.89 kB
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * 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'; /** * VideoCopyrightMatch * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class VideoCopyrightMatch extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ created_date: 'created_date', id: 'id', last_modified_user: 'last_modified_user', match_data: 'match_data', match_status: 'match_status', notes: 'notes', permalink: 'permalink', }); } static get Action (): Object { return Object.freeze({ block: 'BLOCK', claim_ad_earnings: 'CLAIM_AD_EARNINGS', manual_review: 'MANUAL_REVIEW', monitor: 'MONITOR', request_takedown: 'REQUEST_TAKEDOWN', }); } static get ActionReason (): Object { return Object.freeze({ article_17_preflagging: 'ARTICLE_17_PREFLAGGING', artist_objection: 'ARTIST_OBJECTION', objectionable_content: 'OBJECTIONABLE_CONTENT', premium_music_video: 'PREMIUM_MUSIC_VIDEO', prerelease_content: 'PRERELEASE_CONTENT', product_parameters: 'PRODUCT_PARAMETERS', restricted_content: 'RESTRICTED_CONTENT', unauthorized_commercial_use: 'UNAUTHORIZED_COMMERCIAL_USE', }); } static get MatchContentType (): Object { return Object.freeze({ audio_only: 'AUDIO_ONLY', video_and_audio: 'VIDEO_AND_AUDIO', video_only: 'VIDEO_ONLY', }); } get (fields: Array<string>, params: Object = {}): VideoCopyrightMatch { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } }