nuxt-safe-runtime-config
Version:
Validate Nuxt runtime config with Standard Schema at build time
34 lines (33 loc) • 967 B
TypeScript
export declare const DEFAULT_URL = "https://app.shelve.cloud";
export interface ShelveUser {
username: string;
email: string;
}
export interface ShelveTeam {
slug: string;
name: string;
}
export interface ShelveProject {
id: number;
name: string;
}
export interface ShelveEnvironment {
id: number;
name: string;
}
export interface ShelveVariable {
key: string;
value: string;
}
export interface ShelveClient {
getMe: () => Promise<ShelveUser>;
getTeams: () => Promise<ShelveTeam[]>;
getProjects: (slug: string) => Promise<ShelveProject[]>;
getProjectByName: (slug: string, project: string) => Promise<ShelveProject>;
getEnvironment: (slug: string, env: string) => Promise<ShelveEnvironment>;
getVariables: (slug: string, projectId: number, envId: number) => Promise<ShelveVariable[]>;
}
export declare function createShelveClient({ token, url }: {
token: string;
url?: string;
}): ShelveClient;