@hubspot/local-dev-lib 3.0.1-beta.0 → 3.0.2-beta.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/projects.d.ts +1 -6
- package/package.json +1 -1
- package/types/Accounts.d.ts +2 -0
- package/types/Build.d.ts +4 -2
- package/types/Deploy.d.ts +3 -2
- package/types/Migration.d.ts +2 -2
- package/types/Project.d.ts +22 -0
package/api/projects.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { HubSpotPromise, QueryParams } from '../types/Http';
|
|
3
|
-
import { Project, FetchProjectResponse, UploadProjectResponse, ProjectSettings, FetchPlatformVersionResponse } from '../types/Project';
|
|
3
|
+
import { Project, FetchProjectResponse, UploadProjectResponse, ProjectSettings, FetchPlatformVersionResponse, WarnLogsResponse } from '../types/Project';
|
|
4
4
|
import { Build, FetchProjectBuildsResponse } from '../types/Build';
|
|
5
5
|
import { ComponentStructureResponse, ProjectComponentsMetadata } from '../types/ComponentStructure';
|
|
6
6
|
import { Deploy, ProjectDeployResponse } from '../types/Deploy';
|
|
7
|
-
import { ProjectLog } from '../types/ProjectLog';
|
|
8
7
|
import { MigrateAppResponse, CloneAppResponse, PollAppResponse } from '../types/Migration';
|
|
9
8
|
export declare function fetchProjects(accountId: number): HubSpotPromise<FetchProjectResponse>;
|
|
10
9
|
export declare function createProject(accountId: number, name: string): HubSpotPromise<Project>;
|
|
@@ -26,9 +25,6 @@ export declare function queueBuild(accountId: number, projectName: string, platf
|
|
|
26
25
|
export declare function uploadFileToBuild(accountId: number, projectName: string, filePath: string, path: string): HubSpotPromise<void>;
|
|
27
26
|
export declare function deleteFileFromBuild(accountId: number, projectName: string, path: string): HubSpotPromise<void>;
|
|
28
27
|
export declare function cancelStagedBuild(accountId: number, projectName: string): HubSpotPromise<void>;
|
|
29
|
-
type WarnLogsResponse = {
|
|
30
|
-
logs: Array<ProjectLog>;
|
|
31
|
-
};
|
|
32
28
|
export declare function fetchBuildWarnLogs(accountId: number, projectName: string, buildId: number): HubSpotPromise<WarnLogsResponse>;
|
|
33
29
|
export declare function fetchDeployWarnLogs(accountId: number, projectName: string, deployId: number): HubSpotPromise<WarnLogsResponse>;
|
|
34
30
|
export declare function migrateApp(accountId: number, appId: number, projectName: string): HubSpotPromise<MigrateAppResponse>;
|
|
@@ -36,4 +32,3 @@ export declare function checkMigrationStatus(accountId: number, id: number): Hub
|
|
|
36
32
|
export declare function cloneApp(accountId: number, appId: number): HubSpotPromise<CloneAppResponse>;
|
|
37
33
|
export declare function checkCloneStatus(accountId: number, exportId: number): HubSpotPromise<CloneAppResponse>;
|
|
38
34
|
export declare function downloadClonedProject(accountId: number, exportId: number): HubSpotPromise<Buffer>;
|
|
39
|
-
export {};
|
package/package.json
CHANGED
package/types/Accounts.d.ts
CHANGED
package/types/Build.d.ts
CHANGED
|
@@ -2,17 +2,18 @@ import { ValueOf } from './Utils';
|
|
|
2
2
|
import { BUILD_STATUS, SUBBUILD_TYPES, DEPLOYABLE_STATES } from '../enums/build';
|
|
3
3
|
import { ActivitySource } from './Activity';
|
|
4
4
|
import { DeployStatusTaskLocator } from './Deploy';
|
|
5
|
-
import {
|
|
5
|
+
import { ProjectStandardError } from './Project';
|
|
6
6
|
export type SubbuildStatus = {
|
|
7
7
|
buildName: string;
|
|
8
8
|
buildType: ValueOf<typeof SUBBUILD_TYPES>;
|
|
9
9
|
errorMessage: string;
|
|
10
10
|
finishedAt: string;
|
|
11
11
|
rootPath: string;
|
|
12
|
-
standardError
|
|
12
|
+
standardError: ProjectStandardError | null;
|
|
13
13
|
startedAt: string;
|
|
14
14
|
status: ValueOf<typeof BUILD_STATUS>;
|
|
15
15
|
id: string;
|
|
16
|
+
visible: boolean;
|
|
16
17
|
};
|
|
17
18
|
export type Build = {
|
|
18
19
|
activitySource: ActivitySource;
|
|
@@ -29,6 +30,7 @@ export type Build = {
|
|
|
29
30
|
status: ValueOf<typeof BUILD_STATUS>;
|
|
30
31
|
subbuildStatuses: Array<SubbuildStatus>;
|
|
31
32
|
uploadMessage: string;
|
|
33
|
+
autoDeployId: number;
|
|
32
34
|
};
|
|
33
35
|
export type FetchProjectBuildsResponse = {
|
|
34
36
|
results: Array<Build>;
|
package/types/Deploy.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ValueOf } from './Utils';
|
|
|
2
2
|
import { ACTIVITY_SOURCE } from '../enums/project';
|
|
3
3
|
import { DEPLOY_ACTION, DEPLOY_STATUS } from '../enums/deploy';
|
|
4
4
|
import { COMPONENT_TYPES, SUBCOMPONENT_TYPES } from '../enums/build';
|
|
5
|
-
import {
|
|
5
|
+
import { ProjectStandardError } from './Project';
|
|
6
6
|
export type DeployStatus = ValueOf<typeof DEPLOY_STATUS>;
|
|
7
7
|
export type SubdeployStatus = {
|
|
8
8
|
action: ValueOf<typeof DEPLOY_ACTION>;
|
|
@@ -10,10 +10,11 @@ export type SubdeployStatus = {
|
|
|
10
10
|
deployType: ValueOf<typeof COMPONENT_TYPES> | ValueOf<typeof SUBCOMPONENT_TYPES>;
|
|
11
11
|
errorMessage: string;
|
|
12
12
|
finishedAt: string;
|
|
13
|
-
standardError
|
|
13
|
+
standardError: ProjectStandardError | null;
|
|
14
14
|
startedAt: string;
|
|
15
15
|
status: DeployStatus;
|
|
16
16
|
id: string;
|
|
17
|
+
visible: boolean;
|
|
17
18
|
};
|
|
18
19
|
export type Deploy = {
|
|
19
20
|
buildId: number;
|
package/types/Migration.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValueOf } from './Utils';
|
|
2
|
-
import {
|
|
2
|
+
import { ProjectStandardError } from './Project';
|
|
3
3
|
export declare const MIGRATION_STATUS: {
|
|
4
4
|
readonly BUILDING: "BUILDING";
|
|
5
5
|
readonly FAILURE: "FAILURE";
|
|
@@ -23,6 +23,6 @@ export type PollAppResponse = {
|
|
|
23
23
|
buildId: number;
|
|
24
24
|
deployId: number;
|
|
25
25
|
};
|
|
26
|
-
error
|
|
26
|
+
error: ProjectStandardError | null;
|
|
27
27
|
status: ValueOf<typeof MIGRATION_STATUS>;
|
|
28
28
|
};
|
package/types/Project.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Build } from './Build';
|
|
2
2
|
import { GithubSourceData } from './Github';
|
|
3
|
+
import { ProjectLog } from './ProjectLog';
|
|
3
4
|
export type Project = {
|
|
4
5
|
createdAt: number;
|
|
5
6
|
deletedAt: number;
|
|
@@ -40,3 +41,24 @@ export type FetchPlatformVersionResponse = {
|
|
|
40
41
|
defaultPlatformVersion: string;
|
|
41
42
|
activePlatformVersions: Array<string>;
|
|
42
43
|
};
|
|
44
|
+
export type ProjectStandardError = {
|
|
45
|
+
status: string;
|
|
46
|
+
id?: string;
|
|
47
|
+
category: string;
|
|
48
|
+
subCategory?: string;
|
|
49
|
+
message?: string;
|
|
50
|
+
errors?: Array<{
|
|
51
|
+
message: string;
|
|
52
|
+
in?: string;
|
|
53
|
+
code?: string;
|
|
54
|
+
subcateogy?: string;
|
|
55
|
+
context: object;
|
|
56
|
+
}>;
|
|
57
|
+
context: object;
|
|
58
|
+
links: {
|
|
59
|
+
[key: string]: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export type WarnLogsResponse = {
|
|
63
|
+
logs: Array<ProjectLog>;
|
|
64
|
+
};
|