commandbar 1.8.5 → 1.8.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/internal/src/client/AddContextOptions.d.ts +141 -0
  3. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  4. package/build/internal/src/client/CommandBarClientSDK.d.ts +403 -0
  5. package/build/internal/src/client/CommandBarProxySDK.d.ts +49 -0
  6. package/build/internal/src/client/CommandBarSDK.d.ts +79 -0
  7. package/build/internal/src/client/EventHandler.d.ts +282 -0
  8. package/build/internal/src/client/OrgConfig.d.ts +5 -0
  9. package/build/internal/src/client/SDKConfig.d.ts +13 -0
  10. package/build/internal/src/client/SentryReporter.d.ts +63 -0
  11. package/build/internal/src/client/globals.d.ts +20 -0
  12. package/build/internal/src/client/proxy.d.ts +15 -0
  13. package/build/internal/src/client/symbols.d.ts +50 -0
  14. package/build/internal/src/middleware/CommandFromClientV.d.ts +283 -0
  15. package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
  16. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  17. package/build/internal/src/middleware/OrganizationV.d.ts +329 -0
  18. package/build/internal/src/middleware/ResourceSettingsV.d.ts +119 -0
  19. package/build/internal/src/middleware/additionalResource.d.ts +302 -0
  20. package/build/internal/src/middleware/billing.d.ts +41 -0
  21. package/build/internal/src/middleware/chatAnalytics.d.ts +2601 -0
  22. package/build/internal/src/middleware/checklist.d.ts +1014 -0
  23. package/build/internal/src/middleware/command.d.ts +8908 -0
  24. package/build/internal/src/middleware/commandCategory.d.ts +192 -0
  25. package/build/internal/src/middleware/confetti.d.ts +16 -0
  26. package/build/internal/src/middleware/context.d.ts +40 -0
  27. package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
  28. package/build/internal/src/middleware/detailPreview.d.ts +24 -0
  29. package/build/internal/src/middleware/environment.d.ts +11 -0
  30. package/build/internal/src/middleware/generics.d.ts +42 -0
  31. package/build/internal/src/middleware/guide.d.ts +37 -0
  32. package/build/internal/src/middleware/helpDocsIntegration.d.ts +72 -0
  33. package/build/internal/src/middleware/helpDocsSync.d.ts +63 -0
  34. package/build/internal/src/middleware/helpers/actions.d.ts +184 -0
  35. package/build/internal/src/middleware/helpers/argument.d.ts +318 -0
  36. package/build/internal/src/middleware/helpers/audience.d.ts +15 -0
  37. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +252 -0
  38. package/build/internal/src/middleware/helpers/endUser.d.ts +11 -0
  39. package/build/internal/src/middleware/helpers/frequencyLimit.d.ts +2 -0
  40. package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
  41. package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
  42. package/build/internal/src/middleware/helpers/pushTrigger.d.ts +26 -0
  43. package/build/internal/src/middleware/helpers/rules.d.ts +289 -0
  44. package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
  45. package/build/internal/src/middleware/historyEvent.d.ts +21 -0
  46. package/build/internal/src/middleware/network.d.ts +3 -0
  47. package/build/internal/src/middleware/nudge.d.ts +1669 -0
  48. package/build/internal/src/middleware/organization.d.ts +1540 -0
  49. package/build/internal/src/middleware/organizationSettings.d.ts +330 -0
  50. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  51. package/build/internal/src/middleware/profile.d.ts +11 -0
  52. package/build/internal/src/middleware/qaPair.d.ts +676 -0
  53. package/build/internal/src/middleware/recommendationSet.d.ts +1199 -0
  54. package/build/internal/src/middleware/releases.d.ts +261 -0
  55. package/build/internal/src/middleware/skin.d.ts +102 -0
  56. package/build/internal/src/middleware/tab.d.ts +27 -0
  57. package/build/internal/src/middleware/types.d.ts +218 -0
  58. package/build/internal/src/middleware/user.d.ts +15 -0
  59. package/build/internal/src/middleware/utils.d.ts +11 -0
  60. package/build/internal/src/util/Disposable.d.ts +17 -0
  61. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  62. package/build/internal/src/util/Logger.d.ts +18 -0
  63. package/build/internal/src/util/dispatchCustomEvent.d.ts +12 -0
  64. package/build/internal/src/util/integrations.d.ts +1 -0
  65. package/package.json +3 -3
  66. package/jest.config.js +0 -4
  67. package/scripts/minify-snippet.ts +0 -36
  68. package/scripts/watch.ts +0 -5
  69. package/src/commandbar-launcher.d.ts +0 -7
  70. package/test/init.test.ts +0 -3
  71. package/tsconfig.json +0 -24
  72. package/webpack.config.js +0 -35
