commandbar 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +6 -7
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +18 -29
- package/build/internal/src/client/CommandBarSDK.d.ts +16 -2
- package/build/internal/src/client/EventHandler.d.ts +81 -16
- package/build/internal/src/client/globals.d.ts +1 -0
- package/build/internal/src/client/symbols.d.ts +6 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +30 -47
- package/build/internal/src/middleware/OrganizationV.d.ts +7 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +2 -0
- package/build/internal/src/middleware/checklist.d.ts +740 -0
- package/build/internal/src/middleware/command.d.ts +680 -977
- package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
- package/build/internal/src/middleware/detailPreview.d.ts +3 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +84 -0
- package/build/internal/src/middleware/helpers/argument.d.ts +0 -120
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +60 -60
- package/build/internal/src/middleware/helpers/endUser.d.ts +1 -0
- package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +48 -22
- package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
- package/build/internal/src/middleware/historyEvent.d.ts +0 -19
- package/build/internal/src/middleware/nudge.d.ts +890 -94
- package/build/internal/src/middleware/organization.d.ts +88 -56
- package/build/internal/src/middleware/skin.d.ts +13 -2
- package/build/internal/src/middleware/types.d.ts +29 -11
- package/build/internal/src/middleware/user.d.ts +2 -1
- package/build/internal/src/util/LocalStorage.d.ts +1 -1
- package/package.json +2 -3
- package/src/init.ts +1 -1
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const CommandGoal: t.TypeC<{
|
3
|
+
type: t.LiteralC<"command_executed">;
|
4
|
+
meta: t.TypeC<{
|
5
|
+
command: t.StringC;
|
6
|
+
}>;
|
7
|
+
}>;
|
8
|
+
export declare const PageVisitedGoal: t.TypeC<{
|
9
|
+
type: t.LiteralC<"page_visited">;
|
10
|
+
value: t.StringC;
|
11
|
+
}>;
|
12
|
+
export declare const ElementClickedGoal: t.TypeC<{
|
13
|
+
type: t.LiteralC<"element_clicked">;
|
14
|
+
value: t.StringC;
|
15
|
+
}>;
|
16
|
+
export declare const ConditionsMetGoal: t.TypeC<{
|
17
|
+
type: t.LiteralC<"conditions_met">;
|
18
|
+
expression: t.Type<import("./rules").RuleExpression, import("./rules").RuleExpression, unknown>;
|
19
|
+
}>;
|
20
|
+
export declare const CTAClickedGoal: t.TypeC<{
|
21
|
+
type: t.LiteralC<"cta_clicked">;
|
22
|
+
}>;
|
23
|
+
export declare const EventTrackedGoal: t.TypeC<{
|
24
|
+
type: t.LiteralC<"event_tracked">;
|
25
|
+
event: t.StringC;
|
26
|
+
}>;
|
@@ -1,49 +1,56 @@
|
|
1
1
|
import * as t from 'io-ts';
|
2
|
-
export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage"];
|
2
|
+
export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isBefore", "isAfter", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage"];
|
3
3
|
declare const OperatorV: t.KeyofC<{
|
4
4
|
includes: null;
|
5
5
|
endsWith: null;
|
6
6
|
startsWith: null;
|
7
7
|
is: null;
|
8
|
-
isTruthy: null;
|
9
|
-
isFalsy: null;
|
10
8
|
isNot: null;
|
11
9
|
isTrue: null;
|
12
10
|
isFalse: null;
|
11
|
+
isTruthy: null;
|
12
|
+
isFalsy: null;
|
13
13
|
doesNotInclude: null;
|
14
14
|
matchesRegex: null;
|
15
15
|
isGreaterThan: null;
|
16
16
|
isLessThan: null;
|
17
|
+
isBefore: null;
|
18
|
+
isAfter: null;
|
17
19
|
isDefined: null;
|
18
20
|
isNotDefined: null;
|
19
21
|
classnameOnPage: null;
|
20
22
|
idOnPage: null;
|
23
|
+
selectorOnPage: null;
|
21
24
|
}>;
|
22
25
|
export declare const ConditionV: t.IntersectionC<[t.TypeC<{
|
23
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"
|
26
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
|
24
27
|
operator: t.KeyofC<{
|
25
28
|
includes: null;
|
26
29
|
endsWith: null;
|
27
30
|
startsWith: null;
|
28
31
|
is: null;
|
29
|
-
isTruthy: null;
|
30
|
-
isFalsy: null;
|
31
32
|
isNot: null;
|
32
33
|
isTrue: null;
|
33
34
|
isFalse: null;
|
35
|
+
isTruthy: null;
|
36
|
+
isFalsy: null;
|
34
37
|
doesNotInclude: null;
|
35
38
|
matchesRegex: null;
|
36
39
|
isGreaterThan: null;
|
37
40
|
isLessThan: null;
|
41
|
+
isBefore: null;
|
42
|
+
isAfter: null;
|
38
43
|
isDefined: null;
|
39
44
|
isNotDefined: null;
|
40
45
|
classnameOnPage: null;
|
41
46
|
idOnPage: null;
|
47
|
+
selectorOnPage: null;
|
42
48
|
}>;
|
43
49
|
}>, t.PartialC<{
|
44
50
|
field: t.StringC;
|
45
51
|
value: t.StringC;
|
46
52
|
reason: t.StringC;
|
53
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
47
54
|
}>]>;
|
48
55
|
export declare const getConditions: (expr: RuleExpression) => ExpressionCondition[];
|
49
56
|
export declare const canonicalize: (expr: RuleExpression) => RuleExpression;
|
@@ -75,7 +82,7 @@ export declare const RuleExpressionTrue: t.TypeOf<typeof RuleExpressionLiteralV>
|
|
75
82
|
export declare const RuleExpressionFalse: t.TypeOf<typeof RuleExpressionLiteralV>;
|
76
83
|
export declare const NamedRuleReferenceV: t.IntersectionC<[t.TypeC<{
|
77
84
|
type: t.LiteralC<"named_rule">;
|
78
|
-
rule_id: t.NumberC
|
85
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
79
86
|
}>, t.PartialC<{
|
80
87
|
reason: t.StringC;
|
81
88
|
}>]>;
|
@@ -86,32 +93,37 @@ export declare const RecommendationRuleAlwaysV: t.IntersectionC<[t.TypeC<{
|
|
86
93
|
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
87
94
|
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
88
95
|
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
96
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
89
97
|
}>]>;
|
90
98
|
export declare const AvailabilityRuleV: t.IntersectionC<[t.TypeC<{
|
91
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"
|
99
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
|
92
100
|
operator: t.KeyofC<{
|
93
101
|
includes: null;
|
94
102
|
endsWith: null;
|
95
103
|
startsWith: null;
|
96
104
|
is: null;
|
97
|
-
isTruthy: null;
|
98
|
-
isFalsy: null;
|
99
105
|
isNot: null;
|
100
106
|
isTrue: null;
|
101
107
|
isFalse: null;
|
108
|
+
isTruthy: null;
|
109
|
+
isFalsy: null;
|
102
110
|
doesNotInclude: null;
|
103
111
|
matchesRegex: null;
|
104
112
|
isGreaterThan: null;
|
105
113
|
isLessThan: null;
|
114
|
+
isBefore: null;
|
115
|
+
isAfter: null;
|
106
116
|
isDefined: null;
|
107
117
|
isNotDefined: null;
|
108
118
|
classnameOnPage: null;
|
109
119
|
idOnPage: null;
|
120
|
+
selectorOnPage: null;
|
110
121
|
}>;
|
111
122
|
}>, t.PartialC<{
|
112
123
|
field: t.StringC;
|
113
124
|
value: t.StringC;
|
114
125
|
reason: t.StringC;
|
126
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
115
127
|
}>]>;
|
116
128
|
export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
117
129
|
type: t.LiteralC<"always">;
|
@@ -120,60 +132,69 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
120
132
|
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
121
133
|
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
122
134
|
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
135
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
123
136
|
}>]>, t.IntersectionC<[t.TypeC<{
|
124
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"
|
137
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
|
125
138
|
operator: t.KeyofC<{
|
126
139
|
includes: null;
|
127
140
|
endsWith: null;
|
128
141
|
startsWith: null;
|
129
142
|
is: null;
|
130
|
-
isTruthy: null;
|
131
|
-
isFalsy: null;
|
132
143
|
isNot: null;
|
133
144
|
isTrue: null;
|
134
145
|
isFalse: null;
|
146
|
+
isTruthy: null;
|
147
|
+
isFalsy: null;
|
135
148
|
doesNotInclude: null;
|
136
149
|
matchesRegex: null;
|
137
150
|
isGreaterThan: null;
|
138
151
|
isLessThan: null;
|
152
|
+
isBefore: null;
|
153
|
+
isAfter: null;
|
139
154
|
isDefined: null;
|
140
155
|
isNotDefined: null;
|
141
156
|
classnameOnPage: null;
|
142
157
|
idOnPage: null;
|
158
|
+
selectorOnPage: null;
|
143
159
|
}>;
|
144
160
|
}>, t.PartialC<{
|
145
161
|
field: t.StringC;
|
146
162
|
value: t.StringC;
|
147
163
|
reason: t.StringC;
|
164
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
148
165
|
}>]>]>;
|
149
166
|
export declare const EditorAvailabilityRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
150
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"
|
167
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
|
151
168
|
operator: t.KeyofC<{
|
152
169
|
includes: null;
|
153
170
|
endsWith: null;
|
154
171
|
startsWith: null;
|
155
172
|
is: null;
|
156
|
-
isTruthy: null;
|
157
|
-
isFalsy: null;
|
158
173
|
isNot: null;
|
159
174
|
isTrue: null;
|
160
175
|
isFalse: null;
|
176
|
+
isTruthy: null;
|
177
|
+
isFalsy: null;
|
161
178
|
doesNotInclude: null;
|
162
179
|
matchesRegex: null;
|
163
180
|
isGreaterThan: null;
|
164
181
|
isLessThan: null;
|
182
|
+
isBefore: null;
|
183
|
+
isAfter: null;
|
165
184
|
isDefined: null;
|
166
185
|
isNotDefined: null;
|
167
186
|
classnameOnPage: null;
|
168
187
|
idOnPage: null;
|
188
|
+
selectorOnPage: null;
|
169
189
|
}>;
|
170
190
|
}>, t.PartialC<{
|
171
191
|
field: t.StringC;
|
172
192
|
value: t.StringC;
|
173
193
|
reason: t.StringC;
|
194
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
174
195
|
}>]>, t.IntersectionC<[t.TypeC<{
|
175
196
|
type: t.LiteralC<"named_rule">;
|
176
|
-
rule_id: t.NumberC
|
197
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
177
198
|
}>, t.PartialC<{
|
178
199
|
reason: t.StringC;
|
179
200
|
}>]>]>;
|
@@ -184,39 +205,44 @@ export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.Intersecti
|
|
184
205
|
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
185
206
|
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
186
207
|
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
208
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
187
209
|
}>]>, t.IntersectionC<[t.TypeC<{
|
188
|
-
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"
|
210
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
|
189
211
|
operator: t.KeyofC<{
|
190
212
|
includes: null;
|
191
213
|
endsWith: null;
|
192
214
|
startsWith: null;
|
193
215
|
is: null;
|
194
|
-
isTruthy: null;
|
195
|
-
isFalsy: null;
|
196
216
|
isNot: null;
|
197
217
|
isTrue: null;
|
198
218
|
isFalse: null;
|
219
|
+
isTruthy: null;
|
220
|
+
isFalsy: null;
|
199
221
|
doesNotInclude: null;
|
200
222
|
matchesRegex: null;
|
201
223
|
isGreaterThan: null;
|
202
224
|
isLessThan: null;
|
225
|
+
isBefore: null;
|
226
|
+
isAfter: null;
|
203
227
|
isDefined: null;
|
204
228
|
isNotDefined: null;
|
205
229
|
classnameOnPage: null;
|
206
230
|
idOnPage: null;
|
231
|
+
selectorOnPage: null;
|
207
232
|
}>;
|
208
233
|
}>, t.PartialC<{
|
209
234
|
field: t.StringC;
|
210
235
|
value: t.StringC;
|
211
236
|
reason: t.StringC;
|
237
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
212
238
|
}>]>]>, t.IntersectionC<[t.TypeC<{
|
213
239
|
type: t.LiteralC<"named_rule">;
|
214
|
-
rule_id: t.NumberC
|
240
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
215
241
|
}>, t.PartialC<{
|
216
242
|
reason: t.StringC;
|
217
243
|
}>]>]>;
|
218
244
|
export declare const NamedRuleV: t.TypeC<{
|
219
|
-
id: t.NumberC
|
245
|
+
id: t.UnionC<[t.NumberC, t.StringC]>;
|
220
246
|
name: t.StringC;
|
221
247
|
expression: t.Type<RuleExpression, RuleExpression, unknown>;
|
222
248
|
}>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const GeneratedTagsV: t.PartialC<{
|
3
|
+
automated: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
|
4
|
+
manual: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
|
5
|
+
deny: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
|
6
|
+
}>;
|
7
|
+
export declare type IGeneratedTags = t.TypeOf<typeof GeneratedTagsV>;
|
@@ -18,23 +18,4 @@ export declare class HistoryEvent {
|
|
18
18
|
sha1: string;
|
19
19
|
version_num: number;
|
20
20
|
} & {})[]>;
|
21
|
-
static revert: (object: {
|
22
|
-
id: number;
|
23
|
-
organization: string;
|
24
|
-
changed_by: string;
|
25
|
-
description: string;
|
26
|
-
created: string;
|
27
|
-
sha1: string;
|
28
|
-
version_num: number;
|
29
|
-
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined, urlArgs?: {
|
30
|
-
[arg: string]: string;
|
31
|
-
} | undefined) => Promise<{
|
32
|
-
id: number;
|
33
|
-
organization: string;
|
34
|
-
changed_by: string;
|
35
|
-
description: string;
|
36
|
-
created: string;
|
37
|
-
sha1: string;
|
38
|
-
version_num: number;
|
39
|
-
} & {}>;
|
40
21
|
}
|