commandbar 1.7.2 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/commandbar-js/src/init.d.ts +1 -1
  3. package/package.json +3 -4
  4. package/src/init.ts +1 -1
  5. package/src/snippet.ts +1 -0
  6. package/build/internal/src/client/AddContextOptions.d.ts +0 -124
  7. package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
  8. package/build/internal/src/client/CommandBarClientSDK.d.ts +0 -387
  9. package/build/internal/src/client/CommandBarProxySDK.d.ts +0 -49
  10. package/build/internal/src/client/CommandBarSDK.d.ts +0 -51
  11. package/build/internal/src/client/EventHandler.d.ts +0 -142
  12. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  13. package/build/internal/src/client/SDKConfig.d.ts +0 -13
  14. package/build/internal/src/client/SentryReporter.d.ts +0 -62
  15. package/build/internal/src/client/globals.d.ts +0 -19
  16. package/build/internal/src/client/proxy.d.ts +0 -15
  17. package/build/internal/src/client/symbols.d.ts +0 -35
  18. package/build/internal/src/middleware/CommandFromClientV.d.ts +0 -307
  19. package/build/internal/src/middleware/ICommandFromClientType.d.ts +0 -5
  20. package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
  21. package/build/internal/src/middleware/OrganizationV.d.ts +0 -170
  22. package/build/internal/src/middleware/ResourceSettingsV.d.ts +0 -89
  23. package/build/internal/src/middleware/command.d.ts +0 -6975
  24. package/build/internal/src/middleware/commandCategory.d.ts +0 -192
  25. package/build/internal/src/middleware/confetti.d.ts +0 -16
  26. package/build/internal/src/middleware/context.d.ts +0 -40
  27. package/build/internal/src/middleware/detailPreview.d.ts +0 -21
  28. package/build/internal/src/middleware/environment.d.ts +0 -11
  29. package/build/internal/src/middleware/generics.d.ts +0 -40
  30. package/build/internal/src/middleware/guide.d.ts +0 -37
  31. package/build/internal/src/middleware/helpDocsIntegration.d.ts +0 -66
  32. package/build/internal/src/middleware/helpDocsSync.d.ts +0 -42
  33. package/build/internal/src/middleware/helpers/argument.d.ts +0 -568
  34. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +0 -225
  35. package/build/internal/src/middleware/helpers/endUser.d.ts +0 -10
  36. package/build/internal/src/middleware/helpers/optionGroup.d.ts +0 -2
  37. package/build/internal/src/middleware/helpers/rules.d.ts +0 -234
  38. package/build/internal/src/middleware/historyEvent.d.ts +0 -40
  39. package/build/internal/src/middleware/network.d.ts +0 -4
  40. package/build/internal/src/middleware/nudge.d.ts +0 -261
  41. package/build/internal/src/middleware/organization.d.ts +0 -946
  42. package/build/internal/src/middleware/placeholder.d.ts +0 -47
  43. package/build/internal/src/middleware/profile.d.ts +0 -11
  44. package/build/internal/src/middleware/releases.d.ts +0 -261
  45. package/build/internal/src/middleware/skin.d.ts +0 -83
  46. package/build/internal/src/middleware/tab.d.ts +0 -27
  47. package/build/internal/src/middleware/types.d.ts +0 -137
  48. package/build/internal/src/middleware/user.d.ts +0 -14
  49. package/build/internal/src/util/Disposable.d.ts +0 -17
  50. package/build/internal/src/util/LocalStorage.d.ts +0 -6
  51. package/build/internal/src/util/Logger.d.ts +0 -18
  52. package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -2
