Data source for https://akvaplan.no/en/people
AD
List of employees from last AD export: https://akvaplanists.deno.dev/?format=ndjson
KV
Persisted employees in KV: https://akvaplanists.deno.dev/kv/person?format=ndjson
Expired (former employees): https://akvaplanists.deno.dev/kv/expired?format=ndjson
Codes
Internal section codes: https://akvaplanists.deno.dev/section?format=ndjson
Current employees are put into KV key ["person", id]
, priors into
["expired", id]
with reduced metadata.
Name variants are updated from the local file data/spelling.json
before
persisting in KV.
deno task fetch
Executed in production via cron.ts
export const getAkvaplanist = (id: string) =>
kv.get<Akvaplanist>(["person", id]);
export const getExpiredAkvaplanist = (id: string) =>
kv.get<ExpiredAkvaplanist>(["expired", id]);