-
Notifications
You must be signed in to change notification settings - Fork 223
/
page-call-to-action.js
132 lines (126 loc) · 3.72 KB
/
page-call-to-action.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/**
* 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';
import AbstractObject from './../abstract-object';
/**
* PageCallToAction
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class PageCallToAction extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
android_app: 'android_app',
android_deeplink: 'android_deeplink',
android_destination_type: 'android_destination_type',
android_package_name: 'android_package_name',
android_url: 'android_url',
created_time: 'created_time',
email_address: 'email_address',
from: 'from',
id: 'id',
intl_number_with_plus: 'intl_number_with_plus',
iphone_app: 'iphone_app',
iphone_deeplink: 'iphone_deeplink',
iphone_destination_type: 'iphone_destination_type',
iphone_url: 'iphone_url',
status: 'status',
type: 'type',
updated_time: 'updated_time',
web_destination_type: 'web_destination_type',
web_url: 'web_url',
});
}
static get AndroidDestinationType (): Object {
return Object.freeze({
app_deeplink: 'APP_DEEPLINK',
email: 'EMAIL',
facebook_app: 'FACEBOOK_APP',
messenger: 'MESSENGER',
none: 'NONE',
phone_call: 'PHONE_CALL',
shop_on_facebook: 'SHOP_ON_FACEBOOK',
website: 'WEBSITE',
});
}
static get IphoneDestinationType (): Object {
return Object.freeze({
app_deeplink: 'APP_DEEPLINK',
email: 'EMAIL',
facebook_app: 'FACEBOOK_APP',
messenger: 'MESSENGER',
none: 'NONE',
phone_call: 'PHONE_CALL',
shop_on_facebook: 'SHOP_ON_FACEBOOK',
website: 'WEBSITE',
});
}
static get Type (): Object {
return Object.freeze({
book_appointment: 'BOOK_APPOINTMENT',
book_now: 'BOOK_NOW',
buy_tickets: 'BUY_TICKETS',
call_now: 'CALL_NOW',
charity_donate: 'CHARITY_DONATE',
contact_us: 'CONTACT_US',
donate_now: 'DONATE_NOW',
email: 'EMAIL',
get_directions: 'GET_DIRECTIONS',
get_offer: 'GET_OFFER',
get_offer_view: 'GET_OFFER_VIEW',
interested: 'INTERESTED',
learn_more: 'LEARN_MORE',
listen: 'LISTEN',
local_dev_platform: 'LOCAL_DEV_PLATFORM',
message: 'MESSAGE',
open_app: 'OPEN_APP',
play_music: 'PLAY_MUSIC',
play_now: 'PLAY_NOW',
request_appointment: 'REQUEST_APPOINTMENT',
request_quote: 'REQUEST_QUOTE',
shop_now: 'SHOP_NOW',
shop_on_facebook: 'SHOP_ON_FACEBOOK',
sign_up: 'SIGN_UP',
visit_group: 'VISIT_GROUP',
watch_now: 'WATCH_NOW',
woodhenge_support: 'WOODHENGE_SUPPORT',
});
}
static get WebDestinationType (): Object {
return Object.freeze({
become_supporter: 'BECOME_SUPPORTER',
email: 'EMAIL',
messenger: 'MESSENGER',
none: 'NONE',
shop_on_facebook: 'SHOP_ON_FACEBOOK',
website: 'WEBSITE',
});
}
// $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 = {}): PageCallToAction {
// $FlowFixMe : Support Generic Types
return this.read(
fields,
params
);
}
// $FlowFixMe : Support Generic Types
update (fields: Array<string>, params: Object = {}): PageCallToAction {
// $FlowFixMe : Support Generic Types
return super.update(
params
);
}
}