UNPKG

facebook-nodejs-business-sdk

Version:

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

69 lines (61 loc) 1.91 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'; import AbstractObject from './../abstract-object'; /** * OpenBridgeConfiguration * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class OpenBridgeConfiguration extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ active: 'active', cloud_provider: 'cloud_provider', cloud_region: 'cloud_region', destination_id: 'destination_id', endpoint: 'endpoint', fallback_domain: 'fallback_domain', first_party_domain: 'first_party_domain', host_business_id: 'host_business_id', id: 'id', instance_id: 'instance_id', instance_version: 'instance_version', is_sgw_instance: 'is_sgw_instance', is_sgw_pixel_from_meta_pixel: 'is_sgw_pixel_from_meta_pixel', partner_name: 'partner_name', pixel_id: 'pixel_id', sgw_account_id: 'sgw_account_id', sgw_instance_url: 'sgw_instance_url', sgw_pixel_id: 'sgw_pixel_id', }); } // $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 = {}): OpenBridgeConfiguration { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } // $FlowFixMe : Support Generic Types update (fields: Array<string>, params: Object = {}): OpenBridgeConfiguration { // $FlowFixMe : Support Generic Types return super.update( params ); } }