@kwirthmagnify/kwirth-common 0.5.40 → 0.5.42
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 +2 -0
- package/dist/Marketplace.d.ts +39 -0
- package/dist/Marketplace.js +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
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;
|
|
@@ -33,5 +34,6 @@ interface IClusterMetricsConfig {
|
|
|
33
34
|
}
|
|
34
35
|
interface IKwirthSettings {
|
|
35
36
|
metricsInterval?: number;
|
|
37
|
+
marketplaces?: IMarketplace[];
|
|
36
38
|
}
|
|
37
39
|
export { ILoginResponse, IUser, IUserInfo, IClusterMetricsConfig, IKwirthSettings };
|
|
@@ -0,0 +1,39 @@
|
|
|
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 declare enum EManifestAuthType {
|
|
12
|
+
NONE = "none",
|
|
13
|
+
PRIVATE_TOKEN = "privateToken",// cabecera PRIVATE-TOKEN (GitLab API)
|
|
14
|
+
BEARER = "bearer"
|
|
15
|
+
}
|
|
16
|
+
export interface IMarketplaceManifestAuth {
|
|
17
|
+
type: EManifestAuthType;
|
|
18
|
+
hasToken?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IMarketplace {
|
|
21
|
+
id: string;
|
|
22
|
+
url: string;
|
|
23
|
+
label: string;
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
auth?: IMarketplaceAuth;
|
|
26
|
+
manifestAuth?: IMarketplaceManifestAuth;
|
|
27
|
+
}
|
|
28
|
+
export interface IMarketplaceEntry {
|
|
29
|
+
extensionType: EExtensionType;
|
|
30
|
+
id: string;
|
|
31
|
+
version: string;
|
|
32
|
+
name: string;
|
|
33
|
+
url: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
icon?: string;
|
|
36
|
+
website?: string;
|
|
37
|
+
marketplaceId?: string;
|
|
38
|
+
marketplaceLabel?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EManifestAuthType = 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 = {}));
|
|
12
|
+
// Como se autentica la LECTURA DEL MANIFEST. Es independiente de la descarga del paquete: el manifest
|
|
13
|
+
// puede vivir en un repo git privado (cabecera PRIVATE-TOKEN de GitLab) mientras los paquetes estan en
|
|
14
|
+
// otro sitio con otras credenciales, o al reves.
|
|
15
|
+
var EManifestAuthType;
|
|
16
|
+
(function (EManifestAuthType) {
|
|
17
|
+
EManifestAuthType["NONE"] = "none";
|
|
18
|
+
EManifestAuthType["PRIVATE_TOKEN"] = "privateToken";
|
|
19
|
+
EManifestAuthType["BEARER"] = "bearer"; // cabecera Authorization: Bearer
|
|
20
|
+
})(EManifestAuthType || (exports.EManifestAuthType = EManifestAuthType = {}));
|
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);
|