@kwirthmagnify/kwirth-common 0.5.24 → 0.5.26

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 CHANGED
@@ -1,5 +1,3 @@
1
- import { ISenderAccess } from './Sender';
2
- import { IUserInfo } from './Global';
3
1
  declare enum ClusterTypeEnum {
4
2
  KUBERNETES = "kubernetes",
5
3
  DOCKER = "docker"
@@ -52,17 +50,4 @@ interface IBackChannelRequirements {
52
50
  providers: string[];
53
51
  instances?: EChannelInstances;
54
52
  }
55
- interface IBackChannelObject {
56
- writeStorage?(id: string, secret: boolean, data: any): Promise<void>;
57
- readStorage?(id: string, secret: boolean): Promise<any>;
58
- writeStorageCommon?(id: string, secret: boolean, data: any): Promise<void>;
59
- readStorageCommon?(id: string, secret: boolean): Promise<any>;
60
- logInfo?(message: unknown): void;
61
- logTrace?(message: unknown): void;
62
- logWarning?(message: unknown): void;
63
- logError?(message: unknown): void;
64
- getUsers?(): Promise<IUserInfo[]>;
65
- getPluginConfig?(pluginId: string): Promise<Record<string, unknown>>;
66
- senders?: ISenderAccess;
67
- }
68
- export { ClusterTypeEnum, KwirthData, BackChannelData, EClusterType, EChannelInstances, EChannelMode, IBackChannelRequirements, IBackChannelObject };
53
+ export { ClusterTypeEnum, KwirthData, BackChannelData, EClusterType, EChannelInstances, EChannelMode, IBackChannelRequirements };
package/dist/Channel.js CHANGED
@@ -16,7 +16,7 @@ var EClusterType;
16
16
  var EChannelInstances;
17
17
  (function (EChannelInstances) {
18
18
  EChannelInstances["MULTI"] = "multi";
19
- EChannelInstances["SINGLE"] = "single"; // exactly one back per cluster (the old "daemon"); home = in-cluster Kwirth
19
+ EChannelInstances["SINGLE"] = "single"; // exactly one back per cluster; home = in-cluster Kwirth
20
20
  })(EChannelInstances || (exports.EChannelInstances = EChannelInstances = {}));
21
21
  // Whether a channel's back is hosted by this Kwirth or lives elsewhere (resolved by the front-hub).
22
22
  var EChannelMode;
package/dist/Global.d.ts CHANGED
@@ -6,11 +6,13 @@ interface IUser {
6
6
  accessKey: AccessKey;
7
7
  resources: string;
8
8
  idp?: string;
9
+ startChannel?: string;
9
10
  }
10
11
  interface ILoginResponse {
11
12
  id: string;
12
13
  name: string;
13
14
  accessKey: AccessKey;
15
+ startChannel?: string;
14
16
  }
15
17
  interface IUserInfo {
16
18
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common",
3
- "version": "0.5.24",
3
+ "version": "0.5.26",
4
4
  "description": "Common interfaces for integrating applications with Kwirth",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q && tsc"