@kwirthmagnify/kwirth-common 0.5.0 → 0.5.2
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/dist/Channel.d.ts +9 -1
- package/dist/FrontChannel.d.ts +37 -0
- package/dist/FrontChannel.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -1
package/dist/Channel.d.ts
CHANGED
|
@@ -36,4 +36,12 @@ interface KwirthData {
|
|
|
36
36
|
metricsInterval: number;
|
|
37
37
|
channels: BackChannelData[];
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
interface IBackChannelRequirements {
|
|
40
|
+
storage: boolean;
|
|
41
|
+
providers: string[];
|
|
42
|
+
}
|
|
43
|
+
interface IBackChannelObject {
|
|
44
|
+
writeStorage?(id: string, secret: boolean, data: any): Promise<void>;
|
|
45
|
+
readStorage?(id: string, secret: boolean): Promise<any>;
|
|
46
|
+
}
|
|
47
|
+
export { ClusterTypeEnum, KwirthData, BackChannelData, EClusterType, IBackChannelRequirements, IBackChannelObject };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare enum ENotifyLevel {
|
|
2
|
+
INFO = "info",
|
|
3
|
+
ERROR = "error",
|
|
4
|
+
WARNING = "warning",
|
|
5
|
+
SUCCESS = "success"
|
|
6
|
+
}
|
|
7
|
+
declare enum EChannelRefreshAction {
|
|
8
|
+
NONE = 0,
|
|
9
|
+
REFRESH = 1,
|
|
10
|
+
STOP = 2
|
|
11
|
+
}
|
|
12
|
+
interface IChannelMessageAction {
|
|
13
|
+
action: EChannelRefreshAction;
|
|
14
|
+
data?: any;
|
|
15
|
+
}
|
|
16
|
+
interface IChannelSettings {
|
|
17
|
+
channelId: string;
|
|
18
|
+
channelConfig: any;
|
|
19
|
+
channelInstanceConfig: any;
|
|
20
|
+
}
|
|
21
|
+
interface IChannelRequirements {
|
|
22
|
+
setup: boolean;
|
|
23
|
+
settings: boolean;
|
|
24
|
+
frontChannels: boolean;
|
|
25
|
+
metrics: boolean;
|
|
26
|
+
notifier: boolean;
|
|
27
|
+
notifications: boolean;
|
|
28
|
+
clusterUrl: boolean;
|
|
29
|
+
clusterInfo: boolean;
|
|
30
|
+
accessString: boolean;
|
|
31
|
+
webSocket: boolean;
|
|
32
|
+
userSettings: boolean;
|
|
33
|
+
palette: boolean;
|
|
34
|
+
exit: boolean;
|
|
35
|
+
}
|
|
36
|
+
export { ENotifyLevel, EChannelRefreshAction };
|
|
37
|
+
export type { IChannelMessageAction, IChannelSettings, IChannelRequirements };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EChannelRefreshAction = exports.ENotifyLevel = void 0;
|
|
4
|
+
var ENotifyLevel;
|
|
5
|
+
(function (ENotifyLevel) {
|
|
6
|
+
ENotifyLevel["INFO"] = "info";
|
|
7
|
+
ENotifyLevel["ERROR"] = "error";
|
|
8
|
+
ENotifyLevel["WARNING"] = "warning";
|
|
9
|
+
ENotifyLevel["SUCCESS"] = "success";
|
|
10
|
+
})(ENotifyLevel || (exports.ENotifyLevel = ENotifyLevel = {}));
|
|
11
|
+
var EChannelRefreshAction;
|
|
12
|
+
(function (EChannelRefreshAction) {
|
|
13
|
+
EChannelRefreshAction[EChannelRefreshAction["NONE"] = 0] = "NONE";
|
|
14
|
+
EChannelRefreshAction[EChannelRefreshAction["REFRESH"] = 1] = "REFRESH";
|
|
15
|
+
EChannelRefreshAction[EChannelRefreshAction["STOP"] = 2] = "STOP";
|
|
16
|
+
})(EChannelRefreshAction || (exports.EChannelRefreshAction = EChannelRefreshAction = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwirthmagnify/kwirth-common",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Common interfaces for integrating applications with Kwirth",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "del .\\dist\\* /s /q && tsc"
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/kwirthmagnify/kwirth-common#readme",
|
|
44
44
|
"dependencies": {
|
|
45
|
+
"@kwirthmagnify/kwirth-common": "^0.5.1",
|
|
45
46
|
"uuid": "^11.1.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|