@bprotsyk/aso-core 2.0.53 → 2.0.55
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/lib/index.d.ts +0 -1
- package/lib/index.js +2 -3
- package/lib/utils/server-util.d.ts +0 -42
- package/lib/utils/server-util.js +302 -291
- package/package.json +1 -4
- package/src/index.ts +1 -1
- package/src/utils/server-util.ts +366 -366
package/lib/index.d.ts
CHANGED
|
@@ -23,4 +23,3 @@ export { IKeitaroStream } from "./keitaro/keitaro-stream";
|
|
|
23
23
|
export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain";
|
|
24
24
|
export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse, getDomainTargetByIp } from "./general/domain";
|
|
25
25
|
export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema, INamecheapGetDomainsResult, INamecheapBuyResult } from "./general/namecheap-domain";
|
|
26
|
-
export { ServerUtil } from "./utils/server-util";
|
package/lib/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AppType = exports.EPlatform = exports.PlugType = exports.AppSchema = exports.IntegrationVersion = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
|
|
27
27
|
var offer_1 = require("./offers/offer");
|
|
28
28
|
Object.defineProperty(exports, "IOfferType", { enumerable: true, get: function () { return offer_1.IOfferType; } });
|
|
29
29
|
var section_1 = require("./offers/section");
|
|
@@ -65,5 +65,4 @@ Object.defineProperty(exports, "CONST_CLOUFLARE_STATUS_READY", { enumerable: tru
|
|
|
65
65
|
Object.defineProperty(exports, "getDomainTargetByIp", { enumerable: true, get: function () { return domain_1.getDomainTargetByIp; } });
|
|
66
66
|
var namecheap_domain_1 = require("./general/namecheap-domain");
|
|
67
67
|
Object.defineProperty(exports, "NamecheapBuyRequestSchema", { enumerable: true, get: function () { return namecheap_domain_1.NamecheapBuyRequestSchema; } });
|
|
68
|
-
|
|
69
|
-
Object.defineProperty(exports, "ServerUtil", { enumerable: true, get: function () { return server_util_1.ServerUtil; } });
|
|
68
|
+
// export { ServerUtil } from "./utils/server-util"
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { NodeSSH } from "node-ssh";
|
|
2
|
-
export declare let IP: string;
|
|
3
|
-
export declare let PASSWORD: string;
|
|
4
|
-
export declare let HOST: string;
|
|
5
|
-
export declare let PORT: number;
|
|
6
|
-
interface ISFTP {
|
|
7
|
-
host: string;
|
|
8
|
-
port: number;
|
|
9
|
-
username: string;
|
|
10
|
-
password: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class ServerUtil {
|
|
13
|
-
DOMAIN_HOME: string;
|
|
14
|
-
ssh?: NodeSSH;
|
|
15
|
-
sftpConfig?: ISFTP;
|
|
16
|
-
constructor(sftpConfig?: ISFTP);
|
|
17
|
-
connectSSH(): Promise<void>;
|
|
18
|
-
ensureConnected(): Promise<void>;
|
|
19
|
-
exec(command: string, options?: any): Promise<string>;
|
|
20
|
-
generateSSHKey(): Promise<string>;
|
|
21
|
-
createDirectories(): Promise<void>;
|
|
22
|
-
installGit(): Promise<void>;
|
|
23
|
-
addBitbucketToKnownHosts(): Promise<void>;
|
|
24
|
-
cloneRepository(repoName: string, targetPath: string): Promise<void>;
|
|
25
|
-
installNginx(): Promise<void>;
|
|
26
|
-
isNginxActive(): Promise<boolean>;
|
|
27
|
-
isMongoActive(): Promise<boolean>;
|
|
28
|
-
mongoInstallCommand: string;
|
|
29
|
-
domainNginxConfigExists(host: string): Promise<boolean>;
|
|
30
|
-
domainNginxCertsExist(host: string): Promise<boolean>;
|
|
31
|
-
isCerbotActive(): Promise<boolean>;
|
|
32
|
-
setupCertbot(): Promise<boolean>;
|
|
33
|
-
setupSSL(email: string, host: string): Promise<void>;
|
|
34
|
-
refresh(): Promise<boolean>;
|
|
35
|
-
uploadDirectoryToSftp(localPath: string, remotePath: string, sftpConfig: any): Promise<void>;
|
|
36
|
-
ensureDirectoryExistence(dirPath: string): void;
|
|
37
|
-
generateNginxConfig(domain: string, rootPath: string): Promise<string>;
|
|
38
|
-
extractUploadedZip(name: string, file: any, extractToPath: string): Promise<void>;
|
|
39
|
-
ensureDirectoryExistsViaSSH(remoteDir: string): Promise<void>;
|
|
40
|
-
disconnectSSH(): Promise<void>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|