commandbar 1.13.0 → 1.13.1
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/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +2 -0
- package/build/commandbar-js/src/index.js +1 -1
- package/build/commandbar-js/src/init.d.ts +10 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +4 -0
- package/build/internal/src/client/CommandBarProxySDK.d.ts +2 -3
- package/build/internal/src/client/SDKConfig.d.ts +1 -0
- package/build/internal/src/client/symbols.d.ts +2 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +4 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +56 -8
- package/build/internal/src/middleware/additionalResource.d.ts +200 -137
- package/build/internal/src/middleware/api.d.ts +7 -7
- package/build/internal/src/middleware/chat.d.ts +22868 -11601
- package/build/internal/src/middleware/checklist.d.ts +209 -139
- package/build/internal/src/middleware/command.d.ts +2547 -2170
- package/build/internal/src/middleware/endUser.d.ts +0 -32
- package/build/internal/src/middleware/experienceTemplate.d.ts +399 -263
- package/build/internal/src/middleware/experiencesSearch.d.ts +816 -718
- package/build/internal/src/middleware/flags.d.ts +6 -3
- package/build/internal/src/middleware/helpDocsSearch.d.ts +584 -514
- package/build/internal/src/middleware/helpers/actions.d.ts +66 -28
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +18 -4
- package/build/internal/src/middleware/helpers/rules.d.ts +19 -4
- package/build/internal/src/middleware/nudge.d.ts +482 -281
- package/build/internal/src/middleware/organization.d.ts +825 -670
- package/build/internal/src/middleware/organizationSettings.d.ts +210 -130
- package/build/internal/src/middleware/profile.d.ts +1 -1
- package/build/internal/src/middleware/recommendationSet.d.ts +200 -137
- package/build/internal/src/middleware/theme.d.ts +7 -0
- package/build/internal/src/middleware/types.d.ts +16 -20
- package/package.json +1 -1
- package/src/init.ts +13 -2
- package/build/commandbar/src/shared/services/analytics/event-queue.d.ts +0 -13
- package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +0 -53
- package/build/commandbar/src/shared/services/analytics/v2/helpers.d.ts +0 -6
- package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +0 -152
- package/build/commandbar/src/shared/services/analytics/v2/types.d.ts +0 -4
- package/build/internal/src/client/CommandBarSDK.d.ts +0 -99
- package/build/internal/src/client/globals.d.ts +0 -27
- package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -14
- package/build/internal/src/util/sentry.d.ts +0 -23
@@ -50,6 +50,11 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
|
|
50
50
|
meta: t.TypeC<{
|
51
51
|
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
52
52
|
}>;
|
53
|
+
}>, t.TypeC<{
|
54
|
+
type: t.LiteralC<"chat_handoff">;
|
55
|
+
meta: t.TypeC<{
|
56
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
|
57
|
+
}>;
|
53
58
|
}>, t.TypeC<{
|
54
59
|
type: t.LiteralC<"dismiss">;
|
55
60
|
}>, t.TypeC<{
|
@@ -72,9 +77,11 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
|
|
72
77
|
categoryFilter: t.NumberC;
|
73
78
|
}>]>, t.TypeC<{
|
74
79
|
type: t.LiteralC<"open_helphub">;
|
75
|
-
}>, t.TypeC<{
|
80
|
+
}>, t.IntersectionC<[t.TypeC<{
|
76
81
|
type: t.LiteralC<"open_copilot">;
|
77
|
-
}
|
82
|
+
}>, t.PartialC<{
|
83
|
+
query: t.StringC;
|
84
|
+
}>]>]>;
|
78
85
|
cta: t.StringC;
|
79
86
|
}>>;
|
80
87
|
is_live: t.BooleanC;
|
@@ -129,6 +136,11 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
|
129
136
|
meta: t.TypeC<{
|
130
137
|
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
131
138
|
}>;
|
139
|
+
}>, t.TypeC<{
|
140
|
+
type: t.LiteralC<"chat_handoff">;
|
141
|
+
meta: t.TypeC<{
|
142
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
|
143
|
+
}>;
|
132
144
|
}>, t.TypeC<{
|
133
145
|
type: t.LiteralC<"dismiss">;
|
134
146
|
}>, t.TypeC<{
|
@@ -151,9 +163,11 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
|
151
163
|
categoryFilter: t.NumberC;
|
152
164
|
}>]>, t.TypeC<{
|
153
165
|
type: t.LiteralC<"open_helphub">;
|
154
|
-
}>, t.TypeC<{
|
166
|
+
}>, t.IntersectionC<[t.TypeC<{
|
155
167
|
type: t.LiteralC<"open_copilot">;
|
156
|
-
}
|
168
|
+
}>, t.PartialC<{
|
169
|
+
query: t.StringC;
|
170
|
+
}>]>]>;
|
157
171
|
cta: t.StringC;
|
158
172
|
}>>;
|
159
173
|
is_live: t.BooleanC;
|
@@ -181,31 +195,38 @@ export declare class RecommendationSet {
|
|
181
195
|
};
|
182
196
|
} & {
|
183
197
|
actions: {
|
184
|
-
action: {
|
198
|
+
action: ({
|
199
|
+
type: "link";
|
200
|
+
value: string;
|
201
|
+
} & {
|
202
|
+
operation?: "self" | "router" | "blank" | undefined;
|
203
|
+
meta?: {
|
204
|
+
command: string;
|
205
|
+
} | undefined;
|
206
|
+
}) | {
|
207
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
208
|
+
value: string[];
|
209
|
+
} | {
|
185
210
|
type: "execute_command";
|
186
211
|
meta: {
|
187
212
|
command: string;
|
188
213
|
} & {
|
189
214
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
190
215
|
};
|
216
|
+
} | {
|
217
|
+
type: "no_action";
|
191
218
|
} | {
|
192
219
|
type: "click";
|
193
220
|
value: string;
|
194
221
|
} | {
|
195
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
196
|
-
value: string[];
|
197
|
-
} | ({
|
198
|
-
type: "link";
|
199
|
-
value: string;
|
200
|
-
} & {
|
201
|
-
operation?: "self" | "router" | "blank" | undefined;
|
202
|
-
meta?: {
|
203
|
-
command: string;
|
204
|
-
} | undefined;
|
205
|
-
}) | {
|
206
222
|
type: "open_chat";
|
207
223
|
meta: {
|
208
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "
|
224
|
+
type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
|
225
|
+
};
|
226
|
+
} | {
|
227
|
+
type: "chat_handoff";
|
228
|
+
meta: {
|
229
|
+
type: "" | "intercom" | "freshchat" | "zendesk";
|
209
230
|
};
|
210
231
|
} | {
|
211
232
|
type: "dismiss";
|
@@ -214,14 +235,14 @@ export declare class RecommendationSet {
|
|
214
235
|
} | {
|
215
236
|
type: "questlist";
|
216
237
|
value: number;
|
217
|
-
} | {
|
218
|
-
type: "step_back";
|
219
238
|
} | {
|
220
239
|
type: "nudge";
|
221
240
|
value: number;
|
222
241
|
} | {
|
223
242
|
type: "go_to_step";
|
224
243
|
value: number;
|
244
|
+
} | {
|
245
|
+
type: "step_back";
|
225
246
|
} | ({
|
226
247
|
type: "open_bar";
|
227
248
|
} & {
|
@@ -229,11 +250,11 @@ export declare class RecommendationSet {
|
|
229
250
|
categoryFilter?: number | undefined;
|
230
251
|
}) | {
|
231
252
|
type: "open_helphub";
|
232
|
-
} | {
|
253
|
+
} | ({
|
233
254
|
type: "open_copilot";
|
234
|
-
}
|
235
|
-
|
236
|
-
};
|
255
|
+
} & {
|
256
|
+
query?: string | undefined;
|
257
|
+
});
|
237
258
|
cta: string;
|
238
259
|
}[];
|
239
260
|
is_live: boolean;
|
@@ -260,31 +281,38 @@ export declare class RecommendationSet {
|
|
260
281
|
};
|
261
282
|
} & {
|
262
283
|
actions: {
|
263
|
-
action: {
|
284
|
+
action: ({
|
285
|
+
type: "link";
|
286
|
+
value: string;
|
287
|
+
} & {
|
288
|
+
operation?: "self" | "router" | "blank" | undefined;
|
289
|
+
meta?: {
|
290
|
+
command: string;
|
291
|
+
} | undefined;
|
292
|
+
}) | {
|
293
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
294
|
+
value: string[];
|
295
|
+
} | {
|
264
296
|
type: "execute_command";
|
265
297
|
meta: {
|
266
298
|
command: string;
|
267
299
|
} & {
|
268
300
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
269
301
|
};
|
302
|
+
} | {
|
303
|
+
type: "no_action";
|
270
304
|
} | {
|
271
305
|
type: "click";
|
272
306
|
value: string;
|
273
307
|
} | {
|
274
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
275
|
-
value: string[];
|
276
|
-
} | ({
|
277
|
-
type: "link";
|
278
|
-
value: string;
|
279
|
-
} & {
|
280
|
-
operation?: "self" | "router" | "blank" | undefined;
|
281
|
-
meta?: {
|
282
|
-
command: string;
|
283
|
-
} | undefined;
|
284
|
-
}) | {
|
285
308
|
type: "open_chat";
|
286
309
|
meta: {
|
287
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "
|
310
|
+
type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
|
311
|
+
};
|
312
|
+
} | {
|
313
|
+
type: "chat_handoff";
|
314
|
+
meta: {
|
315
|
+
type: "" | "intercom" | "freshchat" | "zendesk";
|
288
316
|
};
|
289
317
|
} | {
|
290
318
|
type: "dismiss";
|
@@ -293,14 +321,14 @@ export declare class RecommendationSet {
|
|
293
321
|
} | {
|
294
322
|
type: "questlist";
|
295
323
|
value: number;
|
296
|
-
} | {
|
297
|
-
type: "step_back";
|
298
324
|
} | {
|
299
325
|
type: "nudge";
|
300
326
|
value: number;
|
301
327
|
} | {
|
302
328
|
type: "go_to_step";
|
303
329
|
value: number;
|
330
|
+
} | {
|
331
|
+
type: "step_back";
|
304
332
|
} | ({
|
305
333
|
type: "open_bar";
|
306
334
|
} & {
|
@@ -308,11 +336,11 @@ export declare class RecommendationSet {
|
|
308
336
|
categoryFilter?: number | undefined;
|
309
337
|
}) | {
|
310
338
|
type: "open_helphub";
|
311
|
-
} | {
|
339
|
+
} | ({
|
312
340
|
type: "open_copilot";
|
313
|
-
}
|
314
|
-
|
315
|
-
};
|
341
|
+
} & {
|
342
|
+
query?: string | undefined;
|
343
|
+
});
|
316
344
|
cta: string;
|
317
345
|
}[];
|
318
346
|
is_live: boolean;
|
@@ -338,31 +366,38 @@ export declare class RecommendationSet {
|
|
338
366
|
};
|
339
367
|
} & {
|
340
368
|
actions: {
|
341
|
-
action: {
|
369
|
+
action: ({
|
370
|
+
type: "link";
|
371
|
+
value: string;
|
372
|
+
} & {
|
373
|
+
operation?: "self" | "router" | "blank" | undefined;
|
374
|
+
meta?: {
|
375
|
+
command: string;
|
376
|
+
} | undefined;
|
377
|
+
}) | {
|
378
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
379
|
+
value: string[];
|
380
|
+
} | {
|
342
381
|
type: "execute_command";
|
343
382
|
meta: {
|
344
383
|
command: string;
|
345
384
|
} & {
|
346
385
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
347
386
|
};
|
387
|
+
} | {
|
388
|
+
type: "no_action";
|
348
389
|
} | {
|
349
390
|
type: "click";
|
350
391
|
value: string;
|
351
392
|
} | {
|
352
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
353
|
-
value: string[];
|
354
|
-
} | ({
|
355
|
-
type: "link";
|
356
|
-
value: string;
|
357
|
-
} & {
|
358
|
-
operation?: "self" | "router" | "blank" | undefined;
|
359
|
-
meta?: {
|
360
|
-
command: string;
|
361
|
-
} | undefined;
|
362
|
-
}) | {
|
363
393
|
type: "open_chat";
|
364
394
|
meta: {
|
365
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "
|
395
|
+
type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
|
396
|
+
};
|
397
|
+
} | {
|
398
|
+
type: "chat_handoff";
|
399
|
+
meta: {
|
400
|
+
type: "" | "intercom" | "freshchat" | "zendesk";
|
366
401
|
};
|
367
402
|
} | {
|
368
403
|
type: "dismiss";
|
@@ -371,14 +406,14 @@ export declare class RecommendationSet {
|
|
371
406
|
} | {
|
372
407
|
type: "questlist";
|
373
408
|
value: number;
|
374
|
-
} | {
|
375
|
-
type: "step_back";
|
376
409
|
} | {
|
377
410
|
type: "nudge";
|
378
411
|
value: number;
|
379
412
|
} | {
|
380
413
|
type: "go_to_step";
|
381
414
|
value: number;
|
415
|
+
} | {
|
416
|
+
type: "step_back";
|
382
417
|
} | ({
|
383
418
|
type: "open_bar";
|
384
419
|
} & {
|
@@ -386,11 +421,11 @@ export declare class RecommendationSet {
|
|
386
421
|
categoryFilter?: number | undefined;
|
387
422
|
}) | {
|
388
423
|
type: "open_helphub";
|
389
|
-
} | {
|
424
|
+
} | ({
|
390
425
|
type: "open_copilot";
|
391
|
-
}
|
392
|
-
|
393
|
-
};
|
426
|
+
} & {
|
427
|
+
query?: string | undefined;
|
428
|
+
});
|
394
429
|
cta: string;
|
395
430
|
}[];
|
396
431
|
is_live: boolean;
|
@@ -417,31 +452,38 @@ export declare class RecommendationSet {
|
|
417
452
|
};
|
418
453
|
} & {
|
419
454
|
actions: {
|
420
|
-
action: {
|
455
|
+
action: ({
|
456
|
+
type: "link";
|
457
|
+
value: string;
|
458
|
+
} & {
|
459
|
+
operation?: "self" | "router" | "blank" | undefined;
|
460
|
+
meta?: {
|
461
|
+
command: string;
|
462
|
+
} | undefined;
|
463
|
+
}) | {
|
464
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
465
|
+
value: string[];
|
466
|
+
} | {
|
421
467
|
type: "execute_command";
|
422
468
|
meta: {
|
423
469
|
command: string;
|
424
470
|
} & {
|
425
471
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
426
472
|
};
|
473
|
+
} | {
|
474
|
+
type: "no_action";
|
427
475
|
} | {
|
428
476
|
type: "click";
|
429
477
|
value: string;
|
430
478
|
} | {
|
431
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
432
|
-
value: string[];
|
433
|
-
} | ({
|
434
|
-
type: "link";
|
435
|
-
value: string;
|
436
|
-
} & {
|
437
|
-
operation?: "self" | "router" | "blank" | undefined;
|
438
|
-
meta?: {
|
439
|
-
command: string;
|
440
|
-
} | undefined;
|
441
|
-
}) | {
|
442
479
|
type: "open_chat";
|
443
480
|
meta: {
|
444
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "
|
481
|
+
type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
|
482
|
+
};
|
483
|
+
} | {
|
484
|
+
type: "chat_handoff";
|
485
|
+
meta: {
|
486
|
+
type: "" | "intercom" | "freshchat" | "zendesk";
|
445
487
|
};
|
446
488
|
} | {
|
447
489
|
type: "dismiss";
|
@@ -450,14 +492,14 @@ export declare class RecommendationSet {
|
|
450
492
|
} | {
|
451
493
|
type: "questlist";
|
452
494
|
value: number;
|
453
|
-
} | {
|
454
|
-
type: "step_back";
|
455
495
|
} | {
|
456
496
|
type: "nudge";
|
457
497
|
value: number;
|
458
498
|
} | {
|
459
499
|
type: "go_to_step";
|
460
500
|
value: number;
|
501
|
+
} | {
|
502
|
+
type: "step_back";
|
461
503
|
} | ({
|
462
504
|
type: "open_bar";
|
463
505
|
} & {
|
@@ -465,11 +507,11 @@ export declare class RecommendationSet {
|
|
465
507
|
categoryFilter?: number | undefined;
|
466
508
|
}) | {
|
467
509
|
type: "open_helphub";
|
468
|
-
} | {
|
510
|
+
} | ({
|
469
511
|
type: "open_copilot";
|
470
|
-
}
|
471
|
-
|
472
|
-
};
|
512
|
+
} & {
|
513
|
+
query?: string | undefined;
|
514
|
+
});
|
473
515
|
cta: string;
|
474
516
|
}[];
|
475
517
|
is_live: boolean;
|
@@ -495,31 +537,38 @@ export declare class RecommendationSet {
|
|
495
537
|
};
|
496
538
|
} & {
|
497
539
|
actions: {
|
498
|
-
action: {
|
540
|
+
action: ({
|
541
|
+
type: "link";
|
542
|
+
value: string;
|
543
|
+
} & {
|
544
|
+
operation?: "self" | "router" | "blank" | undefined;
|
545
|
+
meta?: {
|
546
|
+
command: string;
|
547
|
+
} | undefined;
|
548
|
+
}) | {
|
549
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
550
|
+
value: string[];
|
551
|
+
} | {
|
499
552
|
type: "execute_command";
|
500
553
|
meta: {
|
501
554
|
command: string;
|
502
555
|
} & {
|
503
556
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
504
557
|
};
|
558
|
+
} | {
|
559
|
+
type: "no_action";
|
505
560
|
} | {
|
506
561
|
type: "click";
|
507
562
|
value: string;
|
508
563
|
} | {
|
509
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
510
|
-
value: string[];
|
511
|
-
} | ({
|
512
|
-
type: "link";
|
513
|
-
value: string;
|
514
|
-
} & {
|
515
|
-
operation?: "self" | "router" | "blank" | undefined;
|
516
|
-
meta?: {
|
517
|
-
command: string;
|
518
|
-
} | undefined;
|
519
|
-
}) | {
|
520
564
|
type: "open_chat";
|
521
565
|
meta: {
|
522
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "
|
566
|
+
type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
|
567
|
+
};
|
568
|
+
} | {
|
569
|
+
type: "chat_handoff";
|
570
|
+
meta: {
|
571
|
+
type: "" | "intercom" | "freshchat" | "zendesk";
|
523
572
|
};
|
524
573
|
} | {
|
525
574
|
type: "dismiss";
|
@@ -528,14 +577,14 @@ export declare class RecommendationSet {
|
|
528
577
|
} | {
|
529
578
|
type: "questlist";
|
530
579
|
value: number;
|
531
|
-
} | {
|
532
|
-
type: "step_back";
|
533
580
|
} | {
|
534
581
|
type: "nudge";
|
535
582
|
value: number;
|
536
583
|
} | {
|
537
584
|
type: "go_to_step";
|
538
585
|
value: number;
|
586
|
+
} | {
|
587
|
+
type: "step_back";
|
539
588
|
} | ({
|
540
589
|
type: "open_bar";
|
541
590
|
} & {
|
@@ -543,11 +592,11 @@ export declare class RecommendationSet {
|
|
543
592
|
categoryFilter?: number | undefined;
|
544
593
|
}) | {
|
545
594
|
type: "open_helphub";
|
546
|
-
} | {
|
595
|
+
} | ({
|
547
596
|
type: "open_copilot";
|
548
|
-
}
|
549
|
-
|
550
|
-
};
|
597
|
+
} & {
|
598
|
+
query?: string | undefined;
|
599
|
+
});
|
551
600
|
cta: string;
|
552
601
|
}[];
|
553
602
|
is_live: boolean;
|
@@ -575,31 +624,38 @@ export declare class RecommendationSet {
|
|
575
624
|
};
|
576
625
|
} & {
|
577
626
|
actions: {
|
578
|
-
action: {
|
627
|
+
action: ({
|
628
|
+
type: "link";
|
629
|
+
value: string;
|
630
|
+
} & {
|
631
|
+
operation?: "self" | "router" | "blank" | undefined;
|
632
|
+
meta?: {
|
633
|
+
command: string;
|
634
|
+
} | undefined;
|
635
|
+
}) | {
|
636
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
637
|
+
value: string[];
|
638
|
+
} | {
|
579
639
|
type: "execute_command";
|
580
640
|
meta: {
|
581
641
|
command: string;
|
582
642
|
} & {
|
583
643
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
584
644
|
};
|
645
|
+
} | {
|
646
|
+
type: "no_action";
|
585
647
|
} | {
|
586
648
|
type: "click";
|
587
649
|
value: string;
|
588
650
|
} | {
|
589
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
590
|
-
value: string[];
|
591
|
-
} | ({
|
592
|
-
type: "link";
|
593
|
-
value: string;
|
594
|
-
} & {
|
595
|
-
operation?: "self" | "router" | "blank" | undefined;
|
596
|
-
meta?: {
|
597
|
-
command: string;
|
598
|
-
} | undefined;
|
599
|
-
}) | {
|
600
651
|
type: "open_chat";
|
601
652
|
meta: {
|
602
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "
|
653
|
+
type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
|
654
|
+
};
|
655
|
+
} | {
|
656
|
+
type: "chat_handoff";
|
657
|
+
meta: {
|
658
|
+
type: "" | "intercom" | "freshchat" | "zendesk";
|
603
659
|
};
|
604
660
|
} | {
|
605
661
|
type: "dismiss";
|
@@ -608,14 +664,14 @@ export declare class RecommendationSet {
|
|
608
664
|
} | {
|
609
665
|
type: "questlist";
|
610
666
|
value: number;
|
611
|
-
} | {
|
612
|
-
type: "step_back";
|
613
667
|
} | {
|
614
668
|
type: "nudge";
|
615
669
|
value: number;
|
616
670
|
} | {
|
617
671
|
type: "go_to_step";
|
618
672
|
value: number;
|
673
|
+
} | {
|
674
|
+
type: "step_back";
|
619
675
|
} | ({
|
620
676
|
type: "open_bar";
|
621
677
|
} & {
|
@@ -623,11 +679,11 @@ export declare class RecommendationSet {
|
|
623
679
|
categoryFilter?: number | undefined;
|
624
680
|
}) | {
|
625
681
|
type: "open_helphub";
|
626
|
-
} | {
|
682
|
+
} | ({
|
627
683
|
type: "open_copilot";
|
628
|
-
}
|
629
|
-
|
630
|
-
};
|
684
|
+
} & {
|
685
|
+
query?: string | undefined;
|
686
|
+
});
|
631
687
|
cta: string;
|
632
688
|
}[];
|
633
689
|
is_live: boolean;
|
@@ -657,31 +713,38 @@ export declare class RecommendationSet {
|
|
657
713
|
};
|
658
714
|
} & {
|
659
715
|
actions: {
|
660
|
-
action: {
|
716
|
+
action: ({
|
717
|
+
type: "link";
|
718
|
+
value: string;
|
719
|
+
} & {
|
720
|
+
operation?: "self" | "router" | "blank" | undefined;
|
721
|
+
meta?: {
|
722
|
+
command: string;
|
723
|
+
} | undefined;
|
724
|
+
}) | {
|
725
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
726
|
+
value: string[];
|
727
|
+
} | {
|
661
728
|
type: "execute_command";
|
662
729
|
meta: {
|
663
730
|
command: string;
|
664
731
|
} & {
|
665
732
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
666
733
|
};
|
734
|
+
} | {
|
735
|
+
type: "no_action";
|
667
736
|
} | {
|
668
737
|
type: "click";
|
669
738
|
value: string;
|
670
739
|
} | {
|
671
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
672
|
-
value: string[];
|
673
|
-
} | ({
|
674
|
-
type: "link";
|
675
|
-
value: string;
|
676
|
-
} & {
|
677
|
-
operation?: "self" | "router" | "blank" | undefined;
|
678
|
-
meta?: {
|
679
|
-
command: string;
|
680
|
-
} | undefined;
|
681
|
-
}) | {
|
682
740
|
type: "open_chat";
|
683
741
|
meta: {
|
684
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "
|
742
|
+
type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
|
743
|
+
};
|
744
|
+
} | {
|
745
|
+
type: "chat_handoff";
|
746
|
+
meta: {
|
747
|
+
type: "" | "intercom" | "freshchat" | "zendesk";
|
685
748
|
};
|
686
749
|
} | {
|
687
750
|
type: "dismiss";
|
@@ -690,14 +753,14 @@ export declare class RecommendationSet {
|
|
690
753
|
} | {
|
691
754
|
type: "questlist";
|
692
755
|
value: number;
|
693
|
-
} | {
|
694
|
-
type: "step_back";
|
695
756
|
} | {
|
696
757
|
type: "nudge";
|
697
758
|
value: number;
|
698
759
|
} | {
|
699
760
|
type: "go_to_step";
|
700
761
|
value: number;
|
762
|
+
} | {
|
763
|
+
type: "step_back";
|
701
764
|
} | ({
|
702
765
|
type: "open_bar";
|
703
766
|
} & {
|
@@ -705,11 +768,11 @@ export declare class RecommendationSet {
|
|
705
768
|
categoryFilter?: number | undefined;
|
706
769
|
}) | {
|
707
770
|
type: "open_helphub";
|
708
|
-
} | {
|
771
|
+
} | ({
|
709
772
|
type: "open_copilot";
|
710
|
-
}
|
711
|
-
|
712
|
-
};
|
773
|
+
} & {
|
774
|
+
query?: string | undefined;
|
775
|
+
});
|
713
776
|
cta: string;
|
714
777
|
}[];
|
715
778
|
is_live: boolean;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as t from 'io-ts';
|
2
|
+
import { WidgetTableauSelection } from '../middleware/types';
|
2
3
|
export declare const ThemeModeV: t.TypeC<{
|
3
4
|
var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
|
4
5
|
var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
|
@@ -92,6 +93,9 @@ export declare const ThemePatchV: t.PartialC<{
|
|
92
93
|
organization: t.StringC;
|
93
94
|
archived: t.BooleanC;
|
94
95
|
}>;
|
96
|
+
export declare const ThemeSlugReponseV: t.TypeC<{
|
97
|
+
slug: t.StringC;
|
98
|
+
}>;
|
95
99
|
export declare class Theme {
|
96
100
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
97
101
|
id: string;
|
@@ -509,4 +513,7 @@ export declare class Theme {
|
|
509
513
|
organization: string;
|
510
514
|
archived: boolean;
|
511
515
|
};
|
516
|
+
static getDefaultThemeSlug: (widgetType: WidgetTableauSelection['type'], widgetId?: number | string) => Promise<{
|
517
|
+
slug: string;
|
518
|
+
}>;
|
512
519
|
}
|