commandbar 1.6.13 → 1.6.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,19 +53,21 @@ export declare const SetArgumentV: t.IntersectionC<[t.TypeC<{
53
53
  auto_choose: t.BooleanC;
54
54
  is_private: t.BooleanC;
55
55
  }>]>;
56
- export declare const VideoDashboardV: t.IntersectionC<[t.TypeC<{
56
+ export declare const DashboardV: t.IntersectionC<[t.TypeC<{
57
57
  source: t.StringC;
58
58
  }>, t.PartialC<{
59
59
  title: t.StringC;
60
60
  description: t.StringC;
61
+ url: t.StringC;
61
62
  }>]>;
62
- export declare const VideoArgumentV: t.IntersectionC<[t.TypeC<{
63
- type: t.LiteralC<"video">;
63
+ export declare const DashboardArgumentV: t.IntersectionC<[t.TypeC<{
64
+ type: t.UnionC<[t.LiteralC<"video">, t.LiteralC<"html">]>;
64
65
  value: t.IntersectionC<[t.TypeC<{
65
66
  source: t.StringC;
66
67
  }>, t.PartialC<{
67
68
  title: t.StringC;
68
69
  description: t.StringC;
70
+ url: t.StringC;
69
71
  }>]>;
70
72
  order_key: t.NumberC;
71
73
  }>, t.PartialC<{
@@ -262,12 +264,13 @@ export declare const ArgumentTypeV: t.UnionC<[t.IntersectionC<[t.TypeC<{
262
264
  auto_choose: t.BooleanC;
263
265
  is_private: t.BooleanC;
264
266
  }>]>, t.IntersectionC<[t.TypeC<{
265
- type: t.LiteralC<"video">;
267
+ type: t.UnionC<[t.LiteralC<"video">, t.LiteralC<"html">]>;
266
268
  value: t.IntersectionC<[t.TypeC<{
267
269
  source: t.StringC;
268
270
  }>, t.PartialC<{
269
271
  title: t.StringC;
270
272
  description: t.StringC;
273
+ url: t.StringC;
271
274
  }>]>;
272
275
  order_key: t.NumberC;
273
276
  }>, t.PartialC<{
@@ -397,12 +400,13 @@ export declare const ArgumentMapV: t.RecordC<t.StringC, t.UnionC<[t.Intersection
397
400
  auto_choose: t.BooleanC;
398
401
  is_private: t.BooleanC;
399
402
  }>]>, t.IntersectionC<[t.TypeC<{
400
- type: t.LiteralC<"video">;
403
+ type: t.UnionC<[t.LiteralC<"video">, t.LiteralC<"html">]>;
401
404
  value: t.IntersectionC<[t.TypeC<{
402
405
  source: t.StringC;
403
406
  }>, t.PartialC<{
404
407
  title: t.StringC;
405
408
  description: t.StringC;
409
+ url: t.StringC;
406
410
  }>]>;
407
411
  order_key: t.NumberC;
408
412
  }>, t.PartialC<{
@@ -535,12 +539,13 @@ export declare const StepArgumentTypeV: t.IntersectionC<[t.TypeC<{
535
539
  auto_choose: t.BooleanC;
536
540
  is_private: t.BooleanC;
537
541
  }>]>, t.IntersectionC<[t.TypeC<{
538
- type: t.LiteralC<"video">;
542
+ type: t.UnionC<[t.LiteralC<"video">, t.LiteralC<"html">]>;
539
543
  value: t.IntersectionC<[t.TypeC<{
540
544
  source: t.StringC;
541
545
  }>, t.PartialC<{
542
546
  title: t.StringC;
543
547
  description: t.StringC;
548
+ url: t.StringC;
544
549
  }>]>;
545
550
  order_key: t.NumberC;
546
551
  }>, t.PartialC<{
@@ -88,6 +88,15 @@ export declare const VideoTemplateV: t.IntersectionC<[t.TypeC<{
88
88
  hoverTooltip: t.BooleanC;
89
89
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
90
90
  }>]>]>;
91
+ export declare const HelpDocTemplateV: t.IntersectionC<[t.TypeC<{
92
+ type: t.LiteralC<"helpdoc">;
93
+ value: t.StringC;
94
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
95
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
96
+ object: t.StringC;
97
+ hoverTooltip: t.BooleanC;
98
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
99
+ }>]>]>;
91
100
  export declare const RequestV: t.IntersectionC<[t.TypeC<{
92
101
  method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
93
102
  url: t.StringC;
@@ -205,4 +214,12 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
205
214
  object: t.StringC;
206
215
  hoverTooltip: t.BooleanC;
207
216
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
217
+ }>]>]>, t.IntersectionC<[t.TypeC<{
218
+ type: t.LiteralC<"helpdoc">;
219
+ value: t.StringC;
220
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
221
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
222
+ object: t.StringC;
223
+ hoverTooltip: t.BooleanC;
224
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
208
225
  }>]>]>]>;
@@ -45,6 +45,34 @@ export declare const ConditionV: t.IntersectionC<[t.TypeC<{
45
45
  value: t.StringC;
46
46
  reason: t.StringC;
47
47
  }>]>;
48
+ export declare const getConditions: (expr: RuleExpression) => ExpressionCondition[];
49
+ export declare const canonicalize: (expr: RuleExpression) => RuleExpression;
50
+ export declare function isCompoundExpression(expr: RuleExpression): expr is RuleExpressionAnd | RuleExpressionOr;
51
+ export declare type ExpressionCondition = t.TypeOf<typeof ConditionV> | t.TypeOf<typeof NamedRuleReferenceV>;
52
+ export declare type RuleExpression = RuleExpressionAnd | RuleExpressionOr | RuleExpressionLiteral | RuleExpressionCondition;
53
+ export declare type RuleExpressionAnd = {
54
+ type: 'AND';
55
+ exprs: RuleExpression[];
56
+ };
57
+ export declare type RuleExpressionOr = {
58
+ type: 'OR';
59
+ exprs: RuleExpression[];
60
+ };
61
+ export declare type RuleExpressionLiteral = {
62
+ type: 'LITERAL';
63
+ value: boolean;
64
+ };
65
+ export declare type RuleExpressionCondition = {
66
+ type: 'CONDITION';
67
+ condition: ExpressionCondition;
68
+ };
69
+ export declare const RuleExpressionAndV: t.Type<RuleExpressionAnd>;
70
+ export declare const RuleExpressionOrV: t.Type<RuleExpressionOr>;
71
+ export declare const RuleExpressionLiteralV: t.Type<RuleExpressionLiteral>;
72
+ export declare const RuleExpressionConditionV: t.Type<RuleExpressionCondition>;
73
+ export declare const RuleExpressionV: t.Type<RuleExpression>;
74
+ export declare const RuleExpressionTrue: t.TypeOf<typeof RuleExpressionLiteralV>;
75
+ export declare const RuleExpressionFalse: t.TypeOf<typeof RuleExpressionLiteralV>;
48
76
  export declare const NamedRuleReferenceV: t.IntersectionC<[t.TypeC<{
49
77
  type: t.LiteralC<"named_rule">;
50
78
  rule_id: t.NumberC;
@@ -190,32 +218,7 @@ export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.Intersecti
190
218
  export declare const NamedRuleV: t.TypeC<{
191
219
  id: t.NumberC;
192
220
  name: t.StringC;
193
- conditions: t.ArrayC<t.IntersectionC<[t.TypeC<{
194
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
195
- operator: t.KeyofC<{
196
- includes: null;
197
- endsWith: null;
198
- startsWith: null;
199
- is: null;
200
- isTruthy: null;
201
- isFalsy: null;
202
- isNot: null;
203
- isTrue: null;
204
- isFalse: null;
205
- doesNotInclude: null;
206
- matchesRegex: null;
207
- isGreaterThan: null;
208
- isLessThan: null;
209
- isDefined: null;
210
- isNotDefined: null;
211
- classnameOnPage: null;
212
- idOnPage: null;
213
- }>;
214
- }>, t.PartialC<{
215
- field: t.StringC;
216
- value: t.StringC;
217
- reason: t.StringC;
218
- }>]>>;
221
+ expression: t.Type<RuleExpression, RuleExpression, unknown>;
219
222
  }>;
220
223
  export declare type IRuleOperator = t.TypeOf<typeof OperatorV>;
221
224
  export declare type IAvailabilityRule = t.TypeOf<typeof AvailabilityRuleV>;
@@ -0,0 +1,189 @@
1
+ import * as t from 'io-ts';
2
+ export declare const NudgeV: t.IntersectionC<[t.TypeC<{
3
+ id: t.NumberC;
4
+ organization: t.StringC;
5
+ slug: t.StringC;
6
+ content: t.StringC;
7
+ show_expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
8
+ trigger: t.UnionC<[t.TypeC<{
9
+ type: t.LiteralC<"when_conditions_pass">;
10
+ }>, t.TypeC<{
11
+ type: t.LiteralC<"on_command_execution">;
12
+ meta: t.TypeC<{
13
+ command: t.StringC;
14
+ }>;
15
+ }>]>;
16
+ on_select: t.TypeC<{
17
+ type: t.LiteralC<"execute_command">;
18
+ meta: t.TypeC<{
19
+ command: t.StringC;
20
+ }>;
21
+ }>;
22
+ timeout_ms: t.UnionC<[t.NumberC, t.NullC]>;
23
+ frequency_limit: t.UnionC<[t.LiteralC<"no_limit">, t.LiteralC<"once_per_session">, t.LiteralC<"once_per_user">]>;
24
+ }>, t.PartialC<{}>]>;
25
+ export declare class Nudge {
26
+ static decode: (data: any) => {
27
+ id: number;
28
+ organization: string;
29
+ slug: string;
30
+ content: string;
31
+ show_expression: import("./helpers/rules").RuleExpression;
32
+ trigger: {
33
+ type: "when_conditions_pass";
34
+ } | {
35
+ type: "on_command_execution";
36
+ meta: {
37
+ command: string;
38
+ };
39
+ };
40
+ on_select: {
41
+ type: "execute_command";
42
+ meta: {
43
+ command: string;
44
+ };
45
+ };
46
+ timeout_ms: number | null;
47
+ frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
48
+ } & {};
49
+ static create: (object: {
50
+ id: number;
51
+ organization: string;
52
+ slug: string;
53
+ content: string;
54
+ show_expression: import("./helpers/rules").RuleExpression;
55
+ trigger: {
56
+ type: "when_conditions_pass";
57
+ } | {
58
+ type: "on_command_execution";
59
+ meta: {
60
+ command: string;
61
+ };
62
+ };
63
+ on_select: {
64
+ type: "execute_command";
65
+ meta: {
66
+ command: string;
67
+ };
68
+ };
69
+ timeout_ms: number | null;
70
+ frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
71
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
72
+ id: number;
73
+ organization: string;
74
+ slug: string;
75
+ content: string;
76
+ show_expression: import("./helpers/rules").RuleExpression;
77
+ trigger: {
78
+ type: "when_conditions_pass";
79
+ } | {
80
+ type: "on_command_execution";
81
+ meta: {
82
+ command: string;
83
+ };
84
+ };
85
+ on_select: {
86
+ type: "execute_command";
87
+ meta: {
88
+ command: string;
89
+ };
90
+ };
91
+ timeout_ms: number | null;
92
+ frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
93
+ } & {}>;
94
+ static update: (object: {
95
+ id: number;
96
+ organization: string;
97
+ slug: string;
98
+ content: string;
99
+ show_expression: import("./helpers/rules").RuleExpression;
100
+ trigger: {
101
+ type: "when_conditions_pass";
102
+ } | {
103
+ type: "on_command_execution";
104
+ meta: {
105
+ command: string;
106
+ };
107
+ };
108
+ on_select: {
109
+ type: "execute_command";
110
+ meta: {
111
+ command: string;
112
+ };
113
+ };
114
+ timeout_ms: number | null;
115
+ frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
116
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
117
+ id: number;
118
+ organization: string;
119
+ slug: string;
120
+ content: string;
121
+ show_expression: import("./helpers/rules").RuleExpression;
122
+ trigger: {
123
+ type: "when_conditions_pass";
124
+ } | {
125
+ type: "on_command_execution";
126
+ meta: {
127
+ command: string;
128
+ };
129
+ };
130
+ on_select: {
131
+ type: "execute_command";
132
+ meta: {
133
+ command: string;
134
+ };
135
+ };
136
+ timeout_ms: number | null;
137
+ frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
138
+ } & {}>;
139
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
140
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
141
+ id: number;
142
+ organization: string;
143
+ slug: string;
144
+ content: string;
145
+ show_expression: import("./helpers/rules").RuleExpression;
146
+ trigger: {
147
+ type: "when_conditions_pass";
148
+ } | {
149
+ type: "on_command_execution";
150
+ meta: {
151
+ command: string;
152
+ };
153
+ };
154
+ on_select: {
155
+ type: "execute_command";
156
+ meta: {
157
+ command: string;
158
+ };
159
+ };
160
+ timeout_ms: number | null;
161
+ frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
162
+ } & {})[]>;
163
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
164
+ onSuccess?: (() => void) | undefined;
165
+ onError?: ((err: string) => void) | undefined;
166
+ } | undefined) => Promise<{
167
+ id: number;
168
+ organization: string;
169
+ slug: string;
170
+ content: string;
171
+ show_expression: import("./helpers/rules").RuleExpression;
172
+ trigger: {
173
+ type: "when_conditions_pass";
174
+ } | {
175
+ type: "on_command_execution";
176
+ meta: {
177
+ command: string;
178
+ };
179
+ };
180
+ on_select: {
181
+ type: "execute_command";
182
+ meta: {
183
+ command: string;
184
+ };
185
+ };
186
+ timeout_ms: number | null;
187
+ frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
188
+ } & {}>;
189
+ }
@@ -352,6 +352,14 @@ export declare class Organization {
352
352
  object?: string | undefined;
353
353
  hoverTooltip?: boolean | undefined;
354
354
  operation?: "self" | "router" | "blank" | undefined;
355
+ }) | ({
356
+ type: "helpdoc";
357
+ value: string;
358
+ } & {} & {
359
+ commandType?: "object" | "independent" | "help" | undefined;
360
+ object?: string | undefined;
361
+ hoverTooltip?: boolean | undefined;
362
+ operation?: "self" | "router" | "blank" | undefined;
355
363
  });
356
364
  } & {
357
365
  disabledReason?: string | undefined;
@@ -472,12 +480,13 @@ export declare class Organization {
472
480
  auto_choose?: boolean | undefined;
473
481
  is_private?: boolean | undefined;
474
482
  }) | ({
475
- type: "video";
483
+ type: "html" | "video";
476
484
  value: {
477
485
  source: string;
478
486
  } & {
479
487
  title?: string | undefined;
480
488
  description?: string | undefined;
489
+ url?: string | undefined;
481
490
  };
482
491
  order_key: number;
483
492
  } & {
@@ -507,22 +516,56 @@ export declare class Organization {
507
516
  field?: string | undefined;
508
517
  value?: string | undefined;
509
518
  reason?: string | undefined;
510
- })[];
519
+ })[] | (({
520
+ type: "url" | "context" | "element";
521
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
522
+ } & {
523
+ field?: string | undefined;
524
+ value?: string | undefined;
525
+ reason?: string | undefined;
526
+ }) | ({
527
+ type: "named_rule";
528
+ rule_id: number;
529
+ } & {
530
+ reason?: string | undefined;
531
+ }))[];
511
532
  recommend_rules: (({
533
+ type: "url" | "context" | "element";
534
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
535
+ } & {
536
+ field?: string | undefined;
537
+ value?: string | undefined;
538
+ reason?: string | undefined;
539
+ }) | ({
512
540
  type: "always";
513
541
  } & {
514
542
  operator?: null | undefined;
515
543
  field?: null | undefined;
516
544
  value?: null | undefined;
517
545
  reason?: null | undefined;
518
- }) | ({
546
+ }))[] | (({
519
547
  type: "url" | "context" | "element";
520
548
  operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
521
549
  } & {
522
550
  field?: string | undefined;
523
551
  value?: string | undefined;
524
552
  reason?: string | undefined;
553
+ }) | ({
554
+ type: "named_rule";
555
+ rule_id: number;
556
+ } & {
557
+ reason?: string | undefined;
558
+ }) | ({
559
+ type: "always";
560
+ } & {
561
+ operator?: null | undefined;
562
+ field?: null | undefined;
563
+ value?: null | undefined;
564
+ reason?: null | undefined;
525
565
  }))[];
566
+ availability_expression: import("./helpers/rules").RuleExpression;
567
+ recommend_expression: import("./helpers/rules").RuleExpression;
568
+ always_recommend: boolean;
526
569
  confirm: string;
527
570
  shortcut: string[];
528
571
  explanation: string;
@@ -561,6 +604,10 @@ export declare class Organization {
561
604
  } & {
562
605
  position?: "inline" | "popover" | undefined;
563
606
  }))[] | null;
607
+ next_steps: (string | number)[];
608
+ } & {
609
+ third_party_source?: string | null | undefined;
610
+ third_party_id?: string | null | undefined;
564
611
  })[]>;
