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

15 lines
406 B
TypeScript

import type {IcannAccreditation} from './index'
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',
params
})).data
}