mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
15 lines
420 B
TypeScript
15 lines
420 B
TypeScript
|
|
import type {IcannAccreditation, Tld} 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: 'entities/icann-accreditations',
|
||
|
|
params
|
||
|
|
})).data
|
||
|
|
}
|