@gravitywiz/types 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +38 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -88,6 +88,19 @@ declare global {
|
|
|
88
88
|
operator: string;
|
|
89
89
|
value: number | string;
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
type Feed<M = {}> = {
|
|
93
|
+
id: string;
|
|
94
|
+
form_id: string;
|
|
95
|
+
is_active: '1' | '0';
|
|
96
|
+
feed_order: string;
|
|
97
|
+
addon_slug: string;
|
|
98
|
+
meta: FeedMeta<M>
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type FeedMeta<M = {}> = M & {
|
|
102
|
+
feed_name: string;
|
|
103
|
+
}
|
|
91
104
|
|
|
92
105
|
type GFConditionalLogicOperators = 'is' | 'isnot' | '>' | '<' | 'contains' | 'starts_with' | 'ends_with';
|
|
93
106
|
|
|
@@ -180,6 +193,8 @@ declare global {
|
|
|
180
193
|
|
|
181
194
|
gformToNumber(text: string): number;
|
|
182
195
|
|
|
196
|
+
gform_initialize_tooltips(): void;
|
|
197
|
+
|
|
183
198
|
gf_global: {
|
|
184
199
|
base_url: string;
|
|
185
200
|
gf_currency_config: GFCurrencyConfig;
|
|
@@ -189,9 +204,21 @@ declare global {
|
|
|
189
204
|
version_hash: string;
|
|
190
205
|
};
|
|
191
206
|
|
|
207
|
+
gfMergeTags: {
|
|
208
|
+
getMergeTags: () => {
|
|
209
|
+
custom: MergeTagGroup;
|
|
210
|
+
optional: MergeTagGroup;
|
|
211
|
+
other: MergeTagGroup;
|
|
212
|
+
pricing: MergeTagGroup;
|
|
213
|
+
required: MergeTagGroup;
|
|
214
|
+
ungrouped: MergeTagGroup;
|
|
215
|
+
};
|
|
216
|
+
// placeholder
|
|
217
|
+
[key: string]: any
|
|
218
|
+
};
|
|
219
|
+
|
|
192
220
|
// Placeholders
|
|
193
221
|
mOxie: any;
|
|
194
|
-
gfMergeTagsObj: any;
|
|
195
222
|
gf_raw_input_change: any;
|
|
196
223
|
gf_check_field_rule: any;
|
|
197
224
|
gf_vars: any;
|
|
@@ -207,6 +234,16 @@ declare global {
|
|
|
207
234
|
gf_apply_rules: any;
|
|
208
235
|
}
|
|
209
236
|
|
|
237
|
+
interface MergeTag {
|
|
238
|
+
tag: string;
|
|
239
|
+
label: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
interface MergeTagGroup {
|
|
243
|
+
label: string;
|
|
244
|
+
tags: MergeTag[];
|
|
245
|
+
}
|
|
246
|
+
|
|
210
247
|
interface String {
|
|
211
248
|
// Deprecated, being removed in GF 2.8.
|
|
212
249
|
format: (...format: any[]) => string;
|