commandbar 1.6.14 → 1.6.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,8 @@ export declare type DataRow = {
4
4
  label?: string;
5
5
  description?: string;
6
6
  __actionIcon?: string;
7
+ __heading?: string;
8
+ /** @deprecated Use \_\_heading */
7
9
  __breadcrumbs?: string;
8
10
  __extraHTML?: string | ((elem: HTMLElement, record: any) => void);
9
11
  __preserveSVG?: boolean;
@@ -50,6 +50,8 @@ export interface CommandExecutionEvent {
50
50
  previousCommands?: string[];
51
51
  /** Command types, as defined at: https://www.commandbar.com/docs/commands/types/overview */
52
52
  commandType?: 'admin' | 'link' | 'script' | 'clickByXpath' | 'clickBySelector' | 'click' | 'callback' | 'builtin' | 'webhook' | 'request' | 'video' | 'helpdoc' | 'appcues';
53
+ /** Selected arguments */
54
+ selections?: Record<string, unknown>;
53
55
  }
54
56
  export interface EndUserShortcutChangedEvent {
55
57
  /** Event data passed for `command_execution` events. */
@@ -110,6 +110,7 @@ declare const CommandBaseV: t.IntersectionC<[t.TypeC<{
110
110
  name: t.StringC;
111
111
  last_available: t.UnionC<[t.StringC, t.NullC]>;
112
112
  modified: t.StringC;
113
+ isAsync: t.BooleanC;
113
114
  }>]>;
114
115
  declare const HelpSyncCommandAdditionalV: t.PartialC<{
115
116
  third_party_source: t.UnionC<[t.StringC, t.NullC]>;
@@ -224,6 +225,7 @@ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
224
225
  name: t.StringC;
225
226
  last_available: t.UnionC<[t.StringC, t.NullC]>;
226
227
  modified: t.StringC;
228
+ isAsync: t.BooleanC;
227
229
  }>]>, t.TypeC<{
228
230
  arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
229
231
  type: t.LiteralC<"context">;
@@ -572,6 +574,7 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
572
574
  name: t.StringC;
573
575
  last_available: t.UnionC<[t.StringC, t.NullC]>;
574
576
  modified: t.StringC;
577
+ isAsync: t.BooleanC;
575
578
  }>]>, t.TypeC<{
576
579
  arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
577
580
  type: t.LiteralC<"context">;
@@ -1002,6 +1005,7 @@ export declare const BatchEditorCommandResponseV: t.TypeC<{
1002
1005
  name: t.StringC;
1003
1006
  last_available: t.UnionC<[t.StringC, t.NullC]>;
1004
1007
  modified: t.StringC;
1008
+ isAsync: t.BooleanC;
1005
1009
  }>]>, t.TypeC<{
1006
1010
  arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
1007
1011
  type: t.LiteralC<"context">;
@@ -1426,6 +1430,7 @@ export declare class Command {
1426
1430
  name?: string | undefined;
1427
1431
  last_available?: string | null | undefined;
1428
1432
  modified?: string | undefined;
1433
+ isAsync?: boolean | undefined;
1429
1434
  } & {
1430
1435
  arguments: {
1431
1436
  [x: string]: ({
@@ -1779,6 +1784,7 @@ export declare class Command {
1779
1784
  name?: string | undefined;
1780
1785
  last_available?: string | null | undefined;
1781
1786
  modified?: string | undefined;
1787
+ isAsync?: boolean | undefined;
1782
1788
  } & {
1783
1789
  arguments: {
1784
1790
  [x: string]: ({
@@ -2133,6 +2139,7 @@ export declare class Command {
2133
2139
  name?: string | undefined;
2134
2140
  last_available?: string | null | undefined;
2135
2141
  modified?: string | undefined;
2142
+ isAsync?: boolean | undefined;
2136
2143
  } & {
2137
2144
  arguments: {
2138
2145
  [x: string]: ({
@@ -2486,6 +2493,7 @@ export declare class Command {
2486
2493
  name?: string | undefined;
2487
2494
  last_available?: string | null | undefined;
2488
2495
  modified?: string | undefined;
2496
+ isAsync?: boolean | undefined;
2489
2497
  } & {
2490
2498
  arguments: {
2491
2499
  [x: string]: ({
@@ -2842,6 +2850,7 @@ export declare class Command {
2842
2850
  name?: string | undefined;
2843
2851
  last_available?: string | null | undefined;
2844
2852
  modified?: string | undefined;
2853
+ isAsync?: boolean | undefined;
2845
2854
  } & {
2846
2855
  arguments: {
2847
2856
  [x: string]: ({
@@ -3464,6 +3473,7 @@ export declare class Command {
3464
3473
  name?: string | undefined;
3465
3474
  last_available?: string | null | undefined;
3466
3475
  modified?: string | undefined;
3476
+ isAsync?: boolean | undefined;
3467
3477
  } & {
3468
3478
  arguments: {
3469
3479
  [x: string]: ({
@@ -3784,6 +3794,7 @@ export declare class Command {
3784
3794
  name?: string | undefined;
3785
3795
  last_available?: string | null | undefined;
3786
3796
  modified?: string | undefined;
3797
+ isAsync?: boolean | undefined;
3787
3798
  } & {
3788
3799
  [key: string]: any;
3789
3800
  }) => {
@@ -3898,6 +3909,7 @@ export declare class Command {
3898
3909
  name?: string | undefined;
3899
3910
  last_available?: string | null | undefined;
3900
3911
  modified?: string | undefined;
3912
+ isAsync?: boolean | undefined;
3901
3913
  } & {
3902
3914
  arguments: {
3903
3915
  [x: string]: ({
@@ -4252,6 +4264,7 @@ export declare class Command {
4252
4264
  name?: string | undefined;
4253
4265
  last_available?: string | null | undefined;
4254
4266
  modified?: string | undefined;
4267
+ isAsync?: boolean | undefined;
4255
4268
  } & {
4256
4269
  arguments: {
4257
4270
  [x: string]: ({
@@ -4605,6 +4618,7 @@ export declare class Command {
4605
4618
  name?: string | undefined;
4606
4619
  last_available?: string | null | undefined;
4607
4620
  modified?: string | undefined;
4621
+ isAsync?: boolean | undefined;
4608
4622
  } & {
4609
4623
  arguments: {
4610
4624
  [x: string]: ({
@@ -4959,6 +4973,7 @@ export declare class Command {
4959
4973
  name?: string | undefined;
4960
4974
  last_available?: string | null | undefined;
4961
4975
  modified?: string | undefined;
4976
+ isAsync?: boolean | undefined;
4962
4977
  } & {
4963
4978
  arguments: {
4964
4979
  [x: string]: ({
@@ -5312,6 +5327,7 @@ export declare class Command {
5312
5327
  name?: string | undefined;
5313
5328
  last_available?: string | null | undefined;
5314
5329
  modified?: string | undefined;
5330
+ isAsync?: boolean | undefined;
5315
5331
  } & {
5316
5332
  arguments: {
5317
5333
  [x: string]: ({
@@ -5668,6 +5684,7 @@ export declare const HelpSyncCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC
5668
5684
  name: t.StringC;
5669
5685
  last_available: t.UnionC<[t.StringC, t.NullC]>;
5670
5686
  modified: t.StringC;
5687
+ isAsync: t.BooleanC;
5671
5688
  }>]>, t.TypeC<{
5672
5689
  arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
5673
5690
  type: t.LiteralC<"context">;
@@ -6024,6 +6041,7 @@ export declare class HelpSyncCommand {
6024
6041
  name?: string | undefined;
6025
6042
  last_available?: string | null | undefined;
6026
6043
  modified?: string | undefined;
6044
+ isAsync?: boolean | undefined;
6027
6045
  } & {
6028
6046
  arguments: {
6029
6047
  [x: string]: ({
@@ -6347,6 +6365,7 @@ export declare class HelpSyncCommand {
6347
6365
  name?: string | undefined;
6348
6366
  last_available?: string | null | undefined;
6349
6367
  modified?: string | undefined;
6368
+ isAsync?: boolean | undefined;
6350
6369
  } & {
6351
6370
  arguments: {
6352
6371
  [x: string]: ({
@@ -6669,6 +6688,7 @@ export declare class HelpSyncCommand {
6669
6688
  name?: string | undefined;
6670
6689
  last_available?: string | null | undefined;
6671
6690
  modified?: string | undefined;
6691
+ isAsync?: boolean | undefined;
6672
6692
  } & {
6673
6693
  arguments: {
6674
6694
  [x: string]: ({
@@ -367,6 +367,7 @@ export declare class Organization {
367
367
  name?: string | undefined;
368
368
  last_available?: string | null | undefined;
369
369
  modified?: string | undefined;
370
+ isAsync?: boolean | undefined;
370
371
  } & {
371
372
  arguments: {
372
373
  [x: string]: ({
@@ -9,6 +9,15 @@ export declare const SkinV: t.IntersectionC<[t.TypeC<{
9
9
  }>, t.PartialC<{
10
10
  logo: t.UnionC<[t.StringC, t.NullC]>;
11
11
  }>]>;
12
+ export declare const SkinPatchV: t.PartialC<{
13
+ id: t.StringC;
14
+ slug: t.StringC;
15
+ name: t.StringC;
16
+ default: t.BooleanC;
17
+ skin: t.AnyC;
18
+ organization: t.StringC;
19
+ logo: t.UnionC<[t.StringC, t.NullC]>;
20
+ }>;
12
21
  export declare class Skin {
13
22
  static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
14
23
  id: string;
@@ -52,7 +61,15 @@ export declare class Skin {
52
61
  } & {
53
62
  logo?: string | null | undefined;
54
63
  }>;
55
- static create: (object: {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
64
+ static create: (object: {
65
+ id?: string | undefined;
66
+ slug?: string | undefined;
67
+ name?: string | undefined;
68
+ default?: boolean | undefined;
69
+ skin?: any;
70
+ organization?: string | undefined;
71
+ logo?: string | null | undefined;
72
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
56
73
  id: string;
57
74
  slug: string;
58
75
  name: string;
@@ -225,6 +225,7 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
225
225
  name?: string | undefined;
226
226
  last_available?: string | null | undefined;
227
227
  modified?: string | undefined;
228
+ isAsync?: boolean | undefined;
228
229
  } & {
229
230
  arguments: {
230
231
  [x: string]: ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commandbar",
3
- "version": "1.6.14",
3
+ "version": "1.6.15",
4
4
  "description": "Javascript Utility for CommandBar",
5
5
  "main": "build/commandbar-js/src/index.js",
6
6
  "types": "build/commandbar-js/src/index.d.ts",