565
612
  static listCommandCategories: (orgUID: string) => Promise<({
566
613
  id: number;
@@ -604,14 +651,7 @@ export declare class Organization {
604
651
  static listRules: (orgUID: string) => Promise<{
605
652
  id: number;
606
653
  name: string;
607
- conditions: ({
608
- type: "url" | "context" | "element";
609
- operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
610
- } & {
611
- field?: string | undefined;
612
- value?: string | undefined;
613
- reason?: string | undefined;
614
- })[];
654
+ expression: import("./helpers/rules").RuleExpression;
615
655
  }[]>;
616
656
  static userHasAccess: (uuid: string, user: string) => Promise<{
617
657
  username: string;
@@ -19,6 +19,8 @@ import { ProfileV } from './profile';
19
19
  import { PlaceholderV } from './placeholder';
20
20
  import { EnvReleaseInfoV, ReleaseStepV, ReleaseV } from './releases';
21
21
  import { EnvironmentV } from './environment';
22
+ import { NudgeV } from './nudge';
23
+ import { RuleExpressionAndV, RuleExpressionOrV, RuleExpressionV } from './helpers/rules';
22
24
  /*******************************************************************************/
23
25
  export declare type IContextType = t.TypeOf<typeof ContextV>;
24
26
  export declare type IUserType = t.TypeOf<typeof UserV>;
@@ -58,6 +60,9 @@ export declare type RequestTemplateType = t.TypeOf<typeof RequestTemplateV>;
58
60
  export declare type RequestType = t.TypeOf<typeof RequestV>;
59
61
  export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV>;
60
62
  export declare type IEndUserType = t.TypeOf<typeof EndUserV>;
63
+ export declare type IRuleExpression = t.TypeOf<typeof RuleExpressionV>;
64
+ export declare type IRuleExpressionAnd = t.TypeOf<typeof RuleExpressionAndV>;
65
+ export declare type IRuleExpressionOr = t.TypeOf<typeof RuleExpressionOrV>;
61
66
  export declare type IConditionType = t.TypeOf<typeof ConditionV>;
62
67
  export declare type IConditionOperatorType = t.TypeOf<typeof ConditionOperatorV>;
63
68
  export declare type IContextArgumentType = t.TypeOf<typeof ContextArgumentV>;
@@ -66,6 +71,12 @@ export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV>;
66
71
  export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV>;
67
72
  export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV>;
68
73
  export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV>;
74
+ export declare type INudgeType = t.TypeOf<typeof NudgeV>;
75
+ export interface INudgeClientType {
76
+ nudge: INudgeType;
77
+ active: boolean;
78
+ lastTriggeredTs?: number;
79
+ }
69
80
  export interface ICommandInput {
70
81
  text: string;
71
82
  command: ICommandType;
@@ -96,6 +107,7 @@ export declare type IConfigEndpointResponse = {
96
107
  organization: any;
97
108
  environments_with_versions?: any[];
98
109
  placeholders?: any[];
110
+ nudges?: INudgeType[];
99
111
  };
100
112
  export type { IResourceSettings } from './IResourceSettings';
101
113
  export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV>;
@@ -198,6 +210,14 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
198
210
  object?: string | undefined;
199
211
  hoverTooltip?: boolean | undefined;
200
212
  operation?: "self" | "router" | "blank" | undefined;
213
+ }) | ({
214
+ type: "helpdoc";
215
+ value: string;
216
+ } & {} & {
217
+ commandType?: "object" | "independent" | "help" | undefined;
218
+ object?: string | undefined;
219
+ hoverTooltip?: boolean | undefined;
220
+ operation?: "self" | "router" | "blank" | undefined;
201
221
  });
202
222
  } & {
203
223
  disabledReason?: string | undefined;
@@ -318,12 +338,13 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
318
338
  auto_choose?: boolean | undefined;
319
339
  is_private?: boolean | undefined;
320
340
  }) | ({
321
- type: "video";
341
+ type: "html" | "video";
322
342
  value: {
323
343
  source: string;
324
344
  } & {
325
345
  title?: string | undefined;
326
346
  description?: string | undefined;
347
+ url?: string | undefined;
327
348
  };
328
349
  order_key: number;
329
350
  } & {
@@ -355,20 +376,23 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
355
376
  reason?: string | undefined;
356
377
  })[];
357
378
  recommend_rules: (({
358
- type: "always";
359
- } & {
360
- operator?: null | undefined;
361
- field?: null | undefined;
362
- value?: null | undefined;
363
- reason?: null | undefined;
364
- }) | ({
365
379
  type: "url" | "context" | "element";
366
380
  operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
367
381
  } & {
368
382
  field?: string | undefined;
369
383
  value?: string | undefined;
370
384
  reason?: string | undefined;
385
+ }) | ({
386
+ type: "always";
387
+ } & {
388
+ operator?: null | undefined;
389
+ field?: null | undefined;
390
+ value?: null | undefined;
391
+ reason?: null | undefined;
371
392
  }))[];
393
+ availability_expression: import("./helpers/rules").RuleExpression | null;
394
+ recommend_expression: import("./helpers/rules").RuleExpression | null;
395
+ always_recommend: boolean;
372
396
  confirm: string;
373
397
  shortcut: string[];
374
398
  explanation: string;
@@ -407,6 +431,7 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
407
431
  } & {
408
432
  position?: "inline" | "popover" | undefined;
409
433
  }))[] | null;
434
+ next_steps: (string | number)[];
410
435
  };
411
436
  export declare const isResource: (option: any) => option is IResourceType;
412
437
  export declare const isContextArgument: (argument: IArgumentType) => argument is {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commandbar",
3
- "version": "1.6.13",
3
+ "version": "1.6.14",
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",