facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
46 lines (40 loc) • 1.15 kB
JavaScript
/**
* 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';
/**
* PageChangeProposal
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class PageChangeProposal extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
acceptance_status: 'acceptance_status',
category: 'category',
current_value: 'current_value',
id: 'id',
proposed_value: 'proposed_value',
upcoming_change_info: 'upcoming_change_info',
});
}
get (fields: Array<string>, params: Object = {}): PageChangeProposal {
// $FlowFixMe : Support Generic Types
return this.read(
fields,
params
);
}
// $FlowFixMe : Support Generic Types
update (fields: Array<string>, params: Object = {}): PageChangeProposal {
// $FlowFixMe : Support Generic Types
return super.update(
params
);
}
}