(days: number)
| 280 | } |
| 281 | |
| 282 | function getEmptyBreakdown(days: number) { |
| 283 | return { |
| 284 | compute: { |
| 285 | total: { |
| 286 | usageValue: 0, |
| 287 | usageUnits: costUnits.compute, |
| 288 | usagePoints: Array(days).fill(0), |
| 289 | totalCost: 0, |
| 290 | }, |
| 291 | resources: new Map(), |
| 292 | }, |
| 293 | storage: { |
| 294 | total: { |
| 295 | usageValue: 0, |
| 296 | usageUnits: costUnits.storage, |
| 297 | usagePoints: Array(days).fill(0), |
| 298 | totalCost: 0, |
| 299 | }, |
| 300 | resources: new Map(), |
| 301 | }, |
| 302 | }; |
| 303 | } |
| 304 | |
| 305 | export function getIsUpgradedPlan( |
| 306 | planType: components["schemas"]["PlanType"] | undefined, |
no test coverage detected