(row?: RoutingTierConfig)
| 512 | } |
| 513 | |
| 514 | function createDraft(row?: RoutingTierConfig): DraftState { |
| 515 | if (!row?.overridden) { |
| 516 | return { |
| 517 | primary: "", |
| 518 | fallbackCsv: "", |
| 519 | selectionMode: row?.selection_mode ?? "adaptive", |
| 520 | }; |
| 521 | } |
| 522 | return { |
| 523 | primary: row.primary, |
| 524 | fallbackCsv: row.fallback.join(", "), |
| 525 | selectionMode: row.selection_mode, |
| 526 | }; |
| 527 | } |
| 528 | |
| 529 | function buildDrafts(config: RoutingConfigState): Record<string, DraftState> { |
| 530 | const next: Record<string, DraftState> = {}; |
no outgoing calls
no test coverage detected