commandbar 1.6.7 → 1.6.10
Sign up to get free protection for your applications and to get access to all the features.
- 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,47 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const PlaceholderV: t.IntersectionC<[t.TypeC<{
|
3
|
+
id: t.NumberC;
|
4
|
+
organization: t.StringC;
|
5
|
+
slug: t.StringC;
|
6
|
+
text: t.StringC;
|
7
|
+
}>, t.PartialC<{}>]>;
|
8
|
+
export declare class Placeholder {
|
9
|
+
static create: (object: {
|
10
|
+
id: number;
|
11
|
+
organization: string;
|
12
|
+
slug: string;
|
13
|
+
text: string;
|
14
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
15
|
+
id: number;
|
16
|
+
organization: string;
|
17
|
+
slug: string;
|
18
|
+
text: string;
|
19
|
+
} & {}>;
|
20
|
+
static update: (object: {
|
21
|
+
id: number;
|
22
|
+
organization: string;
|
23
|
+
slug: string;
|
24
|
+
text: string;
|
25
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
26
|
+
id: number;
|
27
|
+
organization: string;
|
28
|
+
slug: string;
|
29
|
+
text: string;
|
30
|
+
} & {}>;
|
31
|
+
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
32
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
33
|
+
id: number;
|
34
|
+
organization: string;
|
35
|
+
slug: string;
|
36
|
+
text: string;
|
37
|
+
} & {})[]>;
|
38
|
+
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
39
|
+
onSuccess?: (() => void) | undefined;
|
40
|
+
onError?: ((err: string) => void) | undefined;
|
41
|
+
} | undefined) => Promise<{
|
42
|
+
id: number;
|
43
|
+
organization: string;
|
44
|
+
slug: string;
|
45
|
+
text: string;
|
46
|
+
} & {}>;
|
47
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const ProfileV: t.TypeC<{
|
3
|
+
user: t.StringC;
|
4
|
+
organization: t.StringC;
|
5
|
+
}>;
|
6
|
+
export declare class Profile {
|
7
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
8
|
+
user: string;
|
9
|
+
organization: string;
|
10
|
+
}[]>;
|
11
|
+
}
|
@@ -0,0 +1,261 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export { ResourceSettingsV, ResourceSettingsByContextKeyV } from './ResourceSettingsV';
|
3
|
+
export { OrganizationV } from './OrganizationV';
|
4
|
+
export declare const ReleaseV: t.TypeC<{
|
5
|
+
created_by: t.StringC;
|
6
|
+
created: t.StringC;
|
7
|
+
history_event: t.IntersectionC<[t.TypeC<{
|
8
|
+
id: t.NumberC;
|
9
|
+
organization: t.StringC;
|
10
|
+
changed_by: t.StringC;
|
11
|
+
description: t.StringC;
|
12
|
+
created: t.StringC;
|
13
|
+
sha1: t.StringC;
|
14
|
+
version_num: t.NumberC;
|
15
|
+
}>, t.PartialC<{}>]>;
|
16
|
+
id: t.NumberC;
|
17
|
+
notes: t.StringC;
|
18
|
+
tags: t.ArrayC<t.StringC>;
|
19
|
+
}>;
|
20
|
+
export declare const ReleaseStepV: t.TypeC<{
|
21
|
+
created: t.StringC;
|
22
|
+
created_by: t.StringC;
|
23
|
+
current: t.UnionC<[t.BooleanC, t.NullC]>;
|
24
|
+
env: t.StringC;
|
25
|
+
id: t.NumberC;
|
26
|
+
next_env: t.UnionC<[t.NullC, t.StringC]>;
|
27
|
+
release: t.TypeC<{
|
28
|
+
created_by: t.StringC;
|
29
|
+
created: t.StringC;
|
30
|
+
history_event: t.IntersectionC<[t.TypeC<{
|
31
|
+
id: t.NumberC;
|
32
|
+
organization: t.StringC;
|
33
|
+
changed_by: t.StringC;
|
34
|
+
description: t.StringC;
|
35
|
+
created: t.StringC;
|
36
|
+
sha1: t.StringC;
|
37
|
+
version_num: t.NumberC;
|
38
|
+
}>, t.PartialC<{}>]>;
|
39
|
+
id: t.NumberC;
|
40
|
+
notes: t.StringC;
|
41
|
+
tags: t.ArrayC<t.StringC>;
|
42
|
+
}>;
|
43
|
+
}>;
|
44
|
+
export declare const EnvReleaseInfoV: t.IntersectionC<[t.TypeC<{
|
45
|
+
environment: t.StringC;
|
46
|
+
}>, t.PartialC<{
|
47
|
+
release_step: t.TypeC<{
|
48
|
+
created: t.StringC;
|
49
|
+
created_by: t.StringC;
|
50
|
+
current: t.UnionC<[t.BooleanC, t.NullC]>;
|
51
|
+
env: t.StringC;
|
52
|
+
id: t.NumberC;
|
53
|
+
next_env: t.UnionC<[t.NullC, t.StringC]>;
|
54
|
+
release: t.TypeC<{
|
55
|
+
created_by: t.StringC;
|
56
|
+
created: t.StringC;
|
57
|
+
history_event: t.IntersectionC<[t.TypeC<{
|
58
|
+
id: t.NumberC;
|
59
|
+
organization: t.StringC;
|
60
|
+
changed_by: t.StringC;
|
61
|
+
description: t.StringC;
|
62
|
+
created: t.StringC;
|
63
|
+
sha1: t.StringC;
|
64
|
+
version_num: t.NumberC;
|
65
|
+
}>, t.PartialC<{}>]>;
|
66
|
+
id: t.NumberC;
|
67
|
+
notes: t.StringC;
|
68
|
+
tags: t.ArrayC<t.StringC>;
|
69
|
+
}>;
|
70
|
+
}>;
|
71
|
+
release: t.TypeC<{
|
72
|
+
created_by: t.StringC;
|
73
|
+
created: t.StringC;
|
74
|
+
history_event: t.IntersectionC<[t.TypeC<{
|
75
|
+
id: t.NumberC;
|
76
|
+
organization: t.StringC;
|
77
|
+
changed_by: t.StringC;
|
78
|
+
description: t.StringC;
|
79
|
+
created: t.StringC;
|
80
|
+
sha1: t.StringC;
|
81
|
+
version_num: t.NumberC;
|
82
|
+
}>, t.PartialC<{}>]>;
|
83
|
+
id: t.NumberC;
|
84
|
+
notes: t.StringC;
|
85
|
+
tags: t.ArrayC<t.StringC>;
|
86
|
+
}>;
|
87
|
+
}>]>;
|
88
|
+
export declare class Releases {
|
89
|
+
static readView: (params?: Record<string, string> | undefined, callbacks?: {
|
90
|
+
onSuccess?: (() => void) | undefined;
|
91
|
+
onError?: ((err: string) => void) | undefined;
|
92
|
+
} | undefined) => Promise<{
|
93
|
+
environments: ({
|
94
|
+
environment: string;
|
95
|
+
} & {
|
96
|
+
release_step?: {
|
97
|
+
created: string;
|
98
|
+
created_by: string;
|
99
|
+
current: boolean | null;
|
100
|
+
env: string;
|
101
|
+
id: number;
|
102
|
+
next_env: string | null;
|
103
|
+
release: {
|
104
|
+
created_by: string;
|
105
|
+
created: string;
|
106
|
+
history_event: {
|
107
|
+
id: number;
|
108
|
+
organization: string;
|
109
|
+
changed_by: string;
|
110
|
+
description: string;
|
111
|
+
created: string;
|
112
|
+
sha1: string;
|
113
|
+
version_num: number;
|
114
|
+
} & {};
|
115
|
+
id: number;
|
116
|
+
notes: string;
|
117
|
+
tags: string[];
|
118
|
+
};
|
119
|
+
} | undefined;
|
120
|
+
release?: {
|
121
|
+
created_by: string;
|
122
|
+
created: string;
|
123
|
+
history_event: {
|
124
|
+
id: number;
|
125
|
+
organization: string;
|
126
|
+
changed_by: string;
|
127
|
+
description: string;
|
128
|
+
created: string;
|
129
|
+
sha1: string;
|
130
|
+
version_num: number;
|
131
|
+
} & {};
|
132
|
+
id: number;
|
133
|
+
notes: string;
|
134
|
+
tags: string[];
|
135
|
+
} | undefined;
|
136
|
+
})[];
|
137
|
+
latest_history_event: ({
|
138
|
+
id: number;
|
139
|
+
organization: string;
|
140
|
+
changed_by: string;
|
141
|
+
description: string;
|
142
|
+
created: string;
|
143
|
+
sha1: string;
|
144
|
+
version_num: number;
|
145
|
+
} & {}) | null;
|
146
|
+
latest_release: {
|
147
|
+
created_by: string;
|
148
|
+
created: string;
|
149
|
+
history_event: {
|
150
|
+
id: number;
|
151
|
+
organization: string;
|
152
|
+
changed_by: string;
|
153
|
+
description: string;
|
154
|
+
created: string;
|
155
|
+
sha1: string;
|
156
|
+
version_num: number;
|
157
|
+
} & {};
|
158
|
+
id: number;
|
159
|
+
notes: string;
|
160
|
+
tags: string[];
|
161
|
+
} | null;
|
162
|
+
}>;
|
163
|
+
static createRelease: (historyEventId: number, notes: string, tags: string[]) => Promise<{
|
164
|
+
created_by: string;
|
165
|
+
created: string;
|
166
|
+
history_event: {
|
167
|
+
id: number;
|
168
|
+
organization: string;
|
169
|
+
changed_by: string;
|
170
|
+
description: string;
|
171
|
+
created: string;
|
172
|
+
sha1: string;
|
173
|
+
version_num: number;
|
174
|
+
} & {};
|
175
|
+
id: number;
|
176
|
+
notes: string;
|
177
|
+
tags: string[];
|
178
|
+
}>;
|
179
|
+
static readReleaseStepsForEnv: (env: string) => Promise<{
|
180
|
+
created: string;
|
181
|
+
created_by: string;
|
182
|
+
current: boolean | null;
|
183
|
+
env: string;
|
184
|
+
id: number;
|
185
|
+
next_env: string | null;
|
186
|
+
release: {
|
187
|
+
created_by: string;
|
188
|
+
created: string;
|
189
|
+
history_event: {
|
190
|
+
id: number;
|
191
|
+
organization: string;
|
192
|
+
changed_by: string;
|
193
|
+
description: string;
|
194
|
+
created: string;
|
195
|
+
sha1: string;
|
196
|
+
version_num: number;
|
197
|
+
} & {};
|
198
|
+
id: number;
|
199
|
+
notes: string;
|
200
|
+
tags: string[];
|
201
|
+
};
|
202
|
+
}[]>;
|
203
|
+
static rollback: (releaseStepId: number) => Promise<{
|
204
|
+
created: string;
|
205
|
+
created_by: string;
|
206
|
+
current: boolean | null;
|
207
|
+
env: string;
|
208
|
+
id: number;
|
209
|
+
next_env: string | null;
|
210
|
+
release: {
|
211
|
+
created_by: string;
|
212
|
+
created: string;
|
213
|
+
history_event: {
|
214
|
+
id: number;
|
215
|
+
organization: string;
|
216
|
+
changed_by: string;
|
217
|
+
description: string;
|
218
|
+
created: string;
|
219
|
+
sha1: string;
|
220
|
+
version_num: number;
|
221
|
+
} & {};
|
222
|
+
id: number;
|
223
|
+
notes: string;
|
224
|
+
tags: string[];
|
225
|
+
};
|
226
|
+
}>;
|
227
|
+
static readDiff: (fromId: string, toId: string) => Promise<any>;
|
228
|
+
static promoteReleaseStep: (releaseStepId: number) => Promise<any>;
|
229
|
+
static promoteReleaseToFirstEnv: (releaseId: number) => Promise<{
|
230
|
+
created_by: string;
|
231
|
+
created: string;
|
232
|
+
history_event: {
|
233
|
+
id: number;
|
234
|
+
organization: string;
|
235
|
+
changed_by: string;
|
236
|
+
description: string;
|
237
|
+
created: string;
|
238
|
+
sha1: string;
|
239
|
+
version_num: number;
|
240
|
+
} & {};
|
241
|
+
id: number;
|
242
|
+
notes: string;
|
243
|
+
tags: string[];
|
244
|
+
}>;
|
245
|
+
static listReleases: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
246
|
+
created_by: string;
|
247
|
+
created: string;
|
248
|
+
history_event: {
|
249
|
+
id: number;
|
250
|
+
organization: string;
|
251
|
+
changed_by: string;
|
252
|
+
description: string;
|
253
|
+
created: string;
|
254
|
+
sha1: string;
|
255
|
+
version_num: number;
|
256
|
+
} & {};
|
257
|
+
id: number;
|
258
|
+
notes: string;
|
259
|
+
tags: string[];
|
260
|
+
}[]>;
|
261
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const SkinV: t.IntersectionC<[t.TypeC<{
|
3
|
+
id: t.StringC;
|
4
|
+
slug: t.StringC;
|
5
|
+
name: t.StringC;
|
6
|
+
default: t.BooleanC;
|
7
|
+
skin: t.AnyC;
|
8
|
+
organization: t.StringC;
|
9
|
+
}>, t.PartialC<{
|
10
|
+
logo: t.UnionC<[t.StringC, t.NullC]>;
|
11
|
+
}>]>;
|
12
|
+
export declare class Skin {
|
13
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
14
|
+
id: string;
|
15
|
+
slug: string;
|
16
|
+
name: string;
|
17
|
+
default: boolean;
|
18
|
+
skin: any;
|
19
|
+
organization: string;
|
20
|
+
} & {
|
21
|
+
logo?: string | null | undefined;
|
22
|
+
})[]>;
|
23
|
+
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
24
|
+
onSuccess?: (() => void) | undefined;
|
25
|
+
onError?: ((err: string) => void) | undefined;
|
26
|
+
} | undefined) => Promise<{
|
27
|
+
id: string;
|
28
|
+
slug: string;
|
29
|
+
name: string;
|
30
|
+
default: boolean;
|
31
|
+
skin: any;
|
32
|
+
organization: string;
|
33
|
+
} & {
|
34
|
+
logo?: string | null | undefined;
|
35
|
+
}>;
|
36
|
+
static update: (object: {
|
37
|
+
id: string;
|
38
|
+
slug: string;
|
39
|
+
name: string;
|
40
|
+
default: boolean;
|
41
|
+
skin: any;
|
42
|
+
organization: string;
|
43
|
+
} & {
|
44
|
+
logo?: string | null | undefined;
|
45
|
+
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
46
|
+
id: string;
|
47
|
+
slug: string;
|
48
|
+
name: string;
|
49
|
+
default: boolean;
|
50
|
+
skin: any;
|
51
|
+
organization: string;
|
52
|
+
} & {
|
53
|
+
logo?: string | null | undefined;
|
54
|
+
}>;
|
55
|
+
static create: (object: {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
56
|
+
id: string;
|
57
|
+
slug: string;
|
58
|
+
name: string;
|
59
|
+
default: boolean;
|
60
|
+
skin: any;
|
61
|
+
organization: string;
|
62
|
+
} & {
|
63
|
+
logo?: string | null | undefined;
|
64
|
+
}>;
|
65
|
+
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
66
|
+
}
|