commandbar 1.6.7 → 1.6.8
Sign up to get free protection for your applications and to get access to all the features.
- package/build/commandbar-js/src/index.d.ts +10 -0
- package/build/commandbar-js/src/index.js +1 -0
- package/build/commandbar-js/src/init.d.ts +21 -0
- package/build/commandbar-js/src/snippet.d.ts +1 -0
- package/build/internal/src/client/AddContextOptions.d.ts +94 -0
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +293 -0
- package/build/internal/src/client/CommandBarProxySDK.d.ts +48 -0
- package/build/internal/src/client/CommandBarSDK.d.ts +50 -0
- package/build/internal/src/client/EventHandler.d.ts +89 -0
- package/build/internal/src/client/SDKConfig.d.ts +13 -0
- package/build/internal/src/client/SentryReporter.d.ts +41 -0
- package/build/internal/src/client/globals.d.ts +18 -0
- package/build/internal/src/client/proxy.d.ts +15 -0
- package/build/internal/src/client/symbols.d.ts +32 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +220 -0
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +3 -0
- package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +102 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +43 -0
- package/build/internal/src/middleware/command.d.ts +3608 -0
- package/build/internal/src/middleware/commandCategory.d.ts +87 -0
- package/build/internal/src/middleware/confetti.d.ts +16 -0
- package/build/internal/src/middleware/context.d.ts +40 -0
- package/build/internal/src/middleware/environment.d.ts +11 -0
- package/build/internal/src/middleware/generics.d.ts +32 -0
- package/build/internal/src/middleware/guide.d.ts +37 -0
- package/build/internal/src/middleware/helpers/argument.d.ts +412 -0
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +129 -0
- package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +231 -0
- package/build/internal/src/middleware/historyEvent.d.ts +40 -0
- package/build/internal/src/middleware/network.d.ts +4 -0
- package/build/internal/src/middleware/organization.d.ts +604 -0
- package/build/internal/src/middleware/placeholder.d.ts +47 -0
- package/build/internal/src/middleware/profile.d.ts +11 -0
- package/build/internal/src/middleware/releases.d.ts +261 -0
- package/build/internal/src/middleware/skin.d.ts +66 -0
- package/build/internal/src/middleware/types.d.ts +378 -0
- package/build/internal/src/middleware/user.d.ts +12 -0
- package/build/internal/src/util/Disposable.d.ts +17 -0
- package/build/internal/src/util/LocalStorage.d.ts +6 -0
- package/build/internal/src/util/Logger.d.ts +18 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
- package/package.json +1 -1
@@ -0,0 +1,89 @@
|
|
1
|
+
export interface AbandonedSearchEvent {
|
2
|
+
/** Event data passed for `abandoned_search` events (deadends). */
|
3
|
+
/** The id of the currently active command, if there is one. */
|
4
|
+
command?: number;
|
5
|
+
/** DEPRECATED. The text of the deadend. */
|
6
|
+
['inputText[*]']: string;
|
7
|
+
/** The text of the deadend. */
|
8
|
+
inputText: string;
|
9
|
+
/** The context key of the currently active resource, if there is one. */
|
10
|
+
resource?: string;
|
11
|
+
/** The trigger for the deadend. */
|
12
|
+
type: 'Backspaced' | 'Closed with text' | 'Resetting search';
|
13
|
+
/** The number of {CommandOptions, ParameterOptions}, if there are any. */
|
14
|
+
results?: {
|
15
|
+
numCommands: number;
|
16
|
+
numRecords: number;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
export interface ClosedEvent {
|
20
|
+
/** Event data passed for `command_execution` events. */
|
21
|
+
/** The user's input text when the bar was closed. */
|
22
|
+
inputText: string;
|
23
|
+
/** True if this command was triggered by a shortcut. */
|
24
|
+
shortcut?: boolean;
|
25
|
+
}
|
26
|
+
export interface CommandExecutionEvent {
|
27
|
+
/** Event data passed for `command_execution` events. */
|
28
|
+
/** The category id of the command. Only provided if the command has a category. */
|
29
|
+
category?: number | null;
|
30
|
+
/**
|
31
|
+
* The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic
|
32
|
+
* commands, the `name` (string) provided will be used.
|
33
|
+
*/
|
34
|
+
command: number | string | undefined;
|
35
|
+
/** The text of the command */
|
36
|
+
commandText: string;
|
37
|
+
/** The source of the command. */
|
38
|
+
source: string;
|
39
|
+
/** DEPRECATED. The text input.*/
|
40
|
+
['inputText[*]']: string;
|
41
|
+
/** The text input. */
|
42
|
+
inputText: string;
|
43
|
+
}
|
44
|
+
export interface EndUserShortcutChangedEvent {
|
45
|
+
/** Event data passed for `command_execution` events. */
|
46
|
+
/** The category id of the command. Only provided if the command has a category. */
|
47
|
+
category?: number | null;
|
48
|
+
/**
|
49
|
+
* The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic
|
50
|
+
* commands, the `name` (string) provided will be used.
|
51
|
+
*/
|
52
|
+
command: number | string | undefined;
|
53
|
+
/** The text of the command */
|
54
|
+
commandText: string;
|
55
|
+
/** The source of the command. */
|
56
|
+
source: string;
|
57
|
+
/** The updated shortcut. */
|
58
|
+
oldShortcut: string;
|
59
|
+
newShortcut: string;
|
60
|
+
defaultShortcut: string;
|
61
|
+
}
|
62
|
+
export interface CommandSuggestionEvent {
|
63
|
+
/** The text of the suggestion. */
|
64
|
+
text: string;
|
65
|
+
}
|
66
|
+
export interface OpenedEvent {
|
67
|
+
/** Event data passed for `command_execution` events. */
|
68
|
+
/**
|
69
|
+
* The entrypoint through which the bar was opened.
|
70
|
+
*
|
71
|
+
* * `launcher`: Click on the provided CommandBar launcher
|
72
|
+
* * `keyboard`: Cmd/Ctrl+K
|
73
|
+
* * `programmatic`: Call to `window.CommandBar.open()`. Clicks on the
|
74
|
+
* [commandbar-launcher](https://www.npmjs.com/package/commandbar-launcher) component register as programmatic
|
75
|
+
* opens.
|
76
|
+
*/
|
77
|
+
trigger: 'launcher' | 'keyboard' | 'programmatic';
|
78
|
+
/** The placeholder showing when the user opened the bar. */
|
79
|
+
placeholder: string;
|
80
|
+
}
|
81
|
+
export declare type OpenedEventTrigger = OpenedEvent['trigger'];
|
82
|
+
export interface NoResultsForQueryEvent {
|
83
|
+
/** Event data passed for `no_results_for_query` event */
|
84
|
+
/** The user's input text when the no results state was reached. */
|
85
|
+
inputText: string;
|
86
|
+
}
|
87
|
+
export declare type EventData = AbandonedSearchEvent | ClosedEvent | CommandExecutionEvent | CommandSuggestionEvent | OpenedEvent | NoResultsForQueryEvent;
|
88
|
+
export declare type EventHandler = (eventName: EventType, eventData: EventData) => void;
|
89
|
+
export declare type EventType = 'abandoned_search' | 'command_suggestion' | 'command_execution' | 'opened' | 'closed' | 'no_results_for_query' | 'client_error' | 'shortcut_edited';
|
@@ -0,0 +1,13 @@
|
|
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
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { Hub } from '@sentry/react';
|
2
|
+
import { IOrganizationType } from '../middleware/OrganizationV';
|
3
|
+
import { PublicDisposable } from '../util/Disposable';
|
4
|
+
declare type HubInstance = InstanceType<typeof Hub>;
|
5
|
+
declare type ExtraData = Record<string, unknown>;
|
6
|
+
export interface UserScopeOptions {
|
7
|
+
configuration: {
|
8
|
+
uuid?: string;
|
9
|
+
api: string;
|
10
|
+
editor: string;
|
11
|
+
proxy: string;
|
12
|
+
session: string;
|
13
|
+
};
|
14
|
+
organization?: IOrganizationType;
|
15
|
+
organizationId: string | number;
|
16
|
+
organizationName?: string;
|
17
|
+
session: string;
|
18
|
+
userId?: string;
|
19
|
+
}
|
20
|
+
export declare abstract class SentryReporter implements PublicDisposable {
|
21
|
+
_disposed: boolean;
|
22
|
+
breadcrumb: HubInstance['addBreadcrumb'];
|
23
|
+
dispose(): void;
|
24
|
+
/**
|
25
|
+
* Report an error to Sentry. The first argument must either be a string or error object, and optionally an error
|
26
|
+
* object and extra data (in the form of an object) may be provided as well.
|
27
|
+
*
|
28
|
+
* If a string message is provided instead of an Error object a new Error will be generated. This will cause the
|
29
|
+
* stacktrace to begin at this function; for that reason it is **strongly** recommended to provide an error object
|
30
|
+
* so that the original stack trace can be preserved (as originalException).
|
31
|
+
*/
|
32
|
+
abstract exception(message: string, err?: Error, extra?: ExtraData): void;
|
33
|
+
abstract exception(message: string, extra?: ExtraData): void;
|
34
|
+
abstract exception(err: Error, extra?: ExtraData): void;
|
35
|
+
/**
|
36
|
+
* Assigns various scope properties related to the currently active user and organization so that error events can
|
37
|
+
* be easily associated with them.
|
38
|
+
*/
|
39
|
+
abstract setUserScope(opts: UserScopeOptions): void;
|
40
|
+
}
|
41
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { CommandBarClientSDK } from './CommandBarClientSDK';
|
2
|
+
import { CommandBarSDK } from './CommandBarSDK';
|
3
|
+
declare global {
|
4
|
+
interface Window {
|
5
|
+
CommandBar: CommandBarClientSDK;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
export { initProxySDK, getProxySDK } from './proxy';
|
9
|
+
/**
|
10
|
+
* Returns the CommandBar global SDK.
|
11
|
+
* The SDK object might be a proxy instead if `initSDK` has not yet been called.
|
12
|
+
*/
|
13
|
+
export declare function getSDK(): CommandBarSDK;
|
14
|
+
/**
|
15
|
+
* Returns the CommandBar global, coerced to match the client interface.
|
16
|
+
* The SDK object might be a proxy instead if `initSDK` has not yet been called.
|
17
|
+
*/
|
18
|
+
export declare function getClientSDK(): CommandBarClientSDK;
|
@@ -0,0 +1,15 @@
|
|
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;
|
@@ -0,0 +1,32 @@
|
|
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 _report: unique symbol;
|
19
|
+
export declare const _reporter: unique symbol;
|
20
|
+
export declare const _search: unique symbol;
|
21
|
+
export declare const _setDashboard: unique symbol;
|
22
|
+
export declare const _setPreviewMode: unique symbol;
|
23
|
+
export declare const _setTestMode: unique symbol;
|
24
|
+
export declare const _setEditorVisible: unique symbol;
|
25
|
+
export declare const _shareContextSettings: unique symbol;
|
26
|
+
export declare const _shareProgrammaticCommands: unique symbol;
|
27
|
+
export declare const _showGuide: unique symbol;
|
28
|
+
export declare const _showMessage: unique symbol;
|
29
|
+
export declare const _state: unique symbol;
|
30
|
+
export declare const _unwrap: unique symbol;
|
31
|
+
export declare const _user: unique symbol;
|
32
|
+
export declare const _userAttributes: unique symbol;
|
@@ -0,0 +1,220 @@
|
|
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<"blank">, t.UndefinedC]>;
|
12
|
+
}>]>]>, t.IntersectionC<[t.TypeC<{
|
13
|
+
type: t.LiteralC<"link">;
|
14
|
+
value: t.StringC;
|
15
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
16
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
17
|
+
object: t.StringC;
|
18
|
+
hoverTooltip: t.BooleanC;
|
19
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
20
|
+
}>]>]>, t.IntersectionC<[t.TypeC<{
|
21
|
+
type: t.LiteralC<"webhook">;
|
22
|
+
value: t.StringC;
|
23
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
24
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
25
|
+
object: t.StringC;
|
26
|
+
hoverTooltip: t.BooleanC;
|
27
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
28
|
+
}>]>]>, t.IntersectionC<[t.TypeC<{
|
29
|
+
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
30
|
+
value: t.ArrayC<t.StringC>;
|
31
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
32
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
33
|
+
object: t.StringC;
|
34
|
+
hoverTooltip: t.BooleanC;
|
35
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
36
|
+
}>]>]>]>;
|
37
|
+
text: t.StringC;
|
38
|
+
}>, t.PartialC<{
|
39
|
+
shortcut_mac: t.ArrayC<t.StringC>;
|
40
|
+
shortcut_win: t.ArrayC<t.StringC>;
|
41
|
+
hotkey_mac: t.StringC;
|
42
|
+
hotkey_win: t.StringC;
|
43
|
+
tags: t.ArrayC<t.StringC>;
|
44
|
+
explanation: t.StringC;
|
45
|
+
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
46
|
+
arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
|
47
|
+
type: t.LiteralC<"context">;
|
48
|
+
value: t.StringC;
|
49
|
+
order_key: t.NumberC;
|
50
|
+
}>, t.PartialC<{
|
51
|
+
label: t.StringC;
|
52
|
+
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
53
|
+
selected: t.ArrayC<t.AnyC>;
|
54
|
+
input_type: t.StringC;
|
55
|
+
preselected_key: t.StringC;
|
56
|
+
label_field: t.StringC;
|
57
|
+
availability_condition: t.ArrayC<t.TypeC<{
|
58
|
+
field: t.StringC;
|
59
|
+
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
|
60
|
+
value: t.UnionC<[t.StringC, t.UndefinedC]>;
|
61
|
+
}>>;
|
62
|
+
loaded: t.ArrayC<t.AnyC>;
|
63
|
+
allow_create: t.BooleanC;
|
64
|
+
allow_create_label: t.StringC;
|
65
|
+
show_in_record_action_list: t.BooleanC;
|
66
|
+
show_in_default_list: t.BooleanC;
|
67
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
68
|
+
type: t.LiteralC<"set">;
|
69
|
+
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
70
|
+
order_key: t.NumberC;
|
71
|
+
}>, t.PartialC<{
|
72
|
+
label: t.StringC;
|
73
|
+
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
74
|
+
selected: t.ArrayC<t.AnyC>;
|
75
|
+
input_type: t.StringC;
|
76
|
+
preselected_key: t.StringC;
|
77
|
+
label_field: t.StringC;
|
78
|
+
availability_condition: t.ArrayC<t.TypeC<{
|
79
|
+
field: t.StringC;
|
80
|
+
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
|
81
|
+
value: t.UnionC<[t.StringC, t.UndefinedC]>;
|
82
|
+
}>>;
|
83
|
+
loaded: t.ArrayC<t.AnyC>;
|
84
|
+
allow_create: t.BooleanC;
|
85
|
+
allow_create_label: t.StringC;
|
86
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
87
|
+
type: t.LiteralC<"provided">;
|
88
|
+
value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
|
89
|
+
order_key: t.NumberC;
|
90
|
+
}>, t.PartialC<{
|
91
|
+
label: t.StringC;
|
92
|
+
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
93
|
+
selected: t.ArrayC<t.AnyC>;
|
94
|
+
input_type: t.StringC;
|
95
|
+
preselected_key: t.StringC;
|
96
|
+
label_field: t.StringC;
|
97
|
+
availability_condition: t.ArrayC<t.TypeC<{
|
98
|
+
field: t.StringC;
|
99
|
+
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
|
100
|
+
value: t.UnionC<[t.StringC, t.UndefinedC]>;
|
101
|
+
}>>;
|
102
|
+
loaded: t.ArrayC<t.AnyC>;
|
103
|
+
dateTimeArgumentTypeId: t.NumberC;
|
104
|
+
allow_create: t.BooleanC;
|
105
|
+
allow_create_label: t.StringC;
|
106
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
107
|
+
type: t.LiteralC<"dependent">;
|
108
|
+
value: t.StringC;
|
109
|
+
order_key: t.NumberC;
|
110
|
+
}>, t.PartialC<{
|
111
|
+
label: t.StringC;
|
112
|
+
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
113
|
+
selected: t.ArrayC<t.AnyC>;
|
114
|
+
input_type: t.StringC;
|
115
|
+
preselected_key: t.StringC;
|
116
|
+
label_field: t.StringC;
|
117
|
+
availability_condition: t.ArrayC<t.TypeC<{
|
118
|
+
field: t.StringC;
|
119
|
+
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
|
120
|
+
value: t.UnionC<[t.StringC, t.UndefinedC]>;
|
121
|
+
}>>;
|
122
|
+
loaded: t.ArrayC<t.AnyC>;
|
123
|
+
allow_create: t.BooleanC;
|
124
|
+
allow_create_label: t.StringC;
|
125
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
126
|
+
type: t.LiteralC<"function">;
|
127
|
+
value: t.StringC;
|
128
|
+
order_key: t.NumberC;
|
129
|
+
}>, t.PartialC<{
|
130
|
+
label: t.StringC;
|
131
|
+
chosen: t.UnionC<[t.StringC, t.NumberC]>;
|
132
|
+
selected: t.ArrayC<t.AnyC>;
|
133
|
+
input_type: t.StringC;
|
134
|
+
preselected_key: t.StringC;
|
135
|
+
label_field: t.StringC;
|
136
|
+
availability_condition: t.ArrayC<t.TypeC<{
|
137
|
+
field: t.StringC;
|
138
|
+
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
|
139
|
+
value: t.UnionC<[t.StringC, t.UndefinedC]>;
|
140
|
+
}>>;
|
141
|
+
loaded: t.ArrayC<t.AnyC>;
|
142
|
+
allow_create: t.BooleanC;
|
143
|
+
allow_create_label: t.StringC;
|
144
|
+
}>]>]>>;
|
145
|
+
category: t.UnionC<[t.NumberC, t.StringC, t.NullC]>;
|
146
|
+
icon: t.UnionC<[t.StringC, t.NullC]>;
|
147
|
+
celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
|
148
|
+
angle: t.NumberC;
|
149
|
+
spread: t.NumberC;
|
150
|
+
width: t.StringC;
|
151
|
+
height: t.StringC;
|
152
|
+
duration: t.NumberC;
|
153
|
+
dragFriction: t.NumberC;
|
154
|
+
stagger: t.NumberC;
|
155
|
+
startVelocity: t.NumberC;
|
156
|
+
elementCount: t.NumberC;
|
157
|
+
decay: t.NumberC;
|
158
|
+
colors: t.ArrayC<t.StringC>;
|
159
|
+
random: t.AnyC;
|
160
|
+
}>, t.NullC]>;
|
161
|
+
availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
162
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
|
163
|
+
operator: t.KeyofC<{
|
164
|
+
includes: null;
|
165
|
+
endsWith: null;
|
166
|
+
startsWith: null;
|
167
|
+
is: null;
|
168
|
+
isTruthy: null;
|
169
|
+
isFalsy: null;
|
170
|
+
isNot: null;
|
171
|
+
isTrue: null;
|
172
|
+
isFalse: null;
|
173
|
+
doesNotInclude: null;
|
174
|
+
matchesRegex: null;
|
175
|
+
isGreaterThan: null;
|
176
|
+
isLessThan: null;
|
177
|
+
isDefined: null;
|
178
|
+
isNotDefined: null;
|
179
|
+
classnameOnPage: null;
|
180
|
+
idOnPage: null;
|
181
|
+
}>;
|
182
|
+
}>, t.PartialC<{
|
183
|
+
field: t.StringC;
|
184
|
+
value: t.StringC;
|
185
|
+
reason: t.StringC;
|
186
|
+
}>]>>;
|
187
|
+
recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
|
188
|
+
type: t.LiteralC<"always">;
|
189
|
+
}>, t.PartialC<{
|
190
|
+
operator: t.UnionC<[t.UndefinedC, t.NullC]>;
|
191
|
+
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
192
|
+
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
193
|
+
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
194
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
195
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
|
196
|
+
operator: t.KeyofC<{
|
197
|
+
includes: null;
|
198
|
+
endsWith: null;
|
199
|
+
startsWith: null;
|
200
|
+
is: null;
|
201
|
+
isTruthy: null;
|
202
|
+
isFalsy: null;
|
203
|
+
isNot: null;
|
204
|
+
isTrue: null;
|
205
|
+
isFalse: null;
|
206
|
+
doesNotInclude: null;
|
207
|
+
matchesRegex: null;
|
208
|
+
isGreaterThan: null;
|
209
|
+
isLessThan: null;
|
210
|
+
isDefined: null;
|
211
|
+
isNotDefined: null;
|
212
|
+
classnameOnPage: null;
|
213
|
+
idOnPage: null;
|
214
|
+
}>;
|
215
|
+
}>, t.PartialC<{
|
216
|
+
field: t.StringC;
|
217
|
+
value: t.StringC;
|
218
|
+
reason: t.StringC;
|
219
|
+
}>]>]>>;
|
220
|
+
}>]>;
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
declare const OrganizationAdditionalV: t.TypeC<{
|
3
|
+
launcher_type: t.UnionC<[t.LiteralC<"minimal">, t.LiteralC<"alternate">, t.LiteralC<"prompt">, t.LiteralC<"none">]>;
|
4
|
+
launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
|
5
|
+
show_launcher_recommendations: t.BooleanC;
|
6
|
+
recommendations_type: t.UnionC<[t.LiteralC<"None">, t.LiteralC<"Custom">, t.LiteralC<"Algorithm">]>;
|
7
|
+
launcher_offset_x: t.NumberC;
|
8
|
+
launcher_offset_y: t.NumberC;
|
9
|
+
theme: t.ObjectC;
|
10
|
+
icon: t.StringC;
|
11
|
+
icon_suggest: t.StringC;
|
12
|
+
icon_tutorial: t.StringC;
|
13
|
+
icon_go_forward: t.StringC;
|
14
|
+
resource_options: t.RecordC<t.StringC, t.PartialC<{
|
15
|
+
name: t.StringC;
|
16
|
+
search: t.BooleanC;
|
17
|
+
label_field: t.StringC;
|
18
|
+
useCategory: t.BooleanC;
|
19
|
+
search_fields: t.ArrayC<t.StringC>;
|
20
|
+
auto_execute: t.BooleanC;
|
21
|
+
unfurl: t.BooleanC;
|
22
|
+
description_field: t.StringC;
|
23
|
+
icon: t.StringC;
|
24
|
+
sort_key: t.NumberC;
|
25
|
+
max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
26
|
+
sortFunction: t.AnyC;
|
27
|
+
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;
|
28
|
+
showResources: t.BooleanC;
|
29
|
+
show_with_no_results: t.BooleanC;
|
30
|
+
search_tab_enabled: t.BooleanC;
|
31
|
+
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
32
|
+
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
33
|
+
setting_pin_to_bottom: t.BooleanC;
|
34
|
+
}>>;
|
35
|
+
should_show_onboarding: t.BooleanC;
|
36
|
+
last_snippet_request: t.UnionC<[t.StringC, t.NullC]>;
|
37
|
+
last_snippet_request_in_production: t.UnionC<[t.StringC, t.NullC]>;
|
38
|
+
branding: t.StringC;
|
39
|
+
custom_call_to_action: t.StringC;
|
40
|
+
search_fuzzy_threshold: t.UnionC<[t.NumberC, t.NullC]>;
|
41
|
+
show_skin_editor: t.BooleanC;
|
42
|
+
allow_event_handlers: t.BooleanC;
|
43
|
+
in_bar_feedback: t.BooleanC;
|
44
|
+
summon_hotkey_override: t.UnionC<[t.StringC, t.NullC]>;
|
45
|
+
end_user_hotkeys: t.BooleanC;
|
46
|
+
releases_available: t.BooleanC;
|
47
|
+
releases_enabled: t.BooleanC;
|
48
|
+
}>;
|
49
|
+
export declare const defaults: t.TypeOf<typeof OrganizationAdditionalV>;
|
50
|
+
export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
51
|
+
id: t.UnionC<[t.NumberC, t.StringC]>;
|
52
|
+
name: t.StringC;
|
53
|
+
created: t.StringC;
|
54
|
+
}>, t.PartialC<{}>]>, t.TypeC<{
|
55
|
+
launcher_type: t.UnionC<[t.LiteralC<"minimal">, t.LiteralC<"alternate">, t.LiteralC<"prompt">, t.LiteralC<"none">]>;
|
56
|
+
launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
|
57
|
+
show_launcher_recommendations: t.BooleanC;
|
58
|
+
recommendations_type: t.UnionC<[t.LiteralC<"None">, t.LiteralC<"Custom">, t.LiteralC<"Algorithm">]>;
|
59
|
+
launcher_offset_x: t.NumberC;
|
60
|
+
launcher_offset_y: t.NumberC;
|
61
|
+
theme: t.ObjectC;
|
62
|
+
icon: t.StringC;
|
63
|
+
icon_suggest: t.StringC;
|
64
|
+
icon_tutorial: t.StringC;
|
65
|
+
icon_go_forward: t.StringC;
|
66
|
+
resource_options: t.RecordC<t.StringC, t.PartialC<{
|
67
|
+
name: t.StringC;
|
68
|
+
search: t.BooleanC;
|
69
|
+
label_field: t.StringC;
|
70
|
+
useCategory: t.BooleanC;
|
71
|
+
search_fields: t.ArrayC<t.StringC>;
|
72
|
+
auto_execute: t.BooleanC;
|
73
|
+
unfurl: t.BooleanC;
|
74
|
+
description_field: t.StringC;
|
75
|
+
icon: t.StringC;
|
76
|
+
sort_key: t.NumberC;
|
77
|
+
max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
78
|
+
sortFunction: t.AnyC;
|
79
|
+
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;
|
80
|
+
showResources: t.BooleanC;
|
81
|
+
show_with_no_results: t.BooleanC;
|
82
|
+
search_tab_enabled: t.BooleanC;
|
83
|
+
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
84
|
+
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
85
|
+
setting_pin_to_bottom: t.BooleanC;
|
86
|
+
}>>;
|
87
|
+
should_show_onboarding: t.BooleanC;
|
88
|
+
last_snippet_request: t.UnionC<[t.StringC, t.NullC]>;
|
89
|
+
last_snippet_request_in_production: t.UnionC<[t.StringC, t.NullC]>;
|
90
|
+
branding: t.StringC;
|
91
|
+
custom_call_to_action: t.StringC;
|
92
|
+
search_fuzzy_threshold: t.UnionC<[t.NumberC, t.NullC]>;
|
93
|
+
show_skin_editor: t.BooleanC;
|
94
|
+
allow_event_handlers: t.BooleanC;
|
95
|
+
in_bar_feedback: t.BooleanC;
|
96
|
+
summon_hotkey_override: t.UnionC<[t.StringC, t.NullC]>;
|
97
|
+
end_user_hotkeys: t.BooleanC;
|
98
|
+
releases_available: t.BooleanC;
|
99
|
+
releases_enabled: t.BooleanC;
|
100
|
+
}>]>;
|
101
|
+
export declare type IOrganizationType = t.TypeOf<typeof OrganizationV>;
|
102
|
+
export {};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const ResourceSettingsV: t.PartialC<{
|
3
|
+
name: t.StringC;
|
4
|
+
search: t.BooleanC;
|
5
|
+
label_field: t.StringC;
|
6
|
+
useCategory: t.BooleanC;
|
7
|
+
search_fields: t.ArrayC<t.StringC>;
|
8
|
+
auto_execute: t.BooleanC;
|
9
|
+
unfurl: t.BooleanC;
|
10
|
+
description_field: t.StringC;
|
11
|
+
icon: t.StringC;
|
12
|
+
sort_key: t.NumberC;
|
13
|
+
max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
14
|
+
sortFunction: t.AnyC;
|
15
|
+
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;
|
16
|
+
showResources: t.BooleanC;
|
17
|
+
show_with_no_results: t.BooleanC;
|
18
|
+
search_tab_enabled: t.BooleanC;
|
19
|
+
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
20
|
+
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
21
|
+
setting_pin_to_bottom: t.BooleanC;
|
22
|
+
}>;
|
23
|
+
export declare const ResourceSettingsByContextKeyV: t.RecordC<t.StringC, t.PartialC<{
|
24
|
+
name: t.StringC;
|
25
|
+
search: t.BooleanC;
|
26
|
+
label_field: t.StringC;
|
27
|
+
useCategory: t.BooleanC;
|
28
|
+
search_fields: t.ArrayC<t.StringC>;
|
29
|
+
auto_execute: t.BooleanC;
|
30
|
+
unfurl: t.BooleanC;
|
31
|
+
description_field: t.StringC;
|
32
|
+
icon: t.StringC;
|
33
|
+
sort_key: t.NumberC;
|
34
|
+
max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
35
|
+
sortFunction: t.AnyC;
|
36
|
+
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;
|
37
|
+
showResources: t.BooleanC;
|
38
|
+
show_with_no_results: t.BooleanC;
|
39
|
+
search_tab_enabled: t.BooleanC;
|
40
|
+
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
41
|
+
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
42
|
+
setting_pin_to_bottom: t.BooleanC;
|
43
|
+
}>>;
|