commandbar 1.8.7 → 1.10.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/{internal/src/client → commandbar/src/shared/services/analytics}/EventHandler.d.ts +51 -15
- 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 +8 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +70 -19
- package/build/internal/src/client/CommandBarProxySDK.d.ts +3 -3
- package/build/internal/src/client/CommandBarSDK.d.ts +34 -18
- package/build/internal/src/client/SDKConfig.d.ts +3 -2
- package/build/internal/src/client/globals.d.ts +6 -0
- package/build/internal/src/client/symbols.d.ts +13 -6
- package/build/internal/src/middleware/CommandFromClientV.d.ts +88 -18
- package/build/internal/src/middleware/IRecordSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +320 -22
- package/build/internal/src/middleware/{ResourceSettingsV.d.ts → RecordSettingsV.d.ts} +2 -2
- package/build/internal/src/middleware/additionalResource.d.ts +270 -27
- package/build/internal/src/middleware/billing.d.ts +31 -0
- package/build/internal/src/middleware/chat.d.ts +12933 -0
- package/build/internal/src/middleware/checklist.d.ts +589 -70
- package/build/internal/src/middleware/command.d.ts +5433 -677
- package/build/internal/src/middleware/detailPreview.d.ts +12 -1
- package/build/internal/src/middleware/endUser.d.ts +132 -0
- 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/generics.d.ts +12 -11
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +63 -8
- package/build/internal/src/middleware/helpDocsSearch.d.ts +2540 -0
- package/build/internal/src/middleware/helpHub.d.ts +26 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +174 -16
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +144 -2
- 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 +28 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +318 -50
- package/build/internal/src/middleware/network.d.ts +27 -3
- package/build/internal/src/middleware/nudge.d.ts +2220 -91
- package/build/internal/src/middleware/organization.d.ts +2289 -152
- package/build/internal/src/middleware/organizationSettings.d.ts +435 -20
- package/build/internal/src/middleware/profile.d.ts +2 -0
- package/build/internal/src/middleware/recommendationSet.d.ts +489 -1007
- package/build/internal/src/middleware/releases.d.ts +1 -1
- package/build/internal/src/middleware/theme.d.ts +425 -0
- package/build/internal/src/middleware/types.d.ts +88 -34
- package/build/internal/src/middleware/user.d.ts +1 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +5 -3
- package/build/internal/src/util/operatingSystem.d.ts +11 -0
- package/build/internal/src/util/sentry.d.ts +23 -0
- package/package.json +3 -3
- package/src/index.ts +2 -2
- package/src/init.ts +11 -6
- package/src/snippet.ts +2 -2
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
- package/build/internal/src/client/SentryReporter.d.ts +0 -63
- package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
- package/build/internal/src/middleware/chatAnalytics.d.ts +0 -2601
- package/build/internal/src/middleware/dashboardFlags.d.ts +0 -9
- 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,6 +1,7 @@
|
|
1
1
|
import { OrgConfig } from './OrgConfig';
|
2
2
|
import { SDKConfig } from './CommandBarSDK';
|
3
|
-
import { _configuration, _disposed, _isProxy, _queue,
|
3
|
+
import { _configuration, _disposed, _isProxy, _queue, _sentry, _unwrap, _orgConfig, _eventSubscriptions } from './symbols';
|
4
|
+
import type { Hub } from '@sentry/browser';
|
4
5
|
/**
|
5
6
|
* A proxy object that absorbs function calls into a queue that can be later consumed. The queue contains the name of
|
6
7
|
* properties accessed for function calls including any arguments passed.
|
@@ -11,7 +12,6 @@ import { _configuration, _disposed, _isProxy, _queue, _reporter, _unwrap, _orgCo
|
|
11
12
|
export type CommandBarProxySDK = CommandBarProxyGlobal & Record<string, Function> & {
|
12
13
|
[_configuration]?: Function | Partial<SDKConfig>;
|
13
14
|
[_orgConfig]?: Function | OrgConfig;
|
14
|
-
[_reporter]?: Function | any;
|
15
15
|
};
|
16
16
|
/**
|
17
17
|
* The global SDK object, which is usually hidden behind a Proxy at `window.CommandBar`. Use
|
@@ -42,7 +42,7 @@ export interface CommandBarProxyGlobal {
|
|
42
42
|
[_unwrap]: () => CommandBarProxyGlobal;
|
43
43
|
[_configuration]?: Partial<SDKConfig>;
|
44
44
|
[_orgConfig]?: OrgConfig;
|
45
|
-
[
|
45
|
+
[_sentry]: Hub | undefined;
|
46
46
|
[_eventSubscriptions]: undefined;
|
47
47
|
}
|
48
48
|
/** Tests if the given object is a "proxy" SDK object that has not yet been upgraded to a client SDK object. */
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import { TUpdateEditorRouteDetails } from '../util/dispatchCustomEvent';
|
2
|
-
import { CommandBarClientSDK, InstanceAttributes, MetaAttributes, Metadata } from './CommandBarClientSDK';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { _access, _configuration, _configure, _configUser, _dispose, _disposed, _eventSubscriptions, _userAttributes, _isProxy, _loadEditor, _onEditorPathChange, _orgConfig, _perf, _programmaticTheme, _reload, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _reloadNudges, _reloadHelpHub, _previewNudge, _stopChecklistPreview, _stopNudgePreview, _reloadChecklists, _report, _reporter, _search, _setDashboard, _setPreviewMode, _setTestMode, _showGuide, _showMessage, _user, _instanceAttributes, _setEditorVisible, _shareConfig, _shareContextSettings, _shareProgrammaticCommands, _metaAttributes, _previewChecklist, _shareEditorRouteWithBar, _shareInitialEditorPath, _fingerprint, _updateEditorRoute, _previewRecommendationSet, _stopRecommendationSetPreview } from './symbols';
|
2
|
+
import { CommandBarClientSDK, InstanceAttributes, MetaAttributes, Metadata, ProductConfig, ProductDebugOptions } from './CommandBarClientSDK';
|
3
|
+
import type { Hub } from '@sentry/browser';
|
4
|
+
import { _configuration, _configure, _configUser, _dispose, _disposed, _eventSubscriptions, _userProperties, _isProxy, _loadEditor, _orgConfig, _perf, _programmaticTheme, _reload, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _reloadNudges, _reloadHelpHub, _startNudgeDebug, _showNudgeStepMock, _closeNudgeMocks, _stopChecklistPreview, _stopNudgeDebug, _reloadChecklists, _report, _search, _sentry, _setDashboard, _setPreviewMode, _setTestMode, _showGuide, _showMessage, _user, _instanceAttributes, _setEditorVisible, _shareConfig, _shareContextSettings, _shareProgrammaticCommands, _metaAttributes, _previewChecklist, _shareEditorRouteWithBar, _fingerprint, _updateEditorRoute, _startDebug, _stopDebug, _previewRecommendationSet, _previewCopilotSettings, _stopRecommendationSetPreview, _getDebugSnapshot, _updateEditorPreviewDevice, _getEditorPreviewDevice, _shareTrackedEvents } from './symbols';
|
6
5
|
import { SDKConfig } from './SDKConfig';
|
7
|
-
import { IChecklist, ICommandType, IConfigType, INudgeType,
|
6
|
+
import { IChecklist, ICommandType, IConfigType, ICopilotSettingsPreviewType, INudgeType, IRecommendationSet, IRecordSettingsByContextKey } from '../middleware/types';
|
8
7
|
import { OrgConfig } from './OrgConfig';
|
9
|
-
import {
|
8
|
+
import { DeviceType } from '../util/operatingSystem';
|
9
|
+
import type { EVENT_NAME } from '@commandbar/commandbar/shared/services/analytics/types';
|
10
|
+
import type { EventSubscriber } from '@commandbar/commandbar/shared/services/analytics/EventHandler';
|
10
11
|
export type { SDKConfig } from './SDKConfig';
|
11
12
|
export declare const _reloadTargets: string[];
|
12
13
|
export interface CommandBarInternalSDK {
|
13
|
-
[_access]: string | undefined;
|
14
14
|
[_instanceAttributes]: InstanceAttributes;
|
15
15
|
[_metaAttributes]: MetaAttributes;
|
16
16
|
[_perf]: boolean;
|
17
17
|
[_programmaticTheme]: string | undefined;
|
18
|
-
[
|
18
|
+
[_sentry]: Hub | undefined;
|
19
19
|
[_search]: string;
|
20
20
|
[_user]: string | null | undefined;
|
21
21
|
[_fingerprint]: string | undefined;
|
22
|
-
[
|
22
|
+
[_userProperties]: Metadata | undefined;
|
23
23
|
[_eventSubscriptions]: Map<symbol, EventSubscriber> | undefined;
|
24
24
|
/** @deprecated */
|
25
25
|
readonly [_configure]: (uuid: string) => void;
|
@@ -29,8 +29,9 @@ export interface CommandBarInternalSDK {
|
|
29
29
|
readonly [_disposed]: false;
|
30
30
|
readonly [_isProxy]: false;
|
31
31
|
readonly [_loadEditor]: () => void;
|
32
|
-
readonly [_onEditorPathChange]: (notify: (path: string) => void) => void;
|
33
32
|
readonly [_shareEditorRouteWithBar]: (path: string) => void;
|
33
|
+
readonly [_updateEditorPreviewDevice]: (device: DeviceType) => void;
|
34
|
+
readonly [_getEditorPreviewDevice]: () => DeviceType;
|
34
35
|
readonly [_orgConfig]: OrgConfig;
|
35
36
|
readonly [_reload]: (reloadTargets: (typeof _reloadTargets)[number][]) => void;
|
36
37
|
readonly [_reloadCommands]: (preLoadedConfig?: IConfigType) => void;
|
@@ -39,16 +40,23 @@ export interface CommandBarInternalSDK {
|
|
39
40
|
readonly [_reloadNudges]: (preLoadedConfig?: IConfigType) => void;
|
40
41
|
readonly [_reloadHelpHub]: (preLoadedConfig?: IConfigType) => void;
|
41
42
|
readonly [_previewRecommendationSet]: (data: {
|
42
|
-
|
43
|
+
recommendationSet?: IRecommendationSet;
|
44
|
+
}) => void;
|
45
|
+
readonly [_previewCopilotSettings]: (data: {
|
46
|
+
settings: ICopilotSettingsPreviewType;
|
43
47
|
}) => void;
|
44
48
|
readonly [_stopRecommendationSetPreview]: () => void;
|
45
|
-
readonly [
|
49
|
+
readonly [_startNudgeDebug]: (data: {
|
50
|
+
nudge: INudgeType;
|
51
|
+
}) => void;
|
52
|
+
readonly [_showNudgeStepMock]: (data: {
|
46
53
|
nudge: INudgeType;
|
47
|
-
|
48
|
-
|
54
|
+
stepIndex: number;
|
55
|
+
forceOpen?: boolean;
|
49
56
|
}) => void;
|
57
|
+
readonly [_closeNudgeMocks]: () => void;
|
50
58
|
readonly [_stopChecklistPreview]: () => void;
|
51
|
-
readonly [
|
59
|
+
readonly [_stopNudgeDebug]: (data: {
|
52
60
|
index?: number;
|
53
61
|
}) => void;
|
54
62
|
readonly [_previewChecklist]: (data: {
|
@@ -64,12 +72,20 @@ export interface CommandBarInternalSDK {
|
|
64
72
|
readonly [_setTestMode]: (on: boolean) => void;
|
65
73
|
readonly [_setEditorVisible]: (visible: boolean) => void;
|
66
74
|
readonly [_shareContextSettings]: () => {
|
67
|
-
local:
|
68
|
-
server:
|
75
|
+
local: IRecordSettingsByContextKey;
|
76
|
+
server: IRecordSettingsByContextKey;
|
69
77
|
};
|
70
78
|
readonly [_shareConfig]: () => any;
|
71
79
|
readonly [_shareProgrammaticCommands]: () => ICommandType[];
|
72
|
-
readonly [
|
80
|
+
readonly [_shareTrackedEvents]: () => {
|
81
|
+
trackedEvents: string[];
|
82
|
+
};
|
83
|
+
readonly [_startDebug]: (data: ProductDebugOptions) => void;
|
84
|
+
readonly [_stopDebug]: (product?: ProductConfig[number]) => void;
|
85
|
+
readonly [_getDebugSnapshot]: (data?: {
|
86
|
+
nudgeId?: INudgeType['id'];
|
87
|
+
stepIndex?: number;
|
88
|
+
}) => void;
|
73
89
|
readonly [_updateEditorRoute]: (data: TUpdateEditorRouteDetails) => void;
|
74
90
|
/** @deprecated */
|
75
91
|
readonly [_showGuide]: (eventName: string, preview?: boolean) => void;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { IConfigEndpointResponse } from '../middleware/types';
|
2
1
|
export interface SDKConfig {
|
3
2
|
api: string;
|
4
3
|
editor: string;
|
@@ -6,8 +5,10 @@ export interface SDKConfig {
|
|
6
5
|
session: string;
|
7
6
|
uuid: string;
|
8
7
|
foobarVersion?: string;
|
8
|
+
launchcode?: string;
|
9
9
|
airgap: boolean;
|
10
10
|
environment?: string;
|
11
11
|
version?: string;
|
12
|
-
config?:
|
12
|
+
config?: any;
|
13
|
+
nonce?: string;
|
13
14
|
}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { CommandBarClientSDK } from './CommandBarClientSDK';
|
2
2
|
import { CommandBarSDK } from './CommandBarSDK';
|
3
3
|
declare global {
|
4
|
+
interface Navigator {
|
5
|
+
brave?: {
|
6
|
+
isBrave(): Promise<boolean>;
|
7
|
+
};
|
8
|
+
}
|
4
9
|
interface Window {
|
5
10
|
CommandBar: CommandBarClientSDK;
|
6
11
|
_CommandBarTmpQueueProcessing: CommandBarSDK | undefined;
|
12
|
+
Navigator: Navigator;
|
7
13
|
}
|
8
14
|
}
|
9
15
|
export { initProxySDK, getProxySDK } from './proxy';
|
@@ -1,4 +1,3 @@
|
|
1
|
-
export declare const _access: unique symbol;
|
2
1
|
export declare const _configuration: unique symbol;
|
3
2
|
export declare const _configure: unique symbol;
|
4
3
|
export declare const _configUser: unique symbol;
|
@@ -10,7 +9,8 @@ export declare const _isProxy: unique symbol;
|
|
10
9
|
export declare const _loadEditor: unique symbol;
|
11
10
|
export declare const _onEditorPathChange: unique symbol;
|
12
11
|
export declare const _shareEditorRouteWithBar: unique symbol;
|
13
|
-
export declare const
|
12
|
+
export declare const _updateEditorPreviewDevice: unique symbol;
|
13
|
+
export declare const _getEditorPreviewDevice: unique symbol;
|
14
14
|
export declare const _orgConfig: unique symbol;
|
15
15
|
export declare const _perf: unique symbol;
|
16
16
|
export declare const _programmaticTheme: unique symbol;
|
@@ -22,15 +22,19 @@ export declare const _reloadPlaceholders: unique symbol;
|
|
22
22
|
export declare const _reloadNudges: unique symbol;
|
23
23
|
export declare const _reloadHelpHub: unique symbol;
|
24
24
|
export declare const _previewRecommendationSet: unique symbol;
|
25
|
+
export declare const _previewCopilotSettings: unique symbol;
|
25
26
|
export declare const _stopRecommendationSetPreview: unique symbol;
|
26
|
-
export declare const
|
27
|
+
export declare const _startNudgeDebug: unique symbol;
|
28
|
+
export declare const _getDebugSnapshot: unique symbol;
|
29
|
+
export declare const _showNudgeStepMock: unique symbol;
|
30
|
+
export declare const _closeNudgeMocks: unique symbol;
|
27
31
|
export declare const _stopChecklistPreview: unique symbol;
|
28
|
-
export declare const
|
32
|
+
export declare const _stopNudgeDebug: unique symbol;
|
29
33
|
export declare const _previewChecklist: unique symbol;
|
30
34
|
export declare const _reloadChecklists: unique symbol;
|
31
35
|
export declare const _report: unique symbol;
|
32
|
-
export declare const _reporter: unique symbol;
|
33
36
|
export declare const _search: unique symbol;
|
37
|
+
export declare const _sentry: unique symbol;
|
34
38
|
export declare const _setDashboard: unique symbol;
|
35
39
|
export declare const _setPreviewMode: unique symbol;
|
36
40
|
export declare const _setTestMode: unique symbol;
|
@@ -44,7 +48,10 @@ export declare const _state: unique symbol;
|
|
44
48
|
export declare const _unwrap: unique symbol;
|
45
49
|
export declare const _user: unique symbol;
|
46
50
|
export declare const _fingerprint: unique symbol;
|
47
|
-
export declare const
|
51
|
+
export declare const _userProperties: unique symbol;
|
48
52
|
export declare const _eventSubscriptions: unique symbol;
|
49
53
|
export declare const _metaAttributes: unique symbol;
|
50
54
|
export declare const _updateEditorRoute: unique symbol;
|
55
|
+
export declare const _startDebug: unique symbol;
|
56
|
+
export declare const _stopDebug: unique symbol;
|
57
|
+
export declare const _shareTrackedEvents: unique symbol;
|
@@ -9,6 +9,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
9
9
|
object: t.StringC;
|
10
10
|
hoverTooltip: t.BooleanC;
|
11
11
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
12
|
+
metadata: t.UnknownRecordC;
|
12
13
|
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
13
14
|
type: t.LiteralC<"link">;
|
14
15
|
value: t.StringC;
|
@@ -19,6 +20,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
19
20
|
object: t.StringC;
|
20
21
|
hoverTooltip: t.BooleanC;
|
21
22
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
23
|
+
metadata: t.UnknownRecordC;
|
22
24
|
}>]>]>, t.IntersectionC<[t.TypeC<{
|
23
25
|
type: t.LiteralC<"webhook">;
|
24
26
|
value: t.StringC;
|
@@ -27,6 +29,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
27
29
|
object: t.StringC;
|
28
30
|
hoverTooltip: t.BooleanC;
|
29
31
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
32
|
+
metadata: t.UnknownRecordC;
|
30
33
|
}>]>]>, t.IntersectionC<[t.TypeC<{
|
31
34
|
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
32
35
|
value: t.ArrayC<t.StringC>;
|
@@ -35,6 +38,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
35
38
|
object: t.StringC;
|
36
39
|
hoverTooltip: t.BooleanC;
|
37
40
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
41
|
+
metadata: t.UnknownRecordC;
|
38
42
|
}>]>]>, t.IntersectionC<[t.TypeC<{
|
39
43
|
type: t.LiteralC<"request">;
|
40
44
|
value: t.IntersectionC<[t.TypeC<{
|
@@ -52,6 +56,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
52
56
|
object: t.StringC;
|
53
57
|
hoverTooltip: t.BooleanC;
|
54
58
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
59
|
+
metadata: t.UnknownRecordC;
|
55
60
|
}>]>]>, t.IntersectionC<[t.TypeC<{
|
56
61
|
type: t.LiteralC<"appcues">;
|
57
62
|
value: t.StringC;
|
@@ -60,6 +65,16 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
60
65
|
object: t.StringC;
|
61
66
|
hoverTooltip: t.BooleanC;
|
62
67
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
68
|
+
metadata: t.UnknownRecordC;
|
69
|
+
}>]>]>, t.IntersectionC<[t.TypeC<{
|
70
|
+
type: t.LiteralC<"pendo_guide">;
|
71
|
+
value: t.StringC;
|
72
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
73
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
74
|
+
object: t.StringC;
|
75
|
+
hoverTooltip: t.BooleanC;
|
76
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
77
|
+
metadata: t.UnknownRecordC;
|
63
78
|
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
64
79
|
type: t.LiteralC<"helpdoc">;
|
65
80
|
value: t.StringC;
|
@@ -76,6 +91,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
76
91
|
object: t.StringC;
|
77
92
|
hoverTooltip: t.BooleanC;
|
78
93
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_hub">, t.LiteralC<"blank">, t.UndefinedC]>;
|
94
|
+
metadata: t.UnknownRecordC;
|
79
95
|
}>]>]>]>;
|
80
96
|
text: t.StringC;
|
81
97
|
}>, t.PartialC<{
|
@@ -180,24 +196,18 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
180
196
|
colors: t.ArrayC<t.StringC>;
|
181
197
|
random: t.AnyC;
|
182
198
|
}>, t.NullC]>;
|
183
|
-
availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
184
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, 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">]>;
|
199
|
+
availability_rules: t.ArrayC<t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
200
|
+
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">]>;
|
185
201
|
operator: t.KeyofC<{
|
186
202
|
includes: null;
|
187
203
|
endsWith: null;
|
188
204
|
startsWith: null;
|
189
205
|
is: null;
|
190
|
-
isNot: null;
|
191
206
|
isTrue: null;
|
192
207
|
isFalse: null;
|
193
208
|
isTruthy: null;
|
194
209
|
isFalsy: null;
|
195
|
-
doesNotInclude: null;
|
196
210
|
matchesRegex: null;
|
197
|
-
isGreaterThan: null;
|
198
|
-
isLessThan: null;
|
199
|
-
isBefore: null;
|
200
|
-
isAfter: null;
|
201
211
|
isDefined: null;
|
202
212
|
isNotDefined: null;
|
203
213
|
classnameOnPage: null;
|
@@ -206,13 +216,46 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
206
216
|
classnameNotOnPage: null;
|
207
217
|
idNotOnPage: null;
|
208
218
|
selectorNotOnPage: null;
|
219
|
+
doesNotInclude: null;
|
220
|
+
isNot: null;
|
221
|
+
isGreaterThan: null;
|
222
|
+
isLessThan: null;
|
209
223
|
}>;
|
210
224
|
}>, t.PartialC<{
|
211
225
|
field: t.StringC;
|
212
226
|
value: t.StringC;
|
213
227
|
reason: t.StringC;
|
214
228
|
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
215
|
-
}>]
|
229
|
+
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
|
230
|
+
type: t.LiteralC<"nudge_interaction">;
|
231
|
+
operator: t.KeyofC<{
|
232
|
+
is: null;
|
233
|
+
isNot: null;
|
234
|
+
}>;
|
235
|
+
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
|
236
|
+
nudge_id: t.NumberC;
|
237
|
+
}>, t.PartialC<{
|
238
|
+
reason: t.StringC;
|
239
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
240
|
+
type: t.LiteralC<"questlist_interaction">;
|
241
|
+
operator: t.KeyofC<{
|
242
|
+
is: null;
|
243
|
+
isNot: null;
|
244
|
+
}>;
|
245
|
+
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
|
246
|
+
questlist_id: t.NumberC;
|
247
|
+
}>, t.PartialC<{
|
248
|
+
reason: t.StringC;
|
249
|
+
}>]>]>]>, t.IntersectionC<[t.TypeC<{
|
250
|
+
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
|
251
|
+
operator: t.KeyofC<{
|
252
|
+
includes: null;
|
253
|
+
doesNotInclude: null;
|
254
|
+
}>;
|
255
|
+
values: t.ArrayC<t.StringC>;
|
256
|
+
}>, t.PartialC<{
|
257
|
+
reason: t.StringC;
|
258
|
+
}>]>]>>;
|
216
259
|
recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
|
217
260
|
type: t.LiteralC<"always">;
|
218
261
|
}>, t.PartialC<{
|
@@ -221,24 +264,18 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
221
264
|
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
222
265
|
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
223
266
|
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
224
|
-
}>]>, t.IntersectionC<[t.TypeC<{
|
225
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, 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">]>;
|
267
|
+
}>]>, t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
268
|
+
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">]>;
|
226
269
|
operator: t.KeyofC<{
|
227
270
|
includes: null;
|
228
271
|
endsWith: null;
|
229
272
|
startsWith: null;
|
230
273
|
is: null;
|
231
|
-
isNot: null;
|
232
274
|
isTrue: null;
|
233
275
|
isFalse: null;
|
234
276
|
isTruthy: null;
|
235
277
|
isFalsy: null;
|
236
|
-
doesNotInclude: null;
|
237
278
|
matchesRegex: null;
|
238
|
-
isGreaterThan: null;
|
239
|
-
isLessThan: null;
|
240
|
-
isBefore: null;
|
241
|
-
isAfter: null;
|
242
279
|
isDefined: null;
|
243
280
|
isNotDefined: null;
|
244
281
|
classnameOnPage: null;
|
@@ -247,13 +284,46 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
247
284
|
classnameNotOnPage: null;
|
248
285
|
idNotOnPage: null;
|
249
286
|
selectorNotOnPage: null;
|
287
|
+
doesNotInclude: null;
|
288
|
+
isNot: null;
|
289
|
+
isGreaterThan: null;
|
290
|
+
isLessThan: null;
|
250
291
|
}>;
|
251
292
|
}>, t.PartialC<{
|
252
293
|
field: t.StringC;
|
253
294
|
value: t.StringC;
|
254
295
|
reason: t.StringC;
|
255
296
|
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
256
|
-
}>]
|
297
|
+
}>]>, t.UnionC<[t.IntersectionC<[t.TypeC<{
|
298
|
+
type: t.LiteralC<"nudge_interaction">;
|
299
|
+
operator: t.KeyofC<{
|
300
|
+
is: null;
|
301
|
+
isNot: null;
|
302
|
+
}>;
|
303
|
+
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
|
304
|
+
nudge_id: t.NumberC;
|
305
|
+
}>, t.PartialC<{
|
306
|
+
reason: t.StringC;
|
307
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
308
|
+
type: t.LiteralC<"questlist_interaction">;
|
309
|
+
operator: t.KeyofC<{
|
310
|
+
is: null;
|
311
|
+
isNot: null;
|
312
|
+
}>;
|
313
|
+
value: t.UnionC<[t.LiteralC<"viewed">, t.LiteralC<"completed">, t.LiteralC<"dismissed">]>;
|
314
|
+
questlist_id: t.NumberC;
|
315
|
+
}>, t.PartialC<{
|
316
|
+
reason: t.StringC;
|
317
|
+
}>]>]>]>, t.IntersectionC<[t.TypeC<{
|
318
|
+
type: t.UnionC<[t.LiteralC<"browser">, t.LiteralC<"os">, t.LiteralC<"language">]>;
|
319
|
+
operator: t.KeyofC<{
|
320
|
+
includes: null;
|
321
|
+
doesNotInclude: null;
|
322
|
+
}>;
|
323
|
+
values: t.ArrayC<t.StringC>;
|
324
|
+
}>, t.PartialC<{
|
325
|
+
reason: t.StringC;
|
326
|
+
}>]>]>]>>;
|
257
327
|
availability_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;
|
258
328
|
recommend_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;
|
259
329
|
detail: t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
|