Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / frontend/src/tools/recruitmatch/reportApi.ts |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 720d47fae476b0d38477ae4401697d372b1ea2bc |
| Branch | feature/opportunity-to-outcome |
| Path or archive member | frontend/src/tools/recruitmatch/reportApi.ts |
| Original SHA-256 | 4377bcf64f4f10463cca40e1c8ca7a29da8e454936d4e597c5d1863db70a16cc |
| Git blob SHA | 0a9032ea94b716e74ee789d6105e60a7ca1209b1 |
| Reading-copy SHA-256 | 4377bcf64f4f10463cca40e1c8ca7a29da8e454936d4e597c5d1863db70a16cc |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/missionmatch / frontend/src/tools/recruitmatch/reportApi.ts | feature/opportunity-to-outcome | 720d47fae476b0d38477ae4401697d372b1ea2bc | Open original |
| Janady13/missionmatch / frontend/src/tools/recruitmatch/reportApi.ts | feature/aioe-upgrade | 2178e7298d0e5d9af83afa12402fd587f0ba6ed8 | Open original |
Recovered source transcript
Download complete source text ↓12 lines · 0.7 KB
import { request } from '../../lib/api'
import type { RReport } from '../../lib/types'
export const reportApi = {
get: (period: string, since: string) =>
request<RReport>(`/recruiting/reports?period=${encodeURIComponent(period)}&since=${encodeURIComponent(since)}`),
// The export URL is opened directly rather than fetched, so the browser handles the download and the
// Content-Disposition filename the server chose. The session cookie rides along.
exportUrl: (kind: string, period: string, since: string) =>
`/api/recruiting/reports/export?kind=${encodeURIComponent(kind)}&period=${encodeURIComponent(period)}&since=${encodeURIComponent(since)}`,
}