UNPKG

@forestadmin/forest-cloud

Version:

Utility to bootstrap and publish forest admin cloud projects customization

32 lines 1.12 kB
import { Datasources } from './update-typings'; import { CodeCustomizationDetails, Log } from '../types'; export default class HttpServer { private readonly serverUrl; private readonly headers; constructor(serverUrl: string, secretKey: string, bearerToken: string); static downloadCloudCustomizerTemplate(destination: string): Promise<void>; getDatasources(): Promise<Datasources>; postUploadRequest(contentLength: number): Promise<{ url: string; fields: Record<string, string>; }>; postPublish(): Promise<{ subscriptionId: string; }>; getLastPublishedCodeDetails(): Promise<CodeCustomizationDetails>; getLogs({ limit, from, to, orderByRecentFirst, }: { limit: number; from: string; to: string; orderByRecentFirst: boolean; }): Promise<Log[]>; static getLatestVersion(packageName: string): Promise<string>; getOrCreateNewDevelopmentEnvironment(): Promise<{ data: { attributes: { secret_key: string; }; }; }>; } //# sourceMappingURL=http-server.d.ts.map