@@ -1,47 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,261 +0,0 @@
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<unknown>;
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
- }
@@ -1,83 +0,0 @@
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 const SkinPatchV: t.PartialC<{
13
- id: t.StringC;
14
- slug: t.StringC;
15
- name: t.StringC;
16
- default: t.BooleanC;
17
- skin: t.AnyC;
18
- organization: t.StringC;
19
- logo: t.UnionC<[t.StringC, t.NullC]>;
20
- }>;
21
- export declare class Skin {
22
- static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
23
- id: string;
24
- slug: string;
25
- name: string;
26
- default: boolean;
27
- skin: any;
28
- organization: string;
29
- } & {
30
- logo?: string | null | undefined;
31
- })[]>;
32
- static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
33
- onSuccess?: (() => void) | undefined;
34
- onError?: ((err: string) => void) | undefined;
35
- } | undefined) => Promise<{
36
- id: string;
37
- slug: string;
38
- name: string;
39
- default: boolean;
40
- skin: any;
41
- organization: string;
42
- } & {
43
- logo?: string | null | undefined;
44
- }>;
45
- static update: (object: {
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
- }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
55
- id: string;
56
- slug: string;
57
- name: string;
58
- default: boolean;
59
- skin: any;
60
- organization: string;
61
- } & {
62
- logo?: string | null | undefined;
63
- }>;
64
- static create: (object: {
65
- id?: string | undefined;
66
- slug?: string | undefined;
67
- name?: string | undefined;
68
- default?: boolean | undefined;
69
- skin?: any;
70
- organization?: string | undefined;
71
- logo?: string | null | undefined;
72
- }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
73
- id: string;
74
- slug: string;
75
- name: string;
76
- default: boolean;
77
- skin: any;
78
- organization: string;
79
- } & {
80
- logo?: string | null | undefined;
81
- }>;
82
- static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
83
- }
@@ -1,27 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const TabV: t.TypeC<{
3
- id: t.NumberC;
4
- organization: t.UnionC<[t.NumberC, t.StringC]>;
5
- category_ids: t.ArrayC<t.NumberC>;
6
- sort_key: t.NumberC;
7
- icon: t.UnionC<[t.StringC, t.NullC]>;
8
- label: t.StringC;
9
- header: t.UnionC<[t.StringC, t.NullC]>;
10
- description: t.StringC;
11
- placeholder: t.UnionC<[t.StringC, t.NullC]>;
12
- render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
13
- }>;
14
- export declare class Tab {
15
- static decode: (data: any) => {
16
- id: number;
17
- organization: string | number;
18
- category_ids: number[];
19
- sort_key: number;
20
- icon: string | null;
21
- label: string;
22
- header: string | null;
23
- description: string;
24
- placeholder: string | null;
25
- render_as: "grid" | "list";
26
- };
27
- }
@@ -1,137 +0,0 @@
1
- /*******************************************************************************/
2
- import * as t from 'io-ts';
3
- import { BatchEditorCommandResponseV, BatchOperationV, CommandV, HelpSyncCommandV, EditorCommandV } from './command';
4
- import { ArgumentMapV, ArgumentTypeV, ConditionV, ConditionOperatorV, StepArgumentTypeV, ContextArgumentV, SetArgumentV, DynamicArgumentV, DependentArgumentV, FunctionArgumentV } from './helpers/argument';
5
- import { GenericBatchRequest } from './generics';
6
- import { OptionGroupRenderAsV } from './helpers/optionGroup';
7
- import { TemplateV, TemplateOptionsV, RequestTemplateV, RequestV } from './helpers/commandTemplate';
8
- import { CommandCategoryV } from './commandCategory';
9
- import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationSettingsV } from './organization';
10
- import { UserV } from './user';
11
- import { ContextV } from './context';
12
- import { GuideV } from './guide';
13
- import { HistoryEventV } from './historyEvent';
14
- import { HelpDocsSyncV } from './helpDocsSync';
15
- import { HelpDocsIntegrationV } from './helpDocsIntegration';
16
- import { EndUserV } from './helpers/endUser';
17
- import { SkinV } from './skin';
18
- import { ProfileV } from './profile';
19
- import { PlaceholderV } from './placeholder';
20
- import { EnvReleaseInfoV, ReleaseStepV, ReleaseV } from './releases';
21
- import { EnvironmentV } from './environment';
22
- import { NudgeV } from './nudge';
23
- import { TabV } from './tab';
24
- import { RuleExpressionAndV, RuleExpressionOrV, RuleExpressionV } from './helpers/rules';
25
- /*******************************************************************************/
26
- export declare type IInitOptions = {
27
- debug?: boolean;
28
- environment?: string;
29
- version?: string;
30
- config?: IConfigEndpointResponse;
31
- };
32
- /*******************************************************************************/
33
- export declare type IContextType = t.TypeOf<typeof ContextV> & unknown;
34
- export declare type IUserType = t.TypeOf<typeof UserV> & unknown;
35
- export declare type ICommandType = t.TypeOf<typeof CommandV> & unknown;
36
- export declare type IEditorCommandType = t.TypeOf<typeof EditorCommandV> & unknown;
37
- export declare type IHelpSyncCommandType = t.TypeOf<typeof HelpSyncCommandV> & unknown;
38
- export type { ICommandFromClientType } from './ICommandFromClientType';
39
- export declare type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV> & unknown;
40
- export declare type IGuideType = t.TypeOf<typeof GuideV> & {
41
- preview?: boolean;
42
- } & unknown;
43
- export declare type IHistoryEventType = t.TypeOf<typeof HistoryEventV> & unknown;
44
- export declare type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV> & unknown;
45
- export declare type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV> & unknown;
46
- export type { IOrganizationType } from './OrganizationV';
47
- export declare type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV> & unknown;
48
- export declare type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown;
49
- export declare type ISkinType = t.TypeOf<typeof SkinV> & unknown;
50
- export declare type IProfileType = t.TypeOf<typeof ProfileV> & unknown;
51
- export declare type IOrganizationSettingsType = t.TypeOf<typeof OrganizationSettingsV> & unknown;
52
- export declare type IPlaceholderType = t.TypeOf<typeof PlaceholderV> & unknown;
53
- export declare type ITabType = t.TypeOf<typeof TabV> & unknown;
54
- export declare type IEnvironmentType = t.TypeOf<typeof EnvironmentV> & unknown;
55
- export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV> & unknown;
56
- export declare type IRelease = t.TypeOf<typeof ReleaseV> & unknown;
57
- export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV> & unknown;
58
- /*******************************************************************************/
59
- export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV> & unknown;
60
- export declare type IBatchEditorCommandRequst = t.TypeOf<typeof GenericBatchRequest> & unknown;
61
- export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV> & unknown;
62
- /*******************************************************************************/
63
- export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV> & unknown;
64
- export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV> & unknown;
65
- export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV> & unknown;
66
- export declare type IStepArgumentType = t.TypeOf<typeof StepArgumentTypeV> & unknown;
67
- export declare type ITemplate = t.TypeOf<typeof TemplateV> & unknown;
68
- export declare type RequestTemplateType = t.TypeOf<typeof RequestTemplateV> & unknown;
69
- export declare type RequestType = t.TypeOf<typeof RequestV> & unknown;
70
- export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV> & unknown;
71
- export declare type IEndUserType = t.TypeOf<typeof EndUserV> & unknown;
72
- export declare type IRuleExpression = t.TypeOf<typeof RuleExpressionV> & unknown;
73
- export declare type IRuleExpressionAnd = t.TypeOf<typeof RuleExpressionAndV> & unknown;
74
- export declare type IRuleExpressionOr = t.TypeOf<typeof RuleExpressionOrV> & unknown;
75
- export declare type IConditionType = t.TypeOf<typeof ConditionV> & unknown;
76
- export declare type IConditionOperatorType = t.TypeOf<typeof ConditionOperatorV> & unknown;
77
- export declare type IContextArgumentType = t.TypeOf<typeof ContextArgumentV> & unknown;
78
- export declare type ISetArgumentType = t.TypeOf<typeof SetArgumentV> & unknown;
79
- export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV> & unknown;
80
- export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV> & unknown;
81
- export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV> & unknown;
82
- export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV> & unknown;
83
- export declare type INudgeType = t.TypeOf<typeof NudgeV> & unknown;
84
- export interface INudgeClientType {
85
- nudge: INudgeType;
86
- passedConditionsInLastEvaluation: boolean;
87
- lastTriggeredTs?: number;
88
- }
89
- export interface ICommandInput {
90
- text: string;
91
- command: ICommandType;
92
- context: IUserContext;
93
- }
94
- export interface IArgValues {
95
- [arg: string]: string | number | undefined;
96
- }
97
- export declare type IHistoryType = Array<{
98
- activeCommand: ICommandType;
99
- options: ICommandType[];
100
- }>;
101
- export interface IUserContext {
102
- [variable: string]: any;
103
- }
104
- export interface EventWithTimestamp {
105
- eventName: string;
106
- properties: {
107
- [prop: string]: any;
108
- };
109
- timestamp: number;
110
- }
111
- export interface ICallbackMap {
112
- [variable: string]: (...args: any[]) => unknown;
113
- }
114
- export interface IResourceType extends IUserContext {
115
- _cbLinkedCommmands: Array<{
116
- command: number;
117
- arg: string;
118
- }>;
119
- }
120
- export declare type IConfigEndpointResponse = {
121
- commands: any[];
122
- categories: any[];
123
- organization: any;
124
- environments_with_versions?: any[];
125
- placeholders?: any[];
126
- nudges?: INudgeType[];
127
- tabs?: ITabType[];
128
- };
129
- export type { IResourceSettings } from './IResourceSettings';
130
- export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV> & unknown;
131
- export type { DetailPreviewObjectType, DetailPreviewType, DataRowMetadata } from './detailPreview';
132
- /*******************************************************************************/
133
- export declare const isCommand: (command?: ICommandType | any) => command is ICommandType;
134
- export declare const isResource: (option: any) => option is IResourceType;
135
- export declare const isContextArgument: (argument: IArgumentType) => argument is IContextArgumentType;
136
- export declare const isTimeArgument: (argument: IArgumentType) => argument is IDynamicArgumentType;
137
- export declare const isFunctionArgument: (argument: IArgumentType) => argument is IFunctionArgumentType;
@@ -1,14 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const UserV: t.IntersectionC<[t.TypeC<{
3
- id: t.UnionC<[t.NumberC, t.StringC]>;
4
- }>, t.TypeC<{
5
- token: t.StringC;
6
- email: t.StringC;
7
- organization: t.StringC;
8
- api_token: t.UnionC<[t.StringC, t.NullC]>;
9
- profile: t.NumberC;
10
- has_updated_password: t.BooleanC;
11
- is_active: t.BooleanC;
12
- }>, t.PartialC<{
13
- atlas_hash: t.StringC;
14
- }>]>;
@@ -1,17 +0,0 @@
1
- import { _dispose, _disposed } from '../client/symbols';
2
- export declare type PublicDisposable = {
3
- dispose: VoidFunction;
4
- _disposed?: boolean;
5
- };
6
- export declare type PrivateDisposable = {
7
- [_dispose]: VoidFunction;
8
- [_disposed]?: boolean;
9
- };
10
- export declare type Disposable = undefined | PublicDisposable | PrivateDisposable;
11
- export declare const isDisposable: (x: unknown) => x is Disposable;
12
- /**
13
- * Determines if the provided value is "disposed". A value is considered "disposed" if it is an object with the
14
- * _disposed property or symbol symbol set to true, or if the actual value is undefined.
15
- */
16
- export declare const isDisposed: (x: unknown) => boolean;
17
- export declare function dispose(x: Disposable): void;
@@ -1,6 +0,0 @@
1
- declare const LocalStorage: {
2
- set: (label: string, value: string | boolean | number) => string | number | boolean;
3
- get: (label: string, defaultValue: string | boolean | number) => string | number | boolean;
4
- remove: (label: string) => void;
5
- };
6
- export default LocalStorage;
@@ -1,18 +0,0 @@
1
- import Debug from 'debug';
2
- declare const Logger: {
3
- debug: Debug.Debugger;
4
- log: Debug.Debugger;
5
- info: Debug.Debugger;
6
- warn: Debug.Debugger;
7
- error: Debug.Debugger;
8
- red: (...args: any[]) => void;
9
- green: (...args: any[]) => void;
10
- blue: (...args: any[]) => void;
11
- orange: (...args: any[]) => void;
12
- yellow: (...args: any[]) => void;
13
- purple: (...args: any[]) => void;
14
- black: (...args: any[]) => void;
15
- portalsend: (...args: any[]) => void;
16
- portalreceive: (...args: any[]) => void;
17
- };
18
- export default Logger;
@@ -1,2 +0,0 @@
1
- export declare function dispatchCustomEvent<T>(eventType: string, detail: T, canBubble?: boolean, cancelable?: boolean): CustomEvent<T>;
2
- export default dispatchCustomEvent;