commandbar 1.6.6 → 1.6.9
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/build/commandbar-js/src/init.d.ts +1 -1
- package/build/internal/src/client/AddContextOptions.d.ts +54 -3
- package/build/internal/src/client/CommandBarClientSDK.d.ts +69 -20
- package/build/internal/src/client/CommandBarSDK.d.ts +8 -1
- package/build/internal/src/client/symbols.d.ts +2 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +48 -1
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +2 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +16 -6
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +16 -4
- package/build/internal/src/middleware/command.d.ts +1271 -23
- package/build/internal/src/middleware/commandCategory.d.ts +6 -0
- package/build/internal/src/middleware/confetti.d.ts +16 -0
- package/build/internal/src/middleware/detailPreview.d.ts +17 -0
- package/build/internal/src/middleware/generics.d.ts +6 -2
- package/build/internal/src/middleware/helpers/argument.d.ts +8 -0
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +62 -0
- package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
- package/build/internal/src/middleware/organization.d.ts +154 -58
- package/build/internal/src/middleware/types.d.ts +64 -4
- package/package.json +1 -1
- package/src/init.ts +1 -1
@@ -7,6 +7,7 @@ export declare const CommandCategoryV: t.IntersectionC<[t.IntersectionC<[t.TypeC
|
|
7
7
|
}>, t.PartialC<{}>]>, t.TypeC<{
|
8
8
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
9
9
|
icon: t.UnionC<[t.StringC, t.NullC]>;
|
10
|
+
render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
10
11
|
setting_hide_before_search: t.BooleanC;
|
11
12
|
setting_max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
12
13
|
setting_pin_to_bottom: t.BooleanC;
|
@@ -22,6 +23,7 @@ export declare class CommandCategory {
|
|
22
23
|
} & {} & {
|
23
24
|
sort_key: number | null;
|
24
25
|
icon: string | null;
|
26
|
+
render_as: "grid" | "list";
|
25
27
|
setting_hide_before_search: boolean;
|
26
28
|
setting_max_options_count: number | null;
|
27
29
|
setting_pin_to_bottom: boolean;
|
@@ -35,6 +37,7 @@ export declare class CommandCategory {
|
|
35
37
|
} & {} & {
|
36
38
|
sort_key: number | null;
|
37
39
|
icon: string | null;
|
40
|
+
render_as: "grid" | "list";
|
38
41
|
setting_hide_before_search: boolean;
|
39
42
|
setting_max_options_count: number | null;
|
40
43
|
setting_pin_to_bottom: boolean;
|
@@ -49,6 +52,7 @@ export declare class CommandCategory {
|
|
49
52
|
} & {} & {
|
50
53
|
sort_key: number | null;
|
51
54
|
icon: string | null;
|
55
|
+
render_as: "grid" | "list";
|
52
56
|
setting_hide_before_search: boolean;
|
53
57
|
setting_max_options_count: number | null;
|
54
58
|
setting_pin_to_bottom: boolean;
|
@@ -62,6 +66,7 @@ export declare class CommandCategory {
|
|
62
66
|
} & {} & {
|
63
67
|
sort_key: number | null;
|
64
68
|
icon: string | null;
|
69
|
+
render_as: "grid" | "list";
|
65
70
|
setting_hide_before_search: boolean;
|
66
71
|
setting_max_options_count: number | null;
|
67
72
|
setting_pin_to_bottom: boolean;
|
@@ -77,6 +82,7 @@ export declare class CommandCategory {
|
|
77
82
|
} & {} & {
|
78
83
|
sort_key: number | null;
|
79
84
|
icon: string | null;
|
85
|
+
render_as: "grid" | "list";
|
80
86
|
setting_hide_before_search: boolean;
|
81
87
|
setting_max_options_count: number | null;
|
82
88
|
setting_pin_to_bottom: boolean;
|
@@ -0,0 +1,16 @@
|
|
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>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/*******************************************************************************/
|
2
|
+
import * as t from 'io-ts';
|
3
|
+
export declare const DetailPreviewObjectV: t.TypeC<{
|
4
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"reader">, t.LiteralC<"react">]>;
|
5
|
+
value: t.StringC;
|
6
|
+
}>;
|
7
|
+
export declare type DetailPreviewObjectType = t.TypeOf<typeof DetailPreviewObjectV>;
|
8
|
+
export declare type DetailPreviewType = string | DetailPreviewObjectType | (string | DetailPreviewObjectType)[];
|
9
|
+
export declare type DataRowMedata = {
|
10
|
+
type: 'command' | 'parameter';
|
11
|
+
label: string;
|
12
|
+
value: any;
|
13
|
+
contextKey?: string;
|
14
|
+
uid?: string;
|
15
|
+
};
|
16
|
+
export declare const DEFAULT_DETAIL_PREVIEW_TYPE: DetailPreviewObjectType['type'];
|
17
|
+
export declare const standardize: (item: undefined | null | DetailPreviewType) => undefined | DetailPreviewObjectType[];
|
@@ -25,8 +25,12 @@ declare function createObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(
|
|
25
25
|
declare function loadIDList(ids: number[], klass: any, method?: string, urlArgs?: {
|
26
26
|
[arg: string]: string;
|
27
27
|
}): Promise<any[]>;
|
28
|
-
declare function read<T, O, I>(
|
28
|
+
declare function read<T, O, I>(output: t.Type<T, O, I>, url: string): (params?: Record<string, string>, callbacks?: {
|
29
29
|
onSuccess?: () => void;
|
30
30
|
onError?: (err: string) => void;
|
31
31
|
}) => Promise<T>;
|
32
|
-
|
32
|
+
declare function update<T, O, I, Q>(output: t.Type<T, O, I>, input: t.Type<Q, O, I>, url: string): (object: Q, params?: Record<string, string>, callbacks?: {
|
33
|
+
onSuccess?: () => void;
|
34
|
+
onError?: (err: string) => void;
|
35
|
+
}) => Promise<T>;
|
36
|
+
export { createObject, createObjectDetail, read, readObject, listObject, update, updateObject, deleteObject, GenericObject, readObjectDetail, updateObjectDetail, loadIDList, decodeToPromise, decodeThrowing, };
|
@@ -26,6 +26,8 @@ export declare const ContextArgumentV: t.IntersectionC<[t.TypeC<{
|
|
26
26
|
loaded: t.ArrayC<t.AnyC>;
|
27
27
|
allow_create: t.BooleanC;
|
28
28
|
allow_create_label: t.StringC;
|
29
|
+
show_in_record_action_list: t.BooleanC;
|
30
|
+
show_in_default_list: t.BooleanC;
|
29
31
|
}>]>;
|
30
32
|
export declare const SetArgumentV: t.IntersectionC<[t.TypeC<{
|
31
33
|
type: t.LiteralC<"set">;
|
@@ -127,6 +129,8 @@ export declare const ArgumentTypeV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
127
129
|
loaded: t.ArrayC<t.AnyC>;
|
128
130
|
allow_create: t.BooleanC;
|
129
131
|
allow_create_label: t.StringC;
|
132
|
+
show_in_record_action_list: t.BooleanC;
|
133
|
+
show_in_default_list: t.BooleanC;
|
130
134
|
}>]>, t.IntersectionC<[t.TypeC<{
|
131
135
|
type: t.LiteralC<"set">;
|
132
136
|
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
@@ -224,6 +228,8 @@ export declare const ArgumentMapV: t.RecordC<t.StringC, t.UnionC<[t.Intersection
|
|
224
228
|
loaded: t.ArrayC<t.AnyC>;
|
225
229
|
allow_create: t.BooleanC;
|
226
230
|
allow_create_label: t.StringC;
|
231
|
+
show_in_record_action_list: t.BooleanC;
|
232
|
+
show_in_default_list: t.BooleanC;
|
227
233
|
}>]>, t.IntersectionC<[t.TypeC<{
|
228
234
|
type: t.LiteralC<"set">;
|
229
235
|
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
@@ -324,6 +330,8 @@ export declare const StepArgumentTypeV: t.IntersectionC<[t.TypeC<{
|
|
324
330
|
loaded: t.ArrayC<t.AnyC>;
|
325
331
|
allow_create: t.BooleanC;
|
326
332
|
allow_create_label: t.StringC;
|
333
|
+
show_in_record_action_list: t.BooleanC;
|
334
|
+
show_in_default_list: t.BooleanC;
|
327
335
|
}>]>, t.IntersectionC<[t.TypeC<{
|
328
336
|
type: t.LiteralC<"set">;
|
329
337
|
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
@@ -61,6 +61,15 @@ export declare const WebhookTemplateV: t.IntersectionC<[t.TypeC<{
|
|
61
61
|
hoverTooltip: t.BooleanC;
|
62
62
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
63
63
|
}>]>]>;
|
64
|
+
export declare const AppCuesTemplateV: t.IntersectionC<[t.TypeC<{
|
65
|
+
type: t.LiteralC<"appcues">;
|
66
|
+
value: t.StringC;
|
67
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
68
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
69
|
+
object: t.StringC;
|
70
|
+
hoverTooltip: t.BooleanC;
|
71
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
72
|
+
}>]>]>;
|
64
73
|
export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{
|
65
74
|
type: t.LiteralC<"script">;
|
66
75
|
value: t.StringC;
|
@@ -70,6 +79,34 @@ export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{
|
|
70
79
|
hoverTooltip: t.BooleanC;
|
71
80
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
72
81
|
}>]>]>;
|
82
|
+
export declare const RequestV: t.IntersectionC<[t.TypeC<{
|
83
|
+
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
|
84
|
+
url: t.StringC;
|
85
|
+
}>, t.PartialC<{
|
86
|
+
headers: t.UnknownRecordC;
|
87
|
+
body: t.UnknownRecordC;
|
88
|
+
onSend: t.StringC;
|
89
|
+
onSuccess: t.StringC;
|
90
|
+
onError: t.StringC;
|
91
|
+
}>]>;
|
92
|
+
export declare const RequestTemplateV: t.IntersectionC<[t.TypeC<{
|
93
|
+
type: t.LiteralC<"request">;
|
94
|
+
value: t.IntersectionC<[t.TypeC<{
|
95
|
+
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
|
96
|
+
url: t.StringC;
|
97
|
+
}>, t.PartialC<{
|
98
|
+
headers: t.UnknownRecordC;
|
99
|
+
body: t.UnknownRecordC;
|
100
|
+
onSend: t.StringC;
|
101
|
+
onSuccess: t.StringC;
|
102
|
+
onError: t.StringC;
|
103
|
+
}>]>;
|
104
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
105
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
106
|
+
object: t.StringC;
|
107
|
+
hoverTooltip: t.BooleanC;
|
108
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
109
|
+
}>]>]>;
|
73
110
|
export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
74
111
|
type: t.LiteralC<"admin">;
|
75
112
|
value: t.StringC;
|
@@ -126,4 +163,29 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
126
163
|
object: t.StringC;
|
127
164
|
hoverTooltip: t.BooleanC;
|
128
165
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
166
|
+
}>]>]>, t.IntersectionC<[t.TypeC<{
|
167
|
+
type: t.LiteralC<"request">;
|
168
|
+
value: t.IntersectionC<[t.TypeC<{
|
169
|
+
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
|
170
|
+
url: t.StringC;
|
171
|
+
}>, t.PartialC<{
|
172
|
+
headers: t.UnknownRecordC;
|
173
|
+
body: t.UnknownRecordC;
|
174
|
+
onSend: t.StringC;
|
175
|
+
onSuccess: t.StringC;
|
176
|
+
onError: t.StringC;
|
177
|
+
}>]>;
|
178
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
179
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
180
|
+
object: t.StringC;
|
181
|
+
hoverTooltip: t.BooleanC;
|
182
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
183
|
+
}>]>]>, t.IntersectionC<[t.TypeC<{
|
184
|
+
type: t.LiteralC<"appcues">;
|
185
|
+
value: t.StringC;
|
186
|
+
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
187
|
+
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
188
|
+
object: t.StringC;
|
189
|
+
hoverTooltip: t.BooleanC;
|
190
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
129
191
|
}>]>]>]>;
|
@@ -15,30 +15,23 @@ export declare const InternalSettingsV: t.TypeC<{
|
|
15
15
|
integrations: t.RecordC<t.StringC, t.RecordC<t.StringC, t.StringC>>;
|
16
16
|
}>;
|
17
17
|
export declare const OrganizationSettingsV: t.TypeC<{
|
18
|
-
analytics: t.TypeC<{
|
19
|
-
execution_limit: t.NumberC;
|
20
|
-
deadend_limit: t.NumberC;
|
21
|
-
}>;
|
22
|
-
analytics_control: t.TypeC<{
|
23
|
-
silent_enabled: t.BooleanC;
|
24
|
-
allow_event_handlers: t.BooleanC;
|
25
|
-
}>;
|
26
|
-
skins: t.TypeC<{
|
27
|
-
limit: t.NumberC;
|
28
|
-
field_set: t.UnionC<[t.LiteralC<"pro">, t.LiteralC<"basic">]>;
|
29
|
-
}>;
|
30
|
-
deployment: t.TypeC<{
|
31
|
-
show_countdown_banner: t.BooleanC;
|
32
|
-
}>;
|
33
|
-
view: t.TypeC<{
|
34
|
-
in_bar_feedback: t.BooleanC;
|
35
|
-
}>;
|
36
18
|
end_user_limit: t.NumberC;
|
37
19
|
user_seat_limit: t.NumberC;
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
20
|
+
analytics_dashboard_execution_limit: t.NumberC;
|
21
|
+
analytics_dashboard_deadend_limit: t.NumberC;
|
22
|
+
silent_mode: t.BooleanC;
|
23
|
+
allow_event_handlers: t.BooleanC;
|
24
|
+
event_attribute_block_list: t.ArrayC<t.StringC>;
|
25
|
+
skins_limit: t.NumberC;
|
26
|
+
skins_field_set: t.UnionC<[t.LiteralC<"pro">, t.LiteralC<"basic">]>;
|
27
|
+
show_countdown_banner: t.BooleanC;
|
28
|
+
can_install_foobar: t.BooleanC;
|
29
|
+
releases_available: t.BooleanC;
|
30
|
+
releases_enabled: t.BooleanC;
|
31
|
+
releases_environments: t.ArrayC<t.StringC>;
|
32
|
+
in_bar_feedback: t.BooleanC;
|
33
|
+
summon_hotkey_override: t.UnionC<[t.StringC, t.NullC]>;
|
34
|
+
end_user_shortcuts_enabled: t.BooleanC;
|
42
35
|
}>;
|
43
36
|
export declare class Organization {
|
44
37
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
@@ -66,7 +59,10 @@ export declare class Organization {
|
|
66
59
|
search?: boolean | undefined;
|
67
60
|
label_field?: string | undefined;
|
68
61
|
useCategory?: boolean | undefined;
|
69
|
-
search_fields?: string
|
62
|
+
search_fields?: (string | {
|
63
|
+
key: string;
|
64
|
+
label: string;
|
65
|
+
})[] | undefined;
|
70
66
|
auto_execute?: boolean | undefined;
|
71
67
|
unfurl?: boolean | undefined;
|
72
68
|
description_field?: string | undefined;
|
@@ -74,7 +70,8 @@ export declare class Organization {
|
|
74
70
|
sort_key?: number | undefined;
|
75
71
|
max_options_count?: number | null | undefined;
|
76
72
|
sortFunction?: any;
|
77
|
-
default_command_id?: number | undefined;
|
73
|
+
default_command_id?: string | number | undefined;
|
74
|
+
render_as?: "grid" | "list" | undefined;
|
78
75
|
showResources?: boolean | undefined;
|
79
76
|
show_with_no_results?: boolean | undefined;
|
80
77
|
search_tab_enabled?: boolean | undefined;
|
@@ -93,7 +90,8 @@ export declare class Organization {
|
|
93
90
|
allow_event_handlers: boolean;
|
94
91
|
in_bar_feedback: boolean;
|
95
92
|
summon_hotkey_override: string | null;
|
96
|
-
end_user_hotkeys: boolean;
|
93
|
+
end_user_hotkeys: boolean | undefined;
|
94
|
+
end_user_shortcuts_enabled: boolean;
|
97
95
|
releases_available: boolean;
|
98
96
|
releases_enabled: boolean;
|
99
97
|
}>;
|
@@ -119,7 +117,10 @@ export declare class Organization {
|
|
119
117
|
search?: boolean | undefined;
|
120
118
|
label_field?: string | undefined;
|
121
119
|
useCategory?: boolean | undefined;
|
122
|
-
search_fields?: string
|
120
|
+
search_fields?: (string | {
|
121
|
+
key: string;
|
122
|
+
label: string;
|
123
|
+
})[] | undefined;
|
123
124
|
auto_execute?: boolean | undefined;
|
124
125
|
unfurl?: boolean | undefined;
|
125
126
|
description_field?: string | undefined;
|
@@ -127,7 +128,8 @@ export declare class Organization {
|
|
127
128
|
sort_key?: number | undefined;
|
128
129
|
max_options_count?: number | null | undefined;
|
129
130
|
sortFunction?: any;
|
130
|
-
default_command_id?: number | undefined;
|
131
|
+
default_command_id?: string | number | undefined;
|
132
|
+
render_as?: "grid" | "list" | undefined;
|
131
133
|
showResources?: boolean | undefined;
|
132
134
|
show_with_no_results?: boolean | undefined;
|
133
135
|
search_tab_enabled?: boolean | undefined;
|
@@ -146,7 +148,8 @@ export declare class Organization {
|
|
146
148
|
allow_event_handlers: boolean;
|
147
149
|
in_bar_feedback: boolean;
|
148
150
|
summon_hotkey_override: string | null;
|
149
|
-
end_user_hotkeys: boolean;
|
151
|
+
end_user_hotkeys: boolean | undefined;
|
152
|
+
end_user_shortcuts_enabled: boolean;
|
150
153
|
releases_available: boolean;
|
151
154
|
releases_enabled: boolean;
|
152
155
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
@@ -171,7 +174,10 @@ export declare class Organization {
|
|
171
174
|
search?: boolean | undefined;
|
172
175
|
label_field?: string | undefined;
|
173
176
|
useCategory?: boolean | undefined;
|
174
|
-
search_fields?: string
|
177
|
+
search_fields?: (string | {
|
178
|
+
key: string;
|
179
|
+
label: string;
|
180
|
+
})[] | undefined;
|
175
181
|
auto_execute?: boolean | undefined;
|
176
182
|
unfurl?: boolean | undefined;
|
177
183
|
description_field?: string | undefined;
|
@@ -179,7 +185,8 @@ export declare class Organization {
|
|
179
185
|
sort_key?: number | undefined;
|
180
186
|
max_options_count?: number | null | undefined;
|
181
187
|
sortFunction?: any;
|
182
|
-
default_command_id?: number | undefined;
|
188
|
+
default_command_id?: string | number | undefined;
|
189
|
+
render_as?: "grid" | "list" | undefined;
|
183
190
|
showResources?: boolean | undefined;
|
184
191
|
show_with_no_results?: boolean | undefined;
|
185
192
|
search_tab_enabled?: boolean | undefined;
|
@@ -198,7 +205,8 @@ export declare class Organization {
|
|
198
205
|
allow_event_handlers: boolean;
|
199
206
|
in_bar_feedback: boolean;
|
200
207
|
summon_hotkey_override: string | null;
|
201
|
-
end_user_hotkeys: boolean;
|
208
|
+
end_user_hotkeys: boolean | undefined;
|
209
|
+
end_user_shortcuts_enabled: boolean;
|
202
210
|
releases_available: boolean;
|
203
211
|
releases_enabled: boolean;
|
204
212
|
}>;
|
@@ -262,6 +270,35 @@ export declare class Organization {
|
|
262
270
|
object?: string | undefined;
|
263
271
|
hoverTooltip?: boolean | undefined;
|
264
272
|
operation?: "self" | "router" | "blank" | undefined;
|
273
|
+
}) | ({
|
274
|
+
type: "request";
|
275
|
+
value: {
|
276
|
+
method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
|
277
|
+
url: string;
|
278
|
+
} & {
|
279
|
+
headers?: {
|
280
|
+
[key: string]: unknown;
|
281
|
+
} | undefined;
|
282
|
+
body?: {
|
283
|
+
[key: string]: unknown;
|
284
|
+
} | undefined;
|
285
|
+
onSend?: string | undefined;
|
286
|
+
onSuccess?: string | undefined;
|
287
|
+
onError?: string | undefined;
|
288
|
+
};
|
289
|
+
} & {} & {
|
290
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
291
|
+
object?: string | undefined;
|
292
|
+
hoverTooltip?: boolean | undefined;
|
293
|
+
operation?: "self" | "router" | "blank" | undefined;
|
294
|
+
}) | ({
|
295
|
+
type: "appcues";
|
296
|
+
value: string;
|
297
|
+
} & {} & {
|
298
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
299
|
+
object?: string | undefined;
|
300
|
+
hoverTooltip?: boolean | undefined;
|
301
|
+
operation?: "self" | "router" | "blank" | undefined;
|
265
302
|
});
|
266
303
|
} & {
|
267
304
|
disabledReason?: string | undefined;
|
@@ -269,6 +306,13 @@ export declare class Organization {
|
|
269
306
|
name?: string | undefined;
|
270
307
|
last_available?: string | null | undefined;
|
271
308
|
modified?: string | undefined;
|
309
|
+
detail?: string | {
|
310
|
+
type: "html" | "plaintext" | "markdown" | "reader" | "react";
|
311
|
+
value: string;
|
312
|
+
} | {
|
313
|
+
type: "html" | "plaintext" | "markdown" | "reader" | "react";
|
314
|
+
value: string;
|
315
|
+
}[] | undefined;
|
272
316
|
} & {
|
273
317
|
arguments: {
|
274
318
|
[x: string]: ({
|
@@ -290,6 +334,8 @@ export declare class Organization {
|
|
290
334
|
loaded?: any[] | undefined;
|
291
335
|
allow_create?: boolean | undefined;
|
292
336
|
allow_create_label?: string | undefined;
|
337
|
+
show_in_record_action_list?: boolean | undefined;
|
338
|
+
show_in_default_list?: boolean | undefined;
|
293
339
|
}) | ({
|
294
340
|
type: "set";
|
295
341
|
value: string[] | number[] | {
|
@@ -402,8 +448,19 @@ export declare class Organization {
|
|
402
448
|
category: number | null;
|
403
449
|
sort_key: number | null;
|
404
450
|
icon: string | null;
|
405
|
-
celebrate: {
|
406
|
-
|
451
|
+
celebrate: boolean | {
|
452
|
+
angle?: number | undefined;
|
453
|
+
spread?: number | undefined;
|
454
|
+
width?: string | undefined;
|
455
|
+
height?: string | undefined;
|
456
|
+
duration?: number | undefined;
|
457
|
+
dragFriction?: number | undefined;
|
458
|
+
stagger?: number | undefined;
|
459
|
+
startVelocity?: number | undefined;
|
460
|
+
elementCount?: number | undefined;
|
461
|
+
decay?: number | undefined;
|
462
|
+
colors?: string[] | undefined;
|
463
|
+
random?: any;
|
407
464
|
} | null;
|
408
465
|
recommend_sort_key: number | null;
|
409
466
|
shortcut_mac: string[];
|
@@ -418,6 +475,7 @@ export declare class Organization {
|
|
418
475
|
} & {} & {
|
419
476
|
sort_key: number | null;
|
420
477
|
icon: string | null;
|
478
|
+
render_as: "grid" | "list";
|
421
479
|
setting_hide_before_search: boolean;
|
422
480
|
setting_max_options_count: number | null;
|
423
481
|
setting_pin_to_bottom: boolean;
|
@@ -508,30 +566,63 @@ export declare class Organization {
|
|
508
566
|
onSuccess?: (() => void) | undefined;
|
509
567
|
onError?: ((err: string) => void) | undefined;
|
510
568
|
} | undefined) => Promise<{
|
511
|
-
analytics: {
|
512
|
-
execution_limit: number;
|
513
|
-
deadend_limit: number;
|
514
|
-
};
|
515
|
-
analytics_control: {
|
516
|
-
silent_enabled: boolean;
|
517
|
-
allow_event_handlers: boolean;
|
518
|
-
};
|
519
|
-
skins: {
|
520
|
-
limit: number;
|
521
|
-
field_set: "basic" | "pro";
|
522
|
-
};
|
523
|
-
deployment: {
|
524
|
-
show_countdown_banner: boolean;
|
525
|
-
};
|
526
|
-
view: {
|
527
|
-
in_bar_feedback: boolean;
|
528
|
-
};
|
529
569
|
end_user_limit: number;
|
530
570
|
user_seat_limit: number;
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
571
|
+
analytics_dashboard_execution_limit: number;
|
572
|
+
analytics_dashboard_deadend_limit: number;
|
573
|
+
silent_mode: boolean;
|
574
|
+
allow_event_handlers: boolean;
|
575
|
+
event_attribute_block_list: string[];
|
576
|
+
skins_limit: number;
|
577
|
+
skins_field_set: "basic" | "pro";
|
578
|
+
show_countdown_banner: boolean;
|
579
|
+
can_install_foobar: boolean;
|
580
|
+
releases_available: boolean;
|
581
|
+
releases_enabled: boolean;
|
582
|
+
releases_environments: string[];
|
583
|
+
in_bar_feedback: boolean;
|
584
|
+
summon_hotkey_override: string | null;
|
585
|
+
end_user_shortcuts_enabled: boolean;
|
586
|
+
}>;
|
587
|
+
static updateSetting: (object: {
|
588
|
+
end_user_limit?: number | undefined;
|
589
|
+
user_seat_limit?: number | undefined;
|
590
|
+
analytics_dashboard_execution_limit?: number | undefined;
|
591
|
+
analytics_dashboard_deadend_limit?: number | undefined;
|
592
|
+
silent_mode?: boolean | undefined;
|
593
|
+
allow_event_handlers?: boolean | undefined;
|
594
|
+
event_attribute_block_list?: string[] | undefined;
|
595
|
+
skins_limit?: number | undefined;
|
596
|
+
skins_field_set?: "basic" | "pro" | undefined;
|
597
|
+
show_countdown_banner?: boolean | undefined;
|
598
|
+
can_install_foobar?: boolean | undefined;
|
599
|
+
releases_available?: boolean | undefined;
|
600
|
+
releases_enabled?: boolean | undefined;
|
601
|
+
releases_environments?: string[] | undefined;
|
602
|
+
in_bar_feedback?: boolean | undefined;
|
603
|
+
summon_hotkey_override?: string | null | undefined;
|
604
|
+
end_user_shortcuts_enabled?: boolean | undefined;
|
605
|
+
}, params?: Record<string, string> | undefined, callbacks?: {
|
606
|
+
onSuccess?: (() => void) | undefined;
|
607
|
+
onError?: ((err: string) => void) | undefined;
|
608
|
+
} | undefined) => Promise<{
|
609
|
+
end_user_limit: number;
|
610
|
+
user_seat_limit: number;
|
611
|
+
analytics_dashboard_execution_limit: number;
|
612
|
+
analytics_dashboard_deadend_limit: number;
|
613
|
+
silent_mode: boolean;
|
614
|
+
allow_event_handlers: boolean;
|
615
|
+
event_attribute_block_list: string[];
|
616
|
+
skins_limit: number;
|
617
|
+
skins_field_set: "basic" | "pro";
|
618
|
+
show_countdown_banner: boolean;
|
619
|
+
can_install_foobar: boolean;
|
620
|
+
releases_available: boolean;
|
621
|
+
releases_enabled: boolean;
|
622
|
+
releases_environments: string[];
|
623
|
+
in_bar_feedback: boolean;
|
624
|
+
summon_hotkey_override: string | null;
|
625
|
+
end_user_shortcuts_enabled: boolean;
|
535
626
|
}>;
|
536
627
|
static decode: (data: any) => {
|
537
628
|
id: string | number;
|
@@ -555,7 +646,10 @@ export declare class Organization {
|
|
555
646
|
search?: boolean | undefined;
|
556
647
|
label_field?: string | undefined;
|
557
648
|
useCategory?: boolean | undefined;
|
558
|
-
search_fields?: string
|
649
|
+
search_fields?: (string | {
|
650
|
+
key: string;
|
651
|
+
label: string;
|
652
|
+
})[] | undefined;
|
559
653
|
auto_execute?: boolean | undefined;
|
560
654
|
unfurl?: boolean | undefined;
|
561
655
|
description_field?: string | undefined;
|
@@ -563,7 +657,8 @@ export declare class Organization {
|
|
563
657
|
sort_key?: number | undefined;
|
564
658
|
max_options_count?: number | null | undefined;
|
565
659
|
sortFunction?: any;
|
566
|
-
default_command_id?: number | undefined;
|
660
|
+
default_command_id?: string | number | undefined;
|
661
|
+
render_as?: "grid" | "list" | undefined;
|
567
662
|
showResources?: boolean | undefined;
|
568
663
|
show_with_no_results?: boolean | undefined;
|
569
664
|
search_tab_enabled?: boolean | undefined;
|
@@ -582,7 +677,8 @@ export declare class Organization {
|
|
582
677
|
allow_event_handlers: boolean;
|
583
678
|
in_bar_feedback: boolean;
|
584
679
|
summon_hotkey_override: string | null;
|
585
|
-
end_user_hotkeys: boolean;
|
680
|
+
end_user_hotkeys: boolean | undefined;
|
681
|
+
end_user_shortcuts_enabled: boolean;
|
586
682
|
releases_available: boolean;
|
587
683
|
releases_enabled: boolean;
|
588
684
|
};
|