commandbar 1.12.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- 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/commandbar-js/src/snippet.d.ts +0 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +5 -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 +7 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +104 -12
- package/build/internal/src/middleware/additionalResource.d.ts +208 -118
- package/build/internal/src/middleware/api.d.ts +7 -7
- package/build/internal/src/middleware/chat.d.ts +23641 -12011
- package/build/internal/src/middleware/checklist.d.ts +221 -121
- package/build/internal/src/middleware/command.d.ts +2611 -2021
- package/build/internal/src/middleware/endUser.d.ts +0 -32
- package/build/internal/src/middleware/experienceTemplate.d.ts +407 -223
- package/build/internal/src/middleware/experiencesSearch.d.ts +818 -657
- package/build/internal/src/middleware/flags.d.ts +9 -8
- package/build/internal/src/middleware/helpDocsSearch.d.ts +586 -471
- package/build/internal/src/middleware/helpers/actions.d.ts +83 -30
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +32 -6
- package/build/internal/src/middleware/helpers/rules.d.ts +19 -4
- package/build/internal/src/middleware/keyword.d.ts +82 -0
- package/build/internal/src/middleware/network.d.ts +2 -2
- package/build/internal/src/middleware/nudge.d.ts +520 -247
- package/build/internal/src/middleware/organization.d.ts +886 -607
- package/build/internal/src/middleware/organizationSettings.d.ts +282 -114
- package/build/internal/src/middleware/profile.d.ts +1 -1
- package/build/internal/src/middleware/recommendationSet.d.ts +208 -118
- package/build/internal/src/middleware/theme.d.ts +7 -0
- package/build/internal/src/middleware/types.d.ts +21 -20
- package/package.json +1 -1
- package/src/init.ts +13 -2
- package/src/snippet.ts +1 -14
- 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 -54
- 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
@@ -13,7 +13,7 @@ export declare class Profile {
|
|
13
13
|
user: string;
|
14
14
|
organization: string;
|
15
15
|
is_active: boolean;
|
16
|
-
role: "
|
16
|
+
role: "editor" | "admin" | "contributor" | "viewer";
|
17
17
|
first_name: string;
|
18
18
|
last_name: string;
|
19
19
|
email: string;
|
@@ -42,10 +42,18 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
|
|
42
42
|
value: t.StringC;
|
43
43
|
}>, t.PartialC<{
|
44
44
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
45
|
+
meta: t.TypeC<{
|
46
|
+
command: t.StringC;
|
47
|
+
}>;
|
45
48
|
}>]>, t.TypeC<{
|
46
49
|
type: t.LiteralC<"open_chat">;
|
47
50
|
meta: t.TypeC<{
|
48
|
-
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<"zendesk_handoff">, t.LiteralC<"">]>;
|
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
|
+
}>;
|
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<"">]>;
|
49
57
|
}>;
|
50
58
|
}>, t.TypeC<{
|
51
59
|
type: t.LiteralC<"dismiss">;
|
@@ -69,9 +77,11 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
|
|
69
77
|
categoryFilter: t.NumberC;
|
70
78
|
}>]>, t.TypeC<{
|
71
79
|
type: t.LiteralC<"open_helphub">;
|
72
|
-
}>, t.TypeC<{
|
80
|
+
}>, t.IntersectionC<[t.TypeC<{
|
73
81
|
type: t.LiteralC<"open_copilot">;
|
74
|
-
}
|
82
|
+
}>, t.PartialC<{
|
83
|
+
query: t.StringC;
|
84
|
+
}>]>]>;
|
75
85
|
cta: t.StringC;
|
76
86
|
}>>;
|
77
87
|
is_live: t.BooleanC;
|
@@ -118,10 +128,18 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
|
118
128
|
value: t.StringC;
|
119
129
|
}>, t.PartialC<{
|
120
130
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
131
|
+
meta: t.TypeC<{
|
132
|
+
command: t.StringC;
|
133
|
+
}>;
|
121
134
|
}>]>, t.TypeC<{
|
122
135
|
type: t.LiteralC<"open_chat">;
|
123
136
|
meta: t.TypeC<{
|
124
|
-
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<"zendesk_handoff">, t.LiteralC<"">]>;
|
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<"">]>;
|
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<"">]>;
|
125
143
|
}>;
|
126
144
|
}>, t.TypeC<{
|
127
145
|
type: t.LiteralC<"dismiss">;
|
@@ -145,9 +163,11 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
|
145
163
|
categoryFilter: t.NumberC;
|
146
164
|
}>]>, t.TypeC<{
|
147
165
|
type: t.LiteralC<"open_helphub">;
|
148
|
-
}>, t.TypeC<{
|
166
|
+
}>, t.IntersectionC<[t.TypeC<{
|
149
167
|
type: t.LiteralC<"open_copilot">;
|
150
|
-
}
|
168
|
+
}>, t.PartialC<{
|
169
|
+
query: t.StringC;
|
170
|
+
}>]>]>;
|
151
171
|
cta: t.StringC;
|
152
172
|
}>>;
|
153
173
|
is_live: t.BooleanC;
|
@@ -175,28 +195,38 @@ export declare class RecommendationSet {
|
|
175
195
|
};
|
176
196
|
} & {
|
177
197
|
actions: {
|
178
|
-
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
|
+
} | {
|
179
210
|
type: "execute_command";
|
180
211
|
meta: {
|
181
212
|
command: string;
|
182
213
|
} & {
|
183
214
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
184
215
|
};
|
216
|
+
} | {
|
217
|
+
type: "no_action";
|
185
218
|
} | {
|
186
219
|
type: "click";
|
187
220
|
value: string;
|
188
221
|
} | {
|
189
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
190
|
-
value: string[];
|
191
|
-
} | ({
|
192
|
-
type: "link";
|
193
|
-
value: string;
|
194
|
-
} & {
|
195
|
-
operation?: "self" | "router" | "blank" | undefined;
|
196
|
-
}) | {
|
197
222
|
type: "open_chat";
|
198
223
|
meta: {
|
199
|
-
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";
|
200
230
|
};
|
201
231
|
} | {
|
202
232
|
type: "dismiss";
|
@@ -205,14 +235,14 @@ export declare class RecommendationSet {
|
|
205
235
|
} | {
|
206
236
|
type: "questlist";
|
207
237
|
value: number;
|
208
|
-
} | {
|
209
|
-
type: "step_back";
|
210
238
|
} | {
|
211
239
|
type: "nudge";
|
212
240
|
value: number;
|
213
241
|
} | {
|
214
242
|
type: "go_to_step";
|
215
243
|
value: number;
|
244
|
+
} | {
|
245
|
+
type: "step_back";
|
216
246
|
} | ({
|
217
247
|
type: "open_bar";
|
218
248
|
} & {
|
@@ -220,11 +250,11 @@ export declare class RecommendationSet {
|
|
220
250
|
categoryFilter?: number | undefined;
|
221
251
|
}) | {
|
222
252
|
type: "open_helphub";
|
223
|
-
} | {
|
253
|
+
} | ({
|
224
254
|
type: "open_copilot";
|
225
|
-
}
|
226
|
-
|
227
|
-
};
|
255
|
+
} & {
|
256
|
+
query?: string | undefined;
|
257
|
+
});
|
228
258
|
cta: string;
|
229
259
|
}[];
|
230
260
|
is_live: boolean;
|
@@ -251,28 +281,38 @@ export declare class RecommendationSet {
|
|
251
281
|
};
|
252
282
|
} & {
|
253
283
|
actions: {
|
254
|
-
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
|
+
} | {
|
255
296
|
type: "execute_command";
|
256
297
|
meta: {
|
257
298
|
command: string;
|
258
299
|
} & {
|
259
300
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
260
301
|
};
|
302
|
+
} | {
|
303
|
+
type: "no_action";
|
261
304
|
} | {
|
262
305
|
type: "click";
|
263
306
|
value: string;
|
264
307
|
} | {
|
265
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
266
|
-
value: string[];
|
267
|
-
} | ({
|
268
|
-
type: "link";
|
269
|
-
value: string;
|
270
|
-
} & {
|
271
|
-
operation?: "self" | "router" | "blank" | undefined;
|
272
|
-
}) | {
|
273
308
|
type: "open_chat";
|
274
309
|
meta: {
|
275
|
-
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";
|
276
316
|
};
|
277
317
|
} | {
|
278
318
|
type: "dismiss";
|
@@ -281,14 +321,14 @@ export declare class RecommendationSet {
|
|
281
321
|
} | {
|
282
322
|
type: "questlist";
|
283
323
|
value: number;
|
284
|
-
} | {
|
285
|
-
type: "step_back";
|
286
324
|
} | {
|
287
325
|
type: "nudge";
|
288
326
|
value: number;
|
289
327
|
} | {
|
290
328
|
type: "go_to_step";
|
291
329
|
value: number;
|
330
|
+
} | {
|
331
|
+
type: "step_back";
|
292
332
|
} | ({
|
293
333
|
type: "open_bar";
|
294
334
|
} & {
|
@@ -296,11 +336,11 @@ export declare class RecommendationSet {
|
|
296
336
|
categoryFilter?: number | undefined;
|
297
337
|
}) | {
|
298
338
|
type: "open_helphub";
|
299
|
-
} | {
|
339
|
+
} | ({
|
300
340
|
type: "open_copilot";
|
301
|
-
}
|
302
|
-
|
303
|
-
};
|
341
|
+
} & {
|
342
|
+
query?: string | undefined;
|
343
|
+
});
|
304
344
|
cta: string;
|
305
345
|
}[];
|
306
346
|
is_live: boolean;
|
@@ -326,28 +366,38 @@ export declare class RecommendationSet {
|
|
326
366
|
};
|
327
367
|
} & {
|
328
368
|
actions: {
|
329
|
-
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
|
+
} | {
|
330
381
|
type: "execute_command";
|
331
382
|
meta: {
|
332
383
|
command: string;
|
333
384
|
} & {
|
334
385
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
335
386
|
};
|
387
|
+
} | {
|
388
|
+
type: "no_action";
|
336
389
|
} | {
|
337
390
|
type: "click";
|
338
391
|
value: string;
|
339
392
|
} | {
|
340
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
341
|
-
value: string[];
|
342
|
-
} | ({
|
343
|
-
type: "link";
|
344
|
-
value: string;
|
345
|
-
} & {
|
346
|
-
operation?: "self" | "router" | "blank" | undefined;
|
347
|
-
}) | {
|
348
393
|
type: "open_chat";
|
349
394
|
meta: {
|
350
|
-
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";
|
351
401
|
};
|
352
402
|
} | {
|
353
403
|
type: "dismiss";
|
@@ -356,14 +406,14 @@ export declare class RecommendationSet {
|
|
356
406
|
} | {
|
357
407
|
type: "questlist";
|
358
408
|
value: number;
|
359
|
-
} | {
|
360
|
-
type: "step_back";
|
361
409
|
} | {
|
362
410
|
type: "nudge";
|
363
411
|
value: number;
|
364
412
|
} | {
|
365
413
|
type: "go_to_step";
|
366
414
|
value: number;
|
415
|
+
} | {
|
416
|
+
type: "step_back";
|
367
417
|
} | ({
|
368
418
|
type: "open_bar";
|
369
419
|
} & {
|
@@ -371,11 +421,11 @@ export declare class RecommendationSet {
|
|
371
421
|
categoryFilter?: number | undefined;
|
372
422
|
}) | {
|
373
423
|
type: "open_helphub";
|
374
|
-
} | {
|
424
|
+
} | ({
|
375
425
|
type: "open_copilot";
|
376
|
-
}
|
377
|
-
|
378
|
-
};
|
426
|
+
} & {
|
427
|
+
query?: string | undefined;
|
428
|
+
});
|
379
429
|
cta: string;
|
380
430
|
}[];
|
381
431
|
is_live: boolean;
|
@@ -402,28 +452,38 @@ export declare class RecommendationSet {
|
|
402
452
|
};
|
403
453
|
} & {
|
404
454
|
actions: {
|
405
|
-
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
|
+
} | {
|
406
467
|
type: "execute_command";
|
407
468
|
meta: {
|
408
469
|
command: string;
|
409
470
|
} & {
|
410
471
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
411
472
|
};
|
473
|
+
} | {
|
474
|
+
type: "no_action";
|
412
475
|
} | {
|
413
476
|
type: "click";
|
414
477
|
value: string;
|
415
478
|
} | {
|
416
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
417
|
-
value: string[];
|
418
|
-
} | ({
|
419
|
-
type: "link";
|
420
|
-
value: string;
|
421
|
-
} & {
|
422
|
-
operation?: "self" | "router" | "blank" | undefined;
|
423
|
-
}) | {
|
424
479
|
type: "open_chat";
|
425
480
|
meta: {
|
426
|
-
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";
|
427
487
|
};
|
428
488
|
} | {
|
429
489
|
type: "dismiss";
|
@@ -432,14 +492,14 @@ export declare class RecommendationSet {
|
|
432
492
|
} | {
|
433
493
|
type: "questlist";
|
434
494
|
value: number;
|
435
|
-
} | {
|
436
|
-
type: "step_back";
|
437
495
|
} | {
|
438
496
|
type: "nudge";
|
439
497
|
value: number;
|
440
498
|
} | {
|
441
499
|
type: "go_to_step";
|
442
500
|
value: number;
|
501
|
+
} | {
|
502
|
+
type: "step_back";
|
443
503
|
} | ({
|
444
504
|
type: "open_bar";
|
445
505
|
} & {
|
@@ -447,11 +507,11 @@ export declare class RecommendationSet {
|
|
447
507
|
categoryFilter?: number | undefined;
|
448
508
|
}) | {
|
449
509
|
type: "open_helphub";
|
450
|
-
} | {
|
510
|
+
} | ({
|
451
511
|
type: "open_copilot";
|
452
|
-
}
|
453
|
-
|
454
|
-
};
|
512
|
+
} & {
|
513
|
+
query?: string | undefined;
|
514
|
+
});
|
455
515
|
cta: string;
|
456
516
|
}[];
|
457
517
|
is_live: boolean;
|
@@ -477,28 +537,38 @@ export declare class RecommendationSet {
|
|
477
537
|
};
|
478
538
|
} & {
|
479
539
|
actions: {
|
480
|
-
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
|
+
} | {
|
481
552
|
type: "execute_command";
|
482
553
|
meta: {
|
483
554
|
command: string;
|
484
555
|
} & {
|
485
556
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
486
557
|
};
|
558
|
+
} | {
|
559
|
+
type: "no_action";
|
487
560
|
} | {
|
488
561
|
type: "click";
|
489
562
|
value: string;
|
490
563
|
} | {
|
491
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
492
|
-
value: string[];
|
493
|
-
} | ({
|
494
|
-
type: "link";
|
495
|
-
value: string;
|
496
|
-
} & {
|
497
|
-
operation?: "self" | "router" | "blank" | undefined;
|
498
|
-
}) | {
|
499
564
|
type: "open_chat";
|
500
565
|
meta: {
|
501
|
-
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";
|
502
572
|
};
|
503
573
|
} | {
|
504
574
|
type: "dismiss";
|
@@ -507,14 +577,14 @@ export declare class RecommendationSet {
|
|
507
577
|
} | {
|
508
578
|
type: "questlist";
|
509
579
|
value: number;
|
510
|
-
} | {
|
511
|
-
type: "step_back";
|
512
580
|
} | {
|
513
581
|
type: "nudge";
|
514
582
|
value: number;
|
515
583
|
} | {
|
516
584
|
type: "go_to_step";
|
517
585
|
value: number;
|
586
|
+
} | {
|
587
|
+
type: "step_back";
|
518
588
|
} | ({
|
519
589
|
type: "open_bar";
|
520
590
|
} & {
|
@@ -522,11 +592,11 @@ export declare class RecommendationSet {
|
|
522
592
|
categoryFilter?: number | undefined;
|
523
593
|
}) | {
|
524
594
|
type: "open_helphub";
|
525
|
-
} | {
|
595
|
+
} | ({
|
526
596
|
type: "open_copilot";
|
527
|
-
}
|
528
|
-
|
529
|
-
};
|
597
|
+
} & {
|
598
|
+
query?: string | undefined;
|
599
|
+
});
|
530
600
|
cta: string;
|
531
601
|
}[];
|
532
602
|
is_live: boolean;
|
@@ -554,28 +624,38 @@ export declare class RecommendationSet {
|
|
554
624
|
};
|
555
625
|
} & {
|
556
626
|
actions: {
|
557
|
-
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
|
+
} | {
|
558
639
|
type: "execute_command";
|
559
640
|
meta: {
|
560
641
|
command: string;
|
561
642
|
} & {
|
562
643
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
563
644
|
};
|
645
|
+
} | {
|
646
|
+
type: "no_action";
|
564
647
|
} | {
|
565
648
|
type: "click";
|
566
649
|
value: string;
|
567
650
|
} | {
|
568
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
569
|
-
value: string[];
|
570
|
-
} | ({
|
571
|
-
type: "link";
|
572
|
-
value: string;
|
573
|
-
} & {
|
574
|
-
operation?: "self" | "router" | "blank" | undefined;
|
575
|
-
}) | {
|
576
651
|
type: "open_chat";
|
577
652
|
meta: {
|
578
|
-
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";
|
579
659
|
};
|
580
660
|
} | {
|
581
661
|
type: "dismiss";
|
@@ -584,14 +664,14 @@ export declare class RecommendationSet {
|
|
584
664
|
} | {
|
585
665
|
type: "questlist";
|
586
666
|
value: number;
|
587
|
-
} | {
|
588
|
-
type: "step_back";
|
589
667
|
} | {
|
590
668
|
type: "nudge";
|
591
669
|
value: number;
|
592
670
|
} | {
|
593
671
|
type: "go_to_step";
|
594
672
|
value: number;
|
673
|
+
} | {
|
674
|
+
type: "step_back";
|
595
675
|
} | ({
|
596
676
|
type: "open_bar";
|
597
677
|
} & {
|
@@ -599,11 +679,11 @@ export declare class RecommendationSet {
|
|
599
679
|
categoryFilter?: number | undefined;
|
600
680
|
}) | {
|
601
681
|
type: "open_helphub";
|
602
|
-
} | {
|
682
|
+
} | ({
|
603
683
|
type: "open_copilot";
|
604
|
-
}
|
605
|
-
|
606
|
-
};
|
684
|
+
} & {
|
685
|
+
query?: string | undefined;
|
686
|
+
});
|
607
687
|
cta: string;
|
608
688
|
}[];
|
609
689
|
is_live: boolean;
|
@@ -633,28 +713,38 @@ export declare class RecommendationSet {
|
|
633
713
|
};
|
634
714
|
} & {
|
635
715
|
actions: {
|
636
|
-
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
|
+
} | {
|
637
728
|
type: "execute_command";
|
638
729
|
meta: {
|
639
730
|
command: string;
|
640
731
|
} & {
|
641
732
|
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
642
733
|
};
|
734
|
+
} | {
|
735
|
+
type: "no_action";
|
643
736
|
} | {
|
644
737
|
type: "click";
|
645
738
|
value: string;
|
646
739
|
} | {
|
647
|
-
type: "click" | "clickBySelector" | "clickByXpath";
|
648
|
-
value: string[];
|
649
|
-
} | ({
|
650
|
-
type: "link";
|
651
|
-
value: string;
|
652
|
-
} & {
|
653
|
-
operation?: "self" | "router" | "blank" | undefined;
|
654
|
-
}) | {
|
655
740
|
type: "open_chat";
|
656
741
|
meta: {
|
657
|
-
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";
|
658
748
|
};
|
659
749
|
} | {
|
660
750
|
type: "dismiss";
|
@@ -663,14 +753,14 @@ export declare class RecommendationSet {
|
|
663
753
|
} | {
|
664
754
|
type: "questlist";
|
665
755
|
value: number;
|
666
|
-
} | {
|
667
|
-
type: "step_back";
|
668
756
|
} | {
|
669
757
|
type: "nudge";
|
670
758
|
value: number;
|
671
759
|
} | {
|
672
760
|
type: "go_to_step";
|
673
761
|
value: number;
|
762
|
+
} | {
|
763
|
+
type: "step_back";
|
674
764
|
} | ({
|
675
765
|
type: "open_bar";
|
676
766
|
} & {
|
@@ -678,11 +768,11 @@ export declare class RecommendationSet {
|
|
678
768
|
categoryFilter?: number | undefined;
|
679
769
|
}) | {
|
680
770
|
type: "open_helphub";
|
681
|
-
} | {
|
771
|
+
} | ({
|
682
772
|
type: "open_copilot";
|
683
|
-
}
|
684
|
-
|
685
|
-
};
|
773
|
+
} & {
|
774
|
+
query?: string | undefined;
|
775
|
+
});
|
686
776
|
cta: string;
|
687
777
|
}[];
|
688
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
|
}
|