-
Notifications
You must be signed in to change notification settings - Fork 223
/
page-change-proposal.js
45 lines (40 loc) · 1.12 KB
/
page-change-proposal.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* 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
);
}
}