josal/entities/provider.d.ts

26 lines
428 B
TypeScript
Raw Normal View History

2024-09-05 21:02:35 +03:00
export type Provider = {
uuid: string
name: string
api: string
description?: string
price: PriceTable
/* address for receive payments */
address: string
2024-09-05 21:02:35 +03:00
}
type Unit = {
unit: string
count: number
}
type ComputingUnit = {
cpu: number | Unit
mem: number | Unit
persistence: number | Unit
bandwitch: number | Unit
}
type PriceTable = {
[x: string]: ComputingUnit | Unit
}