mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
15 lines
406 B
TypeScript
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
|
|
}
|