commandbar 1.8.7 → 1.9.0
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-js/src/index.js +1 -1
- package/build/internal/src/client/AddContextOptions.d.ts +4 -0
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +25 -7
- package/build/internal/src/client/CommandBarProxySDK.d.ts +3 -3
- package/build/internal/src/client/CommandBarSDK.d.ts +23 -12
- package/build/internal/src/client/EventHandler.d.ts +19 -5
- package/build/internal/src/client/globals.d.ts +6 -0
- package/build/internal/src/client/symbols.d.ts +11 -6
- package/build/internal/src/middleware/CommandFromClientV.d.ts +68 -10
- package/build/internal/src/middleware/OrganizationV.d.ts +124 -20
- package/build/internal/src/middleware/additionalResource.d.ts +178 -16
- package/build/internal/src/middleware/billing.d.ts +33 -0
- package/build/internal/src/middleware/chat.d.ts +10913 -0
- package/build/internal/src/middleware/checklist.d.ts +106 -28
- package/build/internal/src/middleware/command.d.ts +3778 -446
- package/build/internal/src/middleware/detailPreview.d.ts +12 -1
- package/build/internal/src/middleware/endUser.d.ts +104 -0
- package/build/internal/src/middleware/generics.d.ts +12 -11
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +54 -8
- package/build/internal/src/middleware/helpDocsSearch.d.ts +2204 -0
- package/build/internal/src/middleware/helpHub.d.ts +26 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +116 -8
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +82 -2
- package/build/internal/src/middleware/helpers/pushTrigger.d.ts +6 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +285 -26
- package/build/internal/src/middleware/network.d.ts +18 -3
- package/build/internal/src/middleware/nudge.d.ts +1193 -43
- package/build/internal/src/middleware/organization.d.ts +1051 -141
- package/build/internal/src/middleware/organizationSettings.d.ts +129 -22
- package/build/internal/src/middleware/recommendationSet.d.ts +408 -1007
- package/build/internal/src/middleware/types.d.ts +43 -25
- package/build/internal/src/util/dispatchCustomEvent.d.ts +3 -1
- package/build/internal/src/util/operatingSystem.d.ts +13 -0
- package/build/internal/src/util/sentry.d.ts +23 -0
- package/package.json +3 -3
- package/build/internal/src/client/SentryReporter.d.ts +0 -63
- package/build/internal/src/middleware/chatAnalytics.d.ts +0 -2601
- package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
- package/build/internal/src/middleware/qaPair.d.ts +0 -676
- package/build/internal/src/util/integrations.d.ts +0 -1
@@ -1,12 +1,14 @@
|
|
1
1
|
import * as t from 'io-ts';
|
2
2
|
export declare const NudgeContentMarkdownBlockV: t.TypeC<{
|
3
3
|
type: t.LiteralC<"markdown">;
|
4
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
4
5
|
meta: t.TypeC<{
|
5
6
|
value: t.StringC;
|
6
7
|
}>;
|
7
8
|
}>;
|
8
9
|
export declare const NudgeContentImageBlockV: t.TypeC<{
|
9
10
|
type: t.LiteralC<"image">;
|
11
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
10
12
|
meta: t.TypeC<{
|
11
13
|
src: t.StringC;
|
12
14
|
file_name: t.StringC;
|
@@ -15,6 +17,7 @@ export declare const NudgeContentImageBlockV: t.TypeC<{
|
|
15
17
|
}>;
|
16
18
|
export declare const NudgeContentVideoBlockV: t.TypeC<{
|
17
19
|
type: t.LiteralC<"video">;
|
20
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
18
21
|
meta: t.UnionC<[t.TypeC<{
|
19
22
|
type: t.LiteralC<"url">;
|
20
23
|
src: t.StringC;
|
@@ -23,14 +26,111 @@ export declare const NudgeContentVideoBlockV: t.TypeC<{
|
|
23
26
|
command: t.StringC;
|
24
27
|
}>]>;
|
25
28
|
}>;
|
29
|
+
export declare const NudgeContentListBlockV: t.TypeC<{
|
30
|
+
type: t.LiteralC<"survey_list">;
|
31
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
32
|
+
meta: t.TypeC<{
|
33
|
+
options: t.ArrayC<t.StringC>;
|
34
|
+
list_type: t.UnionC<[t.LiteralC<"single">, t.LiteralC<"multiple">]>;
|
35
|
+
display_type: t.UnionC<[t.LiteralC<"dropdown">, t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
36
|
+
}>;
|
37
|
+
}>;
|
26
38
|
export declare const NudgeContentHelpDocBlockV: t.TypeC<{
|
27
39
|
type: t.LiteralC<"help_doc_command">;
|
40
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
41
|
+
meta: t.TypeC<{
|
42
|
+
command: t.StringC;
|
43
|
+
}>;
|
44
|
+
}>;
|
45
|
+
export declare const NudgeButtonActionV: t.UnionC<[t.TypeC<{
|
46
|
+
type: t.LiteralC<"execute_command">;
|
28
47
|
meta: t.TypeC<{
|
29
48
|
command: t.StringC;
|
30
49
|
}>;
|
50
|
+
}>, t.TypeC<{
|
51
|
+
type: t.LiteralC<"no_action">;
|
52
|
+
}>, t.TypeC<{
|
53
|
+
type: t.LiteralC<"click">;
|
54
|
+
value: t.StringC;
|
55
|
+
}>, t.IntersectionC<[t.TypeC<{
|
56
|
+
type: t.LiteralC<"link">;
|
57
|
+
value: t.StringC;
|
58
|
+
}>, t.PartialC<{
|
59
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
60
|
+
}>]>, t.TypeC<{
|
61
|
+
type: t.LiteralC<"open_chat">;
|
62
|
+
meta: t.TypeC<{
|
63
|
+
type: t.StringC;
|
64
|
+
}>;
|
65
|
+
}>, t.TypeC<{
|
66
|
+
type: t.LiteralC<"dismiss">;
|
67
|
+
}>, t.TypeC<{
|
68
|
+
type: t.LiteralC<"snooze">;
|
69
|
+
}>, t.TypeC<{
|
70
|
+
type: t.LiteralC<"questlist">;
|
71
|
+
value: t.NumberC;
|
72
|
+
}>, t.TypeC<{
|
73
|
+
type: t.LiteralC<"step_back">;
|
74
|
+
}>, t.TypeC<{
|
75
|
+
type: t.LiteralC<"nudge">;
|
76
|
+
value: t.NumberC;
|
77
|
+
}>, t.TypeC<{
|
78
|
+
type: t.LiteralC<"go_to_step">;
|
79
|
+
value: t.NumberC;
|
80
|
+
}>, t.IntersectionC<[t.TypeC<{
|
81
|
+
type: t.LiteralC<"open_bar">;
|
82
|
+
}>, t.PartialC<{
|
83
|
+
value: t.StringC;
|
84
|
+
categoryFilter: t.NumberC;
|
85
|
+
}>]>]>;
|
86
|
+
export declare const NudgeConditionalActionV: t.TypeC<{
|
87
|
+
operator: t.UnionC<[t.LiteralC<"eq">, t.LiteralC<"neq">, t.LiteralC<"gt">, t.LiteralC<"lt">]>;
|
88
|
+
operand: t.UnionC<[t.StringC, t.NumberC]>;
|
89
|
+
action: t.UnionC<[t.TypeC<{
|
90
|
+
type: t.LiteralC<"execute_command">;
|
91
|
+
meta: t.TypeC<{
|
92
|
+
command: t.StringC;
|
93
|
+
}>;
|
94
|
+
}>, t.TypeC<{
|
95
|
+
type: t.LiteralC<"no_action">;
|
96
|
+
}>, t.TypeC<{
|
97
|
+
type: t.LiteralC<"click">;
|
98
|
+
value: t.StringC;
|
99
|
+
}>, t.IntersectionC<[t.TypeC<{
|
100
|
+
type: t.LiteralC<"link">;
|
101
|
+
value: t.StringC;
|
102
|
+
}>, t.PartialC<{
|
103
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
104
|
+
}>]>, t.TypeC<{
|
105
|
+
type: t.LiteralC<"open_chat">;
|
106
|
+
meta: t.TypeC<{
|
107
|
+
type: t.StringC;
|
108
|
+
}>;
|
109
|
+
}>, t.TypeC<{
|
110
|
+
type: t.LiteralC<"dismiss">;
|
111
|
+
}>, t.TypeC<{
|
112
|
+
type: t.LiteralC<"snooze">;
|
113
|
+
}>, t.TypeC<{
|
114
|
+
type: t.LiteralC<"questlist">;
|
115
|
+
value: t.NumberC;
|
116
|
+
}>, t.TypeC<{
|
117
|
+
type: t.LiteralC<"step_back">;
|
118
|
+
}>, t.TypeC<{
|
119
|
+
type: t.LiteralC<"nudge">;
|
120
|
+
value: t.NumberC;
|
121
|
+
}>, t.TypeC<{
|
122
|
+
type: t.LiteralC<"go_to_step">;
|
123
|
+
value: t.NumberC;
|
124
|
+
}>, t.IntersectionC<[t.TypeC<{
|
125
|
+
type: t.LiteralC<"open_bar">;
|
126
|
+
}>, t.PartialC<{
|
127
|
+
value: t.StringC;
|
128
|
+
categoryFilter: t.NumberC;
|
129
|
+
}>]>]>;
|
31
130
|
}>;
|
32
131
|
export declare const NudgeContentButtonBlockV: t.TypeC<{
|
33
132
|
type: t.LiteralC<"button">;
|
133
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
34
134
|
meta: t.UnionC<[t.PartialC<{
|
35
135
|
label: t.StringC;
|
36
136
|
action: t.UnionC<[t.TypeC<{
|
@@ -55,8 +155,71 @@ export declare const NudgeContentButtonBlockV: t.TypeC<{
|
|
55
155
|
}>;
|
56
156
|
}>, t.TypeC<{
|
57
157
|
type: t.LiteralC<"dismiss">;
|
58
|
-
}
|
59
|
-
|
158
|
+
}>, t.TypeC<{
|
159
|
+
type: t.LiteralC<"snooze">;
|
160
|
+
}>, t.TypeC<{
|
161
|
+
type: t.LiteralC<"questlist">;
|
162
|
+
value: t.NumberC;
|
163
|
+
}>, t.TypeC<{
|
164
|
+
type: t.LiteralC<"step_back">;
|
165
|
+
}>, t.TypeC<{
|
166
|
+
type: t.LiteralC<"nudge">;
|
167
|
+
value: t.NumberC;
|
168
|
+
}>, t.TypeC<{
|
169
|
+
type: t.LiteralC<"go_to_step">;
|
170
|
+
value: t.NumberC;
|
171
|
+
}>, t.IntersectionC<[t.TypeC<{
|
172
|
+
type: t.LiteralC<"open_bar">;
|
173
|
+
}>, t.PartialC<{
|
174
|
+
value: t.StringC;
|
175
|
+
categoryFilter: t.NumberC;
|
176
|
+
}>]>]>;
|
177
|
+
button_type: t.UnionC<[t.LiteralC<"primary">, t.LiteralC<"secondary">, t.LiteralC<"snooze">]>;
|
178
|
+
conditional_actions: t.ArrayC<t.TypeC<{
|
179
|
+
operator: t.UnionC<[t.LiteralC<"eq">, t.LiteralC<"neq">, t.LiteralC<"gt">, t.LiteralC<"lt">]>;
|
180
|
+
operand: t.UnionC<[t.StringC, t.NumberC]>;
|
181
|
+
action: t.UnionC<[t.TypeC<{
|
182
|
+
type: t.LiteralC<"execute_command">;
|
183
|
+
meta: t.TypeC<{
|
184
|
+
command: t.StringC;
|
185
|
+
}>;
|
186
|
+
}>, t.TypeC<{
|
187
|
+
type: t.LiteralC<"no_action">;
|
188
|
+
}>, t.TypeC<{
|
189
|
+
type: t.LiteralC<"click">;
|
190
|
+
value: t.StringC;
|
191
|
+
}>, t.IntersectionC<[t.TypeC<{
|
192
|
+
type: t.LiteralC<"link">;
|
193
|
+
value: t.StringC;
|
194
|
+
}>, t.PartialC<{
|
195
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
196
|
+
}>]>, t.TypeC<{
|
197
|
+
type: t.LiteralC<"open_chat">;
|
198
|
+
meta: t.TypeC<{
|
199
|
+
type: t.StringC;
|
200
|
+
}>;
|
201
|
+
}>, t.TypeC<{
|
202
|
+
type: t.LiteralC<"dismiss">;
|
203
|
+
}>, t.TypeC<{
|
204
|
+
type: t.LiteralC<"snooze">;
|
205
|
+
}>, t.TypeC<{
|
206
|
+
type: t.LiteralC<"questlist">;
|
207
|
+
value: t.NumberC;
|
208
|
+
}>, t.TypeC<{
|
209
|
+
type: t.LiteralC<"step_back">;
|
210
|
+
}>, t.TypeC<{
|
211
|
+
type: t.LiteralC<"nudge">;
|
212
|
+
value: t.NumberC;
|
213
|
+
}>, t.TypeC<{
|
214
|
+
type: t.LiteralC<"go_to_step">;
|
215
|
+
value: t.NumberC;
|
216
|
+
}>, t.IntersectionC<[t.TypeC<{
|
217
|
+
type: t.LiteralC<"open_bar">;
|
218
|
+
}>, t.PartialC<{
|
219
|
+
value: t.StringC;
|
220
|
+
categoryFilter: t.NumberC;
|
221
|
+
}>]>]>;
|
222
|
+
}>>;
|
60
223
|
}>, t.NullC]>;
|
61
224
|
}>;
|
62
225
|
export declare const NudgeContentSurveyTextBlockV: t.TypeC<{
|
@@ -64,9 +227,18 @@ export declare const NudgeContentSurveyTextBlockV: t.TypeC<{
|
|
64
227
|
meta: t.TypeC<{
|
65
228
|
prompt: t.StringC;
|
66
229
|
}>;
|
230
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
231
|
+
}>;
|
232
|
+
export declare const NudgeStepContentSurveyTextShortBlockTypeV: t.TypeC<{
|
233
|
+
type: t.LiteralC<"survey_text_short">;
|
234
|
+
meta: t.TypeC<{
|
235
|
+
prompt: t.StringC;
|
236
|
+
}>;
|
237
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
67
238
|
}>;
|
68
239
|
export declare const NudgeContentSurveyRatingBlockV: t.TypeC<{
|
69
240
|
type: t.LiteralC<"survey_rating">;
|
241
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
70
242
|
meta: t.UnionC<[t.TypeC<{
|
71
243
|
type: t.LiteralC<"emojis">;
|
72
244
|
lower_label: t.StringC;
|
@@ -87,11 +259,13 @@ export declare const NudgeContentSurveyRatingBlockV: t.TypeC<{
|
|
87
259
|
}>;
|
88
260
|
export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
|
89
261
|
type: t.LiteralC<"markdown">;
|
262
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
90
263
|
meta: t.TypeC<{
|
91
264
|
value: t.StringC;
|
92
265
|
}>;
|
93
266
|
}>, t.TypeC<{
|
94
267
|
type: t.LiteralC<"image">;
|
268
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
95
269
|
meta: t.TypeC<{
|
96
270
|
src: t.StringC;
|
97
271
|
file_name: t.StringC;
|
@@ -99,6 +273,7 @@ export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
|
|
99
273
|
}>;
|
100
274
|
}>, t.TypeC<{
|
101
275
|
type: t.LiteralC<"video">;
|
276
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
102
277
|
meta: t.UnionC<[t.TypeC<{
|
103
278
|
type: t.LiteralC<"url">;
|
104
279
|
src: t.StringC;
|
@@ -108,11 +283,13 @@ export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
|
|
108
283
|
}>]>;
|
109
284
|
}>, t.TypeC<{
|
110
285
|
type: t.LiteralC<"help_doc_command">;
|
286
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
111
287
|
meta: t.TypeC<{
|
112
288
|
command: t.StringC;
|
113
289
|
}>;
|
114
290
|
}>, t.TypeC<{
|
115
291
|
type: t.LiteralC<"button">;
|
292
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
116
293
|
meta: t.UnionC<[t.PartialC<{
|
117
294
|
label: t.StringC;
|
118
295
|
action: t.UnionC<[t.TypeC<{
|
@@ -137,16 +314,87 @@ export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
|
|
137
314
|
}>;
|
138
315
|
}>, t.TypeC<{
|
139
316
|
type: t.LiteralC<"dismiss">;
|
140
|
-
}
|
141
|
-
|
317
|
+
}>, t.TypeC<{
|
318
|
+
type: t.LiteralC<"snooze">;
|
319
|
+
}>, t.TypeC<{
|
320
|
+
type: t.LiteralC<"questlist">;
|
321
|
+
value: t.NumberC;
|
322
|
+
}>, t.TypeC<{
|
323
|
+
type: t.LiteralC<"step_back">;
|
324
|
+
}>, t.TypeC<{
|
325
|
+
type: t.LiteralC<"nudge">;
|
326
|
+
value: t.NumberC;
|
327
|
+
}>, t.TypeC<{
|
328
|
+
type: t.LiteralC<"go_to_step">;
|
329
|
+
value: t.NumberC;
|
330
|
+
}>, t.IntersectionC<[t.TypeC<{
|
331
|
+
type: t.LiteralC<"open_bar">;
|
332
|
+
}>, t.PartialC<{
|
333
|
+
value: t.StringC;
|
334
|
+
categoryFilter: t.NumberC;
|
335
|
+
}>]>]>;
|
336
|
+
button_type: t.UnionC<[t.LiteralC<"primary">, t.LiteralC<"secondary">, t.LiteralC<"snooze">]>;
|
337
|
+
conditional_actions: t.ArrayC<t.TypeC<{
|
338
|
+
operator: t.UnionC<[t.LiteralC<"eq">, t.LiteralC<"neq">, t.LiteralC<"gt">, t.LiteralC<"lt">]>;
|
339
|
+
operand: t.UnionC<[t.StringC, t.NumberC]>;
|
340
|
+
action: t.UnionC<[t.TypeC<{
|
341
|
+
type: t.LiteralC<"execute_command">;
|
342
|
+
meta: t.TypeC<{
|
343
|
+
command: t.StringC;
|
344
|
+
}>;
|
345
|
+
}>, t.TypeC<{
|
346
|
+
type: t.LiteralC<"no_action">;
|
347
|
+
}>, t.TypeC<{
|
348
|
+
type: t.LiteralC<"click">;
|
349
|
+
value: t.StringC;
|
350
|
+
}>, t.IntersectionC<[t.TypeC<{
|
351
|
+
type: t.LiteralC<"link">;
|
352
|
+
value: t.StringC;
|
353
|
+
}>, t.PartialC<{
|
354
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
355
|
+
}>]>, t.TypeC<{
|
356
|
+
type: t.LiteralC<"open_chat">;
|
357
|
+
meta: t.TypeC<{
|
358
|
+
type: t.StringC;
|
359
|
+
}>;
|
360
|
+
}>, t.TypeC<{
|
361
|
+
type: t.LiteralC<"dismiss">;
|
362
|
+
}>, t.TypeC<{
|
363
|
+
type: t.LiteralC<"snooze">;
|
364
|
+
}>, t.TypeC<{
|
365
|
+
type: t.LiteralC<"questlist">;
|
366
|
+
value: t.NumberC;
|
367
|
+
}>, t.TypeC<{
|
368
|
+
type: t.LiteralC<"step_back">;
|
369
|
+
}>, t.TypeC<{
|
370
|
+
type: t.LiteralC<"nudge">;
|
371
|
+
value: t.NumberC;
|
372
|
+
}>, t.TypeC<{
|
373
|
+
type: t.LiteralC<"go_to_step">;
|
374
|
+
value: t.NumberC;
|
375
|
+
}>, t.IntersectionC<[t.TypeC<{
|
376
|
+
type: t.LiteralC<"open_bar">;
|
377
|
+
}>, t.PartialC<{
|
378
|
+
value: t.StringC;
|
379
|
+
categoryFilter: t.NumberC;
|
380
|
+
}>]>]>;
|
381
|
+
}>>;
|
142
382
|
}>, t.NullC]>;
|
143
383
|
}>, t.TypeC<{
|
144
384
|
type: t.LiteralC<"survey_text">;
|
145
385
|
meta: t.TypeC<{
|
146
386
|
prompt: t.StringC;
|
147
387
|
}>;
|
388
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
389
|
+
}>, t.TypeC<{
|
390
|
+
type: t.LiteralC<"survey_text_short">;
|
391
|
+
meta: t.TypeC<{
|
392
|
+
prompt: t.StringC;
|
393
|
+
}>;
|
394
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
148
395
|
}>, t.TypeC<{
|
149
396
|
type: t.LiteralC<"survey_rating">;
|
397
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
150
398
|
meta: t.UnionC<[t.TypeC<{
|
151
399
|
type: t.LiteralC<"emojis">;
|
152
400
|
lower_label: t.StringC;
|
@@ -164,17 +412,27 @@ export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
|
|
164
412
|
upper_label: t.StringC;
|
165
413
|
options: t.NumberC;
|
166
414
|
}>]>;
|
415
|
+
}>, t.TypeC<{
|
416
|
+
type: t.LiteralC<"survey_list">;
|
417
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
418
|
+
meta: t.TypeC<{
|
419
|
+
options: t.ArrayC<t.StringC>;
|
420
|
+
list_type: t.UnionC<[t.LiteralC<"single">, t.LiteralC<"multiple">]>;
|
421
|
+
display_type: t.UnionC<[t.LiteralC<"dropdown">, t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
422
|
+
}>;
|
167
423
|
}>]>;
|
168
424
|
export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
|
169
425
|
id: t.NumberC;
|
170
426
|
title: t.StringC;
|
171
427
|
content: t.ArrayC<t.UnionC<[t.TypeC<{
|
172
428
|
type: t.LiteralC<"markdown">;
|
429
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
173
430
|
meta: t.TypeC<{
|
174
431
|
value: t.StringC;
|
175
432
|
}>;
|
176
433
|
}>, t.TypeC<{
|
177
434
|
type: t.LiteralC<"image">;
|
435
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
178
436
|
meta: t.TypeC<{
|
179
437
|
src: t.StringC;
|
180
438
|
file_name: t.StringC;
|
@@ -182,6 +440,7 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
|
|
182
440
|
}>;
|
183
441
|
}>, t.TypeC<{
|
184
442
|
type: t.LiteralC<"video">;
|
443
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
185
444
|
meta: t.UnionC<[t.TypeC<{
|
186
445
|
type: t.LiteralC<"url">;
|
187
446
|
src: t.StringC;
|
@@ -191,11 +450,13 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
|
|
191
450
|
}>]>;
|
192
451
|
}>, t.TypeC<{
|
193
452
|
type: t.LiteralC<"help_doc_command">;
|
453
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
194
454
|
meta: t.TypeC<{
|
195
455
|
command: t.StringC;
|
196
456
|
}>;
|
197
457
|
}>, t.TypeC<{
|
198
458
|
type: t.LiteralC<"button">;
|
459
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
199
460
|
meta: t.UnionC<[t.PartialC<{
|
200
461
|
label: t.StringC;
|
201
462
|
action: t.UnionC<[t.TypeC<{
|
@@ -220,16 +481,87 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
|
|
220
481
|
}>;
|
221
482
|
}>, t.TypeC<{
|
222
483
|
type: t.LiteralC<"dismiss">;
|
223
|
-
}
|
224
|
-
|
484
|
+
}>, t.TypeC<{
|
485
|
+
type: t.LiteralC<"snooze">;
|
486
|
+
}>, t.TypeC<{
|
487
|
+
type: t.LiteralC<"questlist">;
|
488
|
+
value: t.NumberC;
|
489
|
+
}>, t.TypeC<{
|
490
|
+
type: t.LiteralC<"step_back">;
|
491
|
+
}>, t.TypeC<{
|
492
|
+
type: t.LiteralC<"nudge">;
|
493
|
+
value: t.NumberC;
|
494
|
+
}>, t.TypeC<{
|
495
|
+
type: t.LiteralC<"go_to_step">;
|
496
|
+
value: t.NumberC;
|
497
|
+
}>, t.IntersectionC<[t.TypeC<{
|
498
|
+
type: t.LiteralC<"open_bar">;
|
499
|
+
}>, t.PartialC<{
|
500
|
+
value: t.StringC;
|
501
|
+
categoryFilter: t.NumberC;
|
502
|
+
}>]>]>;
|
503
|
+
button_type: t.UnionC<[t.LiteralC<"primary">, t.LiteralC<"secondary">, t.LiteralC<"snooze">]>;
|
504
|
+
conditional_actions: t.ArrayC<t.TypeC<{
|
505
|
+
operator: t.UnionC<[t.LiteralC<"eq">, t.LiteralC<"neq">, t.LiteralC<"gt">, t.LiteralC<"lt">]>;
|
506
|
+
operand: t.UnionC<[t.StringC, t.NumberC]>;
|
507
|
+
action: t.UnionC<[t.TypeC<{
|
508
|
+
type: t.LiteralC<"execute_command">;
|
509
|
+
meta: t.TypeC<{
|
510
|
+
command: t.StringC;
|
511
|
+
}>;
|
512
|
+
}>, t.TypeC<{
|
513
|
+
type: t.LiteralC<"no_action">;
|
514
|
+
}>, t.TypeC<{
|
515
|
+
type: t.LiteralC<"click">;
|
516
|
+
value: t.StringC;
|
517
|
+
}>, t.IntersectionC<[t.TypeC<{
|
518
|
+
type: t.LiteralC<"link">;
|
519
|
+
value: t.StringC;
|
520
|
+
}>, t.PartialC<{
|
521
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
522
|
+
}>]>, t.TypeC<{
|
523
|
+
type: t.LiteralC<"open_chat">;
|
524
|
+
meta: t.TypeC<{
|
525
|
+
type: t.StringC;
|
526
|
+
}>;
|
527
|
+
}>, t.TypeC<{
|
528
|
+
type: t.LiteralC<"dismiss">;
|
529
|
+
}>, t.TypeC<{
|
530
|
+
type: t.LiteralC<"snooze">;
|
531
|
+
}>, t.TypeC<{
|
532
|
+
type: t.LiteralC<"questlist">;
|
533
|
+
value: t.NumberC;
|
534
|
+
}>, t.TypeC<{
|
535
|
+
type: t.LiteralC<"step_back">;
|
536
|
+
}>, t.TypeC<{
|
537
|
+
type: t.LiteralC<"nudge">;
|
538
|
+
value: t.NumberC;
|
539
|
+
}>, t.TypeC<{
|
540
|
+
type: t.LiteralC<"go_to_step">;
|
541
|
+
value: t.NumberC;
|
542
|
+
}>, t.IntersectionC<[t.TypeC<{
|
543
|
+
type: t.LiteralC<"open_bar">;
|
544
|
+
}>, t.PartialC<{
|
545
|
+
value: t.StringC;
|
546
|
+
categoryFilter: t.NumberC;
|
547
|
+
}>]>]>;
|
548
|
+
}>>;
|
225
549
|
}>, t.NullC]>;
|
226
550
|
}>, t.TypeC<{
|
227
551
|
type: t.LiteralC<"survey_text">;
|
228
552
|
meta: t.TypeC<{
|
229
553
|
prompt: t.StringC;
|
230
554
|
}>;
|
555
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
556
|
+
}>, t.TypeC<{
|
557
|
+
type: t.LiteralC<"survey_text_short">;
|
558
|
+
meta: t.TypeC<{
|
559
|
+
prompt: t.StringC;
|
560
|
+
}>;
|
561
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
231
562
|
}>, t.TypeC<{
|
232
563
|
type: t.LiteralC<"survey_rating">;
|
564
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
233
565
|
meta: t.UnionC<[t.TypeC<{
|
234
566
|
type: t.LiteralC<"emojis">;
|
235
567
|
lower_label: t.StringC;
|
@@ -247,6 +579,14 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
|
|
247
579
|
upper_label: t.StringC;
|
248
580
|
options: t.NumberC;
|
249
581
|
}>]>;
|
582
|
+
}>, t.TypeC<{
|
583
|
+
type: t.LiteralC<"survey_list">;
|
584
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
585
|
+
meta: t.TypeC<{
|
586
|
+
options: t.ArrayC<t.StringC>;
|
587
|
+
list_type: t.UnionC<[t.LiteralC<"single">, t.LiteralC<"multiple">]>;
|
588
|
+
display_type: t.UnionC<[t.LiteralC<"dropdown">, t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
589
|
+
}>;
|
250
590
|
}>]>>;
|
251
591
|
is_live: t.BooleanC;
|
252
592
|
}>, t.IntersectionC<[t.TypeC<{
|
@@ -260,6 +600,8 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
|
|
260
600
|
anchor: t.StringC;
|
261
601
|
}>, t.PartialC<{
|
262
602
|
is_open_by_default: t.BooleanC;
|
603
|
+
is_showing_mask: t.BooleanC;
|
604
|
+
advance_trigger: t.StringC;
|
263
605
|
offset: t.TypeC<{
|
264
606
|
x: t.StringC;
|
265
607
|
y: t.StringC;
|
@@ -295,6 +637,12 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
295
637
|
meta: t.TypeC<{
|
296
638
|
selector: t.StringC;
|
297
639
|
}>;
|
640
|
+
}>, t.TypeC<{
|
641
|
+
type: t.LiteralC<"on_user_confusion">;
|
642
|
+
}>, t.TypeC<{
|
643
|
+
type: t.LiteralC<"on_rage_click">;
|
644
|
+
}>, t.TypeC<{
|
645
|
+
type: t.LiteralC<"smart_delay">;
|
298
646
|
}>, t.TypeC<{
|
299
647
|
type: t.LiteralC<"when_share_link_viewed">;
|
300
648
|
}>]>;
|
@@ -304,11 +652,13 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
304
652
|
title: t.StringC;
|
305
653
|
content: t.ArrayC<t.UnionC<[t.TypeC<{
|
306
654
|
type: t.LiteralC<"markdown">;
|
655
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
307
656
|
meta: t.TypeC<{
|
308
657
|
value: t.StringC;
|
309
658
|
}>;
|
310
659
|
}>, t.TypeC<{
|
311
660
|
type: t.LiteralC<"image">;
|
661
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
312
662
|
meta: t.TypeC<{
|
313
663
|
src: t.StringC;
|
314
664
|
file_name: t.StringC;
|
@@ -316,6 +666,7 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
316
666
|
}>;
|
317
667
|
}>, t.TypeC<{
|
318
668
|
type: t.LiteralC<"video">;
|
669
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
319
670
|
meta: t.UnionC<[t.TypeC<{
|
320
671
|
type: t.LiteralC<"url">;
|
321
672
|
src: t.StringC;
|
@@ -325,11 +676,13 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
325
676
|
}>]>;
|
326
677
|
}>, t.TypeC<{
|
327
678
|
type: t.LiteralC<"help_doc_command">;
|
679
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
328
680
|
meta: t.TypeC<{
|
329
681
|
command: t.StringC;
|
330
682
|
}>;
|
331
683
|
}>, t.TypeC<{
|
332
684
|
type: t.LiteralC<"button">;
|
685
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
333
686
|
meta: t.UnionC<[t.PartialC<{
|
334
687
|
label: t.StringC;
|
335
688
|
action: t.UnionC<[t.TypeC<{
|
@@ -354,16 +707,87 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
354
707
|
}>;
|
355
708
|
}>, t.TypeC<{
|
356
709
|
type: t.LiteralC<"dismiss">;
|
357
|
-
}
|
358
|
-
|
710
|
+
}>, t.TypeC<{
|
711
|
+
type: t.LiteralC<"snooze">;
|
712
|
+
}>, t.TypeC<{
|
713
|
+
type: t.LiteralC<"questlist">;
|
714
|
+
value: t.NumberC;
|
715
|
+
}>, t.TypeC<{
|
716
|
+
type: t.LiteralC<"step_back">;
|
717
|
+
}>, t.TypeC<{
|
718
|
+
type: t.LiteralC<"nudge">;
|
719
|
+
value: t.NumberC;
|
720
|
+
}>, t.TypeC<{
|
721
|
+
type: t.LiteralC<"go_to_step">;
|
722
|
+
value: t.NumberC;
|
723
|
+
}>, t.IntersectionC<[t.TypeC<{
|
724
|
+
type: t.LiteralC<"open_bar">;
|
725
|
+
}>, t.PartialC<{
|
726
|
+
value: t.StringC;
|
727
|
+
categoryFilter: t.NumberC;
|
728
|
+
}>]>]>;
|
729
|
+
button_type: t.UnionC<[t.LiteralC<"primary">, t.LiteralC<"secondary">, t.LiteralC<"snooze">]>;
|
730
|
+
conditional_actions: t.ArrayC<t.TypeC<{
|
731
|
+
operator: t.UnionC<[t.LiteralC<"eq">, t.LiteralC<"neq">, t.LiteralC<"gt">, t.LiteralC<"lt">]>;
|
732
|
+
operand: t.UnionC<[t.StringC, t.NumberC]>;
|
733
|
+
action: t.UnionC<[t.TypeC<{
|
734
|
+
type: t.LiteralC<"execute_command">;
|
735
|
+
meta: t.TypeC<{
|
736
|
+
command: t.StringC;
|
737
|
+
}>;
|
738
|
+
}>, t.TypeC<{
|
739
|
+
type: t.LiteralC<"no_action">;
|
740
|
+
}>, t.TypeC<{
|
741
|
+
type: t.LiteralC<"click">;
|
742
|
+
value: t.StringC;
|
743
|
+
}>, t.IntersectionC<[t.TypeC<{
|
744
|
+
type: t.LiteralC<"link">;
|
745
|
+
value: t.StringC;
|
746
|
+
}>, t.PartialC<{
|
747
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
748
|
+
}>]>, t.TypeC<{
|
749
|
+
type: t.LiteralC<"open_chat">;
|
750
|
+
meta: t.TypeC<{
|
751
|
+
type: t.StringC;
|
752
|
+
}>;
|
753
|
+
}>, t.TypeC<{
|
754
|
+
type: t.LiteralC<"dismiss">;
|
755
|
+
}>, t.TypeC<{
|
756
|
+
type: t.LiteralC<"snooze">;
|
757
|
+
}>, t.TypeC<{
|
758
|
+
type: t.LiteralC<"questlist">;
|
759
|
+
value: t.NumberC;
|
760
|
+
}>, t.TypeC<{
|
761
|
+
type: t.LiteralC<"step_back">;
|
762
|
+
}>, t.TypeC<{
|
763
|
+
type: t.LiteralC<"nudge">;
|
764
|
+
value: t.NumberC;
|
765
|
+
}>, t.TypeC<{
|
766
|
+
type: t.LiteralC<"go_to_step">;
|
767
|
+
value: t.NumberC;
|
768
|
+
}>, t.IntersectionC<[t.TypeC<{
|
769
|
+
type: t.LiteralC<"open_bar">;
|
770
|
+
}>, t.PartialC<{
|
771
|
+
value: t.StringC;
|
772
|
+
categoryFilter: t.NumberC;
|
773
|
+
}>]>]>;
|
774
|
+
}>>;
|
359
775
|
}>, t.NullC]>;
|
360
776
|
}>, t.TypeC<{
|
361
777
|
type: t.LiteralC<"survey_text">;
|
362
778
|
meta: t.TypeC<{
|
363
779
|
prompt: t.StringC;
|
364
780
|
}>;
|
781
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
782
|
+
}>, t.TypeC<{
|
783
|
+
type: t.LiteralC<"survey_text_short">;
|
784
|
+
meta: t.TypeC<{
|
785
|
+
prompt: t.StringC;
|
786
|
+
}>;
|
787
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
365
788
|
}>, t.TypeC<{
|
366
789
|
type: t.LiteralC<"survey_rating">;
|
790
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
367
791
|
meta: t.UnionC<[t.TypeC<{
|
368
792
|
type: t.LiteralC<"emojis">;
|
369
793
|
lower_label: t.StringC;
|
@@ -381,6 +805,14 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
381
805
|
upper_label: t.StringC;
|
382
806
|
options: t.NumberC;
|
383
807
|
}>]>;
|
808
|
+
}>, t.TypeC<{
|
809
|
+
type: t.LiteralC<"survey_list">;
|
810
|
+
sort_key: t.UnionC<[t.NumberC, t.UndefinedC]>;
|
811
|
+
meta: t.TypeC<{
|
812
|
+
options: t.ArrayC<t.StringC>;
|
813
|
+
list_type: t.UnionC<[t.LiteralC<"single">, t.LiteralC<"multiple">]>;
|
814
|
+
display_type: t.UnionC<[t.LiteralC<"dropdown">, t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
815
|
+
}>;
|
384
816
|
}>]>>;
|
385
817
|
is_live: t.BooleanC;
|
386
818
|
}>, t.IntersectionC<[t.TypeC<{
|
@@ -394,6 +826,8 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
394
826
|
anchor: t.StringC;
|
395
827
|
}>, t.PartialC<{
|
396
828
|
is_open_by_default: t.BooleanC;
|
829
|
+
is_showing_mask: t.BooleanC;
|
830
|
+
advance_trigger: t.StringC;
|
397
831
|
offset: t.TypeC<{
|
398
832
|
x: t.StringC;
|
399
833
|
y: t.StringC;
|
@@ -424,7 +858,16 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
424
858
|
template_source: t.StringC;
|
425
859
|
show_step_counter: t.BooleanC;
|
426
860
|
dismissible: t.BooleanC;
|
861
|
+
snoozable: t.BooleanC;
|
427
862
|
share_page_url: t.StringC;
|
863
|
+
copilot_suggest: t.BooleanC;
|
864
|
+
copilot_cta_label: t.StringC;
|
865
|
+
copilot_description: t.StringC;
|
866
|
+
is_scheduled: t.BooleanC;
|
867
|
+
scheduled_start_time: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
868
|
+
scheduled_end_time: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
869
|
+
snooze_label: t.StringC;
|
870
|
+
type: t.UnionC<[t.LiteralC<"announcement">, t.LiteralC<"product_tour">, t.LiteralC<"survey">, t.NullC]>;
|
428
871
|
}>]>;
|
429
872
|
export declare const OldNudgeBaseV: t.IntersectionC<[t.TypeC<{
|
430
873
|
id: t.NumberC;
|
@@ -581,6 +1024,12 @@ export declare class Nudge {
|
|
581
1024
|
meta: {
|
582
1025
|
selector: string;
|
583
1026
|
};
|
1027
|
+
} | {
|
1028
|
+
type: "on_user_confusion";
|
1029
|
+
} | {
|
1030
|
+
type: "on_rage_click";
|
1031
|
+
} | {
|
1032
|
+
type: "smart_delay";
|
584
1033
|
} | {
|
585
1034
|
type: "when_share_link_viewed";
|
586
1035
|
};
|
@@ -590,11 +1039,13 @@ export declare class Nudge {
|
|
590
1039
|
title: string;
|
591
1040
|
content: ({
|
592
1041
|
type: "markdown";
|
1042
|
+
sort_key: number | undefined;
|
593
1043
|
meta: {
|
594
1044
|
value: string;
|
595
1045
|
};
|
596
1046
|
} | {
|
597
1047
|
type: "image";
|
1048
|
+
sort_key: number | undefined;
|
598
1049
|
meta: {
|
599
1050
|
src: string;
|
600
1051
|
file_name: string;
|
@@ -602,6 +1053,7 @@ export declare class Nudge {
|
|
602
1053
|
};
|
603
1054
|
} | {
|
604
1055
|
type: "video";
|
1056
|
+
sort_key: number | undefined;
|
605
1057
|
meta: {
|
606
1058
|
type: "url";
|
607
1059
|
src: string;
|
@@ -611,11 +1063,13 @@ export declare class Nudge {
|
|
611
1063
|
};
|
612
1064
|
} | {
|
613
1065
|
type: "help_doc_command";
|
1066
|
+
sort_key: number | undefined;
|
614
1067
|
meta: {
|
615
1068
|
command: string;
|
616
1069
|
};
|
617
1070
|
} | {
|
618
1071
|
type: "button";
|
1072
|
+
sort_key: number | undefined;
|
619
1073
|
meta: {
|
620
1074
|
label?: string | undefined;
|
621
1075
|
action?: {
|
@@ -623,6 +1077,11 @@ export declare class Nudge {
|
|
623
1077
|
meta: {
|
624
1078
|
command: string;
|
625
1079
|
};
|
1080
|
+
} | {
|
1081
|
+
type: "no_action";
|
1082
|
+
} | {
|
1083
|
+
type: "click";
|
1084
|
+
value: string;
|
626
1085
|
} | ({
|
627
1086
|
type: "link";
|
628
1087
|
value: string;
|
@@ -636,20 +1095,86 @@ export declare class Nudge {
|
|
636
1095
|
} | {
|
637
1096
|
type: "dismiss";
|
638
1097
|
} | {
|
639
|
-
type: "
|
1098
|
+
type: "snooze";
|
640
1099
|
} | {
|
641
|
-
type: "
|
642
|
-
value:
|
643
|
-
} |
|
644
|
-
|
1100
|
+
type: "questlist";
|
1101
|
+
value: number;
|
1102
|
+
} | {
|
1103
|
+
type: "step_back";
|
1104
|
+
} | {
|
1105
|
+
type: "nudge";
|
1106
|
+
value: number;
|
1107
|
+
} | {
|
1108
|
+
type: "go_to_step";
|
1109
|
+
value: number;
|
1110
|
+
} | ({
|
1111
|
+
type: "open_bar";
|
1112
|
+
} & {
|
1113
|
+
value?: string | undefined;
|
1114
|
+
categoryFilter?: number | undefined;
|
1115
|
+
}) | undefined;
|
1116
|
+
button_type?: "snooze" | "primary" | "secondary" | undefined;
|
1117
|
+
conditional_actions?: {
|
1118
|
+
operator: "eq" | "neq" | "gt" | "lt";
|
1119
|
+
operand: string | number;
|
1120
|
+
action: {
|
1121
|
+
type: "execute_command";
|
1122
|
+
meta: {
|
1123
|
+
command: string;
|
1124
|
+
};
|
1125
|
+
} | {
|
1126
|
+
type: "no_action";
|
1127
|
+
} | {
|
1128
|
+
type: "click";
|
1129
|
+
value: string;
|
1130
|
+
} | ({
|
1131
|
+
type: "link";
|
1132
|
+
value: string;
|
1133
|
+
} & {
|
1134
|
+
operation?: "self" | "router" | "blank" | undefined;
|
1135
|
+
}) | {
|
1136
|
+
type: "open_chat";
|
1137
|
+
meta: {
|
1138
|
+
type: string;
|
1139
|
+
};
|
1140
|
+
} | {
|
1141
|
+
type: "dismiss";
|
1142
|
+
} | {
|
1143
|
+
type: "snooze";
|
1144
|
+
} | {
|
1145
|
+
type: "questlist";
|
1146
|
+
value: number;
|
1147
|
+
} | {
|
1148
|
+
type: "step_back";
|
1149
|
+
} | {
|
1150
|
+
type: "nudge";
|
1151
|
+
value: number;
|
1152
|
+
} | {
|
1153
|
+
type: "go_to_step";
|
1154
|
+
value: number;
|
1155
|
+
} | ({
|
1156
|
+
type: "open_bar";
|
1157
|
+
} & {
|
1158
|
+
value?: string | undefined;
|
1159
|
+
categoryFilter?: number | undefined;
|
1160
|
+
});
|
1161
|
+
}[] | undefined;
|
645
1162
|
} | null;
|
646
1163
|
} | {
|
647
1164
|
type: "survey_text";
|
648
1165
|
meta: {
|
649
1166
|
prompt: string;
|
650
1167
|
};
|
1168
|
+
sort_key: number | undefined;
|
1169
|
+
} | {
|
1170
|
+
type: "survey_text_short";
|
1171
|
+
meta: {
|
1172
|
+
prompt: string;
|
1173
|
+
};
|
1174
|
+
sort_key: number | undefined;
|
651
1175
|
} | {
|
652
1176
|
type: "survey_rating";
|
1177
|
+
sort_key: number | undefined;
|
653
1178
|
meta: {
|
654
1179
|
type: "emojis";
|
655
1180
|
lower_label: string;
|
@@ -667,6 +1192,14 @@ export declare class Nudge {
|
|
667
1192
|
upper_label: string;
|
668
1193
|
options: number;
|
669
1194
|
};
|
1195
|
+
} | {
|
1196
|
+
type: "survey_list";
|
1197
|
+
sort_key: number | undefined;
|
1198
|
+
meta: {
|
1199
|
+
options: string[];
|
1200
|
+
list_type: "multiple" | "single";
|
1201
|
+
display_type: "grid" | "list" | "dropdown";
|
1202
|
+
};
|
670
1203
|
})[];
|
671
1204
|
is_live: boolean;
|
672
1205
|
} & {
|
@@ -680,6 +1213,8 @@ export declare class Nudge {
|
|
680
1213
|
anchor: string;
|
681
1214
|
} & {
|
682
1215
|
is_open_by_default?: boolean | undefined;
|
1216
|
+
is_showing_mask?: boolean | undefined;
|
1217
|
+
advance_trigger?: string | undefined;
|
683
1218
|
offset?: {
|
684
1219
|
x: string;
|
685
1220
|
y: string;
|
@@ -710,7 +1245,16 @@ export declare class Nudge {
|
|
710
1245
|
template_source: string;
|
711
1246
|
show_step_counter: boolean;
|
712
1247
|
dismissible: boolean;
|
1248
|
+
snoozable: boolean;
|
713
1249
|
share_page_url: string;
|
1250
|
+
copilot_suggest: boolean;
|
1251
|
+
copilot_cta_label: string;
|
1252
|
+
copilot_description: string;
|
1253
|
+
is_scheduled: boolean;
|
1254
|
+
scheduled_start_time: string | null | undefined;
|
1255
|
+
scheduled_end_time: string | null | undefined;
|
1256
|
+
snooze_label: string;
|
1257
|
+
type: "announcement" | "product_tour" | "survey" | null;
|
714
1258
|
};
|
715
1259
|
static create: (object: {
|
716
1260
|
slug: string;
|
@@ -739,6 +1283,12 @@ export declare class Nudge {
|
|
739
1283
|
meta: {
|
740
1284
|
selector: string;
|
741
1285
|
};
|
1286
|
+
} | {
|
1287
|
+
type: "on_user_confusion";
|
1288
|
+
} | {
|
1289
|
+
type: "on_rage_click";
|
1290
|
+
} | {
|
1291
|
+
type: "smart_delay";
|
742
1292
|
} | {
|
743
1293
|
type: "when_share_link_viewed";
|
744
1294
|
};
|
@@ -748,11 +1298,13 @@ export declare class Nudge {
|
|
748
1298
|
title: string;
|
749
1299
|
content: ({
|
750
1300
|
type: "markdown";
|
1301
|
+
sort_key: number | undefined;
|
751
1302
|
meta: {
|
752
1303
|
value: string;
|
753
1304
|
};
|
754
1305
|
} | {
|
755
1306
|
type: "image";
|
1307
|
+
sort_key: number | undefined;
|
756
1308
|
meta: {
|
757
1309
|
src: string;
|
758
1310
|
file_name: string;
|
@@ -760,6 +1312,7 @@ export declare class Nudge {
|
|
760
1312
|
};
|
761
1313
|
} | {
|
762
1314
|
type: "video";
|
1315
|
+
sort_key: number | undefined;
|
763
1316
|
meta: {
|
764
1317
|
type: "url";
|
765
1318
|
src: string;
|
@@ -769,11 +1322,13 @@ export declare class Nudge {
|
|
769
1322
|
};
|
770
1323
|
} | {
|
771
1324
|
type: "help_doc_command";
|
1325
|
+
sort_key: number | undefined;
|
772
1326
|
meta: {
|
773
1327
|
command: string;
|
774
1328
|
};
|
775
1329
|
} | {
|
776
1330
|
type: "button";
|
1331
|
+
sort_key: number | undefined;
|
777
1332
|
meta: {
|
778
1333
|
label?: string | undefined;
|
779
1334
|
action?: {
|
@@ -781,6 +1336,11 @@ export declare class Nudge {
|
|
781
1336
|
meta: {
|
782
1337
|
command: string;
|
783
1338
|
};
|
1339
|
+
} | {
|
1340
|
+
type: "no_action";
|
1341
|
+
} | {
|
1342
|
+
type: "click";
|
1343
|
+
value: string;
|
784
1344
|
} | ({
|
785
1345
|
type: "link";
|
786
1346
|
value: string;
|
@@ -794,20 +1354,86 @@ export declare class Nudge {
|
|
794
1354
|
} | {
|
795
1355
|
type: "dismiss";
|
796
1356
|
} | {
|
797
|
-
type: "
|
1357
|
+
type: "snooze";
|
798
1358
|
} | {
|
799
|
-
type: "
|
800
|
-
value:
|
801
|
-
} |
|
802
|
-
|
1359
|
+
type: "questlist";
|
1360
|
+
value: number;
|
1361
|
+
} | {
|
1362
|
+
type: "step_back";
|
1363
|
+
} | {
|
1364
|
+
type: "nudge";
|
1365
|
+
value: number;
|
1366
|
+
} | {
|
1367
|
+
type: "go_to_step";
|
1368
|
+
value: number;
|
1369
|
+
} | ({
|
1370
|
+
type: "open_bar";
|
1371
|
+
} & {
|
1372
|
+
value?: string | undefined;
|
1373
|
+
categoryFilter?: number | undefined;
|
1374
|
+
}) | undefined;
|
1375
|
+
button_type?: "snooze" | "primary" | "secondary" | undefined;
|
1376
|
+
conditional_actions?: {
|
1377
|
+
operator: "eq" | "neq" | "gt" | "lt";
|
1378
|
+
operand: string | number;
|
1379
|
+
action: {
|
1380
|
+
type: "execute_command";
|
1381
|
+
meta: {
|
1382
|
+
command: string;
|
1383
|
+
};
|
1384
|
+
} | {
|
1385
|
+
type: "no_action";
|
1386
|
+
} | {
|
1387
|
+
type: "click";
|
1388
|
+
value: string;
|
1389
|
+
} | ({
|
1390
|
+
type: "link";
|
1391
|
+
value: string;
|
1392
|
+
} & {
|
1393
|
+
operation?: "self" | "router" | "blank" | undefined;
|
1394
|
+
}) | {
|
1395
|
+
type: "open_chat";
|
1396
|
+
meta: {
|
1397
|
+
type: string;
|
1398
|
+
};
|
1399
|
+
} | {
|
1400
|
+
type: "dismiss";
|
1401
|
+
} | {
|
1402
|
+
type: "snooze";
|
1403
|
+
} | {
|
1404
|
+
type: "questlist";
|
1405
|
+
value: number;
|
1406
|
+
} | {
|
1407
|
+
type: "step_back";
|
1408
|
+
} | {
|
1409
|
+
type: "nudge";
|
1410
|
+
value: number;
|
1411
|
+
} | {
|
1412
|
+
type: "go_to_step";
|
1413
|
+
value: number;
|
1414
|
+
} | ({
|
1415
|
+
type: "open_bar";
|
1416
|
+
} & {
|
1417
|
+
value?: string | undefined;
|
1418
|
+
categoryFilter?: number | undefined;
|
1419
|
+
});
|
1420
|
+
}[] | undefined;
|
803
1421
|
} | null;
|
804
1422
|
} | {
|
805
1423
|
type: "survey_text";
|
806
1424
|
meta: {
|
807
1425
|
prompt: string;
|
808
1426
|
};
|
1427
|
+
sort_key: number | undefined;
|
1428
|
+
} | {
|
1429
|
+
type: "survey_text_short";
|
1430
|
+
meta: {
|
1431
|
+
prompt: string;
|
1432
|
+
};
|
1433
|
+
sort_key: number | undefined;
|
809
1434
|
} | {
|
810
1435
|
type: "survey_rating";
|
1436
|
+
sort_key: number | undefined;
|
811
1437
|
meta: {
|
812
1438
|
type: "emojis";
|
813
1439
|
lower_label: string;
|
@@ -825,6 +1451,14 @@ export declare class Nudge {
|
|
825
1451
|
upper_label: string;
|
826
1452
|
options: number;
|
827
1453
|
};
|
1454
|
+
} | {
|
1455
|
+
type: "survey_list";
|
1456
|
+
sort_key: number | undefined;
|
1457
|
+
meta: {
|
1458
|
+
options: string[];
|
1459
|
+
list_type: "multiple" | "single";
|
1460
|
+
display_type: "grid" | "list" | "dropdown";
|
1461
|
+
};
|
828
1462
|
})[];
|
829
1463
|
is_live: boolean;
|
830
1464
|
} & {
|
@@ -838,6 +1472,8 @@ export declare class Nudge {
|
|
838
1472
|
anchor: string;
|
839
1473
|
} & {
|
840
1474
|
is_open_by_default?: boolean | undefined;
|
1475
|
+
is_showing_mask?: boolean | undefined;
|
1476
|
+
advance_trigger?: string | undefined;
|
841
1477
|
offset?: {
|
842
1478
|
x: string;
|
843
1479
|
y: string;
|
@@ -868,7 +1504,16 @@ export declare class Nudge {
|
|
868
1504
|
template_source: string;
|
869
1505
|
show_step_counter: boolean;
|
870
1506
|
dismissible: boolean;
|
1507
|
+
snoozable: boolean;
|
871
1508
|
share_page_url: string;
|
1509
|
+
copilot_suggest: boolean;
|
1510
|
+
copilot_cta_label: string;
|
1511
|
+
copilot_description: string;
|
1512
|
+
is_scheduled: boolean;
|
1513
|
+
scheduled_start_time: string | null | undefined;
|
1514
|
+
scheduled_end_time: string | null | undefined;
|
1515
|
+
snooze_label: string;
|
1516
|
+
type: "announcement" | "product_tour" | "survey" | null;
|
872
1517
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
873
1518
|
slug: string;
|
874
1519
|
id: string | number;
|
@@ -896,6 +1541,12 @@ export declare class Nudge {
|
|
896
1541
|
meta: {
|
897
1542
|
selector: string;
|
898
1543
|
};
|
1544
|
+
} | {
|
1545
|
+
type: "on_user_confusion";
|
1546
|
+
} | {
|
1547
|
+
type: "on_rage_click";
|
1548
|
+
} | {
|
1549
|
+
type: "smart_delay";
|
899
1550
|
} | {
|
900
1551
|
type: "when_share_link_viewed";
|
901
1552
|
};
|
@@ -905,11 +1556,13 @@ export declare class Nudge {
|
|
905
1556
|
title: string;
|
906
1557
|
content: ({
|
907
1558
|
type: "markdown";
|
1559
|
+
sort_key: number | undefined;
|
908
1560
|
meta: {
|
909
1561
|
value: string;
|
910
1562
|
};
|
911
1563
|
} | {
|
912
1564
|
type: "image";
|
1565
|
+
sort_key: number | undefined;
|
913
1566
|
meta: {
|
914
1567
|
src: string;
|
915
1568
|
file_name: string;
|
@@ -917,6 +1570,7 @@ export declare class Nudge {
|
|
917
1570
|
};
|
918
1571
|
} | {
|
919
1572
|
type: "video";
|
1573
|
+
sort_key: number | undefined;
|
920
1574
|
meta: {
|
921
1575
|
type: "url";
|
922
1576
|
src: string;
|
@@ -926,11 +1580,13 @@ export declare class Nudge {
|
|
926
1580
|
};
|
927
1581
|
} | {
|
928
1582
|
type: "help_doc_command";
|
1583
|
+
sort_key: number | undefined;
|
929
1584
|
meta: {
|
930
1585
|
command: string;
|
931
1586
|
};
|
932
1587
|
} | {
|
933
1588
|
type: "button";
|
1589
|
+
sort_key: number | undefined;
|
934
1590
|
meta: {
|
935
1591
|
label?: string | undefined;
|
936
1592
|
action?: {
|
@@ -938,6 +1594,11 @@ export declare class Nudge {
|
|
938
1594
|
meta: {
|
939
1595
|
command: string;
|
940
1596
|
};
|
1597
|
+
} | {
|
1598
|
+
type: "no_action";
|
1599
|
+
} | {
|
1600
|
+
type: "click";
|
1601
|
+
value: string;
|
941
1602
|
} | ({
|
942
1603
|
type: "link";
|
943
1604
|
value: string;
|
@@ -951,20 +1612,86 @@ export declare class Nudge {
|
|
951
1612
|
} | {
|
952
1613
|
type: "dismiss";
|
953
1614
|
} | {
|
954
|
-
type: "
|
1615
|
+
type: "snooze";
|
955
1616
|
} | {
|
956
|
-
type: "
|
957
|
-
value:
|
958
|
-
} |
|
959
|
-
|
1617
|
+
type: "questlist";
|
1618
|
+
value: number;
|
1619
|
+
} | {
|
1620
|
+
type: "step_back";
|
1621
|
+
} | {
|
1622
|
+
type: "nudge";
|
1623
|
+
value: number;
|
1624
|
+
} | {
|
1625
|
+
type: "go_to_step";
|
1626
|
+
value: number;
|
1627
|
+
} | ({
|
1628
|
+
type: "open_bar";
|
1629
|
+
} & {
|
1630
|
+
value?: string | undefined;
|
1631
|
+
categoryFilter?: number | undefined;
|
1632
|
+
}) | undefined;
|
1633
|
+
button_type?: "snooze" | "primary" | "secondary" | undefined;
|
1634
|
+
conditional_actions?: {
|
1635
|
+
operator: "eq" | "neq" | "gt" | "lt";
|
1636
|
+
operand: string | number;
|
1637
|
+
action: {
|
1638
|
+
type: "execute_command";
|
1639
|
+
meta: {
|
1640
|
+
command: string;
|
1641
|
+
};
|
1642
|
+
} | {
|
1643
|
+
type: "no_action";
|
1644
|
+
} | {
|
1645
|
+
type: "click";
|
1646
|
+
value: string;
|
1647
|
+
} | ({
|
1648
|
+
type: "link";
|
1649
|
+
value: string;
|
1650
|
+
} & {
|
1651
|
+
operation?: "self" | "router" | "blank" | undefined;
|
1652
|
+
}) | {
|
1653
|
+
type: "open_chat";
|
1654
|
+
meta: {
|
1655
|
+
type: string;
|
1656
|
+
};
|
1657
|
+
} | {
|
1658
|
+
type: "dismiss";
|
1659
|
+
} | {
|
1660
|
+
type: "snooze";
|
1661
|
+
} | {
|
1662
|
+
type: "questlist";
|
1663
|
+
value: number;
|
1664
|
+
} | {
|
1665
|
+
type: "step_back";
|
1666
|
+
} | {
|
1667
|
+
type: "nudge";
|
1668
|
+
value: number;
|
1669
|
+
} | {
|
1670
|
+
type: "go_to_step";
|
1671
|
+
value: number;
|
1672
|
+
} | ({
|
1673
|
+
type: "open_bar";
|
1674
|
+
} & {
|
1675
|
+
value?: string | undefined;
|
1676
|
+
categoryFilter?: number | undefined;
|
1677
|
+
});
|
1678
|
+
}[] | undefined;
|
960
1679
|
} | null;
|
961
1680
|
} | {
|
962
1681
|
type: "survey_text";
|
963
1682
|
meta: {
|
964
1683
|
prompt: string;
|
965
1684
|
};
|
1685
|
+
sort_key: number | undefined;
|
1686
|
+
} | {
|
1687
|
+
type: "survey_text_short";
|
1688
|
+
meta: {
|
1689
|
+
prompt: string;
|
1690
|
+
};
|
1691
|
+
sort_key: number | undefined;
|
966
1692
|
} | {
|
967
1693
|
type: "survey_rating";
|
1694
|
+
sort_key: number | undefined;
|
968
1695
|
meta: {
|
969
1696
|
type: "emojis";
|
970
1697
|
lower_label: string;
|
@@ -982,6 +1709,14 @@ export declare class Nudge {
|
|
982
1709
|
upper_label: string;
|
983
1710
|
options: number;
|
984
1711
|
};
|
1712
|
+
} | {
|
1713
|
+
type: "survey_list";
|
1714
|
+
sort_key: number | undefined;
|
1715
|
+
meta: {
|
1716
|
+
options: string[];
|
1717
|
+
list_type: "multiple" | "single";
|
1718
|
+
display_type: "grid" | "list" | "dropdown";
|
1719
|
+
};
|
985
1720
|
})[];
|
986
1721
|
is_live: boolean;
|
987
1722
|
} & {
|
@@ -995,6 +1730,8 @@ export declare class Nudge {
|
|
995
1730
|
anchor: string;
|
996
1731
|
} & {
|
997
1732
|
is_open_by_default?: boolean | undefined;
|
1733
|
+
is_showing_mask?: boolean | undefined;
|
1734
|
+
advance_trigger?: string | undefined;
|
998
1735
|
offset?: {
|
999
1736
|
x: string;
|
1000
1737
|
y: string;
|
@@ -1025,7 +1762,16 @@ export declare class Nudge {
|
|
1025
1762
|
template_source: string;
|
1026
1763
|
show_step_counter: boolean;
|
1027
1764
|
dismissible: boolean;
|
1765
|
+
snoozable: boolean;
|
1028
1766
|
share_page_url: string;
|
1767
|
+
copilot_suggest: boolean;
|
1768
|
+
copilot_cta_label: string;
|
1769
|
+
copilot_description: string;
|
1770
|
+
is_scheduled: boolean;
|
1771
|
+
scheduled_start_time: string | null | undefined;
|
1772
|
+
scheduled_end_time: string | null | undefined;
|
1773
|
+
snooze_label: string;
|
1774
|
+
type: "announcement" | "product_tour" | "survey" | null;
|
1029
1775
|
}>;
|
1030
1776
|
static update: (object: {
|
1031
1777
|
slug: string;
|
@@ -1054,6 +1800,12 @@ export declare class Nudge {
|
|
1054
1800
|
meta: {
|
1055
1801
|
selector: string;
|
1056
1802
|
};
|
1803
|
+
} | {
|
1804
|
+
type: "on_user_confusion";
|
1805
|
+
} | {
|
1806
|
+
type: "on_rage_click";
|
1807
|
+
} | {
|
1808
|
+
type: "smart_delay";
|
1057
1809
|
} | {
|
1058
1810
|
type: "when_share_link_viewed";
|
1059
1811
|
};
|
@@ -1063,11 +1815,13 @@ export declare class Nudge {
|
|
1063
1815
|
title: string;
|
1064
1816
|
content: ({
|
1065
1817
|
type: "markdown";
|
1818
|
+
sort_key: number | undefined;
|
1066
1819
|
meta: {
|
1067
1820
|
value: string;
|
1068
1821
|
};
|
1069
1822
|
} | {
|
1070
1823
|
type: "image";
|
1824
|
+
sort_key: number | undefined;
|
1071
1825
|
meta: {
|
1072
1826
|
src: string;
|
1073
1827
|
file_name: string;
|
@@ -1075,6 +1829,7 @@ export declare class Nudge {
|
|
1075
1829
|
};
|
1076
1830
|
} | {
|
1077
1831
|
type: "video";
|
1832
|
+
sort_key: number | undefined;
|
1078
1833
|
meta: {
|
1079
1834
|
type: "url";
|
1080
1835
|
src: string;
|
@@ -1084,11 +1839,13 @@ export declare class Nudge {
|
|
1084
1839
|
};
|
1085
1840
|
} | {
|
1086
1841
|
type: "help_doc_command";
|
1842
|
+
sort_key: number | undefined;
|
1087
1843
|
meta: {
|
1088
1844
|
command: string;
|
1089
1845
|
};
|
1090
1846
|
} | {
|
1091
1847
|
type: "button";
|
1848
|
+
sort_key: number | undefined;
|
1092
1849
|
meta: {
|
1093
1850
|
label?: string | undefined;
|
1094
1851
|
action?: {
|
@@ -1096,6 +1853,11 @@ export declare class Nudge {
|
|
1096
1853
|
meta: {
|
1097
1854
|
command: string;
|
1098
1855
|
};
|
1856
|
+
} | {
|
1857
|
+
type: "no_action";
|
1858
|
+
} | {
|
1859
|
+
type: "click";
|
1860
|
+
value: string;
|
1099
1861
|
} | ({
|
1100
1862
|
type: "link";
|
1101
1863
|
value: string;
|
@@ -1109,20 +1871,86 @@ export declare class Nudge {
|
|
1109
1871
|
} | {
|
1110
1872
|
type: "dismiss";
|
1111
1873
|
} | {
|
1112
|
-
type: "
|
1874
|
+
type: "snooze";
|
1113
1875
|
} | {
|
1114
|
-
type: "
|
1115
|
-
value:
|
1116
|
-
} |
|
1117
|
-
|
1876
|
+
type: "questlist";
|
1877
|
+
value: number;
|
1878
|
+
} | {
|
1879
|
+
type: "step_back";
|
1880
|
+
} | {
|
1881
|
+
type: "nudge";
|
1882
|
+
value: number;
|
1883
|
+
} | {
|
1884
|
+
type: "go_to_step";
|
1885
|
+
value: number;
|
1886
|
+
} | ({
|
1887
|
+
type: "open_bar";
|
1888
|
+
} & {
|
1889
|
+
value?: string | undefined;
|
1890
|
+
categoryFilter?: number | undefined;
|
1891
|
+
}) | undefined;
|
1892
|
+
button_type?: "snooze" | "primary" | "secondary" | undefined;
|
1893
|
+
conditional_actions?: {
|
1894
|
+
operator: "eq" | "neq" | "gt" | "lt";
|
1895
|
+
operand: string | number;
|
1896
|
+
action: {
|
1897
|
+
type: "execute_command";
|
1898
|
+
meta: {
|
1899
|
+
command: string;
|
1900
|
+
};
|
1901
|
+
} | {
|
1902
|
+
type: "no_action";
|
1903
|
+
} | {
|
1904
|
+
type: "click";
|
1905
|
+
value: string;
|
1906
|
+
} | ({
|
1907
|
+
type: "link";
|
1908
|
+
value: string;
|
1909
|
+
} & {
|
1910
|
+
operation?: "self" | "router" | "blank" | undefined;
|
1911
|
+
}) | {
|
1912
|
+
type: "open_chat";
|
1913
|
+
meta: {
|
1914
|
+
type: string;
|
1915
|
+
};
|
1916
|
+
} | {
|
1917
|
+
type: "dismiss";
|
1918
|
+
} | {
|
1919
|
+
type: "snooze";
|
1920
|
+
} | {
|
1921
|
+
type: "questlist";
|
1922
|
+
value: number;
|
1923
|
+
} | {
|
1924
|
+
type: "step_back";
|
1925
|
+
} | {
|
1926
|
+
type: "nudge";
|
1927
|
+
value: number;
|
1928
|
+
} | {
|
1929
|
+
type: "go_to_step";
|
1930
|
+
value: number;
|
1931
|
+
} | ({
|
1932
|
+
type: "open_bar";
|
1933
|
+
} & {
|
1934
|
+
value?: string | undefined;
|
1935
|
+
categoryFilter?: number | undefined;
|
1936
|
+
});
|
1937
|
+
}[] | undefined;
|
1118
1938
|
} | null;
|
1119
1939
|
} | {
|
1120
1940
|
type: "survey_text";
|
1121
1941
|
meta: {
|
1122
1942
|
prompt: string;
|
1123
1943
|
};
|
1944
|
+
sort_key: number | undefined;
|
1945
|
+
} | {
|
1946
|
+
type: "survey_text_short";
|
1947
|
+
meta: {
|
1948
|
+
prompt: string;
|
1949
|
+
};
|
1950
|
+
sort_key: number | undefined;
|
1124
1951
|
} | {
|
1125
1952
|
type: "survey_rating";
|
1953
|
+
sort_key: number | undefined;
|
1126
1954
|
meta: {
|
1127
1955
|
type: "emojis";
|
1128
1956
|
lower_label: string;
|
@@ -1140,6 +1968,14 @@ export declare class Nudge {
|
|
1140
1968
|
upper_label: string;
|
1141
1969
|
options: number;
|
1142
1970
|
};
|
1971
|
+
} | {
|
1972
|
+
type: "survey_list";
|
1973
|
+
sort_key: number | undefined;
|
1974
|
+
meta: {
|
1975
|
+
options: string[];
|
1976
|
+
list_type: "multiple" | "single";
|
1977
|
+
display_type: "grid" | "list" | "dropdown";
|
1978
|
+
};
|
1143
1979
|
})[];
|
1144
1980
|
is_live: boolean;
|
1145
1981
|
} & {
|
@@ -1153,6 +1989,8 @@ export declare class Nudge {
|
|
1153
1989
|
anchor: string;
|
1154
1990
|
} & {
|
1155
1991
|
is_open_by_default?: boolean | undefined;
|
1992
|
+
is_showing_mask?: boolean | undefined;
|
1993
|
+
advance_trigger?: string | undefined;
|
1156
1994
|
offset?: {
|
1157
1995
|
x: string;
|
1158
1996
|
y: string;
|
@@ -1183,7 +2021,16 @@ export declare class Nudge {
|
|
1183
2021
|
template_source: string;
|
1184
2022
|
show_step_counter: boolean;
|
1185
2023
|
dismissible: boolean;
|
2024
|
+
snoozable: boolean;
|
1186
2025
|
share_page_url: string;
|
2026
|
+
copilot_suggest: boolean;
|
2027
|
+
copilot_cta_label: string;
|
2028
|
+
copilot_description: string;
|
2029
|
+
is_scheduled: boolean;
|
2030
|
+
scheduled_start_time: string | null | undefined;
|
2031
|
+
scheduled_end_time: string | null | undefined;
|
2032
|
+
snooze_label: string;
|
2033
|
+
type: "announcement" | "product_tour" | "survey" | null;
|
1187
2034
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
1188
2035
|
slug: string;
|
1189
2036
|
id: string | number;
|
@@ -1211,6 +2058,12 @@ export declare class Nudge {
|
|
1211
2058
|
meta: {
|
1212
2059
|
selector: string;
|
1213
2060
|
};
|
2061
|
+
} | {
|
2062
|
+
type: "on_user_confusion";
|
2063
|
+
} | {
|
2064
|
+
type: "on_rage_click";
|
2065
|
+
} | {
|
2066
|
+
type: "smart_delay";
|
1214
2067
|
} | {
|
1215
2068
|
type: "when_share_link_viewed";
|
1216
2069
|
};
|
@@ -1220,11 +2073,13 @@ export declare class Nudge {
|
|
1220
2073
|
title: string;
|
1221
2074
|
content: ({
|
1222
2075
|
type: "markdown";
|
2076
|
+
sort_key: number | undefined;
|
1223
2077
|
meta: {
|
1224
2078
|
value: string;
|
1225
2079
|
};
|
1226
2080
|
} | {
|
1227
2081
|
type: "image";
|
2082
|
+
sort_key: number | undefined;
|
1228
2083
|
meta: {
|
1229
2084
|
src: string;
|
1230
2085
|
file_name: string;
|
@@ -1232,6 +2087,7 @@ export declare class Nudge {
|
|
1232
2087
|
};
|
1233
2088
|
} | {
|
1234
2089
|
type: "video";
|
2090
|
+
sort_key: number | undefined;
|
1235
2091
|
meta: {
|
1236
2092
|
type: "url";
|
1237
2093
|
src: string;
|
@@ -1241,11 +2097,13 @@ export declare class Nudge {
|
|
1241
2097
|
};
|
1242
2098
|
} | {
|
1243
2099
|
type: "help_doc_command";
|
2100
|
+
sort_key: number | undefined;
|
1244
2101
|
meta: {
|
1245
2102
|
command: string;
|
1246
2103
|
};
|
1247
2104
|
} | {
|
1248
2105
|
type: "button";
|
2106
|
+
sort_key: number | undefined;
|
1249
2107
|
meta: {
|
1250
2108
|
label?: string | undefined;
|
1251
2109
|
action?: {
|
@@ -1253,6 +2111,11 @@ export declare class Nudge {
|
|
1253
2111
|
meta: {
|
1254
2112
|
command: string;
|
1255
2113
|
};
|
2114
|
+
} | {
|
2115
|
+
type: "no_action";
|
2116
|
+
} | {
|
2117
|
+
type: "click";
|
2118
|
+
value: string;
|
1256
2119
|
} | ({
|
1257
2120
|
type: "link";
|
1258
2121
|
value: string;
|
@@ -1266,20 +2129,86 @@ export declare class Nudge {
|
|
1266
2129
|
} | {
|
1267
2130
|
type: "dismiss";
|
1268
2131
|
} | {
|
1269
|
-
type: "
|
2132
|
+
type: "snooze";
|
1270
2133
|
} | {
|
1271
|
-
type: "
|
1272
|
-
value:
|
1273
|
-
} |
|
1274
|
-
|
2134
|
+
type: "questlist";
|
2135
|
+
value: number;
|
2136
|
+
} | {
|
2137
|
+
type: "step_back";
|
2138
|
+
} | {
|
2139
|
+
type: "nudge";
|
2140
|
+
value: number;
|
2141
|
+
} | {
|
2142
|
+
type: "go_to_step";
|
2143
|
+
value: number;
|
2144
|
+
} | ({
|
2145
|
+
type: "open_bar";
|
2146
|
+
} & {
|
2147
|
+
value?: string | undefined;
|
2148
|
+
categoryFilter?: number | undefined;
|
2149
|
+
}) | undefined;
|
2150
|
+
button_type?: "snooze" | "primary" | "secondary" | undefined;
|
2151
|
+
conditional_actions?: {
|
2152
|
+
operator: "eq" | "neq" | "gt" | "lt";
|
2153
|
+
operand: string | number;
|
2154
|
+
action: {
|
2155
|
+
type: "execute_command";
|
2156
|
+
meta: {
|
2157
|
+
command: string;
|
2158
|
+
};
|
2159
|
+
} | {
|
2160
|
+
type: "no_action";
|
2161
|
+
} | {
|
2162
|
+
type: "click";
|
2163
|
+
value: string;
|
2164
|
+
} | ({
|
2165
|
+
type: "link";
|
2166
|
+
value: string;
|
2167
|
+
} & {
|
2168
|
+
operation?: "self" | "router" | "blank" | undefined;
|
2169
|
+
}) | {
|
2170
|
+
type: "open_chat";
|
2171
|
+
meta: {
|
2172
|
+
type: string;
|
2173
|
+
};
|
2174
|
+
} | {
|
2175
|
+
type: "dismiss";
|
2176
|
+
} | {
|
2177
|
+
type: "snooze";
|
2178
|
+
} | {
|
2179
|
+
type: "questlist";
|
2180
|
+
value: number;
|
2181
|
+
} | {
|
2182
|
+
type: "step_back";
|
2183
|
+
} | {
|
2184
|
+
type: "nudge";
|
2185
|
+
value: number;
|
2186
|
+
} | {
|
2187
|
+
type: "go_to_step";
|
2188
|
+
value: number;
|
2189
|
+
} | ({
|
2190
|
+
type: "open_bar";
|
2191
|
+
} & {
|
2192
|
+
value?: string | undefined;
|
2193
|
+
categoryFilter?: number | undefined;
|
2194
|
+
});
|
2195
|
+
}[] | undefined;
|
1275
2196
|
} | null;
|
1276
2197
|
} | {
|
1277
2198
|
type: "survey_text";
|
1278
2199
|
meta: {
|
1279
2200
|
prompt: string;
|
1280
2201
|
};
|
2202
|
+
sort_key: number | undefined;
|
2203
|
+
} | {
|
2204
|
+
type: "survey_text_short";
|
2205
|
+
meta: {
|
2206
|
+
prompt: string;
|
2207
|
+
};
|
2208
|
+
sort_key: number | undefined;
|
1281
2209
|
} | {
|
1282
2210
|
type: "survey_rating";
|
2211
|
+
sort_key: number | undefined;
|
1283
2212
|
meta: {
|
1284
2213
|
type: "emojis";
|
1285
2214
|
lower_label: string;
|
@@ -1297,6 +2226,14 @@ export declare class Nudge {
|
|
1297
2226
|
upper_label: string;
|
1298
2227
|
options: number;
|
1299
2228
|
};
|
2229
|
+
} | {
|
2230
|
+
type: "survey_list";
|
2231
|
+
sort_key: number | undefined;
|
2232
|
+
meta: {
|
2233
|
+
options: string[];
|
2234
|
+
list_type: "multiple" | "single";
|
2235
|
+
display_type: "grid" | "list" | "dropdown";
|
2236
|
+
};
|
1300
2237
|
})[];
|
1301
2238
|
is_live: boolean;
|
1302
2239
|
} & {
|
@@ -1310,6 +2247,8 @@ export declare class Nudge {
|
|
1310
2247
|
anchor: string;
|
1311
2248
|
} & {
|
1312
2249
|
is_open_by_default?: boolean | undefined;
|
2250
|
+
is_showing_mask?: boolean | undefined;
|
2251
|
+
advance_trigger?: string | undefined;
|
1313
2252
|
offset?: {
|
1314
2253
|
x: string;
|
1315
2254
|
y: string;
|
@@ -1340,7 +2279,16 @@ export declare class Nudge {
|
|
1340
2279
|
template_source: string;
|
1341
2280
|
show_step_counter: boolean;
|
1342
2281
|
dismissible: boolean;
|
2282
|
+
snoozable: boolean;
|
1343
2283
|
share_page_url: string;
|
2284
|
+
copilot_suggest: boolean;
|
2285
|
+
copilot_cta_label: string;
|
2286
|
+
copilot_description: string;
|
2287
|
+
is_scheduled: boolean;
|
2288
|
+
scheduled_start_time: string | null | undefined;
|
2289
|
+
scheduled_end_time: string | null | undefined;
|
2290
|
+
snooze_label: string;
|
2291
|
+
type: "announcement" | "product_tour" | "survey" | null;
|
1344
2292
|
}>;
|
1345
2293
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
1346
2294
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
@@ -1370,6 +2318,12 @@ export declare class Nudge {
|
|
1370
2318
|
meta: {
|
1371
2319
|
selector: string;
|
1372
2320
|
};
|
2321
|
+
} | {
|
2322
|
+
type: "on_user_confusion";
|
2323
|
+
} | {
|
2324
|
+
type: "on_rage_click";
|
2325
|
+
} | {
|
2326
|
+
type: "smart_delay";
|
1373
2327
|
} | {
|
1374
2328
|
type: "when_share_link_viewed";
|
1375
2329
|
};
|
@@ -1379,11 +2333,13 @@ export declare class Nudge {
|
|
1379
2333
|
title: string;
|
1380
2334
|
content: ({
|
1381
2335
|
type: "markdown";
|
2336
|
+
sort_key: number | undefined;
|
1382
2337
|
meta: {
|
1383
2338
|
value: string;
|
1384
2339
|
};
|
1385
2340
|
} | {
|
1386
2341
|
type: "image";
|
2342
|
+
sort_key: number | undefined;
|
1387
2343
|
meta: {
|
1388
2344
|
src: string;
|
1389
2345
|
file_name: string;
|
@@ -1391,6 +2347,7 @@ export declare class Nudge {
|
|
1391
2347
|
};
|
1392
2348
|
} | {
|
1393
2349
|
type: "video";
|
2350
|
+
sort_key: number | undefined;
|
1394
2351
|
meta: {
|
1395
2352
|
type: "url";
|
1396
2353
|
src: string;
|
@@ -1400,11 +2357,13 @@ export declare class Nudge {
|
|
1400
2357
|
};
|
1401
2358
|
} | {
|
1402
2359
|
type: "help_doc_command";
|
2360
|
+
sort_key: number | undefined;
|
1403
2361
|
meta: {
|
1404
2362
|
command: string;
|
1405
2363
|
};
|
1406
2364
|
} | {
|
1407
2365
|
type: "button";
|
2366
|
+
sort_key: number | undefined;
|
1408
2367
|
meta: {
|
1409
2368
|
label?: string | undefined;
|
1410
2369
|
action?: {
|
@@ -1412,6 +2371,11 @@ export declare class Nudge {
|
|
1412
2371
|
meta: {
|
1413
2372
|
command: string;
|
1414
2373
|
};
|
2374
|
+
} | {
|
2375
|
+
type: "no_action";
|
2376
|
+
} | {
|
2377
|
+
type: "click";
|
2378
|
+
value: string;
|
1415
2379
|
} | ({
|
1416
2380
|
type: "link";
|
1417
2381
|
value: string;
|
@@ -1425,20 +2389,86 @@ export declare class Nudge {
|
|
1425
2389
|
} | {
|
1426
2390
|
type: "dismiss";
|
1427
2391
|
} | {
|
1428
|
-
type: "
|
2392
|
+
type: "snooze";
|
1429
2393
|
} | {
|
1430
|
-
type: "
|
1431
|
-
value:
|
1432
|
-
} |
|
1433
|
-
|
2394
|
+
type: "questlist";
|
2395
|
+
value: number;
|
2396
|
+
} | {
|
2397
|
+
type: "step_back";
|
2398
|
+
} | {
|
2399
|
+
type: "nudge";
|
2400
|
+
value: number;
|
2401
|
+
} | {
|
2402
|
+
type: "go_to_step";
|
2403
|
+
value: number;
|
2404
|
+
} | ({
|
2405
|
+
type: "open_bar";
|
2406
|
+
} & {
|
2407
|
+
value?: string | undefined;
|
2408
|
+
categoryFilter?: number | undefined;
|
2409
|
+
}) | undefined;
|
2410
|
+
button_type?: "snooze" | "primary" | "secondary" | undefined;
|
2411
|
+
conditional_actions?: {
|
2412
|
+
operator: "eq" | "neq" | "gt" | "lt";
|
2413
|
+
operand: string | number;
|
2414
|
+
action: {
|
2415
|
+
type: "execute_command";
|
2416
|
+
meta: {
|
2417
|
+
command: string;
|
2418
|
+
};
|
2419
|
+
} | {
|
2420
|
+
type: "no_action";
|
2421
|
+
} | {
|
2422
|
+
type: "click";
|
2423
|
+
value: string;
|
2424
|
+
} | ({
|
2425
|
+
type: "link";
|
2426
|
+
value: string;
|
2427
|
+
} & {
|
2428
|
+
operation?: "self" | "router" | "blank" | undefined;
|
2429
|
+
}) | {
|
2430
|
+
type: "open_chat";
|
2431
|
+
meta: {
|
2432
|
+
type: string;
|
2433
|
+
};
|
2434
|
+
} | {
|
2435
|
+
type: "dismiss";
|
2436
|
+
} | {
|
2437
|
+
type: "snooze";
|
2438
|
+
} | {
|
2439
|
+
type: "questlist";
|
2440
|
+
value: number;
|
2441
|
+
} | {
|
2442
|
+
type: "step_back";
|
2443
|
+
} | {
|
2444
|
+
type: "nudge";
|
2445
|
+
value: number;
|
2446
|
+
} | {
|
2447
|
+
type: "go_to_step";
|
2448
|
+
value: number;
|
2449
|
+
} | ({
|
2450
|
+
type: "open_bar";
|
2451
|
+
} & {
|
2452
|
+
value?: string | undefined;
|
2453
|
+
categoryFilter?: number | undefined;
|
2454
|
+
});
|
2455
|
+
}[] | undefined;
|
1434
2456
|
} | null;
|
1435
2457
|
} | {
|
1436
2458
|
type: "survey_text";
|
1437
2459
|
meta: {
|
1438
2460
|
prompt: string;
|
1439
2461
|
};
|
2462
|
+
sort_key: number | undefined;
|
2463
|
+
} | {
|
2464
|
+
type: "survey_text_short";
|
2465
|
+
meta: {
|
2466
|
+
prompt: string;
|
2467
|
+
};
|
2468
|
+
sort_key: number | undefined;
|
1440
2469
|
} | {
|
1441
2470
|
type: "survey_rating";
|
2471
|
+
sort_key: number | undefined;
|
1442
2472
|
meta: {
|
1443
2473
|
type: "emojis";
|
1444
2474
|
lower_label: string;
|
@@ -1456,6 +2486,14 @@ export declare class Nudge {
|
|
1456
2486
|
upper_label: string;
|
1457
2487
|
options: number;
|
1458
2488
|
};
|
2489
|
+
} | {
|
2490
|
+
type: "survey_list";
|
2491
|
+
sort_key: number | undefined;
|
2492
|
+
meta: {
|
2493
|
+
options: string[];
|
2494
|
+
list_type: "multiple" | "single";
|
2495
|
+
display_type: "grid" | "list" | "dropdown";
|
2496
|
+
};
|
1459
2497
|
})[];
|
1460
2498
|
is_live: boolean;
|
1461
2499
|
} & {
|
@@ -1469,6 +2507,8 @@ export declare class Nudge {
|
|
1469
2507
|
anchor: string;
|
1470
2508
|
} & {
|
1471
2509
|
is_open_by_default?: boolean | undefined;
|
2510
|
+
is_showing_mask?: boolean | undefined;
|
2511
|
+
advance_trigger?: string | undefined;
|
1472
2512
|
offset?: {
|
1473
2513
|
x: string;
|
1474
2514
|
y: string;
|
@@ -1499,7 +2539,16 @@ export declare class Nudge {
|
|
1499
2539
|
template_source: string;
|
1500
2540
|
show_step_counter: boolean;
|
1501
2541
|
dismissible: boolean;
|
2542
|
+
snoozable: boolean;
|
1502
2543
|
share_page_url: string;
|
2544
|
+
copilot_suggest: boolean;
|
2545
|
+
copilot_cta_label: string;
|
2546
|
+
copilot_description: string;
|
2547
|
+
is_scheduled: boolean;
|
2548
|
+
scheduled_start_time: string | null | undefined;
|
2549
|
+
scheduled_end_time: string | null | undefined;
|
2550
|
+
snooze_label: string;
|
2551
|
+
type: "announcement" | "product_tour" | "survey" | null;
|
1503
2552
|
})[]>;
|
1504
2553
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
1505
2554
|
onSuccess?: (() => void) | undefined;
|
@@ -1531,6 +2580,12 @@ export declare class Nudge {
|
|
1531
2580
|
meta: {
|
1532
2581
|
selector: string;
|
1533
2582
|
};
|
2583
|
+
} | {
|
2584
|
+
type: "on_user_confusion";
|
2585
|
+
} | {
|
2586
|
+
type: "on_rage_click";
|
2587
|
+
} | {
|
2588
|
+
type: "smart_delay";
|
1534
2589
|
} | {
|
1535
2590
|
type: "when_share_link_viewed";
|
1536
2591
|
};
|
@@ -1540,11 +2595,13 @@ export declare class Nudge {
|
|
1540
2595
|
title: string;
|
1541
2596
|
content: ({
|
1542
2597
|
type: "markdown";
|
2598
|
+
sort_key: number | undefined;
|
1543
2599
|
meta: {
|
1544
2600
|
value: string;
|
1545
2601
|
};
|
1546
2602
|
} | {
|
1547
2603
|
type: "image";
|
2604
|
+
sort_key: number | undefined;
|
1548
2605
|
meta: {
|
1549
2606
|
src: string;
|
1550
2607
|
file_name: string;
|
@@ -1552,6 +2609,7 @@ export declare class Nudge {
|
|
1552
2609
|
};
|
1553
2610
|
} | {
|
1554
2611
|
type: "video";
|
2612
|
+
sort_key: number | undefined;
|
1555
2613
|
meta: {
|
1556
2614
|
type: "url";
|
1557
2615
|
src: string;
|
@@ -1561,11 +2619,13 @@ export declare class Nudge {
|
|
1561
2619
|
};
|
1562
2620
|
} | {
|
1563
2621
|
type: "help_doc_command";
|
2622
|
+
sort_key: number | undefined;
|
1564
2623
|
meta: {
|
1565
2624
|
command: string;
|
1566
2625
|
};
|
1567
2626
|
} | {
|
1568
2627
|
type: "button";
|
2628
|
+
sort_key: number | undefined;
|
1569
2629
|
meta: {
|
1570
2630
|
label?: string | undefined;
|
1571
2631
|
action?: {
|
@@ -1573,6 +2633,11 @@ export declare class Nudge {
|
|
1573
2633
|
meta: {
|
1574
2634
|
command: string;
|
1575
2635
|
};
|
2636
|
+
} | {
|
2637
|
+
type: "no_action";
|
2638
|
+
} | {
|
2639
|
+
type: "click";
|
2640
|
+
value: string;
|
1576
2641
|
} | ({
|
1577
2642
|
type: "link";
|
1578
2643
|
value: string;
|
@@ -1586,20 +2651,86 @@ export declare class Nudge {
|
|
1586
2651
|
} | {
|
1587
2652
|
type: "dismiss";
|
1588
2653
|
} | {
|
1589
|
-
type: "
|
2654
|
+
type: "snooze";
|
1590
2655
|
} | {
|
1591
|
-
type: "
|
1592
|
-
value:
|
1593
|
-
} |
|
1594
|
-
|
2656
|
+
type: "questlist";
|
2657
|
+
value: number;
|
2658
|
+
} | {
|
2659
|
+
type: "step_back";
|
2660
|
+
} | {
|
2661
|
+
type: "nudge";
|
2662
|
+
value: number;
|
2663
|
+
} | {
|
2664
|
+
type: "go_to_step";
|
2665
|
+
value: number;
|
2666
|
+
} | ({
|
2667
|
+
type: "open_bar";
|
2668
|
+
} & {
|
2669
|
+
value?: string | undefined;
|
2670
|
+
categoryFilter?: number | undefined;
|
2671
|
+
}) | undefined;
|
2672
|
+
button_type?: "snooze" | "primary" | "secondary" | undefined;
|
2673
|
+
conditional_actions?: {
|
2674
|
+
operator: "eq" | "neq" | "gt" | "lt";
|
2675
|
+
operand: string | number;
|
2676
|
+
action: {
|
2677
|
+
type: "execute_command";
|
2678
|
+
meta: {
|
2679
|
+
command: string;
|
2680
|
+
};
|
2681
|
+
} | {
|
2682
|
+
type: "no_action";
|
2683
|
+
} | {
|
2684
|
+
type: "click";
|
2685
|
+
value: string;
|
2686
|
+
} | ({
|
2687
|
+
type: "link";
|
2688
|
+
value: string;
|
2689
|
+
} & {
|
2690
|
+
operation?: "self" | "router" | "blank" | undefined;
|
2691
|
+
}) | {
|
2692
|
+
type: "open_chat";
|
2693
|
+
meta: {
|
2694
|
+
type: string;
|
2695
|
+
};
|
2696
|
+
} | {
|
2697
|
+
type: "dismiss";
|
2698
|
+
} | {
|
2699
|
+
type: "snooze";
|
2700
|
+
} | {
|
2701
|
+
type: "questlist";
|
2702
|
+
value: number;
|
2703
|
+
} | {
|
2704
|
+
type: "step_back";
|
2705
|
+
} | {
|
2706
|
+
type: "nudge";
|
2707
|
+
value: number;
|
2708
|
+
} | {
|
2709
|
+
type: "go_to_step";
|
2710
|
+
value: number;
|
2711
|
+
} | ({
|
2712
|
+
type: "open_bar";
|
2713
|
+
} & {
|
2714
|
+
value?: string | undefined;
|
2715
|
+
categoryFilter?: number | undefined;
|
2716
|
+
});
|
2717
|
+
}[] | undefined;
|
1595
2718
|
} | null;
|
1596
2719
|
} | {
|
1597
2720
|
type: "survey_text";
|
1598
2721
|
meta: {
|
1599
2722
|
prompt: string;
|
1600
2723
|
};
|
2724
|
+
sort_key: number | undefined;
|
2725
|
+
} | {
|
2726
|
+
type: "survey_text_short";
|
2727
|
+
meta: {
|
2728
|
+
prompt: string;
|
2729
|
+
};
|
2730
|
+
sort_key: number | undefined;
|
1601
2731
|
} | {
|
1602
2732
|
type: "survey_rating";
|
2733
|
+
sort_key: number | undefined;
|
1603
2734
|
meta: {
|
1604
2735
|
type: "emojis";
|
1605
2736
|
lower_label: string;
|
@@ -1617,6 +2748,14 @@ export declare class Nudge {
|
|
1617
2748
|
upper_label: string;
|
1618
2749
|
options: number;
|
1619
2750
|
};
|
2751
|
+
} | {
|
2752
|
+
type: "survey_list";
|
2753
|
+
sort_key: number | undefined;
|
2754
|
+
meta: {
|
2755
|
+
options: string[];
|
2756
|
+
list_type: "multiple" | "single";
|
2757
|
+
display_type: "grid" | "list" | "dropdown";
|
2758
|
+
};
|
1620
2759
|
})[];
|
1621
2760
|
is_live: boolean;
|
1622
2761
|
} & {
|
@@ -1630,6 +2769,8 @@ export declare class Nudge {
|
|
1630
2769
|
anchor: string;
|
1631
2770
|
} & {
|
1632
2771
|
is_open_by_default?: boolean | undefined;
|
2772
|
+
is_showing_mask?: boolean | undefined;
|
2773
|
+
advance_trigger?: string | undefined;
|
1633
2774
|
offset?: {
|
1634
2775
|
x: string;
|
1635
2776
|
y: string;
|
@@ -1660,7 +2801,16 @@ export declare class Nudge {
|
|
1660
2801
|
template_source: string;
|
1661
2802
|
show_step_counter: boolean;
|
1662
2803
|
dismissible: boolean;
|
2804
|
+
snoozable: boolean;
|
1663
2805
|
share_page_url: string;
|
2806
|
+
copilot_suggest: boolean;
|
2807
|
+
copilot_cta_label: string;
|
2808
|
+
copilot_description: string;
|
2809
|
+
is_scheduled: boolean;
|
2810
|
+
scheduled_start_time: string | null | undefined;
|
2811
|
+
scheduled_end_time: string | null | undefined;
|
2812
|
+
snooze_label: string;
|
2813
|
+
type: "announcement" | "product_tour" | "survey" | null;
|
1664
2814
|
}>;
|
1665
2815
|
/**
|
1666
2816
|
* Returns true if the nudge is new (not yet saved to the backend)
|