Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/cli/src/utils/api.ts>API

Netzo - roll out internal tools faster
Go to Latest
class API
import { API } from "https://deno.land/x/netzo@v0.1.80/cli/src/utils/api.ts";

Constructors

new
API(authorization: string, endpoint: string)

Methods

getDeployments(projectId: string): Promise<Deployment[] | null>
getLogs(projectId: string, deploymentId: string): AsyncIterable<Logs>
getProject(id: string): Promise<Project | null>
getProjectByUid(projectUid: string): Promise<Project | null>
getTemplateByUid(templateUid: string): Promise<Template | null>
gitHubActionsDeploy(
projectId: string,
files: Uint8Array[],
): AsyncIterable<DeploymentProgress>
projectNegotiateAssets(id: string, manifest: { entries: Record<string, ManifestEntry>; }): Promise<string[]>
pushDeploy(
projectId: string,
files: Uint8Array[],
): AsyncIterable<DeploymentProgress>
pushDeployJson(projectId: string, body: Pick<Project, "deploymentId" | "configuration" | "fs">): AsyncIterable<DeploymentProgress>

Static Methods

fromApiKey(apiKey: string)