commandbar 1.6.7 → 1.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/build/commandbar-js/src/index.d.ts +10 -0
  2. package/build/commandbar-js/src/index.js +1 -0
  3. package/build/commandbar-js/src/init.d.ts +21 -0
  4. package/build/commandbar-js/src/snippet.d.ts +1 -0
  5. package/build/internal/src/client/AddContextOptions.d.ts +108 -0
  6. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  7. package/build/internal/src/client/CommandBarClientSDK.d.ts +303 -0
  8. package/build/internal/src/client/CommandBarProxySDK.d.ts +48 -0
  9. package/build/internal/src/client/CommandBarSDK.d.ts +50 -0
  10. package/build/internal/src/client/EventHandler.d.ts +99 -0
  11. package/build/internal/src/client/SDKConfig.d.ts +13 -0
  12. package/build/internal/src/client/SentryReporter.d.ts +41 -0
  13. package/build/internal/src/client/globals.d.ts +18 -0
  14. package/build/internal/src/client/proxy.d.ts +15 -0
  15. package/build/internal/src/client/symbols.d.ts +32 -0
  16. package/build/internal/src/middleware/CommandFromClientV.d.ts +252 -0
  17. package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
  18. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  19. package/build/internal/src/middleware/OrganizationV.d.ts +120 -0
  20. package/build/internal/src/middleware/ResourceSettingsV.d.ts +57 -0
  21. package/build/internal/src/middleware/command.d.ts +5464 -0
  22. package/build/internal/src/middleware/commandCategory.d.ts +136 -0
  23. package/build/internal/src/middleware/confetti.d.ts +16 -0
  24. package/build/internal/src/middleware/context.d.ts +40 -0
  25. package/build/internal/src/middleware/detailPreview.d.ts +21 -0
  26. package/build/internal/src/middleware/environment.d.ts +11 -0
  27. package/build/internal/src/middleware/generics.d.ts +40 -0
  28. package/build/internal/src/middleware/guide.d.ts +37 -0
  29. package/build/internal/src/middleware/helpDocsIntegration.d.ts +66 -0
  30. package/build/internal/src/middleware/helpDocsSync.d.ts +42 -0
  31. package/build/internal/src/middleware/helpers/argument.d.ts +412 -0
  32. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +191 -0
  33. package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
  34. package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
  35. package/build/internal/src/middleware/helpers/rules.d.ts +231 -0
  36. package/build/internal/src/middleware/historyEvent.d.ts +40 -0
  37. package/build/internal/src/middleware/network.d.ts +4 -0
  38. package/build/internal/src/middleware/organization.d.ts +710 -0
  39. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  40. package/build/internal/src/middleware/profile.d.ts +11 -0
  41. package/build/internal/src/middleware/releases.d.ts +261 -0
  42. package/build/internal/src/middleware/skin.d.ts +66 -0
  43. package/build/internal/src/middleware/types.d.ts +425 -0
  44. package/build/internal/src/middleware/user.d.ts +12 -0
  45. package/build/internal/src/util/Disposable.d.ts +17 -0
  46. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  47. package/build/internal/src/util/Logger.d.ts +18 -0
  48. package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
  49. package/package.json +1 -1
  50. package/src/init.ts +1 -1
