4 Commits

Author SHA1 Message Date
44d62df972 2.0.9 2023-04-03 17:12:02 +02:00
289ddfc153 fix(core): update 2023-04-03 17:12:01 +02:00
a1cef67eee 2.0.8 2023-04-03 14:41:10 +02:00
5b75506634 fix(core): update 2023-04-03 14:41:09 +02:00
6 changed files with 38 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@uptime.link/interfaces", "name": "@uptime.link/interfaces",
"version": "2.0.7", "version": "2.0.9",
"private": false, "private": false,
"description": "TypeScript interface for the uptime.link API and modules", "description": "TypeScript interface for the uptime.link API and modules",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@uptime.link/interfaces', name: '@uptime.link/interfaces',
version: '2.0.7', version: '2.0.9',
description: 'TypeScript interface for the uptime.link API and modules' description: 'TypeScript interface for the uptime.link API and modules'
} }

12
ts/data/domainsnapshot.ts Normal file
View File

@ -0,0 +1,12 @@
import * as plugins from '../ul-interfaces.plugins.js';
export interface IDomainSnapshot {
nameservers: string[];
aRecords: plugins.tsclass.network.IDnsRecord[];
aaaaRecords: plugins.tsclass.network.IDnsRecord[];
txtRecords: plugins.tsclass.network.IDnsRecord[];
whoisServers: {
serverUrl: string;
content: string;
}[];
}

View File

@ -1,5 +1,12 @@
export * from './checkcollection.js'; export * from './checkcollection.js';
export * from './domainsnapshot.js';
export * from './incident.js'; export * from './incident.js';
export * from './property.js'; export * from './property.js';
export * from './search.js'; export * from './search.js';
export * from './status.js'; export * from './status.js';
import * as checks from './checks/index.js';
export {
checks
}

View File

@ -1,3 +1,4 @@
export * from './requests.checks.js'; export * from './requests.checks.js';
export * from './requests.incidents.js'; export * from './requests.incidents.js';
export * from './requests.snapshot.js';
export * from './requests.status.js'; export * from './requests.status.js';

View File

@ -0,0 +1,16 @@
import { IDomainSnapshot } from '../data/domainsnapshot.js';
import * as plugins from '../ul-interfaces.plugins.js';
export interface IReq_PerformDomainSnapshot
extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IReq_PerformDomainSnapshot
> {
method: 'performDomainSnapshot';
request: {
domainName: string;
};
response: {
domainSnapshot: IDomainSnapshot;
}
}