@hubspot/local-dev-lib
Advanced tools
Comparing version 3.0.1 to 3.0.2-beta.0
/// <reference types="node" /> | ||
import { HubSpotPromise, QueryParams } from '../types/Http'; | ||
import { Project, FetchProjectResponse, UploadProjectResponse, ProjectSettings, FetchPlatformVersionResponse } from '../types/Project'; | ||
import { Project, FetchProjectResponse, UploadProjectResponse, ProjectSettings, FetchPlatformVersionResponse, WarnLogsResponse } from '../types/Project'; | ||
import { Build, FetchProjectBuildsResponse } from '../types/Build'; | ||
import { ComponentStructureResponse, ProjectComponentsMetadata } from '../types/ComponentStructure'; | ||
import { Deploy, ProjectDeployResponse } from '../types/Deploy'; | ||
import { ProjectLog } from '../types/ProjectLog'; | ||
import { MigrateAppResponse, CloneAppResponse, PollAppResponse } from '../types/Migration'; | ||
@@ -29,5 +28,2 @@ export declare function fetchProjects(accountId: number): HubSpotPromise<FetchProjectResponse>; | ||
export declare function cancelStagedBuild(accountId: number, projectName: string): HubSpotPromise<void>; | ||
type WarnLogsResponse = { | ||
logs: Array<ProjectLog>; | ||
}; | ||
export declare function fetchBuildWarnLogs(accountId: number, projectName: string, buildId: number): HubSpotPromise<WarnLogsResponse>; | ||
@@ -40,2 +36,1 @@ export declare function fetchDeployWarnLogs(accountId: number, projectName: string, deployId: number): HubSpotPromise<WarnLogsResponse>; | ||
export declare function downloadClonedProject(accountId: number, exportId: number): HubSpotPromise<Buffer>; | ||
export {}; |
{ | ||
"name": "@hubspot/local-dev-lib", | ||
"version": "3.0.1", | ||
"version": "3.0.2-beta.0", | ||
"description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -15,2 +15,4 @@ import { HUBSPOT_ACCOUNT_TYPES } from '../constants/config'; | ||
tokenInfo?: TokenInfo; | ||
clientId?: string; | ||
clientSecret?: string; | ||
}; | ||
@@ -17,0 +19,0 @@ sandboxAccountType?: string | null; |
@@ -5,3 +5,3 @@ import { ValueOf } from './Utils'; | ||
import { DeployStatusTaskLocator } from './Deploy'; | ||
import { OptionalError } from './Error'; | ||
import { ProjectStandardError } from './Project'; | ||
export type SubbuildStatus = { | ||
@@ -13,6 +13,7 @@ buildName: string; | ||
rootPath: string; | ||
standardError?: OptionalError; | ||
standardError: ProjectStandardError | null; | ||
startedAt: string; | ||
status: ValueOf<typeof BUILD_STATUS>; | ||
id: string; | ||
visible: boolean; | ||
}; | ||
@@ -34,2 +35,3 @@ export type Build = { | ||
uploadMessage: string; | ||
autoDeployId: number; | ||
}; | ||
@@ -36,0 +38,0 @@ export type FetchProjectBuildsResponse = { |
@@ -5,3 +5,3 @@ import { ValueOf } from './Utils'; | ||
import { COMPONENT_TYPES, SUBCOMPONENT_TYPES } from '../enums/build'; | ||
import { OptionalError } from './Error'; | ||
import { ProjectStandardError } from './Project'; | ||
export type DeployStatus = ValueOf<typeof DEPLOY_STATUS>; | ||
@@ -14,6 +14,7 @@ export type SubdeployStatus = { | ||
finishedAt: string; | ||
standardError?: OptionalError; | ||
standardError: ProjectStandardError | null; | ||
startedAt: string; | ||
status: DeployStatus; | ||
id: string; | ||
visible: boolean; | ||
}; | ||
@@ -20,0 +21,0 @@ export type Deploy = { |
import { ValueOf } from './Utils'; | ||
import { OptionalError } from './Error'; | ||
import { ProjectStandardError } from './Project'; | ||
export declare const MIGRATION_STATUS: { | ||
@@ -26,4 +26,4 @@ readonly BUILDING: "BUILDING"; | ||
}; | ||
error?: OptionalError; | ||
error: ProjectStandardError | null; | ||
status: ValueOf<typeof MIGRATION_STATUS>; | ||
}; |
import { Build } from './Build'; | ||
import { GithubSourceData } from './Github'; | ||
import { ProjectLog } from './ProjectLog'; | ||
export type Project = { | ||
@@ -43,1 +44,22 @@ createdAt: number; | ||
}; | ||
export type ProjectStandardError = { | ||
status: string; | ||
id?: string; | ||
category: string; | ||
subCategory?: string; | ||
message?: string; | ||
errors?: Array<{ | ||
message: string; | ||
in?: string; | ||
code?: string; | ||
subcateogy?: string; | ||
context: object; | ||
}>; | ||
context: object; | ||
links: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
export type WarnLogsResponse = { | ||
logs: Array<ProjectLog>; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
400494
10089
2