From fffca03797804425c37afc8e119801da846d2f9a Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Mon, 16 Dec 2024 15:54:55 -0500 Subject: [PATCH] update types --- api/projects.ts | 6 +----- package.json | 2 +- types/Build.ts | 1 + types/Project.ts | 5 +++++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/api/projects.ts b/api/projects.ts index ce7be00..dd90d71 100644 --- a/api/projects.ts +++ b/api/projects.ts @@ -7,6 +7,7 @@ import { UploadProjectResponse, ProjectSettings, FetchPlatformVersionResponse, + WarnLogsResponse, } from '../types/Project'; import { Build, FetchProjectBuildsResponse } from '../types/Build'; import { @@ -14,7 +15,6 @@ import { ProjectComponentsMetadata, } from '../types/ComponentStructure'; import { Deploy, ProjectDeployResponse } from '../types/Deploy'; -import { ProjectLog } from '../types/ProjectLog'; import { MigrateAppResponse, CloneAppResponse, @@ -272,10 +272,6 @@ export function cancelStagedBuild( }); } -type WarnLogsResponse = { - logs: Array; -}; - export function fetchBuildWarnLogs( accountId: number, projectName: string, diff --git a/package.json b/package.json index 4da4a9c..d532ed5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hubspot/local-dev-lib", - "version": "0.1.0-experimental.2", + "version": "3.0.1", "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI", "main": "lib/index.js", "repository": { diff --git a/types/Build.ts b/types/Build.ts index 48ff5eb..1d150b9 100644 --- a/types/Build.ts +++ b/types/Build.ts @@ -36,6 +36,7 @@ export type Build = { status: ValueOf; subbuildStatuses: Array; uploadMessage: string; + autoDeployId: number; }; export type FetchProjectBuildsResponse = { diff --git a/types/Project.ts b/types/Project.ts index d3a1ecb..7835fd6 100644 --- a/types/Project.ts +++ b/types/Project.ts @@ -1,5 +1,6 @@ import { Build } from './Build'; import { GithubSourceData } from './Github'; +import { ProjectLog } from './ProjectLog'; export type Project = { createdAt: number; @@ -62,3 +63,7 @@ export type ProjectStandardError = { context: object; links: { [key: string]: string }; }; + +export type WarnLogsResponse = { + logs: Array; +};