-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgravityforms.neon
142 lines (142 loc) · 3.82 KB
/
gravityforms.neon
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
133
134
135
136
137
138
139
140
141
142
parameters:
stubFiles:
- stubs/gravityforms/rgar.stub
ignoreErrors:
-
# gf_apply_filters only specifies two params. It uses func_get_args()
message: '#Function gf_apply_filters invoked with \d+ parameters, 2 required.#'
reportUnmatched: false
-
# gf_do_action only specifies one params. It uses func_get_args()
message: '#Function gf_do_action invoked with \d+ parameters, 1 required.#'
reportUnmatched: false
typeAliases:
GFForm: '''
array<string, mixed> & array{
fields: \GF_Field[],
button: array{
text: string,
type: string,
imageUrl: string,
},
title: string,
description: string,
version: string,
id: int,
markupVersion?: int,
nextFieldId: int,
useCurrentUserAsAuthor?: bool,
postContentTemplateEnabled?: bool,
postTitleTemplateEnabled?: bool,
postTitleTemplate?: string,
postContentTemplate?: string,
lastPageButton: mixed,
pagination?: array<string, mixed>,
firstPageCssClass?: string,
notifications: array<string, array<string, string>>,
confirmations: array<string, array<string, string>>,
is_active: string,
date_created: string,
is_trash: string,
confirmation: array<string, string>,
descriptionPlacement?: string,
cssClass?: string,
}
'''
GFFeed: '''
array{
id: int,
form_id: int,
meta: array<string, mixed>,
is_active: 0|1,
addon_slug: string,
}
'''
GFEntry: '''
array<string, mixed> & array{
id: string,
status: string,
form_id: string,
ip: string,
source_url: string,
currency: string,
post_id?: string|null,
date_created: string,
date_updated: string,
is_starred: int,
is_read: int,
user_agent: string,
payment_status?: string,
payment_date?: string,
payment_amount?: string,
payment_method?: string,
transaction_id?: string,
is_fulfilled?: string,
created_by: string,
transaction_type?: string,
}
'''
GFValidationResult: '''
array{
form: GFForm,
is_valid: bool,
failed_validation_page: int,
errors: mixed,
}
'''
GFSettingsFields: '''
array{
title: string,
fields: array<string, mixed>[],
}[]
'''
GFNotificationT: '''
array<string, mixed> & array{
id: string,
isActive: boolean,
to: string,
name: string,
event: string,
toType: string,
subject: string,
message: string,
attachments: mixed,
}
'''
GFNotificationEmail: '''
array{
to: string,
subject: string,
message: string,
headers: mixed,
attachments: mixed,
abort_email: boolean,
}
'''
GFProductFields: '''
array{
products: GFProductFieldsProduct[],
shipping: array{
id: string,
name: string,
price: string,
},
}
'''
GFProductFieldsProduct: '''
array{
name: string,
price: string,
quantity: int|string,
options?: GFProductFieldsOption[],
}
'''
GFProductFieldsOption: '''
array{
id: int|float|string,
field_label: string,
option_name: string,
option_label: string,
price: string,
}
'''