declare namespace com.paintbatch.enums { type Sheen = 'M' | 'G'; type Status = 'ok'; } declare namespace com.paintbatch.models { interface Demand { readonly 'paints': com.paintbatch.models.Paint[]; } interface Healthcheck { readonly 'status': com.paintbatch.enums.Status; } interface OptimizeRequest { readonly 'colors': number; readonly 'customers': number; readonly 'demands': com.paintbatch.models.Demand[]; } interface Paint { readonly 'id': number; readonly 'sheen': com.paintbatch.enums.Sheen; } interface ReadableError { readonly 'text': string; } } export type Demand = com.paintbatch.models.Demand; export type Healthcheck = com.paintbatch.models.Healthcheck; export type OptimizeRequest = com.paintbatch.models.OptimizeRequest; export type Paint = com.paintbatch.models.Paint; export type ReadableError = com.paintbatch.models.ReadableError; export type Sheen = com.paintbatch.enums.Sheen; export type Status = com.paintbatch.enums.Status;