commandbar 1.7.3 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/build/commandbar-js/src/index.js +1 -1
- package/package.json +2 -2
- package/src/snippet.ts +1 -0
- package/build/internal/src/client/AddContextOptions.d.ts +0 -123
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +0 -376
- package/build/internal/src/client/CommandBarProxySDK.d.ts +0 -49
- package/build/internal/src/client/CommandBarSDK.d.ts +0 -65
- package/build/internal/src/client/EventHandler.d.ts +0 -207
- package/build/internal/src/client/OrgConfig.d.ts +0 -5
- package/build/internal/src/client/SDKConfig.d.ts +0 -13
- package/build/internal/src/client/SentryReporter.d.ts +0 -62
- package/build/internal/src/client/globals.d.ts +0 -20
- package/build/internal/src/client/proxy.d.ts +0 -15
- package/build/internal/src/client/symbols.d.ts +0 -41
- package/build/internal/src/middleware/CommandFromClientV.d.ts +0 -290
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +0 -5
- package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
- package/build/internal/src/middleware/OrganizationV.d.ts +0 -177
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +0 -91
- package/build/internal/src/middleware/checklist.d.ts +0 -740
- package/build/internal/src/middleware/command.d.ts +0 -6678
- package/build/internal/src/middleware/commandCategory.d.ts +0 -192
- package/build/internal/src/middleware/confetti.d.ts +0 -16
- package/build/internal/src/middleware/context.d.ts +0 -40
- package/build/internal/src/middleware/dashboardFlags.d.ts +0 -9
- package/build/internal/src/middleware/detailPreview.d.ts +0 -24
- package/build/internal/src/middleware/environment.d.ts +0 -11
- package/build/internal/src/middleware/generics.d.ts +0 -40
- package/build/internal/src/middleware/guide.d.ts +0 -37
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +0 -66
- package/build/internal/src/middleware/helpDocsSync.d.ts +0 -42
- package/build/internal/src/middleware/helpers/actions.d.ts +0 -84
- package/build/internal/src/middleware/helpers/argument.d.ts +0 -448
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +0 -225
- package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
- package/build/internal/src/middleware/helpers/goals.d.ts +0 -26
- package/build/internal/src/middleware/helpers/optionGroup.d.ts +0 -2
- package/build/internal/src/middleware/helpers/rules.d.ts +0 -260
- package/build/internal/src/middleware/helpers/tags.d.ts +0 -7
- package/build/internal/src/middleware/historyEvent.d.ts +0 -21
- package/build/internal/src/middleware/network.d.ts +0 -4
- package/build/internal/src/middleware/nudge.d.ts +0 -1057
- package/build/internal/src/middleware/organization.d.ts +0 -978
- package/build/internal/src/middleware/placeholder.d.ts +0 -47
- package/build/internal/src/middleware/profile.d.ts +0 -11
- package/build/internal/src/middleware/releases.d.ts +0 -261
- package/build/internal/src/middleware/skin.d.ts +0 -94
- package/build/internal/src/middleware/tab.d.ts +0 -27
- package/build/internal/src/middleware/types.d.ts +0 -155
- package/build/internal/src/middleware/user.d.ts +0 -15
- package/build/internal/src/util/Disposable.d.ts +0 -17
- package/build/internal/src/util/LocalStorage.d.ts +0 -6
- package/build/internal/src/util/Logger.d.ts +0 -18
- package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -2
@@ -1,740 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const ChecklistItemV: t.IntersectionC<[t.TypeC<{
|
3
|
-
skippable: t.BooleanC;
|
4
|
-
}>, t.IntersectionC<[t.TypeC<{
|
5
|
-
id: t.NumberC;
|
6
|
-
title: t.StringC;
|
7
|
-
goal: t.UnionC<[t.TypeC<{
|
8
|
-
type: t.LiteralC<"command_executed">;
|
9
|
-
meta: t.TypeC<{
|
10
|
-
command: t.StringC;
|
11
|
-
}>;
|
12
|
-
}>, t.TypeC<{
|
13
|
-
type: t.LiteralC<"page_visited">;
|
14
|
-
value: t.StringC;
|
15
|
-
}>, t.TypeC<{
|
16
|
-
type: t.LiteralC<"element_clicked">;
|
17
|
-
value: t.StringC;
|
18
|
-
}>, t.TypeC<{
|
19
|
-
type: t.LiteralC<"conditions_met">;
|
20
|
-
expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
|
21
|
-
}>, t.TypeC<{
|
22
|
-
type: t.LiteralC<"cta_clicked">;
|
23
|
-
}>, t.TypeC<{
|
24
|
-
type: t.LiteralC<"event_tracked">;
|
25
|
-
event: t.StringC;
|
26
|
-
}>]>;
|
27
|
-
action: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
28
|
-
type: t.LiteralC<"link">;
|
29
|
-
value: t.StringC;
|
30
|
-
}>, t.PartialC<{
|
31
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
32
|
-
}>]>, t.TypeC<{
|
33
|
-
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
34
|
-
value: t.ArrayC<t.StringC>;
|
35
|
-
}>, t.TypeC<{
|
36
|
-
type: t.LiteralC<"execute_command">;
|
37
|
-
meta: t.TypeC<{
|
38
|
-
command: t.StringC;
|
39
|
-
}>;
|
40
|
-
}>, t.TypeC<{
|
41
|
-
type: t.LiteralC<"nudge">;
|
42
|
-
value: t.NumberC;
|
43
|
-
}>, t.IntersectionC<[t.TypeC<{
|
44
|
-
type: t.LiteralC<"open_bar">;
|
45
|
-
}>, t.PartialC<{
|
46
|
-
value: t.StringC;
|
47
|
-
categoryFilter: t.NumberC;
|
48
|
-
}>]>]>;
|
49
|
-
celebrate: t.BooleanC;
|
50
|
-
}>, t.PartialC<{
|
51
|
-
description: t.StringC;
|
52
|
-
cta: t.StringC;
|
53
|
-
celebration: t.UnionC<[t.LiteralC<"confetti">, t.LiteralC<"coin">]>;
|
54
|
-
}>]>]>;
|
55
|
-
export declare const ChecklistBaseV: t.IntersectionC<[t.TypeC<{
|
56
|
-
id: t.NumberC;
|
57
|
-
title: t.StringC;
|
58
|
-
show_expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
|
59
|
-
trigger: t.UnionC<[t.TypeC<{
|
60
|
-
type: t.LiteralC<"when_conditions_pass">;
|
61
|
-
}>, t.TypeC<{
|
62
|
-
type: t.LiteralC<"on_command_execution">;
|
63
|
-
meta: t.TypeC<{
|
64
|
-
command: t.StringC;
|
65
|
-
}>;
|
66
|
-
}>, t.TypeC<{
|
67
|
-
type: t.LiteralC<"on_event">;
|
68
|
-
meta: t.TypeC<{
|
69
|
-
event: t.StringC;
|
70
|
-
}>;
|
71
|
-
}>]>;
|
72
|
-
items: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
73
|
-
skippable: t.BooleanC;
|
74
|
-
}>, t.IntersectionC<[t.TypeC<{
|
75
|
-
id: t.NumberC;
|
76
|
-
title: t.StringC;
|
77
|
-
goal: t.UnionC<[t.TypeC<{
|
78
|
-
type: t.LiteralC<"command_executed">;
|
79
|
-
meta: t.TypeC<{
|
80
|
-
command: t.StringC;
|
81
|
-
}>;
|
82
|
-
}>, t.TypeC<{
|
83
|
-
type: t.LiteralC<"page_visited">;
|
84
|
-
value: t.StringC;
|
85
|
-
}>, t.TypeC<{
|
86
|
-
type: t.LiteralC<"element_clicked">;
|
87
|
-
value: t.StringC;
|
88
|
-
}>, t.TypeC<{
|
89
|
-
type: t.LiteralC<"conditions_met">;
|
90
|
-
expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
|
91
|
-
}>, t.TypeC<{
|
92
|
-
type: t.LiteralC<"cta_clicked">;
|
93
|
-
}>, t.TypeC<{
|
94
|
-
type: t.LiteralC<"event_tracked">;
|
95
|
-
event: t.StringC;
|
96
|
-
}>]>;
|
97
|
-
action: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
98
|
-
type: t.LiteralC<"link">;
|
99
|
-
value: t.StringC;
|
100
|
-
}>, t.PartialC<{
|
101
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
102
|
-
}>]>, t.TypeC<{
|
103
|
-
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
104
|
-
value: t.ArrayC<t.StringC>;
|
105
|
-
}>, t.TypeC<{
|
106
|
-
type: t.LiteralC<"execute_command">;
|
107
|
-
meta: t.TypeC<{
|
108
|
-
command: t.StringC;
|
109
|
-
}>;
|
110
|
-
}>, t.TypeC<{
|
111
|
-
type: t.LiteralC<"nudge">;
|
112
|
-
value: t.NumberC;
|
113
|
-
}>, t.IntersectionC<[t.TypeC<{
|
114
|
-
type: t.LiteralC<"open_bar">;
|
115
|
-
}>, t.PartialC<{
|
116
|
-
value: t.StringC;
|
117
|
-
categoryFilter: t.NumberC;
|
118
|
-
}>]>]>;
|
119
|
-
celebrate: t.BooleanC;
|
120
|
-
}>, t.PartialC<{
|
121
|
-
description: t.StringC;
|
122
|
-
cta: t.StringC;
|
123
|
-
celebration: t.UnionC<[t.LiteralC<"confetti">, t.LiteralC<"coin">]>;
|
124
|
-
}>]>]>>;
|
125
|
-
}>, t.PartialC<{
|
126
|
-
description: t.StringC;
|
127
|
-
is_live: t.BooleanC;
|
128
|
-
}>]>;
|
129
|
-
export declare const ChecklistV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
130
|
-
id: t.NumberC;
|
131
|
-
title: t.StringC;
|
132
|
-
show_expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
|
133
|
-
trigger: t.UnionC<[t.TypeC<{
|
134
|
-
type: t.LiteralC<"when_conditions_pass">;
|
135
|
-
}>, t.TypeC<{
|
136
|
-
type: t.LiteralC<"on_command_execution">;
|
137
|
-
meta: t.TypeC<{
|
138
|
-
command: t.StringC;
|
139
|
-
}>;
|
140
|
-
}>, t.TypeC<{
|
141
|
-
type: t.LiteralC<"on_event">;
|
142
|
-
meta: t.TypeC<{
|
143
|
-
event: t.StringC;
|
144
|
-
}>;
|
145
|
-
}>]>;
|
146
|
-
items: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
147
|
-
skippable: t.BooleanC;
|
148
|
-
}>, t.IntersectionC<[t.TypeC<{
|
149
|
-
id: t.NumberC;
|
150
|
-
title: t.StringC;
|
151
|
-
goal: t.UnionC<[t.TypeC<{
|
152
|
-
type: t.LiteralC<"command_executed">;
|
153
|
-
meta: t.TypeC<{
|
154
|
-
command: t.StringC;
|
155
|
-
}>;
|
156
|
-
}>, t.TypeC<{
|
157
|
-
type: t.LiteralC<"page_visited">;
|
158
|
-
value: t.StringC;
|
159
|
-
}>, t.TypeC<{
|
160
|
-
type: t.LiteralC<"element_clicked">;
|
161
|
-
value: t.StringC;
|
162
|
-
}>, t.TypeC<{
|
163
|
-
type: t.LiteralC<"conditions_met">;
|
164
|
-
expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
|
165
|
-
}>, t.TypeC<{
|
166
|
-
type: t.LiteralC<"cta_clicked">;
|
167
|
-
}>, t.TypeC<{
|
168
|
-
type: t.LiteralC<"event_tracked">;
|
169
|
-
event: t.StringC;
|
170
|
-
}>]>;
|
171
|
-
action: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
172
|
-
type: t.LiteralC<"link">;
|
173
|
-
value: t.StringC;
|
174
|
-
}>, t.PartialC<{
|
175
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
176
|
-
}>]>, t.TypeC<{
|
177
|
-
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
178
|
-
value: t.ArrayC<t.StringC>;
|
179
|
-
}>, t.TypeC<{
|
180
|
-
type: t.LiteralC<"execute_command">;
|
181
|
-
meta: t.TypeC<{
|
182
|
-
command: t.StringC;
|
183
|
-
}>;
|
184
|
-
}>, t.TypeC<{
|
185
|
-
type: t.LiteralC<"nudge">;
|
186
|
-
value: t.NumberC;
|
187
|
-
}>, t.IntersectionC<[t.TypeC<{
|
188
|
-
type: t.LiteralC<"open_bar">;
|
189
|
-
}>, t.PartialC<{
|
190
|
-
value: t.StringC;
|
191
|
-
categoryFilter: t.NumberC;
|
192
|
-
}>]>]>;
|
193
|
-
celebrate: t.BooleanC;
|
194
|
-
}>, t.PartialC<{
|
195
|
-
description: t.StringC;
|
196
|
-
cta: t.StringC;
|
197
|
-
celebration: t.UnionC<[t.LiteralC<"confetti">, t.LiteralC<"coin">]>;
|
198
|
-
}>]>]>>;
|
199
|
-
}>, t.PartialC<{
|
200
|
-
description: t.StringC;
|
201
|
-
is_live: t.BooleanC;
|
202
|
-
}>]>, t.TypeC<{
|
203
|
-
celebrate: t.BooleanC;
|
204
|
-
}>]>;
|
205
|
-
export declare class Checklist {
|
206
|
-
static decode: (data: any) => {
|
207
|
-
id: number;
|
208
|
-
title: string;
|
209
|
-
show_expression: import("./helpers/rules").RuleExpression;
|
210
|
-
trigger: {
|
211
|
-
type: "when_conditions_pass";
|
212
|
-
} | {
|
213
|
-
type: "on_command_execution";
|
214
|
-
meta: {
|
215
|
-
command: string;
|
216
|
-
};
|
217
|
-
} | {
|
218
|
-
type: "on_event";
|
219
|
-
meta: {
|
220
|
-
event: string;
|
221
|
-
};
|
222
|
-
};
|
223
|
-
items: ({
|
224
|
-
skippable: boolean;
|
225
|
-
} & {
|
226
|
-
id: number;
|
227
|
-
title: string;
|
228
|
-
goal: {
|
229
|
-
type: "command_executed";
|
230
|
-
meta: {
|
231
|
-
command: string;
|
232
|
-
};
|
233
|
-
} | {
|
234
|
-
type: "page_visited";
|
235
|
-
value: string;
|
236
|
-
} | {
|
237
|
-
type: "element_clicked";
|
238
|
-
value: string;
|
239
|
-
} | {
|
240
|
-
type: "conditions_met";
|
241
|
-
expression: import("./helpers/rules").RuleExpression;
|
242
|
-
} | {
|
243
|
-
type: "cta_clicked";
|
244
|
-
} | {
|
245
|
-
type: "event_tracked";
|
246
|
-
event: string;
|
247
|
-
};
|
248
|
-
action: {
|
249
|
-
type: "execute_command";
|
250
|
-
meta: {
|
251
|
-
command: string;
|
252
|
-
};
|
253
|
-
} | ({
|
254
|
-
type: "link";
|
255
|
-
value: string;
|
256
|
-
} & {
|
257
|
-
operation?: "self" | "router" | "blank" | undefined;
|
258
|
-
}) | {
|
259
|
-
type: "click" | "clickByXpath" | "clickBySelector";
|
260
|
-
value: string[];
|
261
|
-
} | {
|
262
|
-
type: "nudge";
|
263
|
-
value: number;
|
264
|
-
} | ({
|
265
|
-
type: "open_bar";
|
266
|
-
} & {
|
267
|
-
value?: string | undefined;
|
268
|
-
categoryFilter?: number | undefined;
|
269
|
-
});
|
270
|
-
celebrate: boolean;
|
271
|
-
} & {
|
272
|
-
description?: string | undefined;
|
273
|
-
cta?: string | undefined;
|
274
|
-
celebration?: "confetti" | "coin" | undefined;
|
275
|
-
})[];
|
276
|
-
} & {
|
277
|
-
description?: string | undefined;
|
278
|
-
is_live?: boolean | undefined;
|
279
|
-
} & {
|
280
|
-
celebrate: boolean;
|
281
|
-
};
|
282
|
-
static create: (object: {
|
283
|
-
id: number;
|
284
|
-
title: string;
|
285
|
-
show_expression: import("./helpers/rules").RuleExpression;
|
286
|
-
trigger: {
|
287
|
-
type: "when_conditions_pass";
|
288
|
-
} | {
|
289
|
-
type: "on_command_execution";
|
290
|
-
meta: {
|
291
|
-
command: string;
|
292
|
-
};
|
293
|
-
} | {
|
294
|
-
type: "on_event";
|
295
|
-
meta: {
|
296
|
-
event: string;
|
297
|
-
};
|
298
|
-
};
|
299
|
-
items: ({
|
300
|
-
skippable: boolean;
|
301
|
-
} & {
|
302
|
-
id: number;
|
303
|
-
title: string;
|
304
|
-
goal: {
|
305
|
-
type: "command_executed";
|
306
|
-
meta: {
|
307
|
-
command: string;
|
308
|
-
};
|
309
|
-
} | {
|
310
|
-
type: "page_visited";
|
311
|
-
value: string;
|
312
|
-
} | {
|
313
|
-
type: "element_clicked";
|
314
|
-
value: string;
|
315
|
-
} | {
|
316
|
-
type: "conditions_met";
|
317
|
-
expression: import("./helpers/rules").RuleExpression;
|
318
|
-
} | {
|
319
|
-
type: "cta_clicked";
|
320
|
-
} | {
|
321
|
-
type: "event_tracked";
|
322
|
-
event: string;
|
323
|
-
};
|
324
|
-
action: {
|
325
|
-
type: "execute_command";
|
326
|
-
meta: {
|
327
|
-
command: string;
|
328
|
-
};
|
329
|
-
} | ({
|
330
|
-
type: "link";
|
331
|
-
value: string;
|
332
|
-
} & {
|
333
|
-
operation?: "self" | "router" | "blank" | undefined;
|
334
|
-
}) | {
|
335
|
-
type: "click" | "clickByXpath" | "clickBySelector";
|
336
|
-
value: string[];
|
337
|
-
} | {
|
338
|
-
type: "nudge";
|
339
|
-
value: number;
|
340
|
-
} | ({
|
341
|
-
type: "open_bar";
|
342
|
-
} & {
|
343
|
-
value?: string | undefined;
|
344
|
-
categoryFilter?: number | undefined;
|
345
|
-
});
|
346
|
-
celebrate: boolean;
|
347
|
-
} & {
|
348
|
-
description?: string | undefined;
|
349
|
-
cta?: string | undefined;
|
350
|
-
celebration?: "confetti" | "coin" | undefined;
|
351
|
-
})[];
|
352
|
-
} & {
|
353
|
-
description?: string | undefined;
|
354
|
-
is_live?: boolean | undefined;
|
355
|
-
} & {
|
356
|
-
celebrate: boolean;
|
357
|
-
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
358
|
-
id: number;
|
359
|
-
title: string;
|
360
|
-
show_expression: import("./helpers/rules").RuleExpression;
|
361
|
-
trigger: {
|
362
|
-
type: "when_conditions_pass";
|
363
|
-
} | {
|
364
|
-
type: "on_command_execution";
|
365
|
-
meta: {
|
366
|
-
command: string;
|
367
|
-
};
|
368
|
-
} | {
|
369
|
-
type: "on_event";
|
370
|
-
meta: {
|
371
|
-
event: string;
|
372
|
-
};
|
373
|
-
};
|
374
|
-
items: ({
|
375
|
-
skippable: boolean;
|
376
|
-
} & {
|
377
|
-
id: number;
|
378
|
-
title: string;
|
379
|
-
goal: {
|
380
|
-
type: "command_executed";
|
381
|
-
meta: {
|
382
|
-
command: string;
|
383
|
-
};
|
384
|
-
} | {
|
385
|
-
type: "page_visited";
|
386
|
-
value: string;
|
387
|
-
} | {
|
388
|
-
type: "element_clicked";
|
389
|
-
value: string;
|
390
|
-
} | {
|
391
|
-
type: "conditions_met";
|
392
|
-
expression: import("./helpers/rules").RuleExpression;
|
393
|
-
} | {
|
394
|
-
type: "cta_clicked";
|
395
|
-
} | {
|
396
|
-
type: "event_tracked";
|
397
|
-
event: string;
|
398
|
-
};
|
399
|
-
action: {
|
400
|
-
type: "execute_command";
|
401
|
-
meta: {
|
402
|
-
command: string;
|
403
|
-
};
|
404
|
-
} | ({
|
405
|
-
type: "link";
|
406
|
-
value: string;
|
407
|
-
} & {
|
408
|
-
operation?: "self" | "router" | "blank" | undefined;
|
409
|
-
}) | {
|
410
|
-
type: "click" | "clickByXpath" | "clickBySelector";
|
411
|
-
value: string[];
|
412
|
-
} | {
|
413
|
-
type: "nudge";
|
414
|
-
value: number;
|
415
|
-
} | ({
|
416
|
-
type: "open_bar";
|
417
|
-
} & {
|
418
|
-
value?: string | undefined;
|
419
|
-
categoryFilter?: number | undefined;
|
420
|
-
});
|
421
|
-
celebrate: boolean;
|
422
|
-
} & {
|
423
|
-
description?: string | undefined;
|
424
|
-
cta?: string | undefined;
|
425
|
-
celebration?: "confetti" | "coin" | undefined;
|
426
|
-
})[];
|
427
|
-
} & {
|
428
|
-
description?: string | undefined;
|
429
|
-
is_live?: boolean | undefined;
|
430
|
-
} & {
|
431
|
-
celebrate: boolean;
|
432
|
-
}>;
|
433
|
-
static update: (object: {
|
434
|
-
id: number;
|
435
|
-
title: string;
|
436
|
-
show_expression: import("./helpers/rules").RuleExpression;
|
437
|
-
trigger: {
|
438
|
-
type: "when_conditions_pass";
|
439
|
-
} | {
|
440
|
-
type: "on_command_execution";
|
441
|
-
meta: {
|
442
|
-
command: string;
|
443
|
-
};
|
444
|
-
} | {
|
445
|
-
type: "on_event";
|
446
|
-
meta: {
|
447
|
-
event: string;
|
448
|
-
};
|
449
|
-
};
|
450
|
-
items: ({
|
451
|
-
skippable: boolean;
|
452
|
-
} & {
|
453
|
-
id: number;
|
454
|
-
title: string;
|
455
|
-
goal: {
|
456
|
-
type: "command_executed";
|
457
|
-
meta: {
|
458
|
-
command: string;
|
459
|
-
};
|
460
|
-
} | {
|
461
|
-
type: "page_visited";
|
462
|
-
value: string;
|
463
|
-
} | {
|
464
|
-
type: "element_clicked";
|
465
|
-
value: string;
|
466
|
-
} | {
|
467
|
-
type: "conditions_met";
|
468
|
-
expression: import("./helpers/rules").RuleExpression;
|
469
|
-
} | {
|
470
|
-
type: "cta_clicked";
|
471
|
-
} | {
|
472
|
-
type: "event_tracked";
|
473
|
-
event: string;
|
474
|
-
};
|
475
|
-
action: {
|
476
|
-
type: "execute_command";
|
477
|
-
meta: {
|
478
|
-
command: string;
|
479
|
-
};
|
480
|
-
} | ({
|
481
|
-
type: "link";
|
482
|
-
value: string;
|
483
|
-
} & {
|
484
|
-
operation?: "self" | "router" | "blank" | undefined;
|
485
|
-
}) | {
|
486
|
-
type: "click" | "clickByXpath" | "clickBySelector";
|
487
|
-
value: string[];
|
488
|
-
} | {
|
489
|
-
type: "nudge";
|
490
|
-
value: number;
|
491
|
-
} | ({
|
492
|
-
type: "open_bar";
|
493
|
-
} & {
|
494
|
-
value?: string | undefined;
|
495
|
-
categoryFilter?: number | undefined;
|
496
|
-
});
|
497
|
-
celebrate: boolean;
|
498
|
-
} & {
|
499
|
-
description?: string | undefined;
|
500
|
-
cta?: string | undefined;
|
501
|
-
celebration?: "confetti" | "coin" | undefined;
|
502
|
-
})[];
|
503
|
-
} & {
|
504
|
-
description?: string | undefined;
|
505
|
-
is_live?: boolean | undefined;
|
506
|
-
} & {
|
507
|
-
celebrate: boolean;
|
508
|
-
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
509
|
-
id: number;
|
510
|
-
title: string;
|
511
|
-
show_expression: import("./helpers/rules").RuleExpression;
|
512
|
-
trigger: {
|
513
|
-
type: "when_conditions_pass";
|
514
|
-
} | {
|
515
|
-
type: "on_command_execution";
|
516
|
-
meta: {
|
517
|
-
command: string;
|
518
|
-
};
|
519
|
-
} | {
|
520
|
-
type: "on_event";
|
521
|
-
meta: {
|
522
|
-
event: string;
|
523
|
-
};
|
524
|
-
};
|
525
|
-
items: ({
|
526
|
-
skippable: boolean;
|
527
|
-
} & {
|
528
|
-
id: number;
|
529
|
-
title: string;
|
530
|
-
goal: {
|
531
|
-
type: "command_executed";
|
532
|
-
meta: {
|
533
|
-
command: string;
|
534
|
-
};
|
535
|
-
} | {
|
536
|
-
type: "page_visited";
|
537
|
-
value: string;
|
538
|
-
} | {
|
539
|
-
type: "element_clicked";
|
540
|
-
value: string;
|
541
|
-
} | {
|
542
|
-
type: "conditions_met";
|
543
|
-
expression: import("./helpers/rules").RuleExpression;
|
544
|
-
} | {
|
545
|
-
type: "cta_clicked";
|
546
|
-
} | {
|
547
|
-
type: "event_tracked";
|
548
|
-
event: string;
|
549
|
-
};
|
550
|
-
action: {
|
551
|
-
type: "execute_command";
|
552
|
-
meta: {
|
553
|
-
command: string;
|
554
|
-
};
|
555
|
-
} | ({
|
556
|
-
type: "link";
|
557
|
-
value: string;
|
558
|
-
} & {
|
559
|
-
operation?: "self" | "router" | "blank" | undefined;
|
560
|
-
}) | {
|
561
|
-
type: "click" | "clickByXpath" | "clickBySelector";
|
562
|
-
value: string[];
|
563
|
-
} | {
|
564
|
-
type: "nudge";
|
565
|
-
value: number;
|
566
|
-
} | ({
|
567
|
-
type: "open_bar";
|
568
|
-
} & {
|
569
|
-
value?: string | undefined;
|
570
|
-
categoryFilter?: number | undefined;
|
571
|
-
});
|
572
|
-
celebrate: boolean;
|
573
|
-
} & {
|
574
|
-
description?: string | undefined;
|
575
|
-
cta?: string | undefined;
|
576
|
-
celebration?: "confetti" | "coin" | undefined;
|
577
|
-
})[];
|
578
|
-
} & {
|
579
|
-
description?: string | undefined;
|
580
|
-
is_live?: boolean | undefined;
|
581
|
-
} & {
|
582
|
-
celebrate: boolean;
|
583
|
-
}>;
|
584
|
-
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
585
|
-
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
586
|
-
id: number;
|
587
|
-
title: string;
|
588
|
-
show_expression: import("./helpers/rules").RuleExpression;
|
589
|
-
trigger: {
|
590
|
-
type: "when_conditions_pass";
|
591
|
-
} | {
|
592
|
-
type: "on_command_execution";
|
593
|
-
meta: {
|
594
|
-
command: string;
|
595
|
-
};
|
596
|
-
} | {
|
597
|
-
type: "on_event";
|
598
|
-
meta: {
|
599
|
-
event: string;
|
600
|
-
};
|
601
|
-
};
|
602
|
-
items: ({
|
603
|
-
skippable: boolean;
|
604
|
-
} & {
|
605
|
-
id: number;
|
606
|
-
title: string;
|
607
|
-
goal: {
|
608
|
-
type: "command_executed";
|
609
|
-
meta: {
|
610
|
-
command: string;
|
611
|
-
};
|
612
|
-
} | {
|
613
|
-
type: "page_visited";
|
614
|
-
value: string;
|
615
|
-
} | {
|
616
|
-
type: "element_clicked";
|
617
|
-
value: string;
|
618
|
-
} | {
|
619
|
-
type: "conditions_met";
|
620
|
-
expression: import("./helpers/rules").RuleExpression;
|
621
|
-
} | {
|
622
|
-
type: "cta_clicked";
|
623
|
-
} | {
|
624
|
-
type: "event_tracked";
|
625
|
-
event: string;
|
626
|
-
};
|
627
|
-
action: {
|
628
|
-
type: "execute_command";
|
629
|
-
meta: {
|
630
|
-
command: string;
|
631
|
-
};
|
632
|
-
} | ({
|
633
|
-
type: "link";
|
634
|
-
value: string;
|
635
|
-
} & {
|
636
|
-
operation?: "self" | "router" | "blank" | undefined;
|
637
|
-
}) | {
|
638
|
-
type: "click" | "clickByXpath" | "clickBySelector";
|
639
|
-
value: string[];
|
640
|
-
} | {
|
641
|
-
type: "nudge";
|
642
|
-
value: number;
|
643
|
-
} | ({
|
644
|
-
type: "open_bar";
|
645
|
-
} & {
|
646
|
-
value?: string | undefined;
|
647
|
-
categoryFilter?: number | undefined;
|
648
|
-
});
|
649
|
-
celebrate: boolean;
|
650
|
-
} & {
|
651
|
-
description?: string | undefined;
|
652
|
-
cta?: string | undefined;
|
653
|
-
celebration?: "confetti" | "coin" | undefined;
|
654
|
-
})[];
|
655
|
-
} & {
|
656
|
-
description?: string | undefined;
|
657
|
-
is_live?: boolean | undefined;
|
658
|
-
} & {
|
659
|
-
celebrate: boolean;
|
660
|
-
})[]>;
|
661
|
-
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
662
|
-
onSuccess?: (() => void) | undefined;
|
663
|
-
onError?: ((err: string) => void) | undefined;
|
664
|
-
} | undefined) => Promise<{
|
665
|
-
id: number;
|
666
|
-
title: string;
|
667
|
-
show_expression: import("./helpers/rules").RuleExpression;
|
668
|
-
trigger: {
|
669
|
-
type: "when_conditions_pass";
|
670
|
-
} | {
|
671
|
-
type: "on_command_execution";
|
672
|
-
meta: {
|
673
|
-
command: string;
|
674
|
-
};
|
675
|
-
} | {
|
676
|
-
type: "on_event";
|
677
|
-
meta: {
|
678
|
-
event: string;
|
679
|
-
};
|
680
|
-
};
|
681
|
-
items: ({
|
682
|
-
skippable: boolean;
|
683
|
-
} & {
|
684
|
-
id: number;
|
685
|
-
title: string;
|
686
|
-
goal: {
|
687
|
-
type: "command_executed";
|
688
|
-
meta: {
|
689
|
-
command: string;
|
690
|
-
};
|
691
|
-
} | {
|
692
|
-
type: "page_visited";
|
693
|
-
value: string;
|
694
|
-
} | {
|
695
|
-
type: "element_clicked";
|
696
|
-
value: string;
|
697
|
-
} | {
|
698
|
-
type: "conditions_met";
|
699
|
-
expression: import("./helpers/rules").RuleExpression;
|
700
|
-
} | {
|
701
|
-
type: "cta_clicked";
|
702
|
-
} | {
|
703
|
-
type: "event_tracked";
|
704
|
-
event: string;
|
705
|
-
};
|
706
|
-
action: {
|
707
|
-
type: "execute_command";
|
708
|
-
meta: {
|
709
|
-
command: string;
|
710
|
-
};
|
711
|
-
} | ({
|
712
|
-
type: "link";
|
713
|
-
value: string;
|
714
|
-
} & {
|
715
|
-
operation?: "self" | "router" | "blank" | undefined;
|
716
|
-
}) | {
|
717
|
-
type: "click" | "clickByXpath" | "clickBySelector";
|
718
|
-
value: string[];
|
719
|
-
} | {
|
720
|
-
type: "nudge";
|
721
|
-
value: number;
|
722
|
-
} | ({
|
723
|
-
type: "open_bar";
|
724
|
-
} & {
|
725
|
-
value?: string | undefined;
|
726
|
-
categoryFilter?: number | undefined;
|
727
|
-
});
|
728
|
-
celebrate: boolean;
|
729
|
-
} & {
|
730
|
-
description?: string | undefined;
|
731
|
-
cta?: string | undefined;
|
732
|
-
celebration?: "confetti" | "coin" | undefined;
|
733
|
-
})[];
|
734
|
-
} & {
|
735
|
-
description?: string | undefined;
|
736
|
-
is_live?: boolean | undefined;
|
737
|
-
} & {
|
738
|
-
celebrate: boolean;
|
739
|
-
}>;
|
740
|
-
}
|