commandbar 1.7.3 → 1.8.4
Sign up to get free protection for your applications and to get access to all the features.
- package/build/commandbar-js/src/index.js +1 -1
- package/package.json +2 -2
- package/src/snippet.ts +1 -0
- package/build/internal/src/client/AddContextOptions.d.ts +0 -123
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +0 -376
- package/build/internal/src/client/CommandBarProxySDK.d.ts +0 -49
- package/build/internal/src/client/CommandBarSDK.d.ts +0 -65
- package/build/internal/src/client/EventHandler.d.ts +0 -207
- package/build/internal/src/client/OrgConfig.d.ts +0 -5
- package/build/internal/src/client/SDKConfig.d.ts +0 -13
- package/build/internal/src/client/SentryReporter.d.ts +0 -62
- package/build/internal/src/client/globals.d.ts +0 -20
- package/build/internal/src/client/proxy.d.ts +0 -15
- package/build/internal/src/client/symbols.d.ts +0 -41
- package/build/internal/src/middleware/CommandFromClientV.d.ts +0 -290
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +0 -5
- package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
- package/build/internal/src/middleware/OrganizationV.d.ts +0 -177
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +0 -91
- package/build/internal/src/middleware/checklist.d.ts +0 -740
- package/build/internal/src/middleware/command.d.ts +0 -6678
- package/build/internal/src/middleware/commandCategory.d.ts +0 -192
- package/build/internal/src/middleware/confetti.d.ts +0 -16
- package/build/internal/src/middleware/context.d.ts +0 -40
- package/build/internal/src/middleware/dashboardFlags.d.ts +0 -9
- package/build/internal/src/middleware/detailPreview.d.ts +0 -24
- package/build/internal/src/middleware/environment.d.ts +0 -11
- package/build/internal/src/middleware/generics.d.ts +0 -40
- package/build/internal/src/middleware/guide.d.ts +0 -37
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +0 -66
- package/build/internal/src/middleware/helpDocsSync.d.ts +0 -42
- package/build/internal/src/middleware/helpers/actions.d.ts +0 -84
- package/build/internal/src/middleware/helpers/argument.d.ts +0 -448
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +0 -225
- package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
- package/build/internal/src/middleware/helpers/goals.d.ts +0 -26
- package/build/internal/src/middleware/helpers/optionGroup.d.ts +0 -2
- package/build/internal/src/middleware/helpers/rules.d.ts +0 -260
- package/build/internal/src/middleware/helpers/tags.d.ts +0 -7
- package/build/internal/src/middleware/historyEvent.d.ts +0 -21
- package/build/internal/src/middleware/network.d.ts +0 -4
- package/build/internal/src/middleware/nudge.d.ts +0 -1057
- package/build/internal/src/middleware/organization.d.ts +0 -978
- package/build/internal/src/middleware/placeholder.d.ts +0 -47
- package/build/internal/src/middleware/profile.d.ts +0 -11
- package/build/internal/src/middleware/releases.d.ts +0 -261
- package/build/internal/src/middleware/skin.d.ts +0 -94
- package/build/internal/src/middleware/tab.d.ts +0 -27
- package/build/internal/src/middleware/types.d.ts +0 -155
- package/build/internal/src/middleware/user.d.ts +0 -15
- package/build/internal/src/util/Disposable.d.ts +0 -17
- package/build/internal/src/util/LocalStorage.d.ts +0 -6
- package/build/internal/src/util/Logger.d.ts +0 -18
- package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -2
@@ -1,207 +0,0 @@
|
|
1
|
-
interface EventCommandDetailsBase {
|
2
|
-
icon: string | null;
|
3
|
-
}
|
4
|
-
interface EventLinkCommandDetails {
|
5
|
-
url: string;
|
6
|
-
}
|
7
|
-
export declare type EventCommandDetails = EventCommandDetailsBase | EventLinkCommandDetails;
|
8
|
-
export interface AbandonedSearchEvent {
|
9
|
-
type: 'abandoned_search';
|
10
|
-
/** Event data passed for `abandoned_search` events (deadends). */
|
11
|
-
/** The id of the currently active command, if there is one. */
|
12
|
-
command?: number;
|
13
|
-
/** DEPRECATED. The text of the deadend. */
|
14
|
-
['inputText[*]']: string;
|
15
|
-
/** The text of the deadend. */
|
16
|
-
inputText: string;
|
17
|
-
/** The context key of the currently active resource, if there is one. */
|
18
|
-
resource?: string;
|
19
|
-
/** The trigger for the deadend. */
|
20
|
-
trigger: 'Backspaced' | 'Closed with text' | 'Resetting search';
|
21
|
-
/** The number of {CommandOptions, ParameterOptions}, if there are any. */
|
22
|
-
results?: {
|
23
|
-
numCommands: number;
|
24
|
-
numRecords: number;
|
25
|
-
};
|
26
|
-
/** command_ids of previously executed commands in the session */
|
27
|
-
previousCommands?: string[];
|
28
|
-
}
|
29
|
-
export interface ClosedEvent {
|
30
|
-
type: 'closed';
|
31
|
-
/** Event data passed for `command_execution` events. */
|
32
|
-
/** The user's input text when the bar was closed. */
|
33
|
-
inputText: string;
|
34
|
-
/** True if this command was triggered by a shortcut. */
|
35
|
-
shortcut?: boolean;
|
36
|
-
}
|
37
|
-
export declare type ReportingPreviewEngagementType = 'scrolled' | 'clicked_link' | 'watched_video';
|
38
|
-
export declare type ChecklistEngagementType = 'expanded' | 'collapsed' | 'dismissed';
|
39
|
-
export declare type ChecklistItemEngagementType = 'expanded' | 'completed' | 'cta_clicked' | 'skipped';
|
40
|
-
export declare type EngagementType = ChecklistEngagementType | ChecklistItemEngagementType;
|
41
|
-
export declare type PushTrigger = {
|
42
|
-
type: 'when_conditions_pass';
|
43
|
-
} | {
|
44
|
-
type: 'on_command_execution';
|
45
|
-
meta: {
|
46
|
-
command: string;
|
47
|
-
};
|
48
|
-
} | {
|
49
|
-
type: 'on_event';
|
50
|
-
meta: {
|
51
|
-
event: string;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
export interface ChecklistEvent {
|
55
|
-
type: 'questlist_shown' | 'questlist_engagement';
|
56
|
-
id: number;
|
57
|
-
trigger: PushTrigger;
|
58
|
-
title: string;
|
59
|
-
total_items: number;
|
60
|
-
completed_items: number;
|
61
|
-
}
|
62
|
-
export interface ChecklistItemEvent {
|
63
|
-
type: 'questlist_item_engagement';
|
64
|
-
id: number;
|
65
|
-
checklist_id: number;
|
66
|
-
title: string;
|
67
|
-
cta?: string;
|
68
|
-
goal: {
|
69
|
-
type: 'page_visited';
|
70
|
-
value: string;
|
71
|
-
} | {
|
72
|
-
type: 'command_executed';
|
73
|
-
meta: {
|
74
|
-
command: string;
|
75
|
-
};
|
76
|
-
} | {
|
77
|
-
type: 'element_clicked';
|
78
|
-
value: string;
|
79
|
-
} | {
|
80
|
-
type: 'conditions_met';
|
81
|
-
} | {
|
82
|
-
type: 'cta_clicked';
|
83
|
-
} | {
|
84
|
-
type: 'event_tracked';
|
85
|
-
event: string;
|
86
|
-
};
|
87
|
-
completed: boolean;
|
88
|
-
}
|
89
|
-
export interface PreviewEvent {
|
90
|
-
type: 'preview_shown' | 'next_step_selected' | 'preview_link_opened' | 'preview_engagement';
|
91
|
-
preview_type?: 'html' | 'markdown' | 'plaintext' | 'react' | 'video' | 'component';
|
92
|
-
form_factor?: 'inline' | 'popover';
|
93
|
-
time_shown?: number;
|
94
|
-
engagement?: ReportingPreviewEngagementType;
|
95
|
-
source?: {
|
96
|
-
command?: string;
|
97
|
-
record?: string;
|
98
|
-
};
|
99
|
-
id?: string;
|
100
|
-
}
|
101
|
-
export interface NudgeEvent {
|
102
|
-
type: 'nudge_seen' | 'nudge_clicked';
|
103
|
-
id: string;
|
104
|
-
slug: string;
|
105
|
-
template_source: string;
|
106
|
-
frequency_limit: 'no_limit' | 'once_per_session' | 'once_per_user' | 'until_interaction';
|
107
|
-
trigger: PushTrigger;
|
108
|
-
step: {
|
109
|
-
id: number;
|
110
|
-
title: string;
|
111
|
-
} | undefined;
|
112
|
-
}
|
113
|
-
export declare type ExecutionEventSource = {
|
114
|
-
type: 'bar';
|
115
|
-
} | {
|
116
|
-
type: 'nudge';
|
117
|
-
id: number | string;
|
118
|
-
} | {
|
119
|
-
type: 'questlist';
|
120
|
-
id: number;
|
121
|
-
};
|
122
|
-
export interface CommandExecutionEvent {
|
123
|
-
type: 'command_execution';
|
124
|
-
/** Event data passed for `command_execution` events. */
|
125
|
-
/** The category id of the command. Only provided if the command has a category. */
|
126
|
-
category?: string | number | null;
|
127
|
-
/** The text of the category */
|
128
|
-
categoryText?: string;
|
129
|
-
/**
|
130
|
-
* The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic
|
131
|
-
* commands, the `name` (string) provided will be used.
|
132
|
-
*/
|
133
|
-
command: number | string | undefined;
|
134
|
-
/** The text of the command */
|
135
|
-
commandText: string;
|
136
|
-
/** The source of the command. */
|
137
|
-
source: string;
|
138
|
-
/** The source of the command execution. */
|
139
|
-
eventSource: ExecutionEventSource;
|
140
|
-
/** DEPRECATED. The text input.*/
|
141
|
-
['inputText[*]']: string;
|
142
|
-
/** The text input.*/
|
143
|
-
inputText?: string;
|
144
|
-
/** True if this command was triggered by a shortcut. */
|
145
|
-
shortcut?: boolean;
|
146
|
-
/** Ranking order of the command option */
|
147
|
-
ranking?: number;
|
148
|
-
/** command_ids of previously executed commands in the session */
|
149
|
-
previousCommands?: string[];
|
150
|
-
/** Command types, as defined at: https://www.commandbar.com/docs/commands/overview */
|
151
|
-
commandType?: 'admin' | 'link' | 'script' | 'clickByXpath' | 'clickBySelector' | 'click' | 'callback' | 'builtin' | 'webhook' | 'request' | 'video' | 'helpdoc' | 'appcues';
|
152
|
-
/** Selected arguments */
|
153
|
-
selections?: Record<string, unknown>;
|
154
|
-
commandDetails: EventCommandDetails;
|
155
|
-
}
|
156
|
-
export interface EndUserShortcutChangedEvent {
|
157
|
-
type: 'shortcut_edited';
|
158
|
-
/** Event data passed for `command_execution` events. */
|
159
|
-
/** The category id of the command. Only provided if the command has a category. */
|
160
|
-
category?: number | null;
|
161
|
-
/**
|
162
|
-
* The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic
|
163
|
-
* commands, the `name` (string) provided will be used.
|
164
|
-
*/
|
165
|
-
command: number | string | undefined;
|
166
|
-
/** The text of the command */
|
167
|
-
commandText: string;
|
168
|
-
/** The source of the command. */
|
169
|
-
source: string;
|
170
|
-
/** The updated shortcut. */
|
171
|
-
oldShortcut: string;
|
172
|
-
newShortcut: string;
|
173
|
-
defaultShortcut: string;
|
174
|
-
}
|
175
|
-
export interface CommandSuggestionEvent {
|
176
|
-
type: 'command_suggestion';
|
177
|
-
/** The text of the suggestion. */
|
178
|
-
text: string;
|
179
|
-
}
|
180
|
-
export interface OpenedEvent {
|
181
|
-
type: 'opened';
|
182
|
-
/** Event data passed for `command_execution` events. */
|
183
|
-
/**
|
184
|
-
* The entrypoint through which the bar was opened.
|
185
|
-
*
|
186
|
-
* * `launcher`: Click on the provided CommandBar launcher
|
187
|
-
* * `keyboard`: Cmd/Ctrl+K
|
188
|
-
* * `programmatic`: Call to `window.CommandBar.open()`. Clicks on the
|
189
|
-
* [commandbar-launcher](https://www.npmjs.com/package/commandbar-launcher) component register as programmatic
|
190
|
-
* opens.
|
191
|
-
*/
|
192
|
-
trigger: 'launcher' | 'keyboard' | 'programmatic' | 'nudge';
|
193
|
-
/** The placeholder showing when the user opened the bar. */
|
194
|
-
placeholder: string;
|
195
|
-
}
|
196
|
-
export declare type OpenedEventTrigger = OpenedEvent['trigger'];
|
197
|
-
export interface NoResultsForQueryEvent {
|
198
|
-
type: 'no_results_for_query';
|
199
|
-
/** Event data passed for `no_results_for_query` event */
|
200
|
-
/** The user's input text when the no results state was reached. */
|
201
|
-
inputText: string;
|
202
|
-
}
|
203
|
-
export declare type EventData = AbandonedSearchEvent | ClosedEvent | CommandExecutionEvent | CommandSuggestionEvent | NudgeEvent | OpenedEvent | NoResultsForQueryEvent | EndUserShortcutChangedEvent;
|
204
|
-
export declare type EventHandler = (eventName: EventType, eventData: EventData) => void;
|
205
|
-
export declare type EventSubscriber = EventHandler;
|
206
|
-
export declare type EventType = 'abandoned_search' | 'command_suggestion' | 'command_execution' | 'nudge_seen' | 'nudge_clicked' | 'opened' | 'closed' | 'no_results_for_query' | 'client_error' | 'shortcut_edited';
|
207
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { IConfigEndpointResponse } from '../middleware/types';
|
2
|
-
export interface SDKConfig {
|
3
|
-
api: string;
|
4
|
-
editor: string;
|
5
|
-
proxy: string;
|
6
|
-
session: string;
|
7
|
-
uuid: string;
|
8
|
-
foobarVersion?: string;
|
9
|
-
airgap: boolean;
|
10
|
-
environment?: string;
|
11
|
-
version?: string;
|
12
|
-
config?: IConfigEndpointResponse;
|
13
|
-
}
|
@@ -1,62 +0,0 @@
|
|
1
|
-
import { IOrganizationType } from '../middleware/OrganizationV';
|
2
|
-
import { PublicDisposable } from '../util/Disposable';
|
3
|
-
declare type ExtraData = Record<string, unknown>;
|
4
|
-
export interface UserScopeOptions {
|
5
|
-
configuration: {
|
6
|
-
uuid?: string;
|
7
|
-
api: string;
|
8
|
-
editor: string;
|
9
|
-
proxy: string;
|
10
|
-
session: string;
|
11
|
-
};
|
12
|
-
organization?: IOrganizationType;
|
13
|
-
organizationId: string | number;
|
14
|
-
organizationName?: string;
|
15
|
-
session: string;
|
16
|
-
userId?: string;
|
17
|
-
}
|
18
|
-
declare enum Severity {
|
19
|
-
Fatal = "fatal",
|
20
|
-
Error = "error",
|
21
|
-
Warning = "warning",
|
22
|
-
Log = "log",
|
23
|
-
Info = "info",
|
24
|
-
Debug = "debug",
|
25
|
-
Critical = "critical"
|
26
|
-
}
|
27
|
-
interface Breadcrumb {
|
28
|
-
type?: string;
|
29
|
-
level?: Severity;
|
30
|
-
event_id?: string;
|
31
|
-
category?: string;
|
32
|
-
message?: string;
|
33
|
-
data?: {
|
34
|
-
[key: string]: any;
|
35
|
-
};
|
36
|
-
timestamp?: number;
|
37
|
-
}
|
38
|
-
interface BreadcrumbHint {
|
39
|
-
[key: string]: any;
|
40
|
-
}
|
41
|
-
export declare abstract class SentryReporter implements PublicDisposable {
|
42
|
-
_disposed: boolean;
|
43
|
-
breadcrumb: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void;
|
44
|
-
dispose(): void;
|
45
|
-
/**
|
46
|
-
* Report an error to Sentry. The first argument must either be a string or error object, and optionally an error
|
47
|
-
* object and extra data (in the form of an object) may be provided as well.
|
48
|
-
*
|
49
|
-
* If a string message is provided instead of an Error object a new Error will be generated. This will cause the
|
50
|
-
* stacktrace to begin at this function; for that reason it is **strongly** recommended to provide an error object
|
51
|
-
* so that the original stack trace can be preserved (as originalException).
|
52
|
-
*/
|
53
|
-
abstract exception(message: string, err?: Error, extra?: ExtraData): void;
|
54
|
-
abstract exception(message: string, extra?: ExtraData): void;
|
55
|
-
abstract exception(err: Error, extra?: ExtraData): void;
|
56
|
-
/**
|
57
|
-
* Assigns various scope properties related to the currently active user and organization so that error events can
|
58
|
-
* be easily associated with them.
|
59
|
-
*/
|
60
|
-
abstract setUserScope(opts: UserScopeOptions): void;
|
61
|
-
}
|
62
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { CommandBarClientSDK } from './CommandBarClientSDK';
|
2
|
-
import { CommandBarSDK } from './CommandBarSDK';
|
3
|
-
declare global {
|
4
|
-
interface Window {
|
5
|
-
CommandBar: CommandBarClientSDK;
|
6
|
-
_CommandBarTmpQueueProcessing: CommandBarSDK | undefined;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
export { initProxySDK, getProxySDK } from './proxy';
|
10
|
-
/**
|
11
|
-
* Returns the CommandBar global SDK.
|
12
|
-
* The SDK object might be a proxy instead if `initSDK` has not yet been called.
|
13
|
-
*/
|
14
|
-
export declare function getSDK(): CommandBarSDK;
|
15
|
-
/**
|
16
|
-
* Returns the CommandBar global, coerced to match the client interface.
|
17
|
-
* The SDK object might be a proxy instead if `initSDK` has not yet been called.
|
18
|
-
*/
|
19
|
-
export declare function getClientSDK(): CommandBarClientSDK;
|
20
|
-
export declare const SDK_INTERNAL_PREFIX = "__commandbar_INTERNAL_";
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { CommandBarProxyGlobal } from './CommandBarProxySDK';
|
2
|
-
/**
|
3
|
-
* Returns the "pre-boot" proxied SDK object, creating it if necessary. This object might actually be a full SDK if it
|
4
|
-
* was already upgraded using `initSDK`. In either case, the returned object will _not_ itself be a proxy.
|
5
|
-
*
|
6
|
-
* The proxy SDK will only be created if one of the following hold:
|
7
|
-
* - window.CommandBar === undefined
|
8
|
-
* - window.CommandBar[_disposed] === true
|
9
|
-
* - window.CommandBar.disposed === true
|
10
|
-
*
|
11
|
-
* Otherwise the existing value of `window.CommandBar` is returned, whatever that may be.
|
12
|
-
*/
|
13
|
-
export declare function getProxySDK(): CommandBarProxyGlobal;
|
14
|
-
/** Replaces `window.CommandBar` with a new Proxy SDK object. */
|
15
|
-
export declare function initProxySDK(): void;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
export declare const _access: unique symbol;
|
2
|
-
export declare const _configuration: unique symbol;
|
3
|
-
export declare const _configure: unique symbol;
|
4
|
-
export declare const _configUser: unique symbol;
|
5
|
-
export declare const _dispatch: unique symbol;
|
6
|
-
export declare const _dispose: unique symbol;
|
7
|
-
export declare const _disposed: unique symbol;
|
8
|
-
export declare const _instanceAttributes: unique symbol;
|
9
|
-
export declare const _isProxy: unique symbol;
|
10
|
-
export declare const _loadEditor: unique symbol;
|
11
|
-
export declare const _orgConfig: unique symbol;
|
12
|
-
export declare const _perf: unique symbol;
|
13
|
-
export declare const _programmaticTheme: unique symbol;
|
14
|
-
export declare const _queue: unique symbol;
|
15
|
-
export declare const _reloadCommands: unique symbol;
|
16
|
-
export declare const _reloadOrganization: unique symbol;
|
17
|
-
export declare const _reloadPlaceholders: unique symbol;
|
18
|
-
export declare const _reloadNudges: unique symbol;
|
19
|
-
export declare const _previewNudge: unique symbol;
|
20
|
-
export declare const _stopChecklistPreview: unique symbol;
|
21
|
-
export declare const _stopNudgePreview: unique symbol;
|
22
|
-
export declare const _previewChecklist: unique symbol;
|
23
|
-
export declare const _reloadChecklists: unique symbol;
|
24
|
-
export declare const _report: unique symbol;
|
25
|
-
export declare const _reporter: unique symbol;
|
26
|
-
export declare const _search: unique symbol;
|
27
|
-
export declare const _setDashboard: unique symbol;
|
28
|
-
export declare const _setPreviewMode: unique symbol;
|
29
|
-
export declare const _setTestMode: unique symbol;
|
30
|
-
export declare const _setEditorVisible: unique symbol;
|
31
|
-
export declare const _shareConfig: unique symbol;
|
32
|
-
export declare const _shareContextSettings: unique symbol;
|
33
|
-
export declare const _shareProgrammaticCommands: unique symbol;
|
34
|
-
export declare const _showGuide: unique symbol;
|
35
|
-
export declare const _showMessage: unique symbol;
|
36
|
-
export declare const _state: unique symbol;
|
37
|
-
export declare const _unwrap: unique symbol;
|
38
|
-
export declare const _user: unique symbol;
|
39
|
-
export declare const _userAttributes: unique symbol;
|
40
|
-
export declare const _eventSubscriptions: unique symbol;
|
41
|
-
export declare const _metaAttributes: unique symbol;
|
@@ -1,290 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
3
|
-
name: t.StringC;
|
4
|
-
template: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
5
|
-
type: t.LiteralC<"callback">;
|
6
|
-
value: t.StringC;
|
7
|
-
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
8
|
-
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
9
|
-
object: t.StringC;
|
10
|
-
hoverTooltip: t.BooleanC;
|
11
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
|
12
|
-
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
13
|
-
type: t.LiteralC<"link">;
|
14
|
-
value: t.StringC;
|
15
|
-
}>, t.PartialC<{
|
16
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
17
|
-
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
18
|
-
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
19
|
-
object: t.StringC;
|
20
|
-
hoverTooltip: t.BooleanC;
|
21
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
|
22
|
-
}>]>]>, t.IntersectionC<[t.TypeC<{
|
23
|
-
type: t.LiteralC<"webhook">;
|
24
|
-
value: t.StringC;
|
25
|
-
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
26
|
-
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
27
|
-
object: t.StringC;
|
28
|
-
hoverTooltip: t.BooleanC;
|
29
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
|
30
|
-
}>]>]>, t.IntersectionC<[t.TypeC<{
|
31
|
-
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
32
|
-
value: t.ArrayC<t.StringC>;
|
33
|
-
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
34
|
-
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
35
|
-
object: t.StringC;
|
36
|
-
hoverTooltip: t.BooleanC;
|
37
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
|
38
|
-
}>]>]>, t.IntersectionC<[t.TypeC<{
|
39
|
-
type: t.LiteralC<"request">;
|
40
|
-
value: t.IntersectionC<[t.TypeC<{
|
41
|
-
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
|
42
|
-
url: t.StringC;
|
43
|
-
}>, t.PartialC<{
|
44
|
-
headers: t.UnknownRecordC;
|
45
|
-
body: t.UnknownRecordC;
|
46
|
-
onSend: t.StringC;
|
47
|
-
onSuccess: t.StringC;
|
48
|
-
onError: t.StringC;
|
49
|
-
}>]>;
|
50
|
-
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
51
|
-
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
52
|
-
object: t.StringC;
|
53
|
-
hoverTooltip: t.BooleanC;
|
54
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
|
55
|
-
}>]>]>, t.IntersectionC<[t.TypeC<{
|
56
|
-
type: t.LiteralC<"appcues">;
|
57
|
-
value: t.StringC;
|
58
|
-
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
59
|
-
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
60
|
-
object: t.StringC;
|
61
|
-
hoverTooltip: t.BooleanC;
|
62
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
|
63
|
-
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
64
|
-
type: t.LiteralC<"helpdoc">;
|
65
|
-
value: t.StringC;
|
66
|
-
}>, t.PartialC<{
|
67
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.LiteralC<"help_explorer">, t.UndefinedC]>;
|
68
|
-
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
69
|
-
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
70
|
-
object: t.StringC;
|
71
|
-
hoverTooltip: t.BooleanC;
|
72
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
|
73
|
-
}>]>]>]>;
|
74
|
-
text: t.StringC;
|
75
|
-
}>, t.PartialC<{
|
76
|
-
shortcut_mac: t.ArrayC<t.StringC>;
|
77
|
-
shortcut_win: t.ArrayC<t.StringC>;
|
78
|
-
hotkey_mac: t.StringC;
|
79
|
-
hotkey_win: t.StringC;
|
80
|
-
tags: t.ArrayC<t.StringC>;
|
81
|
-
explanation: t.StringC;
|
82
|
-
heading: t.StringC;
|
83
|
-
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
84
|
-
arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
|
85
|
-
type: t.LiteralC<"context">;
|
86
|
-
value: t.StringC;
|
87
|
-
order_key: t.NumberC;
|
88
|
-
}>, t.PartialC<{
|
89
|
-
label: t.StringC;
|
90
|
-
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
91
|
-
selected: t.ArrayC<t.AnyC>;
|
92
|
-
input_type: t.StringC;
|
93
|
-
preselected_key: t.StringC;
|
94
|
-
label_field: t.StringC;
|
95
|
-
loaded: t.ArrayC<t.AnyC>;
|
96
|
-
allow_create: t.BooleanC;
|
97
|
-
allow_create_label: t.StringC;
|
98
|
-
show_in_record_action_list: t.BooleanC;
|
99
|
-
show_in_default_list: t.BooleanC;
|
100
|
-
auto_choose: t.BooleanC;
|
101
|
-
is_private: t.BooleanC;
|
102
|
-
}>]>, t.IntersectionC<[t.TypeC<{
|
103
|
-
type: t.LiteralC<"set">;
|
104
|
-
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
105
|
-
order_key: t.NumberC;
|
106
|
-
}>, t.PartialC<{
|
107
|
-
label: t.StringC;
|
108
|
-
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
109
|
-
selected: t.ArrayC<t.AnyC>;
|
110
|
-
input_type: t.StringC;
|
111
|
-
preselected_key: t.StringC;
|
112
|
-
label_field: t.StringC;
|
113
|
-
loaded: t.ArrayC<t.AnyC>;
|
114
|
-
allow_create: t.BooleanC;
|
115
|
-
allow_create_label: t.StringC;
|
116
|
-
auto_choose: t.BooleanC;
|
117
|
-
is_private: t.BooleanC;
|
118
|
-
}>]>, t.IntersectionC<[t.TypeC<{
|
119
|
-
type: t.LiteralC<"provided">;
|
120
|
-
value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
|
121
|
-
order_key: t.NumberC;
|
122
|
-
}>, t.PartialC<{
|
123
|
-
label: t.StringC;
|
124
|
-
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
125
|
-
selected: t.ArrayC<t.AnyC>;
|
126
|
-
input_type: t.StringC;
|
127
|
-
preselected_key: t.StringC;
|
128
|
-
label_field: t.StringC;
|
129
|
-
loaded: t.ArrayC<t.AnyC>;
|
130
|
-
dateTimeArgumentTypeId: t.NumberC;
|
131
|
-
allow_create: t.BooleanC;
|
132
|
-
allow_create_label: t.StringC;
|
133
|
-
auto_choose: t.BooleanC;
|
134
|
-
is_private: t.BooleanC;
|
135
|
-
}>]>, t.IntersectionC<[t.TypeC<{
|
136
|
-
type: t.LiteralC<"dependent">;
|
137
|
-
value: t.StringC;
|
138
|
-
order_key: t.NumberC;
|
139
|
-
}>, t.PartialC<{
|
140
|
-
label: t.StringC;
|
141
|
-
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
142
|
-
selected: t.ArrayC<t.AnyC>;
|
143
|
-
input_type: t.StringC;
|
144
|
-
preselected_key: t.StringC;
|
145
|
-
label_field: t.StringC;
|
146
|
-
loaded: t.ArrayC<t.AnyC>;
|
147
|
-
allow_create: t.BooleanC;
|
148
|
-
allow_create_label: t.StringC;
|
149
|
-
auto_choose: t.BooleanC;
|
150
|
-
is_private: t.BooleanC;
|
151
|
-
}>]>, t.IntersectionC<[t.TypeC<{
|
152
|
-
type: t.LiteralC<"function">;
|
153
|
-
value: t.StringC;
|
154
|
-
order_key: t.NumberC;
|
155
|
-
}>, t.PartialC<{
|
156
|
-
label: t.StringC;
|
157
|
-
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
158
|
-
selected: t.ArrayC<t.AnyC>;
|
159
|
-
input_type: t.StringC;
|
160
|
-
preselected_key: t.StringC;
|
161
|
-
label_field: t.StringC;
|
162
|
-
loaded: t.ArrayC<t.AnyC>;
|
163
|
-
allow_create: t.BooleanC;
|
164
|
-
allow_create_label: t.StringC;
|
165
|
-
auto_choose: t.BooleanC;
|
166
|
-
is_private: t.BooleanC;
|
167
|
-
}>]>, t.IntersectionC<[t.TypeC<{
|
168
|
-
type: t.UnionC<[t.LiteralC<"video">, t.LiteralC<"html">]>;
|
169
|
-
value: t.IntersectionC<[t.TypeC<{
|
170
|
-
source: t.StringC;
|
171
|
-
}>, t.PartialC<{
|
172
|
-
title: t.StringC;
|
173
|
-
description: t.StringC;
|
174
|
-
url: t.StringC;
|
175
|
-
}>]>;
|
176
|
-
order_key: t.NumberC;
|
177
|
-
}>, t.PartialC<{
|
178
|
-
label: t.StringC;
|
179
|
-
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
180
|
-
selected: t.ArrayC<t.AnyC>;
|
181
|
-
input_type: t.StringC;
|
182
|
-
preselected_key: t.StringC;
|
183
|
-
label_field: t.StringC;
|
184
|
-
loaded: t.ArrayC<t.AnyC>;
|
185
|
-
allow_create: t.BooleanC;
|
186
|
-
allow_create_label: t.StringC;
|
187
|
-
is_private: t.BooleanC;
|
188
|
-
auto_choose: t.BooleanC;
|
189
|
-
}>]>]>>;
|
190
|
-
category: t.UnionC<[t.NumberC, t.StringC, t.NullC]>;
|
191
|
-
icon: t.UnionC<[t.StringC, t.NullC]>;
|
192
|
-
icon_color: t.UnionC<[t.StringC, t.NullC]>;
|
193
|
-
image_color: t.UnionC<[t.StringC, t.NullC]>;
|
194
|
-
image: t.UnionC<[t.StringC, t.NullC]>;
|
195
|
-
celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
|
196
|
-
angle: t.NumberC;
|
197
|
-
spread: t.NumberC;
|
198
|
-
width: t.StringC;
|
199
|
-
height: t.StringC;
|
200
|
-
duration: t.NumberC;
|
201
|
-
dragFriction: t.NumberC;
|
202
|
-
stagger: t.NumberC;
|
203
|
-
startVelocity: t.NumberC;
|
204
|
-
elementCount: t.NumberC;
|
205
|
-
decay: t.NumberC;
|
206
|
-
colors: t.ArrayC<t.StringC>;
|
207
|
-
random: t.AnyC;
|
208
|
-
}>, t.NullC]>;
|
209
|
-
availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
210
|
-
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">]>;
|
211
|
-
operator: t.KeyofC<{
|
212
|
-
includes: null;
|
213
|
-
endsWith: null;
|
214
|
-
startsWith: null;
|
215
|
-
is: null;
|
216
|
-
isNot: null;
|
217
|
-
isTrue: null;
|
218
|
-
isFalse: null;
|
219
|
-
isTruthy: null;
|
220
|
-
isFalsy: null;
|
221
|
-
doesNotInclude: null;
|
222
|
-
matchesRegex: null;
|
223
|
-
isGreaterThan: null;
|
224
|
-
isLessThan: null;
|
225
|
-
isBefore: null;
|
226
|
-
isAfter: null;
|
227
|
-
isDefined: null;
|
228
|
-
isNotDefined: null;
|
229
|
-
classnameOnPage: null;
|
230
|
-
idOnPage: null;
|
231
|
-
selectorOnPage: null;
|
232
|
-
}>;
|
233
|
-
}>, t.PartialC<{
|
234
|
-
field: t.StringC;
|
235
|
-
value: t.StringC;
|
236
|
-
reason: t.StringC;
|
237
|
-
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
238
|
-
}>]>>;
|
239
|
-
recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
|
240
|
-
type: t.LiteralC<"always">;
|
241
|
-
}>, t.PartialC<{
|
242
|
-
operator: t.UnionC<[t.UndefinedC, t.NullC]>;
|
243
|
-
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
244
|
-
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
245
|
-
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
246
|
-
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
247
|
-
}>]>, t.IntersectionC<[t.TypeC<{
|
248
|
-
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">]>;
|
249
|
-
operator: t.KeyofC<{
|
250
|
-
includes: null;
|
251
|
-
endsWith: null;
|
252
|
-
startsWith: null;
|
253
|
-
is: null;
|
254
|
-
isNot: null;
|
255
|
-
isTrue: null;
|
256
|
-
isFalse: null;
|
257
|
-
isTruthy: null;
|
258
|
-
isFalsy: null;
|
259
|
-
doesNotInclude: null;
|
260
|
-
matchesRegex: null;
|
261
|
-
isGreaterThan: null;
|
262
|
-
isLessThan: null;
|
263
|
-
isBefore: null;
|
264
|
-
isAfter: null;
|
265
|
-
isDefined: null;
|
266
|
-
isNotDefined: null;
|
267
|
-
classnameOnPage: null;
|
268
|
-
idOnPage: null;
|
269
|
-
selectorOnPage: null;
|
270
|
-
}>;
|
271
|
-
}>, t.PartialC<{
|
272
|
-
field: t.StringC;
|
273
|
-
value: t.StringC;
|
274
|
-
reason: t.StringC;
|
275
|
-
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
276
|
-
}>]>]>>;
|
277
|
-
availability_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;
|
278
|
-
recommend_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;
|
279
|
-
detail: t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
|
280
|
-
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
281
|
-
value: t.StringC;
|
282
|
-
}>, t.PartialC<{
|
283
|
-
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
284
|
-
}>]>, t.ArrayC<t.IntersectionC<[t.TypeC<{
|
285
|
-
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
286
|
-
value: t.StringC;
|
287
|
-
}>, t.PartialC<{
|
288
|
-
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
289
|
-
}>]>>]>;
|
290
|
-
}>]>;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
import { CommandFromClientV } from './CommandFromClientV';
|
3
|
-
import { ContextArgumentV } from './helpers/argument';
|
4
|
-
export declare type ICommandFromClientType = t.TypeOf<typeof CommandFromClientV> & unknown;
|
5
|
-
export declare type IContextArgument = t.TypeOf<typeof ContextArgumentV>;
|