commandbar 1.9.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/build/{internal/src/client → commandbar/src/shared/services/analytics}/EventHandler.d.ts +32 -10
- package/build/commandbar/src/shared/services/analytics/types.d.ts +77 -0
- package/build/commandbar-js/src/index.d.ts +2 -2
- package/build/commandbar-js/src/index.js +1 -1
- package/build/internal/src/client/AddContextOptions.d.ts +4 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +46 -13
- package/build/internal/src/client/CommandBarSDK.d.ts +17 -10
- package/build/internal/src/client/SDKConfig.d.ts +3 -2
- package/build/internal/src/client/symbols.d.ts +5 -1
- package/build/internal/src/middleware/CommandFromClientV.d.ts +22 -10
- package/build/internal/src/middleware/IRecordSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +200 -6
- package/build/internal/src/middleware/{ResourceSettingsV.d.ts → RecordSettingsV.d.ts} +2 -2
- package/build/internal/src/middleware/additionalResource.d.ts +96 -15
- package/build/internal/src/middleware/billing.d.ts +0 -2
- package/build/internal/src/middleware/chat.d.ts +2196 -176
- package/build/internal/src/middleware/checklist.d.ts +504 -63
- package/build/internal/src/middleware/command.d.ts +1809 -385
- package/build/internal/src/middleware/endUser.d.ts +33 -5
- package/build/internal/src/middleware/entityChanges.d.ts +17 -0
- package/build/internal/src/middleware/experienceTemplate.d.ts +59 -0
- package/build/internal/src/middleware/experiencesSearch.d.ts +3579 -0
- package/build/internal/src/middleware/flags.d.ts +20 -0
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +9 -0
- package/build/internal/src/middleware/helpDocsSearch.d.ts +371 -35
- package/build/internal/src/middleware/helpers/actions.d.ts +66 -16
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +70 -8
- package/build/internal/src/middleware/helpers/copilotPersonality.d.ts +12 -0
- package/build/internal/src/middleware/helpers/goals.d.ts +4 -2
- package/build/internal/src/middleware/helpers/pushTrigger.d.ts +22 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +45 -36
- package/build/internal/src/middleware/network.d.ts +15 -0
- package/build/internal/src/middleware/nudge.d.ts +1103 -124
- package/build/internal/src/middleware/organization.d.ts +1288 -61
- package/build/internal/src/middleware/organizationSettings.d.ts +320 -12
- package/build/internal/src/middleware/profile.d.ts +2 -0
- package/build/internal/src/middleware/recommendationSet.d.ts +96 -15
- package/build/internal/src/middleware/releases.d.ts +1 -1
- package/build/internal/src/middleware/theme.d.ts +431 -0
- package/build/internal/src/middleware/types.d.ts +52 -15
- package/build/internal/src/middleware/user.d.ts +1 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +3 -3
- package/build/internal/src/util/operatingSystem.d.ts +2 -4
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/init.ts +12 -6
- package/src/snippet.ts +2 -2
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
- package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
- package/build/internal/src/middleware/dashboardFlags.d.ts +0 -9
@@ -1,7 +1,10 @@
|
|
1
1
|
import * as t from 'io-ts';
|
2
|
+
import { IRecommendationSet } from '../types';
|
2
3
|
export declare const listOperators: readonly ["includes", "doesNotInclude"];
|
3
|
-
export declare const
|
4
|
-
declare const
|
4
|
+
export declare const equalityOperators: readonly ["is", "isNot"];
|
5
|
+
export declare const numericOperators: readonly ["isGreaterThan", "isLessThan"];
|
6
|
+
export declare const operators: readonly ["isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "matchesRegex", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage", "classnameNotOnPage", "idNotOnPage", "selectorNotOnPage", "includes", "doesNotInclude", "is", "isNot", "isGreaterThan", "isLessThan"];
|
7
|
+
export declare const OperatorV: t.KeyofC<{
|
5
8
|
includes: null;
|
6
9
|
endsWith: null;
|
7
10
|
startsWith: null;
|
@@ -11,10 +14,6 @@ declare const OperatorV: t.KeyofC<{
|
|
11
14
|
isTruthy: null;
|
12
15
|
isFalsy: null;
|
13
16
|
matchesRegex: null;
|
14
|
-
isGreaterThan: null;
|
15
|
-
isLessThan: null;
|
16
|
-
isBefore: null;
|
17
|
-
isAfter: null;
|
18
17
|
isDefined: null;
|
19
18
|
isNotDefined: null;
|
20
19
|
classnameOnPage: null;
|
@@ -25,6 +24,8 @@ declare const OperatorV: t.KeyofC<{
|
|
25
24
|
selectorNotOnPage: null;
|
26
25
|
doesNotInclude: null;
|
27
26
|
isNot: null;
|
27
|
+
isGreaterThan: null;
|
28
|
+
isLessThan: null;
|
28
29
|
}>;
|
29
30
|
export declare const NudgeInteractionConditionV: t.IntersectionC<[t.TypeC<{
|
30
31
|
type: t.LiteralC<"nudge_interaction">;
|
@@ -80,7 +81,7 @@ declare const MultiValueConditionV: t.IntersectionC<[t.TypeC<{
|
|
80
81
|
reason: t.StringC;
|
81
82
|
}>]>;
|
82
83
|
export declare const SingleValueConditionV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
83
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
|
84
|
+
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
|
84
85
|
operator: t.KeyofC<{
|
85
86
|
includes: null;
|
86
87
|
endsWith: null;
|
@@ -91,10 +92,6 @@ export declare const SingleValueConditionV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
91
92
|
isTruthy: null;
|
92
93
|
isFalsy: null;
|
93
94
|
matchesRegex: null;
|
94
|
-
isGreaterThan: null;
|
95
|
-
isLessThan: null;
|
96
|
-
isBefore: null;
|
97
|
-
isAfter: null;
|
98
95
|
isDefined: null;
|
99
96
|
isNotDefined: null;
|
100
97
|
classnameOnPage: null;
|
@@ -105,6 +102,8 @@ export declare const SingleValueConditionV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
105
102
|
selectorNotOnPage: null;
|
106
103
|
doesNotInclude: null;
|
107
104
|
isNot: null;
|
105
|
+
isGreaterThan: null;
|
106
|
+
isLessThan: null;
|
108
107
|
}>;
|
109
108
|
}>, t.PartialC<{
|
110
109
|
field: t.StringC;
|
@@ -133,7 +132,7 @@ export declare const SingleValueConditionV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
133
132
|
reason: t.StringC;
|
134
133
|
}>]>]>]>;
|
135
134
|
export declare const ConditionV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
136
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
|
135
|
+
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
|
137
136
|
operator: t.KeyofC<{
|
138
137
|
includes: null;
|
139
138
|
endsWith: null;
|
@@ -144,10 +143,6 @@ export declare const ConditionV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
144
143
|
isTruthy: null;
|
145
144
|
isFalsy: null;
|
146
145
|
matchesRegex: null;
|
147
|
-
isGreaterThan: null;
|
148
|
-
isLessThan: null;
|
149
|
-
isBefore: null;
|
150
|
-
isAfter: null;
|
151
146
|
isDefined: null;
|
152
147
|
isNotDefined: null;
|
153
148
|
classnameOnPage: null;
|
@@ -158,6 +153,8 @@ export declare const ConditionV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
158
153
|
selectorNotOnPage: null;
|
159
154
|
doesNotInclude: null;
|
160
155
|
isNot: null;
|
156
|
+
isGreaterThan: null;
|
157
|
+
isLessThan: null;
|
161
158
|
}>;
|
162
159
|
}>, t.PartialC<{
|
163
160
|
field: t.StringC;
|
@@ -238,7 +235,7 @@ export declare const RecommendationRuleAlwaysV: t.IntersectionC<[t.TypeC<{
|
|
238
235
|
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
239
236
|
}>]>;
|
240
237
|
export declare const AvailabilityRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
241
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
|
238
|
+
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
|
242
239
|
operator: t.KeyofC<{
|
243
240
|
includes: null;
|
244
241
|
endsWith: null;
|
@@ -249,10 +246,6 @@ export declare const AvailabilityRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.T
|
|
249
246
|
isTruthy: null;
|
250
247
|
isFalsy: null;
|
251
248
|
matchesRegex: null;
|
252
|
-
isGreaterThan: null;
|
253
|
-
isLessThan: null;
|
254
|
-
isBefore: null;
|
255
|
-
isAfter: null;
|
256
249
|
isDefined: null;
|
257
250
|
isNotDefined: null;
|
258
251
|
classnameOnPage: null;
|
@@ -263,6 +256,8 @@ export declare const AvailabilityRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.T
|
|
263
256
|
selectorNotOnPage: null;
|
264
257
|
doesNotInclude: null;
|
265
258
|
isNot: null;
|
259
|
+
isGreaterThan: null;
|
260
|
+
isLessThan: null;
|
266
261
|
}>;
|
267
262
|
}>, t.PartialC<{
|
268
263
|
field: t.StringC;
|
@@ -308,7 +303,7 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
308
303
|
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
309
304
|
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
310
305
|
}>]>, t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
311
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
|
306
|
+
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
|
312
307
|
operator: t.KeyofC<{
|
313
308
|
includes: null;
|
314
309
|
endsWith: null;
|
@@ -319,10 +314,6 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
319
314
|
isTruthy: null;
|
320
315
|
isFalsy: null;
|
321
316
|
matchesRegex: null;
|
322
|
-
isGreaterThan: null;
|
323
|
-
isLessThan: null;
|
324
|
-
isBefore: null;
|
325
|
-
isAfter: null;
|
326
317
|
isDefined: null;
|
327
318
|
isNotDefined: null;
|
328
319
|
classnameOnPage: null;
|
@@ -333,6 +324,8 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
333
324
|
selectorNotOnPage: null;
|
334
325
|
doesNotInclude: null;
|
335
326
|
isNot: null;
|
327
|
+
isGreaterThan: null;
|
328
|
+
isLessThan: null;
|
336
329
|
}>;
|
337
330
|
}>, t.PartialC<{
|
338
331
|
field: t.StringC;
|
@@ -370,7 +363,7 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
370
363
|
reason: t.StringC;
|
371
364
|
}>]>]>]>;
|
372
365
|
export declare const EditorAvailabilityRuleV: t.UnionC<[t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
373
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
|
366
|
+
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
|
374
367
|
operator: t.KeyofC<{
|
375
368
|
includes: null;
|
376
369
|
endsWith: null;
|
@@ -381,10 +374,6 @@ export declare const EditorAvailabilityRuleV: t.UnionC<[t.UnionC<[t.UnionC<[t.In
|
|
381
374
|
isTruthy: null;
|
382
375
|
isFalsy: null;
|
383
376
|
matchesRegex: null;
|
384
|
-
isGreaterThan: null;
|
385
|
-
isLessThan: null;
|
386
|
-
isBefore: null;
|
387
|
-
isAfter: null;
|
388
377
|
isDefined: null;
|
389
378
|
isNotDefined: null;
|
390
379
|
classnameOnPage: null;
|
@@ -395,6 +384,8 @@ export declare const EditorAvailabilityRuleV: t.UnionC<[t.UnionC<[t.UnionC<[t.In
|
|
395
384
|
selectorNotOnPage: null;
|
396
385
|
doesNotInclude: null;
|
397
386
|
isNot: null;
|
387
|
+
isGreaterThan: null;
|
388
|
+
isLessThan: null;
|
398
389
|
}>;
|
399
390
|
}>, t.PartialC<{
|
400
391
|
field: t.StringC;
|
@@ -445,7 +436,7 @@ export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.Intersecti
|
|
445
436
|
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
446
437
|
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
447
438
|
}>]>, t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
448
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">]>;
|
439
|
+
type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
|
449
440
|
operator: t.KeyofC<{
|
450
441
|
includes: null;
|
451
442
|
endsWith: null;
|
@@ -456,10 +447,6 @@ export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.Intersecti
|
|
456
447
|
isTruthy: null;
|
457
448
|
isFalsy: null;
|
458
449
|
matchesRegex: null;
|
459
|
-
isGreaterThan: null;
|
460
|
-
isLessThan: null;
|
461
|
-
isBefore: null;
|
462
|
-
isAfter: null;
|
463
450
|
isDefined: null;
|
464
451
|
isNotDefined: null;
|
465
452
|
classnameOnPage: null;
|
@@ -470,6 +457,8 @@ export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.Intersecti
|
|
470
457
|
selectorNotOnPage: null;
|
471
458
|
doesNotInclude: null;
|
472
459
|
isNot: null;
|
460
|
+
isGreaterThan: null;
|
461
|
+
isLessThan: null;
|
473
462
|
}>;
|
474
463
|
}>, t.PartialC<{
|
475
464
|
field: t.StringC;
|
@@ -545,4 +534,24 @@ export declare function isMultiValueRule(rule: IEditorRule | IRule): rule is IMu
|
|
545
534
|
export declare function isMultiValueRuleType(type: IRule['type']): type is IMultiValueCondition['type'];
|
546
535
|
export declare function isInteractionCondition(condition: IEditorRule): condition is IInteractionCondition;
|
547
536
|
export declare function isInteractionConditionType(type: IEditorRule['type']): type is IInteractionCondition['type'];
|
537
|
+
export type ABTestCondition = ExpressionCondition & {
|
538
|
+
type: 'ab_test';
|
539
|
+
field: string;
|
540
|
+
value: string;
|
541
|
+
};
|
542
|
+
export declare const isABTestCondition: (condition: ExpressionCondition) => condition is {
|
543
|
+
type: "url" | "element" | "context" | "hubspot" | "device_type" | "sessions" | "survey_response" | "user_property" | "event_property" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "ab_test" | "intent" | "help_doc_interaction" | "video_interaction";
|
544
|
+
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot" | "isGreaterThan" | "isLessThan";
|
545
|
+
} & {
|
546
|
+
field?: string | undefined;
|
547
|
+
value?: string | undefined;
|
548
|
+
reason?: string | undefined;
|
549
|
+
rule_id?: string | number | undefined;
|
550
|
+
} & {
|
551
|
+
type: 'ab_test';
|
552
|
+
field: string;
|
553
|
+
value: string;
|
554
|
+
};
|
555
|
+
export type SurveyType = 'list' | 'rating' | 'text';
|
556
|
+
export declare const scoreRecommendationSet: (recommendationSet: IRecommendationSet) => number;
|
548
557
|
export {};
|
@@ -4,6 +4,7 @@ export type FetchOptions = {
|
|
4
4
|
signal?: AbortSignal;
|
5
5
|
headers?: Record<string, string>;
|
6
6
|
credentials?: RequestCredentials;
|
7
|
+
keepalive?: boolean;
|
7
8
|
};
|
8
9
|
export type Response<T> = {
|
9
10
|
data: T;
|
@@ -16,3 +17,17 @@ export declare const post: <T = any>(url: string, data?: string | object | undef
|
|
16
17
|
export declare const get: <T = any>(url: string, options?: FetchOptions) => Promise<Response<T>>;
|
17
18
|
export declare const patch: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
|
18
19
|
export declare const del: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
|
20
|
+
export declare const getFetchHeaders: (uploadFile?: boolean) => {
|
21
|
+
'X-CSRFToken': string;
|
22
|
+
'X-cb-release'?: string | undefined;
|
23
|
+
'X-cb-proj'?: string | undefined;
|
24
|
+
'X-cb-lc'?: string | undefined;
|
25
|
+
'Content-Type': string;
|
26
|
+
accept: string;
|
27
|
+
} | {
|
28
|
+
'X-CSRFToken': string;
|
29
|
+
'X-cb-release'?: string | undefined;
|
30
|
+
'X-cb-proj'?: string | undefined;
|
31
|
+
'X-cb-lc'?: string | undefined;
|
32
|
+
accept: string;
|
33
|
+
};
|