caprover-api 0.0.1
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/.prettierrc.json +6 -0
- package/.vscode/settings.json +6 -0
- package/.yarnrc.yml +1 -0
- package/README.md +44 -0
- package/dist/api/ApiManager.d.ts +114 -0
- package/dist/api/ApiManager.js +486 -0
- package/dist/api/ErrorFactory.d.ts +26 -0
- package/dist/api/ErrorFactory.js +35 -0
- package/dist/api/HttpClient.d.ts +16 -0
- package/dist/api/HttpClient.js +130 -0
- package/dist/example.d.ts +1 -0
- package/dist/example.js +30 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +43 -0
- package/dist/models/AppDefinition.d.ts +105 -0
- package/dist/models/AppDefinition.js +2 -0
- package/dist/models/AppDefinitionsResponse.d.ts +7 -0
- package/dist/models/AppDefinitionsResponse.js +2 -0
- package/dist/models/AppDeleteResponse.d.ts +3 -0
- package/dist/models/AppDeleteResponse.js +2 -0
- package/dist/models/AutomatedCleanupConfigs.d.ts +12 -0
- package/dist/models/AutomatedCleanupConfigs.js +15 -0
- package/dist/models/BackupMeta.d.ts +19 -0
- package/dist/models/BackupMeta.js +2 -0
- package/dist/models/BuildLogsResponse.d.ts +8 -0
- package/dist/models/BuildLogsResponse.js +2 -0
- package/dist/models/CapRoverTheme.d.ts +10 -0
- package/dist/models/CapRoverTheme.js +2 -0
- package/dist/models/CaptainInfo.d.ts +6 -0
- package/dist/models/CaptainInfo.js +2 -0
- package/dist/models/ContainerProps.d.ts +3 -0
- package/dist/models/ContainerProps.js +2 -0
- package/dist/models/DockerAuthObj.d.ts +11 -0
- package/dist/models/DockerAuthObj.js +2 -0
- package/dist/models/DockerSecret.d.ts +4 -0
- package/dist/models/DockerSecret.js +2 -0
- package/dist/models/DockerService.d.ts +99 -0
- package/dist/models/DockerService.js +2 -0
- package/dist/models/GoAccessInfo.d.ts +7 -0
- package/dist/models/GoAccessInfo.js +2 -0
- package/dist/models/GoAccessReportResponse.d.ts +6 -0
- package/dist/models/GoAccessReportResponse.js +2 -0
- package/dist/models/IBuiltImage.d.ts +4 -0
- package/dist/models/IBuiltImage.js +2 -0
- package/dist/models/ICaptainDefinition.d.ts +7 -0
- package/dist/models/ICaptainDefinition.js +2 -0
- package/dist/models/IGoAccessInfo.d.ts +7 -0
- package/dist/models/IGoAccessInfo.js +2 -0
- package/dist/models/IHashMapGeneric.d.ts +3 -0
- package/dist/models/IHashMapGeneric.js +2 -0
- package/dist/models/IImageSource.d.ts +12 -0
- package/dist/models/IImageSource.js +2 -0
- package/dist/models/IOneClickAppModels.d.ts +45 -0
- package/dist/models/IOneClickAppModels.js +2 -0
- package/dist/models/IProFeatures.d.ts +32 -0
- package/dist/models/IProFeatures.js +14 -0
- package/dist/models/IRegistryInfo.d.ts +21 -0
- package/dist/models/IRegistryInfo.js +8 -0
- package/dist/models/IServerBlockDetails.d.ts +17 -0
- package/dist/models/IServerBlockDetails.js +2 -0
- package/dist/models/IVersionInfo.d.ts +6 -0
- package/dist/models/IVersionInfo.js +2 -0
- package/dist/models/LoadBalancerInfo.d.ts +9 -0
- package/dist/models/LoadBalancerInfo.js +2 -0
- package/dist/models/LogsResponse.d.ts +3 -0
- package/dist/models/LogsResponse.js +2 -0
- package/dist/models/NetDataInfo.d.ts +27 -0
- package/dist/models/NetDataInfo.js +2 -0
- package/dist/models/NginxConfig.d.ts +10 -0
- package/dist/models/NginxConfig.js +2 -0
- package/dist/models/OneClickAppDefinitionResponse.d.ts +3 -0
- package/dist/models/OneClickAppDefinitionResponse.js +2 -0
- package/dist/models/OneClickAppRepositories.d.ts +3 -0
- package/dist/models/OneClickAppRepositories.js +2 -0
- package/dist/models/OneClickAppResponse.d.ts +4 -0
- package/dist/models/OneClickAppResponse.js +2 -0
- package/dist/models/OtherTypes.d.ts +29 -0
- package/dist/models/OtherTypes.js +2 -0
- package/dist/models/ProjectDefinition.d.ts +6 -0
- package/dist/models/ProjectDefinition.js +2 -0
- package/dist/models/ProjectsResponse.d.ts +4 -0
- package/dist/models/ProjectsResponse.js +2 -0
- package/dist/models/RegistriesResponse.d.ts +5 -0
- package/dist/models/RegistriesResponse.js +2 -0
- package/dist/models/ServerDockerInfo.d.ts +14 -0
- package/dist/models/ServerDockerInfo.js +2 -0
- package/dist/models/UnusedImagesResponse.d.ts +6 -0
- package/dist/models/UnusedImagesResponse.js +2 -0
- package/dist/models/index.d.ts +40 -0
- package/dist/models/index.js +56 -0
- package/package.json +30 -0
- package/src/api/ApiManager.ts +825 -0
- package/src/api/ErrorFactory.ts +35 -0
- package/src/api/HttpClient.ts +143 -0
- package/src/example.ts +36 -0
- package/src/index.ts +5 -0
- package/src/models/AppDefinition.ts +124 -0
- package/src/models/AppDefinitionsResponse.ts +8 -0
- package/src/models/AppDeleteResponse.ts +3 -0
- package/src/models/AutomatedCleanupConfigs.ts +18 -0
- package/src/models/BackupMeta.ts +26 -0
- package/src/models/BuildLogsResponse.ts +5 -0
- package/src/models/CapRoverTheme.ts +11 -0
- package/src/models/CaptainInfo.ts +6 -0
- package/src/models/ContainerProps.ts +3 -0
- package/src/models/DockerAuthObj.ts +25 -0
- package/src/models/DockerSecret.ts +4 -0
- package/src/models/DockerService.ts +117 -0
- package/src/models/GoAccessInfo.ts +7 -0
- package/src/models/GoAccessReportResponse.ts +6 -0
- package/src/models/IBuiltImage.ts +4 -0
- package/src/models/ICaptainDefinition.ts +7 -0
- package/src/models/IGoAccessInfo.ts +7 -0
- package/src/models/IHashMapGeneric.ts +3 -0
- package/src/models/IImageSource.ts +10 -0
- package/src/models/IOneClickAppModels.ts +51 -0
- package/src/models/IProFeatures.ts +39 -0
- package/src/models/IRegistryInfo.ts +30 -0
- package/src/models/IServerBlockDetails.ts +18 -0
- package/src/models/IVersionInfo.ts +6 -0
- package/src/models/LoadBalancerInfo.ts +11 -0
- package/src/models/LogsResponse.ts +3 -0
- package/src/models/NetDataInfo.ts +27 -0
- package/src/models/NginxConfig.ts +10 -0
- package/src/models/OneClickAppDefinitionResponse.ts +3 -0
- package/src/models/OneClickAppRepositories.ts +3 -0
- package/src/models/OneClickAppResponse.ts +5 -0
- package/src/models/OtherTypes.ts +32 -0
- package/src/models/ProjectDefinition.ts +6 -0
- package/src/models/ProjectsResponse.ts +5 -0
- package/src/models/RegistriesResponse.ts +6 -0
- package/src/models/ServerDockerInfo.ts +14 -0
- package/src/models/UnusedImagesResponse.ts +3 -0
- package/src/models/index.ts +41 -0
- package/tsconfig.json +14 -0
- package/tslint.json +46 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RepoInfo } from './AppDefinition';
|
|
2
|
+
export interface IImageSource {
|
|
3
|
+
uploadedTarPathSource?: {
|
|
4
|
+
uploadedTarPath: string;
|
|
5
|
+
gitHash: string;
|
|
6
|
+
};
|
|
7
|
+
captainDefinitionContentSource?: {
|
|
8
|
+
captainDefinitionContent: string;
|
|
9
|
+
gitHash: string;
|
|
10
|
+
};
|
|
11
|
+
repoInfoSource?: RepoInfo;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IHashMapGeneric } from './IHashMapGeneric';
|
|
2
|
+
export interface IOneClickAppIdentifier {
|
|
3
|
+
sortScore?: number;
|
|
4
|
+
isOfficial?: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
description: string;
|
|
8
|
+
logoUrl: string;
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IOneClickVariable {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
validRegex?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IDockerComposeService {
|
|
19
|
+
image?: string;
|
|
20
|
+
volumes?: string[];
|
|
21
|
+
ports?: string[];
|
|
22
|
+
environment?: IHashMapGeneric<string>;
|
|
23
|
+
depends_on?: string[];
|
|
24
|
+
hostname?: string;
|
|
25
|
+
cap_add?: string[];
|
|
26
|
+
command?: string | string[];
|
|
27
|
+
caproverExtra?: {
|
|
28
|
+
dockerfileLines?: string[];
|
|
29
|
+
containerHttpPort: number;
|
|
30
|
+
notExposeAsWebApp: boolean;
|
|
31
|
+
websocketSupport: boolean;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface IOneClickTemplate {
|
|
35
|
+
services: IHashMapGeneric<IDockerComposeService>;
|
|
36
|
+
captainVersion: number;
|
|
37
|
+
caproverOneClickApp: {
|
|
38
|
+
instructions: {
|
|
39
|
+
start: string;
|
|
40
|
+
end: string;
|
|
41
|
+
};
|
|
42
|
+
displayName: string;
|
|
43
|
+
variables: IOneClickVariable[];
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IProFeatures {
|
|
2
|
+
isFeatureFlagEnabled: boolean;
|
|
3
|
+
isSubscribed: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface TwoFactorAuthResponse {
|
|
6
|
+
isEnabled: boolean;
|
|
7
|
+
otpPath?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TwoFactorAuthRequest {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
token?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare enum ProAlertActionType {
|
|
14
|
+
email = "email",
|
|
15
|
+
webhook = "webhook"
|
|
16
|
+
}
|
|
17
|
+
export interface ProAlertAction {
|
|
18
|
+
actionType: ProAlertActionType;
|
|
19
|
+
metadata?: any;
|
|
20
|
+
}
|
|
21
|
+
export declare enum ProAlertEvent {
|
|
22
|
+
UserLoggedIn = "UserLoggedIn",
|
|
23
|
+
AppBuildSuccessful = "AppBuildSuccessful",
|
|
24
|
+
AppBuildFailed = "AppBuildFailed"
|
|
25
|
+
}
|
|
26
|
+
export interface ProAlertConfig {
|
|
27
|
+
event: ProAlertEvent;
|
|
28
|
+
action: ProAlertAction;
|
|
29
|
+
}
|
|
30
|
+
export interface IProConfig {
|
|
31
|
+
alerts: ProAlertConfig[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProAlertEvent = exports.ProAlertActionType = void 0;
|
|
4
|
+
var ProAlertActionType;
|
|
5
|
+
(function (ProAlertActionType) {
|
|
6
|
+
ProAlertActionType["email"] = "email";
|
|
7
|
+
ProAlertActionType["webhook"] = "webhook";
|
|
8
|
+
})(ProAlertActionType || (exports.ProAlertActionType = ProAlertActionType = {}));
|
|
9
|
+
var ProAlertEvent;
|
|
10
|
+
(function (ProAlertEvent) {
|
|
11
|
+
ProAlertEvent["UserLoggedIn"] = "UserLoggedIn";
|
|
12
|
+
ProAlertEvent["AppBuildSuccessful"] = "AppBuildSuccessful";
|
|
13
|
+
ProAlertEvent["AppBuildFailed"] = "AppBuildFailed";
|
|
14
|
+
})(ProAlertEvent || (exports.ProAlertEvent = ProAlertEvent = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class IRegistryTypes {
|
|
2
|
+
static readonly LOCAL_REG = "LOCAL_REG";
|
|
3
|
+
static readonly REMOTE_REG = "REMOTE_REG";
|
|
4
|
+
}
|
|
5
|
+
export type IRegistryType = 'LOCAL_REG' | 'REMOTE_REG';
|
|
6
|
+
export interface IRegistryInfo {
|
|
7
|
+
id: string;
|
|
8
|
+
registryUser: string;
|
|
9
|
+
registryPassword: string;
|
|
10
|
+
registryDomain: string;
|
|
11
|
+
registryImagePrefix: string;
|
|
12
|
+
registryType: IRegistryType;
|
|
13
|
+
}
|
|
14
|
+
export interface IRegistryInfoEncrypted {
|
|
15
|
+
id: string;
|
|
16
|
+
registryUser: string;
|
|
17
|
+
registryPasswordEncrypted: string;
|
|
18
|
+
registryDomain: string;
|
|
19
|
+
registryImagePrefix: string;
|
|
20
|
+
registryType: IRegistryType;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IRegistryTypes = void 0;
|
|
4
|
+
class IRegistryTypes {
|
|
5
|
+
}
|
|
6
|
+
exports.IRegistryTypes = IRegistryTypes;
|
|
7
|
+
IRegistryTypes.LOCAL_REG = 'LOCAL_REG';
|
|
8
|
+
IRegistryTypes.REMOTE_REG = 'REMOTE_REG';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IServerBlockDetails {
|
|
2
|
+
hasSsl: boolean;
|
|
3
|
+
forceSsl: boolean;
|
|
4
|
+
websocketSupport: boolean;
|
|
5
|
+
publicDomain: string;
|
|
6
|
+
localDomain: string;
|
|
7
|
+
nginxConfigTemplate: string;
|
|
8
|
+
containerHttpPort: number;
|
|
9
|
+
httpBasicAuth?: string;
|
|
10
|
+
httpBasicAuthPath?: string;
|
|
11
|
+
crtPath?: string;
|
|
12
|
+
keyPath?: string;
|
|
13
|
+
customErrorPagesDirectory: string;
|
|
14
|
+
staticWebRoot: string;
|
|
15
|
+
redirectToPath?: string;
|
|
16
|
+
logAccessPath?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface NetDataInfo {
|
|
2
|
+
isEnabled: boolean;
|
|
3
|
+
netDataUrl: string;
|
|
4
|
+
data: {
|
|
5
|
+
smtp: {
|
|
6
|
+
to: string;
|
|
7
|
+
hostname: string;
|
|
8
|
+
server: string;
|
|
9
|
+
port: string;
|
|
10
|
+
allowNonTls: string;
|
|
11
|
+
username: string;
|
|
12
|
+
password: string;
|
|
13
|
+
};
|
|
14
|
+
slack: {
|
|
15
|
+
hook: string;
|
|
16
|
+
channel: string;
|
|
17
|
+
};
|
|
18
|
+
telegram: {
|
|
19
|
+
chatId: string;
|
|
20
|
+
botToken: string;
|
|
21
|
+
};
|
|
22
|
+
pushBullet: {
|
|
23
|
+
apiToken: string;
|
|
24
|
+
fallbackEmail: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IAppDef } from './AppDefinition';
|
|
2
|
+
export type CaptainError = {
|
|
3
|
+
captainErrorType: number;
|
|
4
|
+
apiMessage: string;
|
|
5
|
+
};
|
|
6
|
+
export type AnyError = any;
|
|
7
|
+
export type PreDeployFunction = (appDef: IAppDef | undefined, updatedData: any) => Promise<void>;
|
|
8
|
+
export interface IDockerApiPort {
|
|
9
|
+
Protocol: string;
|
|
10
|
+
TargetPort: number;
|
|
11
|
+
PublishedPort: number;
|
|
12
|
+
PublishMode?: 'ingress' | 'host';
|
|
13
|
+
}
|
|
14
|
+
export interface IDockerContainerResource {
|
|
15
|
+
Limits?: {
|
|
16
|
+
NanoCPUs?: number;
|
|
17
|
+
MemoryBytes?: number;
|
|
18
|
+
};
|
|
19
|
+
Reservation?: {
|
|
20
|
+
NanoCPUs?: number;
|
|
21
|
+
MemoryBytes?: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface ITemplate {
|
|
25
|
+
templateName: string;
|
|
26
|
+
dockerHubImageName: string;
|
|
27
|
+
tagSuffix: string;
|
|
28
|
+
postFromLines?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ServerDockerInfo {
|
|
2
|
+
nodeId: string;
|
|
3
|
+
type: 'manager' | 'worker';
|
|
4
|
+
isLeader: boolean;
|
|
5
|
+
hostname: string;
|
|
6
|
+
architecture: string;
|
|
7
|
+
operatingSystem: string;
|
|
8
|
+
nanoCpu: number;
|
|
9
|
+
memoryBytes: number;
|
|
10
|
+
dockerEngineVersion: string;
|
|
11
|
+
ip: string;
|
|
12
|
+
state: string;
|
|
13
|
+
status: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
export * from './AppDefinition';
|
|
5
|
+
export * from './AppDefinitionsResponse';
|
|
6
|
+
export * from './AppDeleteResponse';
|
|
7
|
+
export * from './AutomatedCleanupConfigs';
|
|
8
|
+
export * from './BackupMeta';
|
|
9
|
+
export * from './BuildLogsResponse';
|
|
10
|
+
export * from './CapRoverTheme';
|
|
11
|
+
export * from './CaptainInfo';
|
|
12
|
+
export * from './ContainerProps';
|
|
13
|
+
export * from './DockerAuthObj';
|
|
14
|
+
export * from './DockerSecret';
|
|
15
|
+
export * from './DockerService';
|
|
16
|
+
export * from './GoAccessInfo';
|
|
17
|
+
export * from './GoAccessReportResponse';
|
|
18
|
+
export * from './IBuiltImage';
|
|
19
|
+
export * from './ICaptainDefinition';
|
|
20
|
+
export * from './IGoAccessInfo';
|
|
21
|
+
export * from './IHashMapGeneric';
|
|
22
|
+
export * from './IImageSource';
|
|
23
|
+
export * from './IOneClickAppModels';
|
|
24
|
+
export * from './IProFeatures';
|
|
25
|
+
export * from './IRegistryInfo';
|
|
26
|
+
export * from './IServerBlockDetails';
|
|
27
|
+
export * from './IVersionInfo';
|
|
28
|
+
export * from './LoadBalancerInfo';
|
|
29
|
+
export * from './LogsResponse';
|
|
30
|
+
export * from './NetDataInfo';
|
|
31
|
+
export * from './NginxConfig';
|
|
32
|
+
export * from './OneClickAppDefinitionResponse';
|
|
33
|
+
export * from './OneClickAppRepositories';
|
|
34
|
+
export * from './OneClickAppResponse';
|
|
35
|
+
export * from './OtherTypes';
|
|
36
|
+
export * from './ProjectDefinition';
|
|
37
|
+
export * from './ProjectsResponse';
|
|
38
|
+
export * from './RegistriesResponse';
|
|
39
|
+
export * from './ServerDockerInfo';
|
|
40
|
+
export * from './UnusedImagesResponse';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file Automatically generated by barrelsby.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./AppDefinition"), exports);
|
|
21
|
+
__exportStar(require("./AppDefinitionsResponse"), exports);
|
|
22
|
+
__exportStar(require("./AppDeleteResponse"), exports);
|
|
23
|
+
__exportStar(require("./AutomatedCleanupConfigs"), exports);
|
|
24
|
+
__exportStar(require("./BackupMeta"), exports);
|
|
25
|
+
__exportStar(require("./BuildLogsResponse"), exports);
|
|
26
|
+
__exportStar(require("./CapRoverTheme"), exports);
|
|
27
|
+
__exportStar(require("./CaptainInfo"), exports);
|
|
28
|
+
__exportStar(require("./ContainerProps"), exports);
|
|
29
|
+
__exportStar(require("./DockerAuthObj"), exports);
|
|
30
|
+
__exportStar(require("./DockerSecret"), exports);
|
|
31
|
+
__exportStar(require("./DockerService"), exports);
|
|
32
|
+
__exportStar(require("./GoAccessInfo"), exports);
|
|
33
|
+
__exportStar(require("./GoAccessReportResponse"), exports);
|
|
34
|
+
__exportStar(require("./IBuiltImage"), exports);
|
|
35
|
+
__exportStar(require("./ICaptainDefinition"), exports);
|
|
36
|
+
__exportStar(require("./IGoAccessInfo"), exports);
|
|
37
|
+
__exportStar(require("./IHashMapGeneric"), exports);
|
|
38
|
+
__exportStar(require("./IImageSource"), exports);
|
|
39
|
+
__exportStar(require("./IOneClickAppModels"), exports);
|
|
40
|
+
__exportStar(require("./IProFeatures"), exports);
|
|
41
|
+
__exportStar(require("./IRegistryInfo"), exports);
|
|
42
|
+
__exportStar(require("./IServerBlockDetails"), exports);
|
|
43
|
+
__exportStar(require("./IVersionInfo"), exports);
|
|
44
|
+
__exportStar(require("./LoadBalancerInfo"), exports);
|
|
45
|
+
__exportStar(require("./LogsResponse"), exports);
|
|
46
|
+
__exportStar(require("./NetDataInfo"), exports);
|
|
47
|
+
__exportStar(require("./NginxConfig"), exports);
|
|
48
|
+
__exportStar(require("./OneClickAppDefinitionResponse"), exports);
|
|
49
|
+
__exportStar(require("./OneClickAppRepositories"), exports);
|
|
50
|
+
__exportStar(require("./OneClickAppResponse"), exports);
|
|
51
|
+
__exportStar(require("./OtherTypes"), exports);
|
|
52
|
+
__exportStar(require("./ProjectDefinition"), exports);
|
|
53
|
+
__exportStar(require("./ProjectsResponse"), exports);
|
|
54
|
+
__exportStar(require("./RegistriesResponse"), exports);
|
|
55
|
+
__exportStar(require("./ServerDockerInfo"), exports);
|
|
56
|
+
__exportStar(require("./UnusedImagesResponse"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "caprover-api",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "API client for CapRover",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"formatter": "prettier --check './src/**/*.ts*'",
|
|
9
|
+
"formatter-write": "prettier --write './src/**/*.ts*'",
|
|
10
|
+
"tslint": "tslint -c tslint.json -p tsconfig.json",
|
|
11
|
+
"tslint-fix": "tslint --fix -c tslint.json -p tsconfig.json",
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
|
+
"build": "rm -rf ./dist && npm run tslint && npx tsc && chmod +x ./dist -R",
|
|
14
|
+
"dev": "rm -rf ./dist && npx tsc && node ./dist/example.js",
|
|
15
|
+
"generate-barrels": "barrelsby --directory src/models"
|
|
16
|
+
},
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"axios": "^1.10.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^24.0.10",
|
|
24
|
+
"barrelsby": "^2.8.1",
|
|
25
|
+
"prettier": "^3.6.2",
|
|
26
|
+
"tslint": "^6.1.3",
|
|
27
|
+
"tslint-config-prettier": "^1.18.0",
|
|
28
|
+
"typescript": "^5.8.3"
|
|
29
|
+
}
|
|
30
|
+
}
|