commandbar 1.6.7 → 1.6.10
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.d.ts +10 -0
- package/build/commandbar-js/src/index.js +1 -0
- package/build/commandbar-js/src/init.d.ts +21 -0
- package/build/commandbar-js/src/snippet.d.ts +1 -0
- package/build/internal/src/client/AddContextOptions.d.ts +108 -0
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +303 -0
- package/build/internal/src/client/CommandBarProxySDK.d.ts +48 -0
- package/build/internal/src/client/CommandBarSDK.d.ts +50 -0
- package/build/internal/src/client/EventHandler.d.ts +99 -0
- package/build/internal/src/client/SDKConfig.d.ts +13 -0
- package/build/internal/src/client/SentryReporter.d.ts +41 -0
- package/build/internal/src/client/globals.d.ts +18 -0
- package/build/internal/src/client/proxy.d.ts +15 -0
- package/build/internal/src/client/symbols.d.ts +32 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +252 -0
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
- package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +120 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +57 -0
- package/build/internal/src/middleware/command.d.ts +5464 -0
- package/build/internal/src/middleware/commandCategory.d.ts +136 -0
- package/build/internal/src/middleware/confetti.d.ts +16 -0
- package/build/internal/src/middleware/context.d.ts +40 -0
- package/build/internal/src/middleware/detailPreview.d.ts +21 -0
- package/build/internal/src/middleware/environment.d.ts +11 -0
- package/build/internal/src/middleware/generics.d.ts +40 -0
- package/build/internal/src/middleware/guide.d.ts +37 -0
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +66 -0
- package/build/internal/src/middleware/helpDocsSync.d.ts +42 -0
- package/build/internal/src/middleware/helpers/argument.d.ts +412 -0
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +191 -0
- package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
- package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +231 -0
- package/build/internal/src/middleware/historyEvent.d.ts +40 -0
- package/build/internal/src/middleware/network.d.ts +4 -0
- package/build/internal/src/middleware/organization.d.ts +710 -0
- package/build/internal/src/middleware/placeholder.d.ts +47 -0
- package/build/internal/src/middleware/profile.d.ts +11 -0
- package/build/internal/src/middleware/releases.d.ts +261 -0
- package/build/internal/src/middleware/skin.d.ts +66 -0
- package/build/internal/src/middleware/types.d.ts +425 -0
- package/build/internal/src/middleware/user.d.ts +12 -0
- package/build/internal/src/util/Disposable.d.ts +17 -0
- package/build/internal/src/util/LocalStorage.d.ts +6 -0
- package/build/internal/src/util/Logger.d.ts +18 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
- package/package.json +1 -1
- package/src/init.ts +1 -1
@@ -0,0 +1,231 @@
|
|
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"];
|
3
|
+
declare const OperatorV: t.KeyofC<{
|
4
|
+
includes: null;
|
5
|
+
endsWith: null;
|
6
|
+
startsWith: null;
|
7
|
+
is: null;
|
8
|
+
isTruthy: null;
|
9
|
+
isFalsy: null;
|
10
|
+
isNot: null;
|
11
|
+
isTrue: null;
|
12
|
+
isFalse: null;
|
13
|
+
doesNotInclude: null;
|
14
|
+
matchesRegex: null;
|
15
|
+
isGreaterThan: null;
|
16
|
+
isLessThan: null;
|
17
|
+
isDefined: null;
|
18
|
+
isNotDefined: null;
|
19
|
+
classnameOnPage: null;
|
20
|
+
idOnPage: null;
|
21
|
+
}>;
|
22
|
+
export declare const ConditionV: t.IntersectionC<[t.TypeC<{
|
23
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
|
24
|
+
operator: t.KeyofC<{
|
25
|
+
includes: null;
|
26
|
+
endsWith: null;
|
27
|
+
startsWith: null;
|
28
|
+
is: null;
|
29
|
+
isTruthy: null;
|
30
|
+
isFalsy: null;
|
31
|
+
isNot: null;
|
32
|
+
isTrue: null;
|
33
|
+
isFalse: null;
|
34
|
+
doesNotInclude: null;
|
35
|
+
matchesRegex: null;
|
36
|
+
isGreaterThan: null;
|
37
|
+
isLessThan: null;
|
38
|
+
isDefined: null;
|
39
|
+
isNotDefined: null;
|
40
|
+
classnameOnPage: null;
|
41
|
+
idOnPage: null;
|
42
|
+
}>;
|
43
|
+
}>, t.PartialC<{
|
44
|
+
field: t.StringC;
|
45
|
+
value: t.StringC;
|
46
|
+
reason: t.StringC;
|
47
|
+
}>]>;
|
48
|
+
export declare const NamedRuleReferenceV: t.IntersectionC<[t.TypeC<{
|
49
|
+
type: t.LiteralC<"named_rule">;
|
50
|
+
rule_id: t.NumberC;
|
51
|
+
}>, t.PartialC<{
|
52
|
+
reason: t.StringC;
|
53
|
+
}>]>;
|
54
|
+
export declare const RecommendationRuleAlwaysV: t.IntersectionC<[t.TypeC<{
|
55
|
+
type: t.LiteralC<"always">;
|
56
|
+
}>, t.PartialC<{
|
57
|
+
operator: t.UnionC<[t.UndefinedC, t.NullC]>;
|
58
|
+
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
59
|
+
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
60
|
+
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
61
|
+
}>]>;
|
62
|
+
export declare const AvailabilityRuleV: t.IntersectionC<[t.TypeC<{
|
63
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
|
64
|
+
operator: t.KeyofC<{
|
65
|
+
includes: null;
|
66
|
+
endsWith: null;
|
67
|
+
startsWith: null;
|
68
|
+
is: null;
|
69
|
+
isTruthy: null;
|
70
|
+
isFalsy: null;
|
71
|
+
isNot: null;
|
72
|
+
isTrue: null;
|
73
|
+
isFalse: null;
|
74
|
+
doesNotInclude: null;
|
75
|
+
matchesRegex: null;
|
76
|
+
isGreaterThan: null;
|
77
|
+
isLessThan: null;
|
78
|
+
isDefined: null;
|
79
|
+
isNotDefined: null;
|
80
|
+
classnameOnPage: null;
|
81
|
+
idOnPage: null;
|
82
|
+
}>;
|
83
|
+
}>, t.PartialC<{
|
84
|
+
field: t.StringC;
|
85
|
+
value: t.StringC;
|
86
|
+
reason: t.StringC;
|
87
|
+
}>]>;
|
88
|
+
export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
89
|
+
type: t.LiteralC<"always">;
|
90
|
+
}>, t.PartialC<{
|
91
|
+
operator: t.UnionC<[t.UndefinedC, t.NullC]>;
|
92
|
+
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
93
|
+
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
94
|
+
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
95
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
96
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
|
97
|
+
operator: t.KeyofC<{
|
98
|
+
includes: null;
|
99
|
+
endsWith: null;
|
100
|
+
startsWith: null;
|
101
|
+
is: null;
|
102
|
+
isTruthy: null;
|
103
|
+
isFalsy: null;
|
104
|
+
isNot: null;
|
105
|
+
isTrue: null;
|
106
|
+
isFalse: null;
|
107
|
+
doesNotInclude: null;
|
108
|
+
matchesRegex: null;
|
109
|
+
isGreaterThan: null;
|
110
|
+
isLessThan: null;
|
111
|
+
isDefined: null;
|
112
|
+
isNotDefined: null;
|
113
|
+
classnameOnPage: null;
|
114
|
+
idOnPage: null;
|
115
|
+
}>;
|
116
|
+
}>, t.PartialC<{
|
117
|
+
field: t.StringC;
|
118
|
+
value: t.StringC;
|
119
|
+
reason: t.StringC;
|
120
|
+
}>]>]>;
|
121
|
+
export declare const EditorAvailabilityRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
122
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
|
123
|
+
operator: t.KeyofC<{
|
124
|
+
includes: null;
|
125
|
+
endsWith: null;
|
126
|
+
startsWith: null;
|
127
|
+
is: null;
|
128
|
+
isTruthy: null;
|
129
|
+
isFalsy: null;
|
130
|
+
isNot: null;
|
131
|
+
isTrue: null;
|
132
|
+
isFalse: null;
|
133
|
+
doesNotInclude: null;
|
134
|
+
matchesRegex: null;
|
135
|
+
isGreaterThan: null;
|
136
|
+
isLessThan: null;
|
137
|
+
isDefined: null;
|
138
|
+
isNotDefined: null;
|
139
|
+
classnameOnPage: null;
|
140
|
+
idOnPage: null;
|
141
|
+
}>;
|
142
|
+
}>, t.PartialC<{
|
143
|
+
field: t.StringC;
|
144
|
+
value: t.StringC;
|
145
|
+
reason: t.StringC;
|
146
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
147
|
+
type: t.LiteralC<"named_rule">;
|
148
|
+
rule_id: t.NumberC;
|
149
|
+
}>, t.PartialC<{
|
150
|
+
reason: t.StringC;
|
151
|
+
}>]>]>;
|
152
|
+
export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
|
153
|
+
type: t.LiteralC<"always">;
|
154
|
+
}>, t.PartialC<{
|
155
|
+
operator: t.UnionC<[t.UndefinedC, t.NullC]>;
|
156
|
+
field: t.UnionC<[t.UndefinedC, t.NullC]>;
|
157
|
+
value: t.UnionC<[t.UndefinedC, t.NullC]>;
|
158
|
+
reason: t.UnionC<[t.UndefinedC, t.NullC]>;
|
159
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
160
|
+
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
|
161
|
+
operator: t.KeyofC<{
|
162
|
+
includes: null;
|
163
|
+
endsWith: null;
|
164
|
+
startsWith: null;
|
165
|
+
is: null;
|
166
|
+
isTruthy: null;
|
167
|
+
isFalsy: null;
|
168
|
+
isNot: null;
|
169
|
+
isTrue: null;
|
170
|
+
isFalse: null;
|
171
|
+
doesNotInclude: null;
|
172
|
+
matchesRegex: null;
|
173
|
+
isGreaterThan: null;
|
174
|
+
isLessThan: null;
|
175
|
+
isDefined: null;
|
176
|
+
isNotDefined: null;
|
177
|
+
classnameOnPage: null;
|
178
|
+
idOnPage: null;
|
179
|
+
}>;
|
180
|
+
}>, t.PartialC<{
|
181
|
+
field: t.StringC;
|
182
|
+
value: t.StringC;
|
183
|
+
reason: t.StringC;
|
184
|
+
}>]>]>, t.IntersectionC<[t.TypeC<{
|
185
|
+
type: t.LiteralC<"named_rule">;
|
186
|
+
rule_id: t.NumberC;
|
187
|
+
}>, t.PartialC<{
|
188
|
+
reason: t.StringC;
|
189
|
+
}>]>]>;
|
190
|
+
export declare const NamedRuleV: t.TypeC<{
|
191
|
+
id: t.NumberC;
|
192
|
+
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
|
+
}>]>>;
|
219
|
+
}>;
|
220
|
+
export declare type IRuleOperator = t.TypeOf<typeof OperatorV>;
|
221
|
+
export declare type IAvailabilityRule = t.TypeOf<typeof AvailabilityRuleV>;
|
222
|
+
export declare type IEditorAvailabilityRule = t.TypeOf<typeof EditorAvailabilityRuleV>;
|
223
|
+
export declare type IRecommendationRule = t.TypeOf<typeof RecommendationRuleV>;
|
224
|
+
export declare type IEditorRecommendationRule = t.TypeOf<typeof EditorRecommendationRuleV>;
|
225
|
+
export declare type ICondition = t.TypeOf<typeof ConditionV>;
|
226
|
+
export declare type IAvailabilityRuleType = IAvailabilityRule['type'];
|
227
|
+
export declare type IRecommendationRuleType = IRecommendationRule['type'];
|
228
|
+
export declare type IRule = IAvailabilityRule | IRecommendationRule;
|
229
|
+
export declare type IEditorRule = IEditorAvailabilityRule | IEditorRecommendationRule;
|
230
|
+
export declare type INamedRule = t.TypeOf<typeof NamedRuleV>;
|
231
|
+
export {};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const HistoryEventV: t.IntersectionC<[t.TypeC<{
|
3
|
+
id: t.NumberC;
|
4
|
+
organization: t.StringC;
|
5
|
+
changed_by: t.StringC;
|
6
|
+
description: t.StringC;
|
7
|
+
created: t.StringC;
|
8
|
+
sha1: t.StringC;
|
9
|
+
version_num: t.NumberC;
|
10
|
+
}>, t.PartialC<{}>]>;
|
11
|
+
export declare class HistoryEvent {
|
12
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
13
|
+
id: number;
|
14
|
+
organization: string;
|
15
|
+
changed_by: string;
|
16
|
+
description: string;
|
17
|
+
created: string;
|
18
|
+
sha1: string;
|
19
|
+
version_num: number;
|
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
|
+
}
|