@@ -0,0 +1,136 @@
1
+ /*******************************************************************************/
2
+ import * as t from 'io-ts';
3
+ import { GenericBatchRequest } from './generics';
4
+ export declare const CommandCategoryV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5
+ id: t.NumberC;
6
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
7
+ name: t.StringC;
8
+ }>, t.PartialC<{}>]>, t.TypeC<{
9
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
10
+ icon: t.UnionC<[t.StringC, t.NullC]>;
11
+ render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
12
+ setting_hide_before_search: t.BooleanC;
13
+ setting_max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
14
+ setting_pin_to_bottom: t.BooleanC;
15
+ search_tab_enabled: t.BooleanC;
16
+ search_tab_name: t.StringC;
17
+ search_tab_instruction: t.StringC;
18
+ track_recents: t.BooleanC;
19
+ }>]>;
20
+ export declare const BatchEditorCategoryResponseV: t.TypeC<{
21
+ batch: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
22
+ id: t.NumberC;
23
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
24
+ name: t.StringC;
25
+ }>, t.PartialC<{}>]>, t.TypeC<{
26
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
27
+ icon: t.UnionC<[t.StringC, t.NullC]>;
28
+ render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
29
+ setting_hide_before_search: t.BooleanC;
30
+ setting_max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
31
+ setting_pin_to_bottom: t.BooleanC;
32
+ search_tab_enabled: t.BooleanC;
33
+ search_tab_name: t.StringC;
34
+ search_tab_instruction: t.StringC;
35
+ track_recents: t.BooleanC;
36
+ }>]>>;
37
+ }>;
38
+ export declare class CommandCategory {
39
+ static create: (object: {
40
+ id: number;
41
+ organization: string | number;
42
+ name: string;
43
+ } & {} & {
44
+ sort_key: number | null;
45
+ icon: string | null;
46
+ render_as: "grid" | "list";
47
+ setting_hide_before_search: boolean;
48
+ setting_max_options_count: number | null;
49
+ setting_pin_to_bottom: boolean;
50
+ search_tab_enabled: boolean;
51
+ search_tab_name: string;
52
+ search_tab_instruction: string;
53
+ track_recents: boolean;
54
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
55
+ id: number;
56
+ organization: string | number;
57
+ name: string;
58
+ } & {} & {
59
+ sort_key: number | null;
60
+ icon: string | null;
61
+ render_as: "grid" | "list";
62
+ setting_hide_before_search: boolean;
63
+ setting_max_options_count: number | null;
64
+ setting_pin_to_bottom: boolean;
65
+ search_tab_enabled: boolean;
66
+ search_tab_name: string;
67
+ search_tab_instruction: string;
68
+ track_recents: boolean;
69
+ }>;
70
+ static update: (object: {
71
+ id: number;
72
+ organization: string | number;
73
+ name: string;
74
+ } & {} & {
75
+ sort_key: number | null;
76
+ icon: string | null;
77
+ render_as: "grid" | "list";
78
+ setting_hide_before_search: boolean;
79
+ setting_max_options_count: number | null;
80
+ setting_pin_to_bottom: boolean;
81
+ search_tab_enabled: boolean;
82
+ search_tab_name: string;
83
+ search_tab_instruction: string;
84
+ track_recents: boolean;
85
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
86
+ id: number;
87
+ organization: string | number;
88
+ name: string;
89
+ } & {} & {
90
+ sort_key: number | null;
91
+ icon: string | null;
92
+ render_as: "grid" | "list";
93
+ setting_hide_before_search: boolean;
94
+ setting_max_options_count: number | null;
95
+ setting_pin_to_bottom: boolean;
96
+ search_tab_enabled: boolean;
97
+ search_tab_name: string;
98
+ search_tab_instruction: string;
99
+ track_recents: boolean;
100
+ }>;
101
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
102
+ static decode: (data: any) => {
103
+ id: number;
104
+ organization: string | number;
105
+ name: string;
106
+ } & {} & {
107
+ sort_key: number | null;
108
+ icon: string | null;
109
+ render_as: "grid" | "list";
110
+ setting_hide_before_search: boolean;
111
+ setting_max_options_count: number | null;
112
+ setting_pin_to_bottom: boolean;
113
+ search_tab_enabled: boolean;
114
+ search_tab_name: string;
115
+ search_tab_instruction: string;
116
+ track_recents: boolean;
117
+ };
118
+ static batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
119
+ batch: ({
120
+ id: number;
121
+ organization: string | number;
122
+ name: string;
123
+ } & {} & {
124
+ sort_key: number | null;
125
+ icon: string | null;
126
+ render_as: "grid" | "list";
127
+ setting_hide_before_search: boolean;
128
+ setting_max_options_count: number | null;
129
+ setting_pin_to_bottom: boolean;
130
+ search_tab_enabled: boolean;
131
+ search_tab_name: string;
132
+ search_tab_instruction: string;
133
+ track_recents: boolean;
134
+ })[];
135
+ }>;
136
+ }
@@ -0,0 +1,16 @@
1
+ import * as t from 'io-ts';
2
+ export declare const ConfettiConfigV: t.PartialC<{
3
+ angle: t.NumberC;
4
+ spread: t.NumberC;
5
+ width: t.StringC;
6
+ height: t.StringC;
7
+ duration: t.NumberC;
8
+ dragFriction: t.NumberC;
9
+ stagger: t.NumberC;
10
+ startVelocity: t.NumberC;
11
+ elementCount: t.NumberC;
12
+ decay: t.NumberC;
13
+ colors: t.ArrayC<t.StringC>;
14
+ random: t.AnyC;
15
+ }>;
16
+ export declare type IConfettiConfig = t.TypeOf<typeof ConfettiConfigV>;
@@ -0,0 +1,40 @@
1
+ import * as t from 'io-ts';
2
+ export declare const ContextV: t.IntersectionC<[t.TypeC<{
3
+ id: t.NumberC;
4
+ name: t.StringC;
5
+ organization: t.StringC;
6
+ value: t.RecordC<t.StringC, t.AnyC>;
7
+ }>, t.PartialC<{}>]>;
8
+ export declare class Context {
9
+ static create: (object: {
10
+ id: number;
11
+ name: string;
12
+ organization: string;
13
+ value: {
14
+ [x: string]: any;
15
+ };
16
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
17
+ id: number;
18
+ name: string;
19
+ organization: string;
20
+ value: {
21
+ [x: string]: any;
22
+ };
23
+ } & {}>;
24
+ static update: (object: {
25
+ id: number;
26
+ name: string;
27
+ organization: string;
28
+ value: {
29
+ [x: string]: any;
30
+ };
31
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
32
+ id: number;
33
+ name: string;
34
+ organization: string;
35
+ value: {
36
+ [x: string]: any;
37
+ };
38
+ } & {}>;
39
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
40
+ }
@@ -0,0 +1,21 @@
1
+ /*******************************************************************************/
2
+ import * as t from 'io-ts';
3
+ export declare const DetailPreviewObjectV: t.TypeC<{
4
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
5
+ value: t.StringC;
6
+ }>;
7
+ export declare type DetailPreviewObjectType = t.TypeOf<typeof DetailPreviewObjectV>;
8
+ export declare type DetailPreviewType = string | DetailPreviewObjectType | (string | DetailPreviewObjectType)[];
9
+ export declare type DataRowMedata = {
10
+ type: 'command' | 'parameter';
11
+ label: string;
12
+ value: any;
13
+ contextKey?: string;
14
+ uid?: string;
15
+ };
16
+ export declare const DEFAULT_DETAIL_PREVIEW_TYPE: DetailPreviewObjectType['type'];
17
+ export declare const standardize: (item: undefined | null | DetailPreviewType) => null | DetailPreviewObjectType[];
18
+ export declare const getFirstDetail: (detail?: DetailPreviewType | null | undefined) => DetailPreviewObjectType | {
19
+ type: null;
20
+ value: null;
21
+ };
@@ -0,0 +1,11 @@
1
+ import * as t from 'io-ts';
2
+ export declare const EnvironmentV: t.TypeC<{
3
+ env: t.StringC;
4
+ version: t.UnionC<[t.NumberC, t.StringC, t.NullC, t.UndefinedC]>;
5
+ }>;
6
+ export declare class Environment {
7
+ static decode: (data: any) => {
8
+ env: string;
9
+ version: string | number | null | undefined;
10
+ };
11
+ }
@@ -0,0 +1,40 @@
1
+ import * as t from 'io-ts';
2
+ declare function decodeToPromise<T, O, I>(validator: t.Type<T, O, I>, input: I): Promise<T>;
3
+ declare function decodeThrowing<T, O, I>(validator: t.Type<T, O, I>, input: I): T;
4
+ declare const GenericObject: t.TypeC<{
5
+ id: t.UnionC<[t.NumberC, t.StringC]>;
6
+ }>;
7
+ export declare type GenericObjectType = t.TypeOf<typeof GenericObject>;
8
+ export declare const GenericBatchRequest: t.TypeC<{
9
+ batch: t.ArrayC<t.UnknownC>;
10
+ note: t.StringC;
11
+ }>;
12
+ declare function createObject<T, Q, O, I>(output: t.Type<T, O, I>, input: t.Type<Q, O, I>, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
13
+ declare function readObject<T, O, I>(arg: t.Type<T, O, I>, url: string): (arg0: string, params?: Record<string, string>, callbacks?: {
14
+ onSuccess?: () => void;
15
+ onError?: (err: string) => void;
16
+ }) => Promise<T>;
17
+ declare function listObject<T, O, I>(arg: t.Type<T, O, I>, obj: string): (onSuccess?: () => void, onError?: (err: string) => void) => Promise<T[]>;
18
+ declare function updateObject<T, O, I, Q extends GenericObjectType>(output: t.Type<T, O, I>, input: t.Type<Q, O, I>, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
19
+ declare function deleteObject<T, O, I>(arg: t.Type<T, O, I>, url: string, params?: Record<string, string>): (id: number | string, onSuccess?: () => void, onError?: (err: string) => void) => Promise<void>;
20
+ declare function readObjectDetail<T, O, I>(arg: t.Type<T, O, I>, url: string, detail: string): (arg0: string, urlArgs?: {
21
+ [arg: string]: string;
22
+ }, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
23
+ declare function updateObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I>, input: t.Type<Q, K, J>, url: string, detail: string): (object: Q, urlArgs?: {
24
+ [arg: string]: string;
25
+ }, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
26
+ declare function createObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I>, input: t.Type<Q, K, J>, url: string, detail: string): (object: Q, onSuccess?: () => void, onError?: (err: string) => void, urlArgs?: {
27
+ [arg: string]: string;
28
+ }) => Promise<T>;
29
+ declare function loadIDList(ids: number[], klass: any, method?: string, urlArgs?: {
30
+ [arg: string]: string;
31
+ }): Promise<any[]>;
32
+ declare function read<T, O, I>(output: t.Type<T, O, I>, url: string): (params?: Record<string, string>, callbacks?: {
33
+ onSuccess?: () => void;
34
+ onError?: (err: string) => void;
35
+ }) => Promise<T>;
36
+ declare function update<T, O, I, Q>(output: t.Type<T, O, I>, input: t.Type<Q, O, I>, url: string): (object: Q, params?: Record<string, string>, callbacks?: {
37
+ onSuccess?: () => void;
38
+ onError?: (err: string) => void;
39
+ }) => Promise<T>;
40
+ export { createObject, createObjectDetail, read, readObject, listObject, update, updateObject, deleteObject, GenericObject, readObjectDetail, updateObjectDetail, loadIDList, decodeToPromise, decodeThrowing, };
@@ -0,0 +1,37 @@
1
+ import * as t from 'io-ts';
2
+ export declare const GuideV: t.IntersectionC<[t.TypeC<{
3
+ id: t.NumberC;
4
+ organization: t.StringC;
5
+ event: t.StringC;
6
+ nudge: t.StringC;
7
+ guidance: t.StringC;
8
+ }>, t.PartialC<{}>]>;
9
+ export declare class Guide {
10
+ static create: (object: {
11
+ id: number;
12
+ organization: string;
13
+ event: string;
14
+ nudge: string;
15
+ guidance: string;
16
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
17
+ id: number;
18
+ organization: string;
19
+ event: string;
20
+ nudge: string;
21
+ guidance: string;
22
+ } & {}>;
23
+ static update: (object: {
24
+ id: number;
25
+ organization: string;
26
+ event: string;
27
+ nudge: string;
28
+ guidance: string;
29
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
30
+ id: number;
31
+ organization: string;
32
+ event: string;
33
+ nudge: string;
34
+ guidance: string;
35
+ } & {}>;
36
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
37
+ }
@@ -0,0 +1,66 @@
1
+ import * as t from 'io-ts';
2
+ export declare const HelpDocsIntegrationV: t.IntersectionC<[t.TypeC<{
3
+ id: t.NumberC;
4
+ organization: t.StringC;
5
+ type: t.StringC;
6
+ schedule: t.StringC;
7
+ meta: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>;
8
+ }>, t.PartialC<{}>]>;
9
+ export declare class HelpDocsIntegration {
10
+ static create: (object: {
11
+ id: number;
12
+ organization: string;
13
+ type: string;
14
+ schedule: string;
15
+ meta: {
16
+ [x: string]: any;
17
+ } | null;
18
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
19
+ id: number;
20
+ organization: string;
21
+ type: string;
22
+ schedule: string;
23
+ meta: {
24
+ [x: string]: any;
25
+ } | null;
26
+ } & {}>;
27
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
28
+ onSuccess?: (() => void) | undefined;
29
+ onError?: ((err: string) => void) | undefined;
30
+ } | undefined) => Promise<{
31
+ id: number;
32
+ organization: string;
33
+ type: string;
34
+ schedule: string;
35
+ meta: {
36
+ [x: string]: any;
37
+ } | null;
38
+ } & {}>;
39
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
40
+ id: number;
41
+ organization: string;
42
+ type: string;
43
+ schedule: string;
44
+ meta: {
45
+ [x: string]: any;
46
+ } | null;
47
+ } & {})[]>;
48
+ static update: (object: {
49
+ id: number;
50
+ organization: string;
51
+ type: string;
52
+ schedule: string;
53
+ meta: {
54
+ [x: string]: any;
55
+ } | null;
56
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
57
+ id: number;
58
+ organization: string;
59
+ type: string;
60
+ schedule: string;
61
+ meta: {
62
+ [x: string]: any;
63
+ } | null;
64
+ } & {}>;
65
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
66
+ }
@@ -0,0 +1,42 @@
1
+ import * as t from 'io-ts';
2
+ export declare const HelpDocsSyncV: t.IntersectionC<[t.TypeC<{
3
+ id: t.NumberC;
4
+ integration: t.NumberC;
5
+ scheduled: t.BooleanC;
6
+ }>, t.PartialC<{
7
+ commands: t.ArrayC<t.NumberC>;
8
+ started: t.StringC;
9
+ ended: t.StringC;
10
+ log: t.ArrayC<t.ArrayC<t.AnyC>>;
11
+ }>]>;
12
+ export declare class HelpDocsSync {
13
+ static create: (object: {
14
+ id: number;
15
+ integration: number;
16
+ scheduled: boolean;
17
+ } & {
18
+ commands?: number[] | undefined;
19
+ started?: string | undefined;
20
+ ended?: string | undefined;
21
+ log?: any[][] | undefined;
22
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
23
+ id: number;
24
+ integration: number;
25
+ scheduled: boolean;
26
+ } & {
27
+ commands?: number[] | undefined;
28
+ started?: string | undefined;
29
+ ended?: string | undefined;
30
+ log?: any[][] | undefined;
31
+ }>;
32
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
33
+ id: number;
34
+ integration: number;
35
+ scheduled: boolean;
36
+ } & {
37
+ commands?: number[] | undefined;
38
+ started?: string | undefined;
39
+ ended?: string | undefined;
40
+ log?: any[][] | undefined;
41
+ })[]>;
42
+ }