UNPKG

@vtex/api

Version:
81 lines (80 loc) 1.85 kB
import { BillingOptions } from './utils/billingOptions'; export interface Policy { name: string; attrs?: { [name: string]: string; }; } interface PublicAppManifest { vendor: string; name: string; version: string; title?: string; description?: string; mustUpdateAt?: string; builders: { [name: string]: string; }; categories?: string[]; dependencies?: { [name: string]: string; }; peerDependencies?: { [name: string]: string; }; settingsSchema?: any; registries?: string[]; credentialType?: string; policies?: Policy[]; billingOptions?: BillingOptions; } export interface AppManifest extends PublicAppManifest { [internal: string]: any; _resolvedDependencies?: { [name: string]: string[]; }; } export interface FileListItem { path: string; hash: string; } export interface AppFilesList { data: FileListItem[]; } export interface BucketMetadata { state: string; lastModified: string; hash: string; } export interface AppBundleResponse { message: string; id: string; } export type AppBundlePublished = AppBundleResponse & { bundleSize?: number; }; export type AppBundleLinked = AppBundleResponse & { bundleSize?: number; }; export type AppState = 'stable' | 'releaseCandidate'; export interface HouseKeeperState { infra: string[]; edition: string[]; runtimes: string[]; apps: Array<{ id: string; source: string; }>; } export interface HouseKeeperUpdates extends HouseKeeperState { editionApps?: { install?: string[]; uninstall?: string[]; }; } export interface HousekeeperStatesAndUpdates { state: HouseKeeperState; updates: HouseKeeperUpdates; } export type VBaseSaveResponse = FileListItem[]; export {};