UNPKG

facebook-nodejs-business-sdk

Version:

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

50 lines (44 loc) 1.38 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'; /** * SavedAudience * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class SavedAudience extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ account: 'account', approximate_count_lower_bound: 'approximate_count_lower_bound', approximate_count_upper_bound: 'approximate_count_upper_bound', delete_time: 'delete_time', description: 'description', id: 'id', name: 'name', operation_status: 'operation_status', owner_business: 'owner_business', page_deletion_marked_delete_time: 'page_deletion_marked_delete_time', permission_for_actions: 'permission_for_actions', run_status: 'run_status', sentence_lines: 'sentence_lines', targeting: 'targeting', time_created: 'time_created', time_updated: 'time_updated', }); } get (fields: Array<string>, params: Object = {}): SavedAudience { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } }