@hubspot/local-dev-lib 1.3.0 → 1.5.0
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/api/appsDev.d.ts +2 -1
- package/api/appsDev.js +7 -1
- package/api/github.js +1 -0
- package/api/projects.d.ts +3 -0
- package/api/projects.js +19 -1
- package/http/getAxiosConfig.js +21 -0
- package/lib/archive.d.ts +2 -1
- package/lib/archive.js +11 -6
- package/lib/cms/uploadFolder.js +1 -1
- package/lib/github.d.ts +1 -0
- package/lib/github.js +11 -5
- package/package.json +5 -6
- package/types/Apps.d.ts +7 -0
- package/types/Migration.d.ts +24 -0
- package/types/Migration.js +10 -0
package/api/appsDev.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { PublicApp } from '../types/Apps';
|
|
1
|
+
import { PublicApp, PublicAppDeveloperTestAccountInstallData } from '../types/Apps';
|
|
2
2
|
export declare function fetchPublicAppsForPortal(accountId: number): Promise<Array<PublicApp>>;
|
|
3
|
+
export declare function fetchPublicAppDeveloperTestAccountInstallData(appId: number, accountId: number): Promise<PublicAppDeveloperTestAccountInstallData>;
|
package/api/appsDev.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.fetchPublicAppsForPortal = void 0;
|
|
6
|
+
exports.fetchPublicAppDeveloperTestAccountInstallData = exports.fetchPublicAppsForPortal = void 0;
|
|
7
7
|
const http_1 = __importDefault(require("../http"));
|
|
8
8
|
const APPS_DEV_API_PATH = 'apps-dev/external/public/v3';
|
|
9
9
|
async function fetchPublicAppsForPortal(accountId) {
|
|
@@ -13,3 +13,9 @@ async function fetchPublicAppsForPortal(accountId) {
|
|
|
13
13
|
return resp ? resp.results : [];
|
|
14
14
|
}
|
|
15
15
|
exports.fetchPublicAppsForPortal = fetchPublicAppsForPortal;
|
|
16
|
+
function fetchPublicAppDeveloperTestAccountInstallData(appId, accountId) {
|
|
17
|
+
return http_1.default.get(accountId, {
|
|
18
|
+
url: `${APPS_DEV_API_PATH}/${appId}/test-portal-installs`,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
exports.fetchPublicAppDeveloperTestAccountInstallData = fetchPublicAppDeveloperTestAccountInstallData;
|
package/api/github.js
CHANGED
|
@@ -40,6 +40,7 @@ exports.fetchRepoFile = fetchRepoFile;
|
|
|
40
40
|
async function fetchRepoFileByDownloadUrl(downloadUrl) {
|
|
41
41
|
return axios_1.default.get(downloadUrl, {
|
|
42
42
|
headers: { ...(0, getAxiosConfig_1.getDefaultUserAgentHeader)(), ...GITHUB_AUTH_HEADERS },
|
|
43
|
+
responseType: 'arraybuffer',
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
exports.fetchRepoFileByDownloadUrl = fetchRepoFileByDownloadUrl;
|
package/api/projects.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Build, FetchProjectBuildsResponse } from '../types/Build';
|
|
|
5
5
|
import { ComponentMetadataResponse, ComponentStructureResponse } from '../types/ComponentStructure';
|
|
6
6
|
import { Deploy, ProjectDeployResponse } from '../types/Deploy';
|
|
7
7
|
import { ProjectLog } from '../types/ProjectLog';
|
|
8
|
+
import { MigrateAppResponse, PollAppResponse } from '../types/Migration';
|
|
8
9
|
export declare function fetchProjects(accountId: number): Promise<FetchProjectResponse>;
|
|
9
10
|
export declare function createProject(accountId: number, name: string): Promise<Project>;
|
|
10
11
|
export declare function uploadProject(accountId: number, projectName: string, projectFile: string, uploadMessage: string, platformVersion?: string): Promise<UploadProjectResponse>;
|
|
@@ -35,4 +36,6 @@ export declare function fetchBuildWarnLogs(accountId: number, projectName: strin
|
|
|
35
36
|
export declare function fetchDeployWarnLogs(accountId: number, projectName: string, deployId: number): Promise<{
|
|
36
37
|
logs: Array<ProjectLog>;
|
|
37
38
|
}>;
|
|
39
|
+
export declare function migrateApp(accountId: number, appId: number, projectName: string): Promise<MigrateAppResponse>;
|
|
40
|
+
export declare function checkMigrationStatus(accountId: number, id: number): Promise<PollAppResponse>;
|
|
38
41
|
export {};
|
package/api/projects.js
CHANGED
|
@@ -3,13 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.fetchDeployWarnLogs = exports.fetchBuildWarnLogs = exports.cancelStagedBuild = exports.deleteFileFromBuild = exports.uploadFileToBuild = exports.queueBuild = exports.provisionBuild = exports.fetchDeployComponentsMetadata = exports.fetchProjectSettings = exports.getDeployStructure = exports.getDeployStatus = exports.deployProject = exports.getBuildStructure = exports.getBuildStatus = exports.fetchProjectBuilds = exports.fetchPlatformVersions = exports.deleteProject = exports.downloadProject = exports.fetchProject = exports.uploadProject = exports.createProject = exports.fetchProjects = void 0;
|
|
6
|
+
exports.checkMigrationStatus = exports.migrateApp = exports.fetchDeployWarnLogs = exports.fetchBuildWarnLogs = exports.cancelStagedBuild = exports.deleteFileFromBuild = exports.uploadFileToBuild = exports.queueBuild = exports.provisionBuild = exports.fetchDeployComponentsMetadata = exports.fetchProjectSettings = exports.getDeployStructure = exports.getDeployStatus = exports.deployProject = exports.getBuildStructure = exports.getBuildStatus = exports.fetchProjectBuilds = exports.fetchPlatformVersions = exports.deleteProject = exports.downloadProject = exports.fetchProject = exports.uploadProject = exports.createProject = exports.fetchProjects = void 0;
|
|
7
7
|
const http_1 = __importDefault(require("../http"));
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const PROJECTS_API_PATH = 'dfs/v1/projects';
|
|
10
10
|
const PROJECTS_DEPLOY_API_PATH = 'dfs/deploy/v1';
|
|
11
11
|
const PROJECTS_LOGS_API_PATH = 'dfs/logging/v1';
|
|
12
12
|
const DEVELOPER_PROJECTS_API_PATH = 'developer/projects/v1';
|
|
13
|
+
const MIGRATIONS_API_PATH = 'dfs/migrations/v1';
|
|
13
14
|
async function fetchProjects(accountId) {
|
|
14
15
|
return http_1.default.get(accountId, {
|
|
15
16
|
url: PROJECTS_API_PATH,
|
|
@@ -172,3 +173,20 @@ async function fetchDeployWarnLogs(accountId, projectName, deployId) {
|
|
|
172
173
|
});
|
|
173
174
|
}
|
|
174
175
|
exports.fetchDeployWarnLogs = fetchDeployWarnLogs;
|
|
176
|
+
async function migrateApp(accountId, appId, projectName) {
|
|
177
|
+
return http_1.default.post(accountId, {
|
|
178
|
+
url: `${MIGRATIONS_API_PATH}/migrations`,
|
|
179
|
+
data: {
|
|
180
|
+
componentId: appId,
|
|
181
|
+
componentType: 'PUBLIC_APP_ID',
|
|
182
|
+
projectName,
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
exports.migrateApp = migrateApp;
|
|
187
|
+
async function checkMigrationStatus(accountId, id) {
|
|
188
|
+
return http_1.default.get(accountId, {
|
|
189
|
+
url: `${MIGRATIONS_API_PATH}/migrations/${id}`,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
exports.checkMigrationStatus = checkMigrationStatus;
|
package/http/getAxiosConfig.js
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.getAxiosConfig = exports.getDefaultUserAgentHeader = exports.USER_AGENTS = void 0;
|
|
4
7
|
const package_json_1 = require("../package.json");
|
|
5
8
|
const config_1 = require("../config");
|
|
6
9
|
const urls_1 = require("../lib/urls");
|
|
10
|
+
const https_1 = __importDefault(require("https"));
|
|
11
|
+
const http_1 = __importDefault(require("http"));
|
|
12
|
+
// Total number of sockets across all hosts
|
|
13
|
+
const MAX_TOTAL_SOCKETS = 25;
|
|
14
|
+
// Total number of sockets per each host
|
|
15
|
+
const MAX_SOCKETS_PER_HOST = 5;
|
|
16
|
+
const httpAgent = new http_1.default.Agent({
|
|
17
|
+
keepAlive: true,
|
|
18
|
+
maxTotalSockets: MAX_TOTAL_SOCKETS,
|
|
19
|
+
maxSockets: MAX_SOCKETS_PER_HOST,
|
|
20
|
+
});
|
|
21
|
+
const httpsAgent = new https_1.default.Agent({
|
|
22
|
+
keepAlive: true,
|
|
23
|
+
maxTotalSockets: MAX_TOTAL_SOCKETS,
|
|
24
|
+
maxSockets: MAX_SOCKETS_PER_HOST,
|
|
25
|
+
});
|
|
7
26
|
exports.USER_AGENTS = {
|
|
8
27
|
'HubSpot Local Dev Lib': package_json_1.version,
|
|
9
28
|
};
|
|
@@ -31,6 +50,8 @@ function getAxiosConfig(options) {
|
|
|
31
50
|
},
|
|
32
51
|
timeout: httpTimeout || 15000,
|
|
33
52
|
transitional: DEFAULT_TRANSITIONAL,
|
|
53
|
+
httpAgent,
|
|
54
|
+
httpsAgent,
|
|
34
55
|
...rest,
|
|
35
56
|
};
|
|
36
57
|
}
|
package/lib/archive.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
type CopySourceToDestOptions = {
|
|
3
3
|
sourceDir?: string;
|
|
4
4
|
includesRootDir?: boolean;
|
|
5
|
+
hideLogs?: boolean;
|
|
5
6
|
};
|
|
6
|
-
export declare function extractZipArchive(zip: Buffer, name: string, dest: string, { sourceDir, includesRootDir }?: CopySourceToDestOptions): Promise<boolean>;
|
|
7
|
+
export declare function extractZipArchive(zip: Buffer, name: string, dest: string, { sourceDir, includesRootDir, hideLogs }?: CopySourceToDestOptions): Promise<boolean>;
|
|
7
8
|
export {};
|
package/lib/archive.js
CHANGED
|
@@ -13,10 +13,12 @@ const standardErrors_1 = require("../errors/standardErrors");
|
|
|
13
13
|
const logger_1 = require("./logger");
|
|
14
14
|
const lang_1 = require("../utils/lang");
|
|
15
15
|
const i18nKey = 'lib.archive';
|
|
16
|
-
async function extractZip(name, zip) {
|
|
16
|
+
async function extractZip(name, zip, hideLogs = false) {
|
|
17
17
|
const result = { extractDir: '', tmpDir: '' };
|
|
18
18
|
const TMP_FOLDER_PREFIX = `hubspot-temp-${name}-`;
|
|
19
|
-
|
|
19
|
+
if (!hideLogs) {
|
|
20
|
+
logger_1.logger.log((0, lang_1.i18n)(`${i18nKey}.extractZip.init`));
|
|
21
|
+
}
|
|
20
22
|
// Write zip to disk
|
|
21
23
|
let tmpZipPath = '';
|
|
22
24
|
try {
|
|
@@ -51,9 +53,11 @@ async function extractZip(name, zip) {
|
|
|
51
53
|
logger_1.logger.debug((0, lang_1.i18n)(`${i18nKey}.extractZip.success`));
|
|
52
54
|
return result;
|
|
53
55
|
}
|
|
54
|
-
async function copySourceToDest(src, dest, { sourceDir, includesRootDir = true } = {}) {
|
|
56
|
+
async function copySourceToDest(src, dest, { sourceDir, includesRootDir = true, hideLogs = false, } = {}) {
|
|
55
57
|
try {
|
|
56
|
-
|
|
58
|
+
if (!hideLogs) {
|
|
59
|
+
logger_1.logger.log((0, lang_1.i18n)(`${i18nKey}.copySourceToDest.init`));
|
|
60
|
+
}
|
|
57
61
|
const srcDirPath = [src];
|
|
58
62
|
if (includesRootDir) {
|
|
59
63
|
const files = await fs_extra_1.default.readdir(src);
|
|
@@ -94,14 +98,15 @@ function cleanupTempDir(tmpDir) {
|
|
|
94
98
|
logger_1.logger.debug((0, lang_1.i18n)(`${i18nKey}.cleanupTempDir.error`, { tmpDir }));
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
|
-
async function extractZipArchive(zip, name, dest, { sourceDir, includesRootDir } = {}) {
|
|
101
|
+
async function extractZipArchive(zip, name, dest, { sourceDir, includesRootDir, hideLogs } = {}) {
|
|
98
102
|
let success = false;
|
|
99
103
|
if (zip) {
|
|
100
|
-
const { extractDir, tmpDir } = await extractZip(name, zip);
|
|
104
|
+
const { extractDir, tmpDir } = await extractZip(name, zip, hideLogs);
|
|
101
105
|
if (extractDir !== null) {
|
|
102
106
|
success = await copySourceToDest(extractDir, dest, {
|
|
103
107
|
sourceDir,
|
|
104
108
|
includesRootDir,
|
|
109
|
+
hideLogs,
|
|
105
110
|
});
|
|
106
111
|
}
|
|
107
112
|
cleanupTempDir(tmpDir);
|
package/lib/cms/uploadFolder.js
CHANGED
|
@@ -103,7 +103,7 @@ const defaultUploadFinalErrorCallback = (accountId, file, destPath, error) => {
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
async function uploadFolder(accountId, src, dest, fileMapperOptions, commandOptions = {}, filePaths = [], mode = null) {
|
|
106
|
-
const { saveOutput, convertFields, onAttemptCallback, onSuccessCallback, onFirstErrorCallback, onRetryCallback, onFinalErrorCallback } = commandOptions;
|
|
106
|
+
const { saveOutput, convertFields, onAttemptCallback, onSuccessCallback, onFirstErrorCallback, onRetryCallback, onFinalErrorCallback, } = commandOptions;
|
|
107
107
|
const _onAttemptCallback = onAttemptCallback || defaultUploadAttemptCallback;
|
|
108
108
|
const _onSuccessCallback = onSuccessCallback || defaultUploadSuccessCallback;
|
|
109
109
|
const _onFirstErrorCallback = onFirstErrorCallback || defaultUploadFirstErrorCallback;
|
package/lib/github.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ type CloneGithubRepoOptions = {
|
|
|
11
11
|
sourceDir?: string;
|
|
12
12
|
};
|
|
13
13
|
export declare function cloneGithubRepo(repoPath: RepoPath, dest: string, options?: CloneGithubRepoOptions): Promise<boolean>;
|
|
14
|
+
export declare function fetchGitHubRepoContentFromDownloadUrl(dest: string, downloadUrl: string): Promise<void>;
|
|
14
15
|
export declare function downloadGithubRepoContents(repoPath: RepoPath, contentPath: string, dest: string, ref?: string, filter?: (contentPiecePath: string, downloadPath: string) => boolean): Promise<void>;
|
|
15
16
|
export declare function listGithubRepoContents(repoPath: RepoPath, contentPath: string, fileFilter?: 'file' | 'dir'): Promise<GithubRepoFile[]>;
|
|
16
17
|
export {};
|
package/lib/github.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.listGithubRepoContents = exports.downloadGithubRepoContents = exports.cloneGithubRepo = exports.fetchReleaseData = exports.fetchFileFromRepository = void 0;
|
|
6
|
+
exports.listGithubRepoContents = exports.downloadGithubRepoContents = exports.fetchGitHubRepoContentFromDownloadUrl = exports.cloneGithubRepo = exports.fetchReleaseData = exports.fetchFileFromRepository = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
9
9
|
const standardErrors_1 = require("../errors/standardErrors");
|
|
@@ -88,11 +88,17 @@ async function cloneGithubRepo(repoPath, dest, options = {}) {
|
|
|
88
88
|
exports.cloneGithubRepo = cloneGithubRepo;
|
|
89
89
|
async function fetchGitHubRepoContentFromDownloadUrl(dest, downloadUrl) {
|
|
90
90
|
const resp = await (0, github_1.fetchRepoFileByDownloadUrl)(downloadUrl);
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
const contentType = resp.headers['content-type'];
|
|
92
|
+
let fileContents;
|
|
93
|
+
if (contentType.startsWith('text')) {
|
|
94
|
+
fileContents = Buffer.from(resp.data).toString('utf8');
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
fileContents = resp.data;
|
|
98
|
+
}
|
|
99
|
+
await fs_extra_1.default.outputFileSync(dest, fileContents);
|
|
95
100
|
}
|
|
101
|
+
exports.fetchGitHubRepoContentFromDownloadUrl = fetchGitHubRepoContentFromDownloadUrl;
|
|
96
102
|
// Writes files from a public repository to the destination folder
|
|
97
103
|
async function downloadGithubRepoContents(repoPath, contentPath, dest, ref, filter) {
|
|
98
104
|
fs_extra_1.default.ensureDirSync(path_1.default.dirname(dest));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/local-dev-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"check-main": "branch=$(git rev-parse --abbrev-ref HEAD) && [ $branch = main ] || (echo 'Error: New release can only be published on main branch' && exit 1)",
|
|
17
17
|
"clear-postinstall": "cd dist && npm pkg delete scripts.postinstall",
|
|
18
18
|
"copy-files": "cp -r lang dist/lang",
|
|
19
|
-
"lint": "eslint --max-warnings=0 . && prettier --check
|
|
19
|
+
"lint": "eslint --max-warnings=0 . && prettier . --check",
|
|
20
20
|
"local-dev": "yarn build && cd dist && yarn link && cd .. && tsc --watch --rootDir . --outdir dist",
|
|
21
|
-
"prettier:write": "prettier --write
|
|
21
|
+
"prettier:write": "prettier . --write",
|
|
22
22
|
"pub": "cd dist && npm publish --tag latest && cd ..",
|
|
23
23
|
"push": "git push --atomic origin main v$npm_package_version",
|
|
24
24
|
"release:major": "yarn check-main && yarn version --major && yarn build && yarn pub && yarn push",
|
|
25
25
|
"release:minor": "yarn check-main && yarn version --minor && yarn build && yarn pub && yarn push",
|
|
26
26
|
"release:patch": "yarn check-main && yarn version --patch && yarn build && yarn pub && yarn push",
|
|
27
|
-
"test": "node --experimental-vm-modules ./node_modules/.bin/jest"
|
|
27
|
+
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ./node_modules/.bin/jest"
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"devDependencies": {
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@types/jest": "^29.5.0",
|
|
38
38
|
"@types/js-yaml": "^4.0.5",
|
|
39
39
|
"@types/node": "^18.14.2",
|
|
40
|
-
"@types/prettier": "^3.0.0",
|
|
41
40
|
"@types/unixify": "^1.0.0",
|
|
42
41
|
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
|
43
42
|
"@typescript-eslint/parser": "^5.59.7",
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
"js-yaml": "^4.1.0",
|
|
73
72
|
"moment": "^2.29.4",
|
|
74
73
|
"p-queue": "^6.0.2",
|
|
75
|
-
"prettier": "^3.0
|
|
74
|
+
"prettier": "^3.3.0",
|
|
76
75
|
"semver": "^6.3.0",
|
|
77
76
|
"unixify": "^1.0.0"
|
|
78
77
|
},
|
package/types/Apps.d.ts
CHANGED
|
@@ -6,6 +6,13 @@ export type PublicAppInstallationData = {
|
|
|
6
6
|
name: string;
|
|
7
7
|
}>;
|
|
8
8
|
};
|
|
9
|
+
export type PublicAppDeveloperTestAccountInstallData = {
|
|
10
|
+
testPortalInstalls: Array<{
|
|
11
|
+
portalId: number;
|
|
12
|
+
accountName: string;
|
|
13
|
+
}>;
|
|
14
|
+
testPortalInstallCount: string;
|
|
15
|
+
};
|
|
9
16
|
export type PublicApp = {
|
|
10
17
|
id: number;
|
|
11
18
|
name: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ValueOf } from './Utils';
|
|
2
|
+
import { OptionalError } from './Error';
|
|
3
|
+
export declare const MIGRATION_STATUS: {
|
|
4
|
+
readonly BUILDING: "BUILDING";
|
|
5
|
+
readonly FAILURE: "FAILURE";
|
|
6
|
+
readonly PREPARING: "PREPARING";
|
|
7
|
+
readonly PENDING: "PENDING";
|
|
8
|
+
readonly SUCCESS: "SUCCESS";
|
|
9
|
+
};
|
|
10
|
+
export type MigrateAppResponse = {
|
|
11
|
+
id: number;
|
|
12
|
+
status: ValueOf<typeof MIGRATION_STATUS>;
|
|
13
|
+
};
|
|
14
|
+
export type PollAppResponse = {
|
|
15
|
+
id: number;
|
|
16
|
+
project?: {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
buildId: number;
|
|
20
|
+
deployId: number;
|
|
21
|
+
};
|
|
22
|
+
error: OptionalError;
|
|
23
|
+
status: ValueOf<typeof MIGRATION_STATUS>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MIGRATION_STATUS = void 0;
|
|
4
|
+
exports.MIGRATION_STATUS = {
|
|
5
|
+
BUILDING: 'BUILDING',
|
|
6
|
+
FAILURE: 'FAILURE',
|
|
7
|
+
PREPARING: 'PREPARING',
|
|
8
|
+
PENDING: 'PENDING',
|
|
9
|
+
SUCCESS: 'SUCCESS',
|
|
10
|
+
};
|