mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add ICANN accreditation status on domain result page
This commit is contained in:
@@ -8,7 +8,7 @@ interface IcannAccreditationList {
|
||||
|
||||
export async function getIcannAccreditations(params: object): Promise<IcannAccreditationList> {
|
||||
return (await request<IcannAccreditationList>({
|
||||
url: 'entities/icann-accreditations',
|
||||
url: 'icann-accreditations',
|
||||
params
|
||||
})).data
|
||||
}
|
||||
|
||||
@@ -32,6 +32,11 @@ export interface Entity {
|
||||
string,
|
||||
string | string[],
|
||||
]>] | []
|
||||
remarks?: {
|
||||
type: string
|
||||
description: string
|
||||
}[]
|
||||
icannAccreditation?: IcannAccreditation
|
||||
}
|
||||
|
||||
export interface Nameserver {
|
||||
@@ -125,13 +130,11 @@ export interface TrackedDomains {
|
||||
}
|
||||
|
||||
export interface IcannAccreditation {
|
||||
handle: string
|
||||
icannAccreditation: {
|
||||
registrarName: string
|
||||
status: string
|
||||
date?: string
|
||||
updated?: string
|
||||
}
|
||||
id: number
|
||||
registrarName: string
|
||||
status: string
|
||||
date?: string
|
||||
updated?: string
|
||||
}
|
||||
|
||||
export async function request<T = object, R = AxiosResponse<T>, D = object>(config: AxiosRequestConfig): Promise<R> {
|
||||
|
||||
Reference in New Issue
Block a user