@kwirthmagnify/kwirth-common 0.5.39 → 0.5.41

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/Global.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AccessKey } from "./AccessKey";
2
+ import { IMarketplace } from "./Marketplace";
2
3
  interface IUser {
3
4
  id: string;
4
5
  name: string;
@@ -31,4 +32,8 @@ interface IUserInfo {
31
32
  interface IClusterMetricsConfig {
32
33
  metricsInterval: number;
33
34
  }
34
- export { ILoginResponse, IUser, IUserInfo, IClusterMetricsConfig };
35
+ interface IKwirthSettings {
36
+ metricsInterval?: number;
37
+ marketplaces?: IMarketplace[];
38
+ }
39
+ export { ILoginResponse, IUser, IUserInfo, IClusterMetricsConfig, IKwirthSettings };
@@ -0,0 +1,29 @@
1
+ import { EExtensionType } from './ExtensionType';
2
+ export declare enum EMarketplaceAuthType {
3
+ NONE = "none",
4
+ BASIC = "basic"
5
+ }
6
+ export interface IMarketplaceAuth {
7
+ type: EMarketplaceAuthType;
8
+ username?: string;
9
+ hasPassword?: boolean;
10
+ }
11
+ export interface IMarketplace {
12
+ id: string;
13
+ url: string;
14
+ label: string;
15
+ enabled: boolean;
16
+ auth?: IMarketplaceAuth;
17
+ }
18
+ export interface IMarketplaceEntry {
19
+ extensionType: EExtensionType;
20
+ id: string;
21
+ version: string;
22
+ name: string;
23
+ url: string;
24
+ description?: string;
25
+ icon?: string;
26
+ website?: string;
27
+ marketplaceId?: string;
28
+ marketplaceLabel?: string;
29
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EMarketplaceAuthType = void 0;
4
+ // Como se autentica Kwirth contra el registro de paquetes de un marketplace. El manifest siempre se
5
+ // lee abierto; esto aplica solo a la DESCARGA DEL PAQUETE. Enum (regla: no string-literals para
6
+ // valores enumerados que cruzan back↔front).
7
+ var EMarketplaceAuthType;
8
+ (function (EMarketplaceAuthType) {
9
+ EMarketplaceAuthType["NONE"] = "none";
10
+ EMarketplaceAuthType["BASIC"] = "basic";
11
+ })(EMarketplaceAuthType || (exports.EMarketplaceAuthType = EMarketplaceAuthType = {}));
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './Global';
11
11
  export * from './AuthMethod';
12
12
  export * from './ExtensionType';
13
13
  export * from './ExtensionScope';
14
+ export * from './Marketplace';
14
15
  export * from './Version';
15
16
  export * from './FrontChannel';
16
17
  export * from './nameGenerator';
package/dist/index.js CHANGED
@@ -42,6 +42,7 @@ __exportStar(require("./Global"), exports);
42
42
  __exportStar(require("./AuthMethod"), exports);
43
43
  __exportStar(require("./ExtensionType"), exports);
44
44
  __exportStar(require("./ExtensionScope"), exports);
45
+ __exportStar(require("./Marketplace"), exports);
45
46
  // (daemons eliminados: se retira export * from './Daemon')
46
47
  __exportStar(require("./Version"), exports);
47
48
  __exportStar(require("./FrontChannel"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common",
3
- "version": "0.5.39",
3
+ "version": "0.5.41",
4
4
  "description": "Common interfaces for integrating applications with Kwirth",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q && tsc"