Commit ca2c8cb
fix: Match HiBob API field names for timeoff display (#6)
## Summary
- Add `employeeDisplayName` and `policyTypeDisplayName` to field
extractors — the actual field names returned by the HiBob API — fixing
"Unknown" names and missing type labels in `outtoday`/`whosout` output
- Add a count header ("N people out") and remove redundant email column
from text output
- Include the actual API field names in `TIMEOFF_ESSENTIAL_FIELDS` for
JSON/NDJSON output
## Test plan
- [x] `bob outtoday` shows real names and type labels instead of
"Unknown"
- [x] `bob whosout --from ... --to ...` same
- [x] `bob outtoday --json` includes `employeeDisplayName`,
`policyTypeDisplayName`, `employeeEmail`
- [x] `bob outtoday --ndjson` same
- [x] Pre-commit hooks pass (biome lint + type-check)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Henning Muszynski <henningmu@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent e7dceb7 commit ca2c8cb
2 files changed
+25
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 36 | | |
48 | 37 | | |
| 38 | + | |
49 | 39 | | |
50 | 40 | | |
51 | 41 | | |
| |||
114 | 104 | | |
115 | 105 | | |
116 | 106 | | |
117 | | - | |
118 | 107 | | |
119 | 108 | | |
120 | 109 | | |
121 | 110 | | |
122 | | - | |
123 | 111 | | |
124 | 112 | | |
125 | 113 | | |
126 | 114 | | |
127 | 115 | | |
128 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
136 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments