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
@@ -1,8 +1,9 @@
|
|
1
1
|
/*******************************************************************************/
|
2
2
|
import * as t from 'io-ts';
|
3
|
-
import { CommandV, EditorCommandV } from './command';
|
3
|
+
import { BatchEditorCommandRequestV, BatchEditorCommandResponseV, BatchOperationV, CommandV, EditorCommandV } from './command';
|
4
4
|
import { ArgumentMapV, ArgumentTypeV, ConditionV, ConditionOperatorV, StepArgumentTypeV, ContextArgumentV, SetArgumentV, DynamicArgumentV, DependentArgumentV, FunctionArgumentV } from './helpers/argument';
|
5
|
-
import {
|
5
|
+
import { OptionGroupRenderAsV } from './helpers/optionGroup';
|
6
|
+
import { TemplateV, TemplateOptionsV, RequestTemplateV, RequestV } from './helpers/commandTemplate';
|
6
7
|
import { CommandCategoryV } from './commandCategory';
|
7
8
|
import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationSettingsV } from './organization';
|
8
9
|
import { UserV } from './user';
|
@@ -38,11 +39,17 @@ export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV>;
|
|
38
39
|
export declare type IRelease = t.TypeOf<typeof ReleaseV>;
|
39
40
|
export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV>;
|
40
41
|
/*******************************************************************************/
|
42
|
+
export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV>;
|
43
|
+
export declare type IBatchEditorCommandRequst = t.TypeOf<typeof BatchEditorCommandRequestV>;
|
44
|
+
export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV>;
|
45
|
+
/*******************************************************************************/
|
41
46
|
export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV>;
|
42
47
|
export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV>;
|
43
48
|
export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV>;
|
44
49
|
export declare type IStepArgumentType = t.TypeOf<typeof StepArgumentTypeV>;
|
45
50
|
export declare type ITemplate = t.TypeOf<typeof TemplateV>;
|
51
|
+
export declare type RequestTemplateType = t.TypeOf<typeof RequestTemplateV>;
|
52
|
+
export declare type RequestType = t.TypeOf<typeof RequestV>;
|
46
53
|
export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV>;
|
47
54
|
export declare type IEndUserType = t.TypeOf<typeof EndUserV>;
|
48
55
|
export declare type IConditionType = t.TypeOf<typeof ConditionV>;
|
@@ -52,6 +59,7 @@ export declare type ISetArgumentType = t.TypeOf<typeof SetArgumentV>;
|
|
52
59
|
export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV>;
|
53
60
|
export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV>;
|
54
61
|
export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV>;
|
62
|
+
export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV>;
|
55
63
|
export interface ICommandInput {
|
56
64
|
text: string;
|
57
65
|
command: ICommandType;
|
@@ -85,6 +93,7 @@ export declare type IConfigEndpointResponse = {
|
|
85
93
|
};
|
86
94
|
export type { IResourceSettings } from './IResourceSettings';
|
87
95
|
export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV>;
|
96
|
+
export type { DetailPreviewObjectType, DetailPreviewType, DataRowMedata } from './detailPreview';
|
88
97
|
/*******************************************************************************/
|
89
98
|
export declare const isCommand: (command?: ICommandType | any) => command is {
|
90
99
|
id: number;
|
@@ -146,6 +155,35 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
|
|
146
155
|
object?: string | undefined;
|
147
156
|
hoverTooltip?: boolean | undefined;
|
148
157
|
operation?: "self" | "router" | "blank" | undefined;
|
158
|
+
}) | ({
|
159
|
+
type: "request";
|
160
|
+
value: {
|
161
|
+
method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
|
162
|
+
url: string;
|
163
|
+
} & {
|
164
|
+
headers?: {
|
165
|
+
[key: string]: unknown;
|
166
|
+
} | undefined;
|
167
|
+
body?: {
|
168
|
+
[key: string]: unknown;
|
169
|
+
} | undefined;
|
170
|
+
onSend?: string | undefined;
|
171
|
+
onSuccess?: string | undefined;
|
172
|
+
onError?: string | undefined;
|
173
|
+
};
|
174
|
+
} & {} & {
|
175
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
176
|
+
object?: string | undefined;
|
177
|
+
hoverTooltip?: boolean | undefined;
|
178
|
+
operation?: "self" | "router" | "blank" | undefined;
|
179
|
+
}) | ({
|
180
|
+
type: "appcues";
|
181
|
+
value: string;
|
182
|
+
} & {} & {
|
183
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
184
|
+
object?: string | undefined;
|
185
|
+
hoverTooltip?: boolean | undefined;
|
186
|
+
operation?: "self" | "router" | "blank" | undefined;
|
149
187
|
});
|
150
188
|
} & {
|
151
189
|
disabledReason?: string | undefined;
|
@@ -153,6 +191,13 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
|
|
153
191
|
name?: string | undefined;
|
154
192
|
last_available?: string | null | undefined;
|
155
193
|
modified?: string | undefined;
|
194
|
+
detail?: string | {
|
195
|
+
type: "html" | "plaintext" | "markdown" | "reader" | "react";
|
196
|
+
value: string;
|
197
|
+
} | {
|
198
|
+
type: "html" | "plaintext" | "markdown" | "reader" | "react";
|
199
|
+
value: string;
|
200
|
+
}[] | undefined;
|
156
201
|
} & {
|
157
202
|
arguments: {
|
158
203
|
[x: string]: ({
|
@@ -174,6 +219,8 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
|
|
174
219
|
loaded?: any[] | undefined;
|
175
220
|
allow_create?: boolean | undefined;
|
176
221
|
allow_create_label?: string | undefined;
|
222
|
+
show_in_record_action_list?: boolean | undefined;
|
223
|
+
show_in_default_list?: boolean | undefined;
|
177
224
|
}) | ({
|
178
225
|
type: "set";
|
179
226
|
value: string[] | number[] | {
|
@@ -286,8 +333,19 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
|
|
286
333
|
category: number | null;
|
287
334
|
sort_key: number | null;
|
288
335
|
icon: string | null;
|
289
|
-
celebrate: {
|
290
|
-
|
336
|
+
celebrate: boolean | {
|
337
|
+
angle?: number | undefined;
|
338
|
+
spread?: number | undefined;
|
339
|
+
width?: string | undefined;
|
340
|
+
height?: string | undefined;
|
341
|
+
duration?: number | undefined;
|
342
|
+
dragFriction?: number | undefined;
|
343
|
+
stagger?: number | undefined;
|
344
|
+
startVelocity?: number | undefined;
|
345
|
+
elementCount?: number | undefined;
|
346
|
+
decay?: number | undefined;
|
347
|
+
colors?: string[] | undefined;
|
348
|
+
random?: any;
|
291
349
|
} | null;
|
292
350
|
recommend_sort_key: number | null;
|
293
351
|
shortcut_mac: string[];
|
@@ -315,6 +373,8 @@ export declare const isContextArgument: (argument: IArgumentType) => argument is
|
|
315
373
|
loaded?: any[] | undefined;
|
316
374
|
allow_create?: boolean | undefined;
|
317
375
|
allow_create_label?: string | undefined;
|
376
|
+
show_in_record_action_list?: boolean | undefined;
|
377
|
+
show_in_default_list?: boolean | undefined;
|
318
378
|
};
|
319
379
|
export declare const isTimeArgument: (argument: IArgumentType) => argument is {
|
320
380
|
type: "provided";
|
package/package.json
CHANGED
package/src/init.ts
CHANGED
@@ -3,7 +3,7 @@ import 'es6-object-assign/auto';
|
|
3
3
|
import 'es6-symbol/implement';
|
4
4
|
import { getProxySDK } from '../../internal/src/client/proxy';
|
5
5
|
import { _configuration } from '../../internal/src/client/symbols';
|
6
|
-
import { IConfigEndpointResponse } from '
|
6
|
+
import { IConfigEndpointResponse } from '../../internal/src/middleware/types';
|
7
7
|
|
8
8
|
interface IInitOptions {
|
9
9
|
debug?: boolean;
|