Fix vercel deployment fetching (#758)

This commit is contained in:
Will Chen
2025-07-31 16:13:46 -07:00
committed by GitHub
parent 867ea28f73
commit 0793fc299d
4 changed files with 76 additions and 55 deletions

View File

@@ -15,6 +15,7 @@ import {
CreateVercelProjectParams,
IsVercelProjectAvailableParams,
SaveVercelAccessTokenParams,
VercelDeployment,
VercelProject,
} from "../ipc_types";
import { ConnectToExistingVercelProjectParams } from "../ipc_types";
@@ -400,16 +401,7 @@ async function handleConnectToExistingProject(
async function handleGetVercelDeployments(
event: IpcMainInvokeEvent,
{ appId }: GetVercelDeploymentsParams,
): Promise<
{
uid: string;
url: string;
state: string;
createdAt: number;
target: string;
readyState: string;
}[]
> {
): Promise<VercelDeployment[]> {
try {
const settings = readSettings();
const accessToken = settings.vercelAccessToken?.value;

View File

@@ -272,15 +272,6 @@ export interface GetAppEnvVarsParams {
appId: number;
}
export interface VercelDeployment {
uid: string;
url: string;
state: string;
createdAt: number;
target: string;
readyState: string;
}
export interface ConnectToExistingVercelProjectParams {
projectId: string;
appId: number;
@@ -300,6 +291,15 @@ export interface GetVercelDeploymentsParams {
appId: number;
}
export interface VercelDeployment {
uid: string;
url: string;
state: string;
createdAt: number;
target: string;
readyState: string;
}
export interface DisconnectVercelProjectParams {
appId: number;
}