Path: blob/master/src/packages/util/compute/templates.ts
1447 views
import type {1Cloud,2Configuration,3ComputeServerTemplate,4Images,5} from "@cocalc/util/db-schema/compute-servers";67export interface ConfigurationTemplate {8id: number;9title: string;10color: string;11cloud: Cloud;12position: number;13configuration: Configuration;14template: ComputeServerTemplate;15avatar_image_tiny?: string;16cost_per_hour: { running: number; off: number };17}1819export interface ConfigurationTemplates {20// the templates21templates: ConfigurationTemplate[];22// extra data to enable frontend rendering of the templates -- this can be "big" -- e.g., 200kb total...23data: {24images: Images;25hyperstackPriceData?;26googleCloudPriceData?;27};28}293031