commandbar 1.6.13 → 1.6.16
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/internal/src/client/AddContextOptions.d.ts +6 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +39 -3
- package/build/internal/src/client/CommandBarSDK.d.ts +2 -1
- package/build/internal/src/client/EventHandler.d.ts +13 -4
- package/build/internal/src/client/symbols.d.ts +1 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +7 -3
- package/build/internal/src/middleware/OrganizationV.d.ts +24 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +24 -0
- package/build/internal/src/middleware/command.d.ts +696 -190
- package/build/internal/src/middleware/commandCategory.d.ts +8 -0
- package/build/internal/src/middleware/detailPreview.d.ts +3 -6
- package/build/internal/src/middleware/helpers/argument.d.ts +11 -6
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +17 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +29 -26
- package/build/internal/src/middleware/nudge.d.ts +197 -0
- package/build/internal/src/middleware/organization.d.ts +104 -13
- package/build/internal/src/middleware/skin.d.ts +18 -1
- package/build/internal/src/middleware/tab.d.ts +27 -0
- package/build/internal/src/middleware/types.d.ts +45 -12
- package/build/internal/src/middleware/user.d.ts +1 -1
- package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare const CommandCategoryV: t.IntersectionC<[t.IntersectionC<[t.TypeC
|
|
8
8
|
}>, t.PartialC<{}>]>, t.TypeC<{
|
9
9
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
10
10
|
icon: t.UnionC<[t.StringC, t.NullC]>;
|
11
|
+
image: t.UnionC<[t.StringC, t.NullC]>;
|
11
12
|
render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
12
13
|
setting_hide_before_search: t.BooleanC;
|
13
14
|
setting_max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
@@ -27,6 +28,7 @@ export declare const BatchEditorCategoryResponseV: t.TypeC<{
|
|
27
28
|
}>, t.PartialC<{}>]>, t.TypeC<{
|
28
29
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
29
30
|
icon: t.UnionC<[t.StringC, t.NullC]>;
|
31
|
+
image: t.UnionC<[t.StringC, t.NullC]>;
|
30
32
|
render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
31
33
|
setting_hide_before_search: t.BooleanC;
|
32
34
|
setting_max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
@@ -47,6 +49,7 @@ export declare class CommandCategory {
|
|
47
49
|
} & {} & {
|
48
50
|
sort_key: number | null;
|
49
51
|
icon: string | null;
|
52
|
+
image: string | null;
|
50
53
|
render_as: "grid" | "list";
|
51
54
|
setting_hide_before_search: boolean;
|
52
55
|
setting_max_options_count: number | null;
|
@@ -64,6 +67,7 @@ export declare class CommandCategory {
|
|
64
67
|
} & {} & {
|
65
68
|
sort_key: number | null;
|
66
69
|
icon: string | null;
|
70
|
+
image: string | null;
|
67
71
|
render_as: "grid" | "list";
|
68
72
|
setting_hide_before_search: boolean;
|
69
73
|
setting_max_options_count: number | null;
|
@@ -82,6 +86,7 @@ export declare class CommandCategory {
|
|
82
86
|
} & {} & {
|
83
87
|
sort_key: number | null;
|
84
88
|
icon: string | null;
|
89
|
+
image: string | null;
|
85
90
|
render_as: "grid" | "list";
|
86
91
|
setting_hide_before_search: boolean;
|
87
92
|
setting_max_options_count: number | null;
|
@@ -99,6 +104,7 @@ export declare class CommandCategory {
|
|
99
104
|
} & {} & {
|
100
105
|
sort_key: number | null;
|
101
106
|
icon: string | null;
|
107
|
+
image: string | null;
|
102
108
|
render_as: "grid" | "list";
|
103
109
|
setting_hide_before_search: boolean;
|
104
110
|
setting_max_options_count: number | null;
|
@@ -118,6 +124,7 @@ export declare class CommandCategory {
|
|
118
124
|
} & {} & {
|
119
125
|
sort_key: number | null;
|
120
126
|
icon: string | null;
|
127
|
+
image: string | null;
|
121
128
|
render_as: "grid" | "list";
|
122
129
|
setting_hide_before_search: boolean;
|
123
130
|
setting_max_options_count: number | null;
|
@@ -137,6 +144,7 @@ export declare class CommandCategory {
|
|
137
144
|
} & {} & {
|
138
145
|
sort_key: number | null;
|
139
146
|
icon: string | null;
|
147
|
+
image: string | null;
|
140
148
|
render_as: "grid" | "list";
|
141
149
|
setting_hide_before_search: boolean;
|
142
150
|
setting_max_options_count: number | null;
|
@@ -1,14 +1,14 @@
|
|
1
1
|
/*******************************************************************************/
|
2
2
|
import * as t from 'io-ts';
|
3
3
|
export declare const DetailPreviewObjectV: t.IntersectionC<[t.TypeC<{
|
4
|
-
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.
|
4
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
5
5
|
value: t.StringC;
|
6
6
|
}>, t.PartialC<{
|
7
7
|
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
8
8
|
}>]>;
|
9
9
|
export declare type DetailPreviewObjectType = t.TypeOf<typeof DetailPreviewObjectV>;
|
10
10
|
export declare type DetailPreviewType = string | DetailPreviewObjectType | (string | DetailPreviewObjectType)[];
|
11
|
-
export declare type
|
11
|
+
export declare type DataRowMetadata = {
|
12
12
|
type: 'command' | 'parameter';
|
13
13
|
label: string;
|
14
14
|
value: any;
|
@@ -17,7 +17,4 @@ export declare type DataRowMedata = {
|
|
17
17
|
};
|
18
18
|
export declare const DEFAULT_DETAIL_PREVIEW_TYPE: DetailPreviewObjectType['type'];
|
19
19
|
export declare const standardize: (item: undefined | null | DetailPreviewType) => null | DetailPreviewObjectType[];
|
20
|
-
export declare const getFirstDetail: (detail?: DetailPreviewType | null | undefined) => DetailPreviewObjectType |
|
21
|
-
type: null;
|
22
|
-
value: null;
|
23
|
-
};
|
20
|
+
export declare const getFirstDetail: (detail?: DetailPreviewType | null | undefined) => DetailPreviewObjectType | null;
|
@@ -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
|
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
|
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
|
-
|
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,197 @@
|
|
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
|
+
is_live: t.BooleanC;
|
25
|
+
}>, t.PartialC<{}>]>;
|
26
|
+
export declare class Nudge {
|
27
|
+
static decode: (data: any) => {
|
28
|
+
id: number;
|
29
|
+
organization: string;
|
30
|
+
slug: string;
|
31
|
+
content: string;
|
32
|
+
show_expression: import("./helpers/rules").RuleExpression;
|
33
|
+
trigger: {
|
34
|
+
type: "when_conditions_pass";
|
35
|
+
} | {
|
36
|
+
type: "on_command_execution";
|
37
|
+
meta: {
|
38
|
+
command: string;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
on_select: {
|
42
|
+
type: "execute_command";
|
43
|
+
meta: {
|
44
|
+
command: string;
|
45
|
+
};
|
46
|
+
};
|
47
|
+
timeout_ms: number | null;
|
48
|
+
frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
|
49
|
+
is_live: boolean;
|
50
|
+
} & {};
|
51
|
+
static create: (object: {
|
52
|
+
id: number;
|
53
|
+
organization: string;
|
54
|
+
slug: string;
|
55
|
+
content: string;
|
56
|
+
show_expression: import("./helpers/rules").RuleExpression;
|
57
|
+
trigger: {
|
58
|
+
type: "when_conditions_pass";
|
59
|
+
} | {
|
60
|
+
type: "on_command_execution";
|
61
|
+
meta: {
|
62
|
+
command: string;
|
63
|
+
};
|
64
|
+
};
|
65
|
+
on_select: {
|
66
|
+
type: "execute_command";
|
67
|
+
meta: {
|
68
|
+
command: string;
|
69
|
+
};
|
70
|
+
};
|
71
|
+
timeout_ms: number | null;
|
72
|
+
frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
|
73
|
+
is_live: boolean;
|
74
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
75
|
+
id: number;
|
76
|
+
organization: string;
|
77
|
+
slug: string;
|
78
|
+
content: string;
|
79
|
+
show_expression: import("./helpers/rules").RuleExpression;
|
80
|
+
trigger: {
|
81
|
+
type: "when_conditions_pass";
|
82
|
+
} | {
|
83
|
+
type: "on_command_execution";
|
84
|
+
meta: {
|
85
|
+
command: string;
|
86
|
+
};
|
87
|
+
};
|
88
|
+
on_select: {
|
89
|
+
type: "execute_command";
|
90
|
+
meta: {
|
91
|
+
command: string;
|
92
|
+
};
|
93
|
+
};
|
94
|
+
timeout_ms: number | null;
|
95
|
+
frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
|
96
|
+
is_live: boolean;
|
97
|
+
} & {}>;
|
98
|
+
static update: (object: {
|
99
|
+
id: number;
|
100
|
+
organization: string;
|
101
|
+
slug: string;
|
102
|
+
content: string;
|
103
|
+
show_expression: import("./helpers/rules").RuleExpression;
|
104
|
+
trigger: {
|
105
|
+
type: "when_conditions_pass";
|
106
|
+
} | {
|
107
|
+
type: "on_command_execution";
|
108
|
+
meta: {
|
109
|
+
command: string;
|
110
|
+
};
|
111
|
+
};
|
112
|
+
on_select: {
|
113
|
+
type: "execute_command";
|
114
|
+
meta: {
|
115
|
+
command: string;
|
116
|
+
};
|
117
|
+
};
|
118
|
+
timeout_ms: number | null;
|
119
|
+
frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
|
120
|
+
is_live: boolean;
|
121
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
122
|
+
id: number;
|
123
|
+
organization: string;
|
124
|
+
slug: string;
|
125
|
+
content: string;
|
126
|
+
show_expression: import("./helpers/rules").RuleExpression;
|
127
|
+
trigger: {
|
128
|
+
type: "when_conditions_pass";
|
129
|
+
} | {
|
130
|
+
type: "on_command_execution";
|
131
|
+
meta: {
|
132
|
+
command: string;
|
133
|
+
};
|
134
|
+
};
|
135
|
+
on_select: {
|
136
|
+
type: "execute_command";
|
137
|
+
meta: {
|
138
|
+
command: string;
|
139
|
+
};
|
140
|
+
};
|
141
|
+
timeout_ms: number | null;
|
142
|
+
frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
|
143
|
+
is_live: boolean;
|
144
|
+
} & {}>;
|
145
|
+
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
146
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
147
|
+
id: number;
|
148
|
+
organization: string;
|
149
|
+
slug: string;
|
150
|
+
content: string;
|
151
|
+
show_expression: import("./helpers/rules").RuleExpression;
|
152
|
+
trigger: {
|
153
|
+
type: "when_conditions_pass";
|
154
|
+
} | {
|
155
|
+
type: "on_command_execution";
|
156
|
+
meta: {
|
157
|
+
command: string;
|
158
|
+
};
|
159
|
+
};
|
160
|
+
on_select: {
|
161
|
+
type: "execute_command";
|
162
|
+
meta: {
|
163
|
+
command: string;
|
164
|
+
};
|
165
|
+
};
|
166
|
+
timeout_ms: number | null;
|
167
|
+
frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
|
168
|
+
is_live: boolean;
|
169
|
+
} & {})[]>;
|
170
|
+
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
171
|
+
onSuccess?: (() => void) | undefined;
|
172
|
+
onError?: ((err: string) => void) | undefined;
|
173
|
+
} | undefined) => Promise<{
|
174
|
+
id: number;
|
175
|
+
organization: string;
|
176
|
+
slug: string;
|
177
|
+
content: string;
|
178
|
+
show_expression: import("./helpers/rules").RuleExpression;
|
179
|
+
trigger: {
|
180
|
+
type: "when_conditions_pass";
|
181
|
+
} | {
|
182
|
+
type: "on_command_execution";
|
183
|
+
meta: {
|
184
|
+
command: string;
|
185
|
+
};
|
186
|
+
};
|
187
|
+
on_select: {
|
188
|
+
type: "execute_command";
|
189
|
+
meta: {
|
190
|
+
command: string;
|
191
|
+
};
|
192
|
+
};
|
193
|
+
timeout_ms: number | null;
|
194
|
+
frequency_limit: "no_limit" | "once_per_session" | "once_per_user";
|
195
|
+
is_live: boolean;
|
196
|
+
} & {}>;
|
197
|
+
}
|