commandbar 1.6.7 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) 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 +94 -0
  6. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  7. package/build/internal/src/client/CommandBarClientSDK.d.ts +293 -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 +89 -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 +220 -0
  17. package/build/internal/src/middleware/ICommandFromClientType.d.ts +3 -0
  18. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  19. package/build/internal/src/middleware/OrganizationV.d.ts +102 -0
  20. package/build/internal/src/middleware/ResourceSettingsV.d.ts +43 -0
  21. package/build/internal/src/middleware/command.d.ts +3608 -0
  22. package/build/internal/src/middleware/commandCategory.d.ts +87 -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/environment.d.ts +11 -0
  26. package/build/internal/src/middleware/generics.d.ts +32 -0
  27. package/build/internal/src/middleware/guide.d.ts +37 -0
  28. package/build/internal/src/middleware/helpers/argument.d.ts +412 -0
  29. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +129 -0
  30. package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
  31. package/build/internal/src/middleware/helpers/rules.d.ts +231 -0
  32. package/build/internal/src/middleware/historyEvent.d.ts +40 -0
  33. package/build/internal/src/middleware/network.d.ts +4 -0
  34. package/build/internal/src/middleware/organization.d.ts +604 -0
  35. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  36. package/build/internal/src/middleware/profile.d.ts +11 -0
  37. package/build/internal/src/middleware/releases.d.ts +261 -0
  38. package/build/internal/src/middleware/skin.d.ts +66 -0
  39. package/build/internal/src/middleware/types.d.ts +378 -0
  40. package/build/internal/src/middleware/user.d.ts +12 -0
  41. package/build/internal/src/util/Disposable.d.ts +17 -0
  42. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  43. package/build/internal/src/util/Logger.d.ts +18 -0
  44. package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
  45. package/package.json +1 -1
@@ -0,0 +1,12 @@
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<{}>]>;
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,2 @@
1
+ export declare function dispatchCustomEvent<T>(eventType: string, detail: T, canBubble?: boolean, cancelable?: boolean): CustomEvent<T>;
2
+ export default dispatchCustomEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commandbar",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "Javascript Utility for CommandBar",
5
5
  "main": "build/commandbar-js/src/index.js",
6
6
  "types": "build/commandbar-js/src/index.d.ts",