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,192 +0,0 @@
|
|
1
|
-
/*******************************************************************************/
|
2
|
-
import * as t from 'io-ts';
|
3
|
-
import { GenericBatchRequest } from './generics';
|
4
|
-
export declare const CommandCategoryV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
5
|
-
id: t.NumberC;
|
6
|
-
organization: t.UnionC<[t.NumberC, t.StringC]>;
|
7
|
-
name: t.StringC;
|
8
|
-
}>, t.PartialC<{}>]>, t.TypeC<{
|
9
|
-
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
10
|
-
icon: t.UnionC<[t.StringC, t.NullC]>;
|
11
|
-
icon_color: t.UnionC<[t.StringC, t.NullC]>;
|
12
|
-
image_color: t.UnionC<[t.StringC, t.NullC]>;
|
13
|
-
image: t.UnionC<[t.StringC, t.NullC]>;
|
14
|
-
render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
15
|
-
setting_hide_before_search: t.BooleanC;
|
16
|
-
setting_max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
17
|
-
setting_pin_to_bottom: t.BooleanC;
|
18
|
-
search_tab_enabled: t.BooleanC;
|
19
|
-
search_tab_name: t.StringC;
|
20
|
-
slash_filter_enabled: t.BooleanC;
|
21
|
-
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
22
|
-
search_tab_instruction: t.StringC;
|
23
|
-
track_recents: t.BooleanC;
|
24
|
-
}>, t.PartialC<{
|
25
|
-
contains_hotloaded_commands: t.BooleanC;
|
26
|
-
}>]>;
|
27
|
-
export declare const BatchEditorCategoryResponseV: t.TypeC<{
|
28
|
-
batch: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
29
|
-
id: t.NumberC;
|
30
|
-
organization: t.UnionC<[t.NumberC, t.StringC]>;
|
31
|
-
name: t.StringC;
|
32
|
-
}>, t.PartialC<{}>]>, t.TypeC<{
|
33
|
-
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
34
|
-
icon: t.UnionC<[t.StringC, t.NullC]>;
|
35
|
-
icon_color: t.UnionC<[t.StringC, t.NullC]>;
|
36
|
-
image_color: t.UnionC<[t.StringC, t.NullC]>;
|
37
|
-
image: t.UnionC<[t.StringC, t.NullC]>;
|
38
|
-
render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
39
|
-
setting_hide_before_search: t.BooleanC;
|
40
|
-
setting_max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
41
|
-
setting_pin_to_bottom: t.BooleanC;
|
42
|
-
search_tab_enabled: t.BooleanC;
|
43
|
-
search_tab_name: t.StringC;
|
44
|
-
slash_filter_enabled: t.BooleanC;
|
45
|
-
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
46
|
-
search_tab_instruction: t.StringC;
|
47
|
-
track_recents: t.BooleanC;
|
48
|
-
}>, t.PartialC<{
|
49
|
-
contains_hotloaded_commands: t.BooleanC;
|
50
|
-
}>]>>;
|
51
|
-
}>;
|
52
|
-
export declare class CommandCategory {
|
53
|
-
static create: (object: {
|
54
|
-
id: number;
|
55
|
-
organization: string | number;
|
56
|
-
name: string;
|
57
|
-
} & {} & {
|
58
|
-
sort_key: number | null;
|
59
|
-
icon: string | null;
|
60
|
-
icon_color: string | null;
|
61
|
-
image_color: string | null;
|
62
|
-
image: string | null;
|
63
|
-
render_as: "grid" | "list";
|
64
|
-
setting_hide_before_search: boolean;
|
65
|
-
setting_max_options_count: number | null;
|
66
|
-
setting_pin_to_bottom: boolean;
|
67
|
-
search_tab_enabled: boolean;
|
68
|
-
search_tab_name: string;
|
69
|
-
slash_filter_enabled: boolean;
|
70
|
-
slash_filter_keyword: string | null;
|
71
|
-
search_tab_instruction: string;
|
72
|
-
track_recents: boolean;
|
73
|
-
} & {
|
74
|
-
contains_hotloaded_commands?: boolean | undefined;
|
75
|
-
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
76
|
-
id: number;
|
77
|
-
organization: string | number;
|
78
|
-
name: string;
|
79
|
-
} & {} & {
|
80
|
-
sort_key: number | null;
|
81
|
-
icon: string | null;
|
82
|
-
icon_color: string | null;
|
83
|
-
image_color: string | null;
|
84
|
-
image: string | null;
|
85
|
-
render_as: "grid" | "list";
|
86
|
-
setting_hide_before_search: boolean;
|
87
|
-
setting_max_options_count: number | null;
|
88
|
-
setting_pin_to_bottom: boolean;
|
89
|
-
search_tab_enabled: boolean;
|
90
|
-
search_tab_name: string;
|
91
|
-
slash_filter_enabled: boolean;
|
92
|
-
slash_filter_keyword: string | null;
|
93
|
-
search_tab_instruction: string;
|
94
|
-
track_recents: boolean;
|
95
|
-
} & {
|
96
|
-
contains_hotloaded_commands?: boolean | undefined;
|
97
|
-
}>;
|
98
|
-
static update: (object: {
|
99
|
-
id: number;
|
100
|
-
organization: string | number;
|
101
|
-
name: string;
|
102
|
-
} & {} & {
|
103
|
-
sort_key: number | null;
|
104
|
-
icon: string | null;
|
105
|
-
icon_color: string | null;
|
106
|
-
image_color: string | null;
|
107
|
-
image: string | null;
|
108
|
-
render_as: "grid" | "list";
|
109
|
-
setting_hide_before_search: boolean;
|
110
|
-
setting_max_options_count: number | null;
|
111
|
-
setting_pin_to_bottom: boolean;
|
112
|
-
search_tab_enabled: boolean;
|
113
|
-
search_tab_name: string;
|
114
|
-
slash_filter_enabled: boolean;
|
115
|
-
slash_filter_keyword: string | null;
|
116
|
-
search_tab_instruction: string;
|
117
|
-
track_recents: boolean;
|
118
|
-
} & {
|
119
|
-
contains_hotloaded_commands?: boolean | undefined;
|
120
|
-
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
121
|
-
id: number;
|
122
|
-
organization: string | number;
|
123
|
-
name: string;
|
124
|
-
} & {} & {
|
125
|
-
sort_key: number | null;
|
126
|
-
icon: string | null;
|
127
|
-
icon_color: string | null;
|
128
|
-
image_color: string | null;
|
129
|
-
image: string | null;
|
130
|
-
render_as: "grid" | "list";
|
131
|
-
setting_hide_before_search: boolean;
|
132
|
-
setting_max_options_count: number | null;
|
133
|
-
setting_pin_to_bottom: boolean;
|
134
|
-
search_tab_enabled: boolean;
|
135
|
-
search_tab_name: string;
|
136
|
-
slash_filter_enabled: boolean;
|
137
|
-
slash_filter_keyword: string | null;
|
138
|
-
search_tab_instruction: string;
|
139
|
-
track_recents: boolean;
|
140
|
-
} & {
|
141
|
-
contains_hotloaded_commands?: boolean | undefined;
|
142
|
-
}>;
|
143
|
-
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
144
|
-
static decode: (data: any) => {
|
145
|
-
id: number;
|
146
|
-
organization: string | number;
|
147
|
-
name: string;
|
148
|
-
} & {} & {
|
149
|
-
sort_key: number | null;
|
150
|
-
icon: string | null;
|
151
|
-
icon_color: string | null;
|
152
|
-
image_color: string | null;
|
153
|
-
image: string | null;
|
154
|
-
render_as: "grid" | "list";
|
155
|
-
setting_hide_before_search: boolean;
|
156
|
-
setting_max_options_count: number | null;
|
157
|
-
setting_pin_to_bottom: boolean;
|
158
|
-
search_tab_enabled: boolean;
|
159
|
-
search_tab_name: string;
|
160
|
-
slash_filter_enabled: boolean;
|
161
|
-
slash_filter_keyword: string | null;
|
162
|
-
search_tab_instruction: string;
|
163
|
-
track_recents: boolean;
|
164
|
-
} & {
|
165
|
-
contains_hotloaded_commands?: boolean | undefined;
|
166
|
-
};
|
167
|
-
static batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
|
168
|
-
batch: ({
|
169
|
-
id: number;
|
170
|
-
organization: string | number;
|
171
|
-
name: string;
|
172
|
-
} & {} & {
|
173
|
-
sort_key: number | null;
|
174
|
-
icon: string | null;
|
175
|
-
icon_color: string | null;
|
176
|
-
image_color: string | null;
|
177
|
-
image: string | null;
|
178
|
-
render_as: "grid" | "list";
|
179
|
-
setting_hide_before_search: boolean;
|
180
|
-
setting_max_options_count: number | null;
|
181
|
-
setting_pin_to_bottom: boolean;
|
182
|
-
search_tab_enabled: boolean;
|
183
|
-
search_tab_name: string;
|
184
|
-
slash_filter_enabled: boolean;
|
185
|
-
slash_filter_keyword: string | null;
|
186
|
-
search_tab_instruction: string;
|
187
|
-
track_recents: boolean;
|
188
|
-
} & {
|
189
|
-
contains_hotloaded_commands?: boolean | undefined;
|
190
|
-
})[];
|
191
|
-
}>;
|
192
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const ConfettiConfigV: t.PartialC<{
|
3
|
-
angle: t.NumberC;
|
4
|
-
spread: t.NumberC;
|
5
|
-
width: t.StringC;
|
6
|
-
height: t.StringC;
|
7
|
-
duration: t.NumberC;
|
8
|
-
dragFriction: t.NumberC;
|
9
|
-
stagger: t.NumberC;
|
10
|
-
startVelocity: t.NumberC;
|
11
|
-
elementCount: t.NumberC;
|
12
|
-
decay: t.NumberC;
|
13
|
-
colors: t.ArrayC<t.StringC>;
|
14
|
-
random: t.AnyC;
|
15
|
-
}>;
|
16
|
-
export declare type IConfettiConfig = t.TypeOf<typeof ConfettiConfigV>;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const ContextV: t.IntersectionC<[t.TypeC<{
|
3
|
-
id: t.NumberC;
|
4
|
-
name: t.StringC;
|
5
|
-
organization: t.StringC;
|
6
|
-
value: t.RecordC<t.StringC, t.AnyC>;
|
7
|
-
}>, t.PartialC<{}>]>;
|
8
|
-
export declare class Context {
|
9
|
-
static create: (object: {
|
10
|
-
id: number;
|
11
|
-
name: string;
|
12
|
-
organization: string;
|
13
|
-
value: {
|
14
|
-
[x: string]: any;
|
15
|
-
};
|
16
|
-
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
17
|
-
id: number;
|
18
|
-
name: string;
|
19
|
-
organization: string;
|
20
|
-
value: {
|
21
|
-
[x: string]: any;
|
22
|
-
};
|
23
|
-
} & {}>;
|
24
|
-
static update: (object: {
|
25
|
-
id: number;
|
26
|
-
name: string;
|
27
|
-
organization: string;
|
28
|
-
value: {
|
29
|
-
[x: string]: any;
|
30
|
-
};
|
31
|
-
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
32
|
-
id: number;
|
33
|
-
name: string;
|
34
|
-
organization: string;
|
35
|
-
value: {
|
36
|
-
[x: string]: any;
|
37
|
-
};
|
38
|
-
} & {}>;
|
39
|
-
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
40
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const DashboardFlagsV: t.TypeC<{
|
3
|
-
show_onboarding: t.BooleanC;
|
4
|
-
show_appsumo_onboarding: t.BooleanC;
|
5
|
-
}>;
|
6
|
-
export declare const DashboardFlagsPartialV: t.PartialC<{
|
7
|
-
show_onboarding: t.BooleanC;
|
8
|
-
show_appsumo_onboarding: t.BooleanC;
|
9
|
-
}>;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/*******************************************************************************/
|
2
|
-
import * as t from 'io-ts';
|
3
|
-
import { IEditorCommandType } from './types';
|
4
|
-
export declare const DetailPreviewObjectV: t.IntersectionC<[t.TypeC<{
|
5
|
-
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
6
|
-
value: t.StringC;
|
7
|
-
}>, t.PartialC<{
|
8
|
-
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
9
|
-
}>]>;
|
10
|
-
export declare type DetailPreviewObjectType = t.TypeOf<typeof DetailPreviewObjectV> & unknown;
|
11
|
-
export declare type DetailPreviewType = string | DetailPreviewObjectType | (string | DetailPreviewObjectType)[];
|
12
|
-
export declare type DataRowMetadata = {
|
13
|
-
type: 'command' | 'parameter';
|
14
|
-
label: string;
|
15
|
-
value: any;
|
16
|
-
contextKey?: string;
|
17
|
-
uid?: string;
|
18
|
-
inputText?: string;
|
19
|
-
};
|
20
|
-
export declare const DEFAULT_DETAIL_PREVIEW_TYPE: DetailPreviewObjectType['type'];
|
21
|
-
export declare const standardize: (item: undefined | null | DetailPreviewType) => null | DetailPreviewObjectType[];
|
22
|
-
export declare const getFirstDetail: (detail?: DetailPreviewType | null | undefined) => DetailPreviewObjectType | null;
|
23
|
-
/** `true` iff the help document's body should also be used as the 'preview' for this command */
|
24
|
-
export declare const shouldUseHelpDoc: (command: IEditorCommandType) => boolean;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const EnvironmentV: t.TypeC<{
|
3
|
-
env: t.StringC;
|
4
|
-
version: t.UnionC<[t.NumberC, t.StringC, t.NullC, t.UndefinedC]>;
|
5
|
-
}>;
|
6
|
-
export declare class Environment {
|
7
|
-
static decode: (data: any) => {
|
8
|
-
env: string;
|
9
|
-
version: string | number | null | undefined;
|
10
|
-
};
|
11
|
-
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
declare function decodeToPromise<T, O, I>(validator: t.Type<T, O, I>, input: I): Promise<T>;
|
3
|
-
declare function decodeThrowing<T, O, I>(validator: t.Type<T, O, I>, input: I): T;
|
4
|
-
declare const GenericObject: t.TypeC<{
|
5
|
-
id: t.UnionC<[t.NumberC, t.StringC]>;
|
6
|
-
}>;
|
7
|
-
export declare type GenericObjectType = t.TypeOf<typeof GenericObject>;
|
8
|
-
export declare const GenericBatchRequest: t.TypeC<{
|
9
|
-
batch: t.ArrayC<t.UnknownC>;
|
10
|
-
note: t.StringC;
|
11
|
-
}>;
|
12
|
-
declare function createObject<T, Q, O, I>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
13
|
-
declare function readObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string): (arg0: string, params?: Record<string, string>, callbacks?: {
|
14
|
-
onSuccess?: () => void;
|
15
|
-
onError?: (err: string) => void;
|
16
|
-
}) => Promise<T>;
|
17
|
-
declare function listObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, obj: string): (onSuccess?: () => void, onError?: (err: string) => void) => Promise<T[]>;
|
18
|
-
declare function updateObject<T, O, I, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
19
|
-
declare function deleteObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, params?: Record<string, string>): (id: number | string, onSuccess?: () => void, onError?: (err: string) => void) => Promise<void>;
|
20
|
-
declare function readObjectDetail<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, detail: string): (arg0: string, urlArgs?: {
|
21
|
-
[arg: string]: string;
|
22
|
-
}, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
23
|
-
declare function updateObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string): (object: Q, urlArgs?: {
|
24
|
-
[arg: string]: string;
|
25
|
-
}, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
26
|
-
declare function createObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string): (object: Q, onSuccess?: () => void, onError?: (err: string) => void, urlArgs?: {
|
27
|
-
[arg: string]: string;
|
28
|
-
}) => Promise<T>;
|
29
|
-
declare function loadIDList(ids: number[], klass: any, method?: string, urlArgs?: {
|
30
|
-
[arg: string]: string;
|
31
|
-
}): Promise<any[]>;
|
32
|
-
declare function read<T, O, I>(output: t.Type<T, O, I> & t.HasProps, url: string): (params?: Record<string, string>, callbacks?: {
|
33
|
-
onSuccess?: () => void;
|
34
|
-
onError?: (err: string) => void;
|
35
|
-
}) => Promise<T>;
|
36
|
-
declare function update<T, O, I, Q>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string): (object: Q, params?: Record<string, string>, callbacks?: {
|
37
|
-
onSuccess?: () => void;
|
38
|
-
onError?: (err: string) => void;
|
39
|
-
}) => Promise<T>;
|
40
|
-
export { createObject, createObjectDetail, read, readObject, listObject, update, updateObject, deleteObject, GenericObject, readObjectDetail, updateObjectDetail, loadIDList, decodeToPromise, decodeThrowing, };
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const GuideV: t.IntersectionC<[t.TypeC<{
|
3
|
-
id: t.NumberC;
|
4
|
-
organization: t.StringC;
|
5
|
-
event: t.StringC;
|
6
|
-
nudge: t.StringC;
|
7
|
-
guidance: t.StringC;
|
8
|
-
}>, t.PartialC<{}>]>;
|
9
|
-
export declare class Guide {
|
10
|
-
static create: (object: {
|
11
|
-
id: number;
|
12
|
-
organization: string;
|
13
|
-
event: string;
|
14
|
-
nudge: string;
|
15
|
-
guidance: string;
|
16
|
-
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
17
|
-
id: number;
|
18
|
-
organization: string;
|
19
|
-
event: string;
|
20
|
-
nudge: string;
|
21
|
-
guidance: string;
|
22
|
-
} & {}>;
|
23
|
-
static update: (object: {
|
24
|
-
id: number;
|
25
|
-
organization: string;
|
26
|
-
event: string;
|
27
|
-
nudge: string;
|
28
|
-
guidance: string;
|
29
|
-
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
30
|
-
id: number;
|
31
|
-
organization: string;
|
32
|
-
event: string;
|
33
|
-
nudge: string;
|
34
|
-
guidance: string;
|
35
|
-
} & {}>;
|
36
|
-
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
37
|
-
}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const HelpDocsIntegrationV: t.IntersectionC<[t.TypeC<{
|
3
|
-
id: t.NumberC;
|
4
|
-
organization: t.StringC;
|
5
|
-
type: t.StringC;
|
6
|
-
schedule: t.StringC;
|
7
|
-
meta: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>;
|
8
|
-
}>, t.PartialC<{}>]>;
|
9
|
-
export declare class HelpDocsIntegration {
|
10
|
-
static create: (object: {
|
11
|
-
id: number;
|
12
|
-
organization: string;
|
13
|
-
type: string;
|
14
|
-
schedule: string;
|
15
|
-
meta: {
|
16
|
-
[x: string]: any;
|
17
|
-
} | null;
|
18
|
-
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
19
|
-
id: number;
|
20
|
-
organization: string;
|
21
|
-
type: string;
|
22
|
-
schedule: string;
|
23
|
-
meta: {
|
24
|
-
[x: string]: any;
|
25
|
-
} | null;
|
26
|
-
} & {}>;
|
27
|
-
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
28
|
-
onSuccess?: (() => void) | undefined;
|
29
|
-
onError?: ((err: string) => void) | undefined;
|
30
|
-
} | undefined) => Promise<{
|
31
|
-
id: number;
|
32
|
-
organization: string;
|
33
|
-
type: string;
|
34
|
-
schedule: string;
|
35
|
-
meta: {
|
36
|
-
[x: string]: any;
|
37
|
-
} | null;
|
38
|
-
} & {}>;
|
39
|
-
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
40
|
-
id: number;
|
41
|
-
organization: string;
|
42
|
-
type: string;
|
43
|
-
schedule: string;
|
44
|
-
meta: {
|
45
|
-
[x: string]: any;
|
46
|
-
} | null;
|
47
|
-
} & {})[]>;
|
48
|
-
static update: (object: {
|
49
|
-
id: number;
|
50
|
-
organization: string;
|
51
|
-
type: string;
|
52
|
-
schedule: string;
|
53
|
-
meta: {
|
54
|
-
[x: string]: any;
|
55
|
-
} | null;
|
56
|
-
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
57
|
-
id: number;
|
58
|
-
organization: string;
|
59
|
-
type: string;
|
60
|
-
schedule: string;
|
61
|
-
meta: {
|
62
|
-
[x: string]: any;
|
63
|
-
} | null;
|
64
|
-
} & {}>;
|
65
|
-
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
66
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const HelpDocsSyncV: t.IntersectionC<[t.TypeC<{
|
3
|
-
id: t.NumberC;
|
4
|
-
integration: t.NumberC;
|
5
|
-
scheduled: t.BooleanC;
|
6
|
-
}>, t.PartialC<{
|
7
|
-
commands: t.ArrayC<t.NumberC>;
|
8
|
-
started: t.StringC;
|
9
|
-
ended: t.StringC;
|
10
|
-
log: t.ArrayC<t.ArrayC<t.AnyC>>;
|
11
|
-
}>]>;
|
12
|
-
export declare class HelpDocsSync {
|
13
|
-
static create: (object: {
|
14
|
-
id: number;
|
15
|
-
integration: number;
|
16
|
-
scheduled: boolean;
|
17
|
-
} & {
|
18
|
-
commands?: number[] | undefined;
|
19
|
-
started?: string | undefined;
|
20
|
-
ended?: string | undefined;
|
21
|
-
log?: any[][] | undefined;
|
22
|
-
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
23
|
-
id: number;
|
24
|
-
integration: number;
|
25
|
-
scheduled: boolean;
|
26
|
-
} & {
|
27
|
-
commands?: number[] | undefined;
|
28
|
-
started?: string | undefined;
|
29
|
-
ended?: string | undefined;
|
30
|
-
log?: any[][] | undefined;
|
31
|
-
}>;
|
32
|
-
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
33
|
-
id: number;
|
34
|
-
integration: number;
|
35
|
-
scheduled: boolean;
|
36
|
-
} & {
|
37
|
-
commands?: number[] | undefined;
|
38
|
-
started?: string | undefined;
|
39
|
-
ended?: string | undefined;
|
40
|
-
log?: any[][] | undefined;
|
41
|
-
})[]>;
|
42
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
import * as t from 'io-ts';
|
2
|
-
export declare const AdminAction: t.TypeC<{
|
3
|
-
type: t.LiteralC<"admin">;
|
4
|
-
value: t.StringC;
|
5
|
-
}>;
|
6
|
-
export declare const CallbackAction: t.TypeC<{
|
7
|
-
type: t.LiteralC<"callback">;
|
8
|
-
value: t.StringC;
|
9
|
-
}>;
|
10
|
-
export declare const OpenBarAction: t.IntersectionC<[t.TypeC<{
|
11
|
-
type: t.LiteralC<"open_bar">;
|
12
|
-
}>, t.PartialC<{
|
13
|
-
value: t.StringC;
|
14
|
-
categoryFilter: t.NumberC;
|
15
|
-
}>]>;
|
16
|
-
export declare const LinkAction: t.IntersectionC<[t.TypeC<{
|
17
|
-
type: t.LiteralC<"link">;
|
18
|
-
value: t.StringC;
|
19
|
-
}>, t.PartialC<{
|
20
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
21
|
-
}>]>;
|
22
|
-
export declare const ClickAction: t.TypeC<{
|
23
|
-
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
24
|
-
value: t.ArrayC<t.StringC>;
|
25
|
-
}>;
|
26
|
-
export declare const BuiltInAction: t.TypeC<{
|
27
|
-
type: t.LiteralC<"builtin">;
|
28
|
-
value: t.StringC;
|
29
|
-
}>;
|
30
|
-
export declare const WebhookAction: t.TypeC<{
|
31
|
-
type: t.LiteralC<"webhook">;
|
32
|
-
value: t.StringC;
|
33
|
-
}>;
|
34
|
-
export declare const AppcuesAction: t.TypeC<{
|
35
|
-
type: t.LiteralC<"appcues">;
|
36
|
-
value: t.StringC;
|
37
|
-
}>;
|
38
|
-
export declare const ScriptAction: t.TypeC<{
|
39
|
-
type: t.LiteralC<"script">;
|
40
|
-
value: t.StringC;
|
41
|
-
}>;
|
42
|
-
export declare const VideoAction: t.TypeC<{
|
43
|
-
type: t.LiteralC<"video">;
|
44
|
-
value: t.StringC;
|
45
|
-
}>;
|
46
|
-
export declare const HelpDocAction: t.IntersectionC<[t.TypeC<{
|
47
|
-
type: t.LiteralC<"helpdoc">;
|
48
|
-
value: t.StringC;
|
49
|
-
}>, t.PartialC<{
|
50
|
-
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.LiteralC<"help_explorer">, t.UndefinedC]>;
|
51
|
-
}>]>;
|
52
|
-
export declare const CommandAction: t.TypeC<{
|
53
|
-
type: t.LiteralC<"execute_command">;
|
54
|
-
meta: t.TypeC<{
|
55
|
-
command: t.StringC;
|
56
|
-
}>;
|
57
|
-
}>;
|
58
|
-
export declare const NudgeAction: t.TypeC<{
|
59
|
-
type: t.LiteralC<"nudge">;
|
60
|
-
value: t.NumberC;
|
61
|
-
}>;
|
62
|
-
export declare const RequestV: t.IntersectionC<[t.TypeC<{
|
63
|
-
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
|
64
|
-
url: t.StringC;
|
65
|
-
}>, t.PartialC<{
|
66
|
-
headers: t.UnknownRecordC;
|
67
|
-
body: t.UnknownRecordC;
|
68
|
-
onSend: t.StringC;
|
69
|
-
onSuccess: t.StringC;
|
70
|
-
onError: t.StringC;
|
71
|
-
}>]>;
|
72
|
-
export declare const RequestAction: t.TypeC<{
|
73
|
-
type: t.LiteralC<"request">;
|
74
|
-
value: t.IntersectionC<[t.TypeC<{
|
75
|
-
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
|
76
|
-
url: t.StringC;
|
77
|
-
}>, t.PartialC<{
|
78
|
-
headers: t.UnknownRecordC;
|
79
|
-
body: t.UnknownRecordC;
|
80
|
-
onSend: t.StringC;
|
81
|
-
onSuccess: t.StringC;
|
82
|
-
onError: t.StringC;
|
83
|
-
}>]>;
|
84
|
-
}>;
|