feat: add ICANN-list tab

This commit is contained in:
Maël Gangloff
2025-09-14 17:59:26 +02:00
parent 7c10f4bd3c
commit ac264d9a13
7 changed files with 416 additions and 142 deletions

View File

@@ -0,0 +1,14 @@
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
}