domain-watchdog/assets/utils/api/icann-accreditations.ts

15 lines
406 B
TypeScript
Raw Normal View History

2025-09-14 18:09:04 +02:00
import type {IcannAccreditation} from './index'
2025-09-14 17:59:26 +02:00
import {request} from './index'
interface IcannAccreditationList {
'hydra:totalItems': number
'hydra:member': IcannAccreditation[]
}
export async function getIcannAccreditations(params: object): Promise<IcannAccreditationList> {
return (await request<IcannAccreditationList>({
url: 'icann-accreditations',
2025-09-14 17:59:26 +02:00
params
})).data
}