Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Dec 16, 2024
1 parent baf5a19 commit fffca03
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 1 addition & 5 deletions api/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import {
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,
Expand Down Expand Up @@ -272,10 +272,6 @@ export function cancelStagedBuild(
});
}

type WarnLogsResponse = {
logs: Array<ProjectLog>;
};

export function fetchBuildWarnLogs(
accountId: number,
projectName: string,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 1 addition & 0 deletions types/Build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type Build = {
status: ValueOf<typeof BUILD_STATUS>;
subbuildStatuses: Array<SubbuildStatus>;
uploadMessage: string;
autoDeployId: number;
};

export type FetchProjectBuildsResponse = {
Expand Down
5 changes: 5 additions & 0 deletions types/Project.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Build } from './Build';
import { GithubSourceData } from './Github';
import { ProjectLog } from './ProjectLog';

export type Project = {
createdAt: number;
Expand Down Expand Up @@ -62,3 +63,7 @@ export type ProjectStandardError = {
context: object;
links: { [key: string]: string };
};

export type WarnLogsResponse = {
logs: Array<ProjectLog>;
};

0 comments on commit fffca03

Please sign in to comment.