@@ -0,0 +1,1014 @@
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<"when_page_reached">;
63
+ meta: t.TypeC<{
64
+ url: t.StringC;
65
+ }>;
66
+ }>, t.TypeC<{
67
+ type: t.LiteralC<"on_command_execution">;
68
+ meta: t.TypeC<{
69
+ command: t.StringC;
70
+ }>;
71
+ }>, t.TypeC<{
72
+ type: t.LiteralC<"on_event">;
73
+ meta: t.TypeC<{
74
+ event: t.StringC;
75
+ }>;
76
+ }>, t.TypeC<{
77
+ type: t.LiteralC<"when_element_appears">;
78
+ meta: t.TypeC<{
79
+ selector: t.StringC;
80
+ }>;
81
+ }>, t.TypeC<{
82
+ type: t.LiteralC<"when_share_link_viewed">;
83
+ }>]>;
84
+ items: t.ArrayC<t.IntersectionC<[t.TypeC<{
85
+ skippable: t.BooleanC;
86
+ }>, t.IntersectionC<[t.TypeC<{
87
+ id: t.NumberC;
88
+ title: t.StringC;
89
+ goal: t.UnionC<[t.TypeC<{
90
+ type: t.LiteralC<"command_executed">;
91
+ meta: t.TypeC<{
92
+ command: t.StringC;
93
+ }>;
94
+ }>, t.TypeC<{
95
+ type: t.LiteralC<"page_visited">;
96
+ value: t.StringC;
97
+ }>, t.TypeC<{
98
+ type: t.LiteralC<"element_clicked">;
99
+ value: t.StringC;
100
+ }>, t.TypeC<{
101
+ type: t.LiteralC<"conditions_met">;
102
+ expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
103
+ }>, t.TypeC<{
104
+ type: t.LiteralC<"cta_clicked">;
105
+ }>, t.TypeC<{
106
+ type: t.LiteralC<"event_tracked">;
107
+ event: t.StringC;
108
+ }>]>;
109
+ action: t.UnionC<[t.IntersectionC<[t.TypeC<{
110
+ type: t.LiteralC<"link">;
111
+ value: t.StringC;
112
+ }>, t.PartialC<{
113
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
114
+ }>]>, t.TypeC<{
115
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
116
+ value: t.ArrayC<t.StringC>;
117
+ }>, t.TypeC<{
118
+ type: t.LiteralC<"execute_command">;
119
+ meta: t.TypeC<{
120
+ command: t.StringC;
121
+ }>;
122
+ }>, t.TypeC<{
123
+ type: t.LiteralC<"nudge">;
124
+ value: t.NumberC;
125
+ }>, t.IntersectionC<[t.TypeC<{
126
+ type: t.LiteralC<"open_bar">;
127
+ }>, t.PartialC<{
128
+ value: t.StringC;
129
+ categoryFilter: t.NumberC;
130
+ }>]>]>;
131
+ celebrate: t.BooleanC;
132
+ }>, t.PartialC<{
133
+ description: t.StringC;
134
+ cta: t.StringC;
135
+ celebration: t.UnionC<[t.LiteralC<"confetti">, t.LiteralC<"coin">]>;
136
+ }>]>]>>;
137
+ }>, t.PartialC<{
138
+ description: t.StringC;
139
+ is_live: t.BooleanC;
140
+ audience: t.UnionC<[t.UnionC<[t.TypeC<{
141
+ type: t.LiteralC<"all_users">;
142
+ }>, t.TypeC<{
143
+ type: t.LiteralC<"rule_expression">;
144
+ expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
145
+ }>, t.TypeC<{
146
+ type: t.LiteralC<"named_rule_reference">;
147
+ rule_reference: t.IntersectionC<[t.TypeC<{
148
+ type: t.LiteralC<"named_rule">;
149
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
150
+ }>, t.PartialC<{
151
+ reason: t.StringC;
152
+ }>]>;
153
+ }>]>, t.NullC]>;
154
+ }>]>;
155
+ export declare const ChecklistV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
156
+ id: t.NumberC;
157
+ title: t.StringC;
158
+ show_expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
159
+ trigger: t.UnionC<[t.TypeC<{
160
+ type: t.LiteralC<"when_conditions_pass">;
161
+ }>, t.TypeC<{
162
+ type: t.LiteralC<"when_page_reached">;
163
+ meta: t.TypeC<{
164
+ url: t.StringC;
165
+ }>;
166
+ }>, t.TypeC<{
167
+ type: t.LiteralC<"on_command_execution">;
168
+ meta: t.TypeC<{
169
+ command: t.StringC;
170
+ }>;
171
+ }>, t.TypeC<{
172
+ type: t.LiteralC<"on_event">;
173
+ meta: t.TypeC<{
174
+ event: t.StringC;
175
+ }>;
176
+ }>, t.TypeC<{
177
+ type: t.LiteralC<"when_element_appears">;
178
+ meta: t.TypeC<{
179
+ selector: t.StringC;
180
+ }>;
181
+ }>, t.TypeC<{
182
+ type: t.LiteralC<"when_share_link_viewed">;
183
+ }>]>;
184
+ items: t.ArrayC<t.IntersectionC<[t.TypeC<{
185
+ skippable: t.BooleanC;
186
+ }>, t.IntersectionC<[t.TypeC<{
187
+ id: t.NumberC;
188
+ title: t.StringC;
189
+ goal: t.UnionC<[t.TypeC<{
190
+ type: t.LiteralC<"command_executed">;
191
+ meta: t.TypeC<{
192
+ command: t.StringC;
193
+ }>;
194
+ }>, t.TypeC<{
195
+ type: t.LiteralC<"page_visited">;
196
+ value: t.StringC;
197
+ }>, t.TypeC<{
198
+ type: t.LiteralC<"element_clicked">;
199
+ value: t.StringC;
200
+ }>, t.TypeC<{
201
+ type: t.LiteralC<"conditions_met">;
202
+ expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
203
+ }>, t.TypeC<{
204
+ type: t.LiteralC<"cta_clicked">;
205
+ }>, t.TypeC<{
206
+ type: t.LiteralC<"event_tracked">;
207
+ event: t.StringC;
208
+ }>]>;
209
+ action: t.UnionC<[t.IntersectionC<[t.TypeC<{
210
+ type: t.LiteralC<"link">;
211
+ value: t.StringC;
212
+ }>, t.PartialC<{
213
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
214
+ }>]>, t.TypeC<{
215
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
216
+ value: t.ArrayC<t.StringC>;
217
+ }>, t.TypeC<{
218
+ type: t.LiteralC<"execute_command">;
219
+ meta: t.TypeC<{
220
+ command: t.StringC;
221
+ }>;
222
+ }>, t.TypeC<{
223
+ type: t.LiteralC<"nudge">;
224
+ value: t.NumberC;
225
+ }>, t.IntersectionC<[t.TypeC<{
226
+ type: t.LiteralC<"open_bar">;
227
+ }>, t.PartialC<{
228
+ value: t.StringC;
229
+ categoryFilter: t.NumberC;
230
+ }>]>]>;
231
+ celebrate: t.BooleanC;
232
+ }>, t.PartialC<{
233
+ description: t.StringC;
234
+ cta: t.StringC;
235
+ celebration: t.UnionC<[t.LiteralC<"confetti">, t.LiteralC<"coin">]>;
236
+ }>]>]>>;
237
+ }>, t.PartialC<{
238
+ description: t.StringC;
239
+ is_live: t.BooleanC;
240
+ audience: t.UnionC<[t.UnionC<[t.TypeC<{
241
+ type: t.LiteralC<"all_users">;
242
+ }>, t.TypeC<{
243
+ type: t.LiteralC<"rule_expression">;
244
+ expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
245
+ }>, t.TypeC<{
246
+ type: t.LiteralC<"named_rule_reference">;
247
+ rule_reference: t.IntersectionC<[t.TypeC<{
248
+ type: t.LiteralC<"named_rule">;
249
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
250
+ }>, t.PartialC<{
251
+ reason: t.StringC;
252
+ }>]>;
253
+ }>]>, t.NullC]>;
254
+ }>]>, t.TypeC<{
255
+ celebrate: t.BooleanC;
256
+ template_source: t.StringC;
257
+ position: t.UnionC<[t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
258
+ skippable: t.BooleanC;
259
+ open_by_default: t.BooleanC;
260
+ share_page_url: t.StringC;
261
+ }>]>;
262
+ export declare class Checklist {
263
+ static decode: (data: any) => {
264
+ id: number;
265
+ title: string;
266
+ show_expression: import("./helpers/rules").RuleExpression;
267
+ trigger: {
268
+ type: "when_conditions_pass";
269
+ } | {
270
+ type: "when_page_reached";
271
+ meta: {
272
+ url: string;
273
+ };
274
+ } | {
275
+ type: "on_command_execution";
276
+ meta: {
277
+ command: string;
278
+ };
279
+ } | {
280
+ type: "on_event";
281
+ meta: {
282
+ event: string;
283
+ };
284
+ } | {
285
+ type: "when_element_appears";
286
+ meta: {
287
+ selector: string;
288
+ };
289
+ } | {
290
+ type: "when_share_link_viewed";
291
+ };
292
+ items: ({
293
+ skippable: boolean;
294
+ } & {
295
+ id: number;
296
+ title: string;
297
+ goal: {
298
+ type: "command_executed";
299
+ meta: {
300
+ command: string;
301
+ };
302
+ } | {
303
+ type: "page_visited";
304
+ value: string;
305
+ } | {
306
+ type: "element_clicked";
307
+ value: string;
308
+ } | {
309
+ type: "conditions_met";
310
+ expression: import("./helpers/rules").RuleExpression;
311
+ } | {
312
+ type: "cta_clicked";
313
+ } | {
314
+ type: "event_tracked";
315
+ event: string;
316
+ };
317
+ action: {
318
+ type: "execute_command";
319
+ meta: {
320
+ command: string;
321
+ };
322
+ } | ({
323
+ type: "link";
324
+ value: string;
325
+ } & {
326
+ operation?: "self" | "router" | "blank" | undefined;
327
+ }) | {
328
+ type: "click" | "clickByXpath" | "clickBySelector";
329
+ value: string[];
330
+ } | {
331
+ type: "nudge";
332
+ value: number;
333
+ } | ({
334
+ type: "open_bar";
335
+ } & {
336
+ value?: string | undefined;
337
+ categoryFilter?: number | undefined;
338
+ });
339
+ celebrate: boolean;
340
+ } & {
341
+ description?: string | undefined;
342
+ cta?: string | undefined;
343
+ celebration?: "confetti" | "coin" | undefined;
344
+ })[];
345
+ } & {
346
+ description?: string | undefined;
347
+ is_live?: boolean | undefined;
348
+ audience?: {
349
+ type: "all_users";
350
+ } | {
351
+ type: "rule_expression";
352
+ expression: import("./helpers/rules").RuleExpression;
353
+ } | {
354
+ type: "named_rule_reference";
355
+ rule_reference: {
356
+ type: "named_rule";
357
+ rule_id: string | number;
358
+ } & {
359
+ reason?: string | undefined;
360
+ };
361
+ } | null | undefined;
362
+ } & {
363
+ celebrate: boolean;
364
+ template_source: string;
365
+ position: "bottomRight" | "bottomLeft";
366
+ skippable: boolean;
367
+ open_by_default: boolean;
368
+ share_page_url: string;
369
+ };
370
+ static create: (object: {
371
+ id: number;
372
+ title: string;
373
+ show_expression: import("./helpers/rules").RuleExpression;
374
+ trigger: {
375
+ type: "when_conditions_pass";
376
+ } | {
377
+ type: "when_page_reached";
378
+ meta: {
379
+ url: string;
380
+ };
381
+ } | {
382
+ type: "on_command_execution";
383
+ meta: {
384
+ command: string;
385
+ };
386
+ } | {
387
+ type: "on_event";
388
+ meta: {
389
+ event: string;
390
+ };
391
+ } | {
392
+ type: "when_element_appears";
393
+ meta: {
394
+ selector: string;
395
+ };
396
+ } | {
397
+ type: "when_share_link_viewed";
398
+ };
399
+ items: ({
400
+ skippable: boolean;
401
+ } & {
402
+ id: number;
403
+ title: string;
404
+ goal: {
405
+ type: "command_executed";
406
+ meta: {
407
+ command: string;
408
+ };
409
+ } | {
410
+ type: "page_visited";
411
+ value: string;
412
+ } | {
413
+ type: "element_clicked";
414
+ value: string;
415
+ } | {
416
+ type: "conditions_met";
417
+ expression: import("./helpers/rules").RuleExpression;
418
+ } | {
419
+ type: "cta_clicked";
420
+ } | {
421
+ type: "event_tracked";
422
+ event: string;
423
+ };
424
+ action: {
425
+ type: "execute_command";
426
+ meta: {
427
+ command: string;
428
+ };
429
+ } | ({
430
+ type: "link";
431
+ value: string;
432
+ } & {
433
+ operation?: "self" | "router" | "blank" | undefined;
434
+ }) | {
435
+ type: "click" | "clickByXpath" | "clickBySelector";
436
+ value: string[];
437
+ } | {
438
+ type: "nudge";
439
+ value: number;
440
+ } | ({
441
+ type: "open_bar";
442
+ } & {
443
+ value?: string | undefined;
444
+ categoryFilter?: number | undefined;
445
+ });
446
+ celebrate: boolean;
447
+ } & {
448
+ description?: string | undefined;
449
+ cta?: string | undefined;
450
+ celebration?: "confetti" | "coin" | undefined;
451
+ })[];
452
+ } & {
453
+ description?: string | undefined;
454
+ is_live?: boolean | undefined;
455
+ audience?: {
456
+ type: "all_users";
457
+ } | {
458
+ type: "rule_expression";
459
+ expression: import("./helpers/rules").RuleExpression;
460
+ } | {
461
+ type: "named_rule_reference";
462
+ rule_reference: {
463
+ type: "named_rule";
464
+ rule_id: string | number;
465
+ } & {
466
+ reason?: string | undefined;
467
+ };
468
+ } | null | undefined;
469
+ } & {
470
+ celebrate: boolean;
471
+ template_source: string;
472
+ position: "bottomRight" | "bottomLeft";
473
+ skippable: boolean;
474
+ open_by_default: boolean;
475
+ share_page_url: string;
476
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
477
+ id: number;
478
+ title: string;
479
+ show_expression: import("./helpers/rules").RuleExpression;
480
+ trigger: {
481
+ type: "when_conditions_pass";
482
+ } | {
483
+ type: "when_page_reached";
484
+ meta: {
485
+ url: string;
486
+ };
487
+ } | {
488
+ type: "on_command_execution";
489
+ meta: {
490
+ command: string;
491
+ };
492
+ } | {
493
+ type: "on_event";
494
+ meta: {
495
+ event: string;
496
+ };
497
+ } | {
498
+ type: "when_element_appears";
499
+ meta: {
500
+ selector: string;
501
+ };
502
+ } | {
503
+ type: "when_share_link_viewed";
504
+ };
505
+ items: ({
506
+ skippable: boolean;
507
+ } & {
508
+ id: number;
509
+ title: string;
510
+ goal: {
511
+ type: "command_executed";
512
+ meta: {
513
+ command: string;
514
+ };
515
+ } | {
516
+ type: "page_visited";
517
+ value: string;
518
+ } | {
519
+ type: "element_clicked";
520
+ value: string;
521
+ } | {
522
+ type: "conditions_met";
523
+ expression: import("./helpers/rules").RuleExpression;
524
+ } | {
525
+ type: "cta_clicked";
526
+ } | {
527
+ type: "event_tracked";
528
+ event: string;
529
+ };
530
+ action: {
531
+ type: "execute_command";
532
+ meta: {
533
+ command: string;
534
+ };
535
+ } | ({
536
+ type: "link";
537
+ value: string;
538
+ } & {
539
+ operation?: "self" | "router" | "blank" | undefined;
540
+ }) | {
541
+ type: "click" | "clickByXpath" | "clickBySelector";
542
+ value: string[];
543
+ } | {
544
+ type: "nudge";
545
+ value: number;
546
+ } | ({
547
+ type: "open_bar";
548
+ } & {
549
+ value?: string | undefined;
550
+ categoryFilter?: number | undefined;
551
+ });
552
+ celebrate: boolean;
553
+ } & {
554
+ description?: string | undefined;
555
+ cta?: string | undefined;
556
+ celebration?: "confetti" | "coin" | undefined;
557
+ })[];
558
+ } & {
559
+ description?: string | undefined;
560
+ is_live?: boolean | undefined;
561
+ audience?: {
562
+ type: "all_users";
563
+ } | {
564
+ type: "rule_expression";
565
+ expression: import("./helpers/rules").RuleExpression;
566
+ } | {
567
+ type: "named_rule_reference";
568
+ rule_reference: {
569
+ type: "named_rule";
570
+ rule_id: string | number;
571
+ } & {
572
+ reason?: string | undefined;
573
+ };
574
+ } | null | undefined;
575
+ } & {
576
+ celebrate: boolean;
577
+ template_source: string;
578
+ position: "bottomRight" | "bottomLeft";
579
+ skippable: boolean;
580
+ open_by_default: boolean;
581
+ share_page_url: string;
582
+ }>;
583
+ static update: (object: {
584
+ id: number;
585
+ title: string;
586
+ show_expression: import("./helpers/rules").RuleExpression;
587
+ trigger: {
588
+ type: "when_conditions_pass";
589
+ } | {
590
+ type: "when_page_reached";
591
+ meta: {
592
+ url: string;
593
+ };
594
+ } | {
595
+ type: "on_command_execution";
596
+ meta: {
597
+ command: string;
598
+ };
599
+ } | {
600
+ type: "on_event";
601
+ meta: {
602
+ event: string;
603
+ };
604
+ } | {
605
+ type: "when_element_appears";
606
+ meta: {
607
+ selector: string;
608
+ };
609
+ } | {
610
+ type: "when_share_link_viewed";
611
+ };
612
+ items: ({
613
+ skippable: boolean;
614
+ } & {
615
+ id: number;
616
+ title: string;
617
+ goal: {
618
+ type: "command_executed";
619
+ meta: {
620
+ command: string;
621
+ };
622
+ } | {
623
+ type: "page_visited";
624
+ value: string;
625
+ } | {
626
+ type: "element_clicked";
627
+ value: string;
628
+ } | {
629
+ type: "conditions_met";
630
+ expression: import("./helpers/rules").RuleExpression;
631
+ } | {
632
+ type: "cta_clicked";
633
+ } | {
634
+ type: "event_tracked";
635
+ event: string;
636
+ };
637
+ action: {
638
+ type: "execute_command";
639
+ meta: {
640
+ command: string;
641
+ };
642
+ } | ({
643
+ type: "link";
644
+ value: string;
645
+ } & {
646
+ operation?: "self" | "router" | "blank" | undefined;
647
+ }) | {
648
+ type: "click" | "clickByXpath" | "clickBySelector";
649
+ value: string[];
650
+ } | {
651
+ type: "nudge";
652
+ value: number;
653
+ } | ({
654
+ type: "open_bar";
655
+ } & {
656
+ value?: string | undefined;
657
+ categoryFilter?: number | undefined;
658
+ });
659
+ celebrate: boolean;
660
+ } & {
661
+ description?: string | undefined;
662
+ cta?: string | undefined;
663
+ celebration?: "confetti" | "coin" | undefined;
664
+ })[];
665
+ } & {
666
+ description?: string | undefined;
667
+ is_live?: boolean | undefined;
668
+ audience?: {
669
+ type: "all_users";
670
+ } | {
671
+ type: "rule_expression";
672
+ expression: import("./helpers/rules").RuleExpression;
673
+ } | {
674
+ type: "named_rule_reference";
675
+ rule_reference: {
676
+ type: "named_rule";
677
+ rule_id: string | number;
678
+ } & {
679
+ reason?: string | undefined;
680
+ };
681
+ } | null | undefined;
682
+ } & {
683
+ celebrate: boolean;
684
+ template_source: string;
685
+ position: "bottomRight" | "bottomLeft";
686
+ skippable: boolean;
687
+ open_by_default: boolean;
688
+ share_page_url: string;
689
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
690
+ id: number;
691
+ title: string;
692
+ show_expression: import("./helpers/rules").RuleExpression;
693
+ trigger: {
694
+ type: "when_conditions_pass";
695
+ } | {
696
+ type: "when_page_reached";
697
+ meta: {
698
+ url: string;
699
+ };
700
+ } | {
701
+ type: "on_command_execution";
702
+ meta: {
703
+ command: string;
704
+ };
705
+ } | {
706
+ type: "on_event";
707
+ meta: {
708
+ event: string;
709
+ };
710
+ } | {
711
+ type: "when_element_appears";
712
+ meta: {
713
+ selector: string;
714
+ };
715
+ } | {
716
+ type: "when_share_link_viewed";
717
+ };
718
+ items: ({
719
+ skippable: boolean;
720
+ } & {
721
+ id: number;
722
+ title: string;
723
+ goal: {
724
+ type: "command_executed";
725
+ meta: {
726
+ command: string;
727
+ };
728
+ } | {
729
+ type: "page_visited";
730
+ value: string;
731
+ } | {
732
+ type: "element_clicked";
733
+ value: string;
734
+ } | {
735
+ type: "conditions_met";
736
+ expression: import("./helpers/rules").RuleExpression;
737
+ } | {
738
+ type: "cta_clicked";
739
+ } | {
740
+ type: "event_tracked";
741
+ event: string;
742
+ };
743
+ action: {
744
+ type: "execute_command";
745
+ meta: {
746
+ command: string;
747
+ };
748
+ } | ({
749
+ type: "link";
750
+ value: string;
751
+ } & {
752
+ operation?: "self" | "router" | "blank" | undefined;
753
+ }) | {
754
+ type: "click" | "clickByXpath" | "clickBySelector";
755
+ value: string[];
756
+ } | {
757
+ type: "nudge";
758
+ value: number;
759
+ } | ({
760
+ type: "open_bar";
761
+ } & {
762
+ value?: string | undefined;
763
+ categoryFilter?: number | undefined;
764
+ });
765
+ celebrate: boolean;
766
+ } & {
767
+ description?: string | undefined;
768
+ cta?: string | undefined;
769
+ celebration?: "confetti" | "coin" | undefined;
770
+ })[];
771
+ } & {
772
+ description?: string | undefined;
773
+ is_live?: boolean | undefined;
774
+ audience?: {
775
+ type: "all_users";
776
+ } | {
777
+ type: "rule_expression";
778
+ expression: import("./helpers/rules").RuleExpression;
779
+ } | {
780
+ type: "named_rule_reference";
781
+ rule_reference: {
782
+ type: "named_rule";
783
+ rule_id: string | number;
784
+ } & {
785
+ reason?: string | undefined;
786
+ };
787
+ } | null | undefined;
788
+ } & {
789
+ celebrate: boolean;
790
+ template_source: string;
791
+ position: "bottomRight" | "bottomLeft";
792
+ skippable: boolean;
793
+ open_by_default: boolean;
794
+ share_page_url: string;
795
+ }>;
796
+ static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
797
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
798
+ id: number;
799
+ title: string;
800
+ show_expression: import("./helpers/rules").RuleExpression;
801
+ trigger: {
802
+ type: "when_conditions_pass";
803
+ } | {
804
+ type: "when_page_reached";
805
+ meta: {
806
+ url: string;
807
+ };
808
+ } | {
809
+ type: "on_command_execution";
810
+ meta: {
811
+ command: string;
812
+ };
813
+ } | {
814
+ type: "on_event";
815
+ meta: {
816
+ event: string;
817
+ };
818
+ } | {
819
+ type: "when_element_appears";
820
+ meta: {
821
+ selector: string;
822
+ };
823
+ } | {
824
+ type: "when_share_link_viewed";
825
+ };
826
+ items: ({
827
+ skippable: boolean;
828
+ } & {
829
+ id: number;
830
+ title: string;
831
+ goal: {
832
+ type: "command_executed";
833
+ meta: {
834
+ command: string;
835
+ };
836
+ } | {
837
+ type: "page_visited";
838
+ value: string;
839
+ } | {
840
+ type: "element_clicked";
841
+ value: string;
842
+ } | {
843
+ type: "conditions_met";
844
+ expression: import("./helpers/rules").RuleExpression;
845
+ } | {
846
+ type: "cta_clicked";
847
+ } | {
848
+ type: "event_tracked";
849
+ event: string;
850
+ };
851
+ action: {
852
+ type: "execute_command";
853
+ meta: {
854
+ command: string;
855
+ };
856
+ } | ({
857
+ type: "link";
858
+ value: string;
859
+ } & {
860
+ operation?: "self" | "router" | "blank" | undefined;
861
+ }) | {
862
+ type: "click" | "clickByXpath" | "clickBySelector";
863
+ value: string[];
864
+ } | {
865
+ type: "nudge";
866
+ value: number;
867
+ } | ({
868
+ type: "open_bar";
869
+ } & {
870
+ value?: string | undefined;
871
+ categoryFilter?: number | undefined;
872
+ });
873
+ celebrate: boolean;
874
+ } & {
875
+ description?: string | undefined;
876
+ cta?: string | undefined;
877
+ celebration?: "confetti" | "coin" | undefined;
878
+ })[];
879
+ } & {
880
+ description?: string | undefined;
881
+ is_live?: boolean | undefined;
882
+ audience?: {
883
+ type: "all_users";
884
+ } | {
885
+ type: "rule_expression";
886
+ expression: import("./helpers/rules").RuleExpression;
887
+ } | {
888
+ type: "named_rule_reference";
889
+ rule_reference: {
890
+ type: "named_rule";
891
+ rule_id: string | number;
892
+ } & {
893
+ reason?: string | undefined;
894
+ };
895
+ } | null | undefined;
896
+ } & {
897
+ celebrate: boolean;
898
+ template_source: string;
899
+ position: "bottomRight" | "bottomLeft";
900
+ skippable: boolean;
901
+ open_by_default: boolean;
902
+ share_page_url: string;
903
+ })[]>;
904
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
905
+ onSuccess?: (() => void) | undefined;
906
+ onError?: ((err: string) => void) | undefined;
907
+ } | undefined) => Promise<{
908
+ id: number;
909
+ title: string;
910
+ show_expression: import("./helpers/rules").RuleExpression;
911
+ trigger: {
912
+ type: "when_conditions_pass";
913
+ } | {
914
+ type: "when_page_reached";
915
+ meta: {
916
+ url: string;
917
+ };
918
+ } | {
919
+ type: "on_command_execution";
920
+ meta: {
921
+ command: string;
922
+ };
923
+ } | {
924
+ type: "on_event";
925
+ meta: {
926
+ event: string;
927
+ };
928
+ } | {
929
+ type: "when_element_appears";
930
+ meta: {
931
+ selector: string;
932
+ };
933
+ } | {
934
+ type: "when_share_link_viewed";
935
+ };
936
+ items: ({
937
+ skippable: boolean;
938
+ } & {
939
+ id: number;
940
+ title: string;
941
+ goal: {
942
+ type: "command_executed";
943
+ meta: {
944
+ command: string;
945
+ };
946
+ } | {
947
+ type: "page_visited";
948
+ value: string;
949
+ } | {
950
+ type: "element_clicked";
951
+ value: string;
952
+ } | {
953
+ type: "conditions_met";
954
+ expression: import("./helpers/rules").RuleExpression;
955
+ } | {
956
+ type: "cta_clicked";
957
+ } | {
958
+ type: "event_tracked";
959
+ event: string;
960
+ };
961
+ action: {
962
+ type: "execute_command";
963
+ meta: {
964
+ command: string;
965
+ };
966
+ } | ({
967
+ type: "link";
968
+ value: string;
969
+ } & {
970
+ operation?: "self" | "router" | "blank" | undefined;
971
+ }) | {
972
+ type: "click" | "clickByXpath" | "clickBySelector";
973
+ value: string[];
974
+ } | {
975
+ type: "nudge";
976
+ value: number;
977
+ } | ({
978
+ type: "open_bar";
979
+ } & {
980
+ value?: string | undefined;
981
+ categoryFilter?: number | undefined;
982
+ });
983
+ celebrate: boolean;
984
+ } & {
985
+ description?: string | undefined;
986
+ cta?: string | undefined;
987
+ celebration?: "confetti" | "coin" | undefined;
988
+ })[];
989
+ } & {
990
+ description?: string | undefined;
991
+ is_live?: boolean | undefined;
992
+ audience?: {
993
+ type: "all_users";
994
+ } | {
995
+ type: "rule_expression";
996
+ expression: import("./helpers/rules").RuleExpression;
997
+ } | {
998
+ type: "named_rule_reference";
999
+ rule_reference: {
1000
+ type: "named_rule";
1001
+ rule_id: string | number;
1002
+ } & {
1003
+ reason?: string | undefined;
1004
+ };
1005
+ } | null | undefined;
1006
+ } & {
1007
+ celebrate: boolean;
1008
+ template_source: string;
1009
+ position: "bottomRight" | "bottomLeft";
1010
+ skippable: boolean;
1011
+ open_by_default: boolean;
1012
+ share_page_url: string;
1013
+ }>;
1014
+ }