18 Commits

Author SHA1 Message Date
2cf760d788 2.0.20 2023-04-19 20:40:22 +02:00
b9a23d5497 fix(core): update 2023-04-19 20:40:21 +02:00
1c196ea31a 2.0.19 2023-04-18 17:13:46 +02:00
d1088270bc fix(core): update 2023-04-18 17:13:45 +02:00
e7a11c2b54 2.0.18 2023-04-17 14:54:27 +02:00
9d8985d67a fix(core): update 2023-04-17 14:54:26 +02:00
5afbf16906 2.0.17 2023-04-17 13:56:55 +02:00
1ef7737dc9 fix(core): update 2023-04-17 13:56:55 +02:00
4d961003e8 2.0.16 2023-04-17 13:54:47 +02:00
24762468da fix(core): update 2023-04-17 13:54:47 +02:00
4c57804da2 2.0.15 2023-04-17 13:48:33 +02:00
847f3a4f1c fix(core): update 2023-04-17 13:48:32 +02:00
d5d896a91e 2.0.14 2023-04-17 13:47:58 +02:00
53b732a3f7 fix(core): update 2023-04-17 13:47:58 +02:00
f7f75a64db 2.0.13 2023-04-10 14:09:21 +02:00
2a0aa6db07 fix(core): update 2023-04-10 14:09:21 +02:00
6a4849f87d 2.0.12 2023-04-10 14:04:13 +02:00
6ba521c1b9 fix(core): update 2023-04-10 14:04:13 +02:00
6 changed files with 49 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@uptime.link/interfaces", "name": "@uptime.link/interfaces",
"version": "2.0.11", "version": "2.0.20",
"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.11', version: '2.0.20',
description: 'TypeScript interface for the uptime.link API and modules' description: 'TypeScript interface for the uptime.link API and modules'
} }

View File

@ -1,11 +1,33 @@
import * as plugins from '../ul-interfaces.plugins.js'; import * as plugins from '../ul-interfaces.plugins.js';
export interface IDomainSnapshot { export interface IDomainSnapshot {
registration: {
isRegistered: boolean;
updatedDate: number;
createdDate: number;
expiryDate: number;
};
delegation: {
domainWithoutSuffix: string;
publicSuffix: string;
subdomain: string;
isIcann: boolean;
dnsSecEnabled: boolean;
};
phishingFlags: {
listName: string;
}[];
recordScans: {
identifier: string;
nameservers: string[]; nameservers: string[];
aRecords: plugins.tsclass.network.IDnsRecord[]; aRecords: plugins.tsclass.network.IDnsRecord[];
aaaaRecords: plugins.tsclass.network.IDnsRecord[]; aaaaRecords: plugins.tsclass.network.IDnsRecord[];
txtRecords: plugins.tsclass.network.IDnsRecord[]; txtRecords: plugins.tsclass.network.IDnsRecord[];
mxRecords: plugins.tsclass.network.IDnsRecord[]; mxRecords: plugins.tsclass.network.IDnsRecord[];
specialRecords: {
dmarc: plugins.tsclass.network.IDnsRecord[];
}
}[]
whoisServers: { whoisServers: {
serverUrl: string; serverUrl: string;
content: string; content: string;

View File

@ -1,12 +1,11 @@
export * from './checkcollection.js'; export * from './checkcollection.js';
export * from './domainsnapshot.js'; export * from './domainsnapshot.js';
export * from './incident.js'; export * from './incident.js';
export * from './linksnapshot.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'; import * as checks from './checks/index.js';
export { export { checks };
checks
}

14
ts/data/linksnapshot.ts Normal file
View File

@ -0,0 +1,14 @@
import * as plugins from '../ul-interfaces.plugins.js';
export interface ILinkSnapshot {
httpsSupport: boolean;
httpHttpsParity: boolean;
httpToHttpsRedirect: boolean;
wwwToRootRedirect: boolean;
rootToWwwRedirect: boolean;
statusCode: number;
fullPageLoadSize: number;
fullPageLoadTimeMs: number;
cookies: any[];
gdprCompliance: boolean;
}

View File

@ -1,4 +1,5 @@
import { IDomainSnapshot } from '../data/domainsnapshot.js'; import { IDomainSnapshot } from '../data/domainsnapshot.js';
import { ILinkSnapshot } from '../data/linksnapshot.js';
import * as plugins from '../ul-interfaces.plugins.js'; import * as plugins from '../ul-interfaces.plugins.js';
export interface IReq_PerformDomainSnapshot export interface IReq_PerformDomainSnapshot
@ -12,5 +13,6 @@ export interface IReq_PerformDomainSnapshot
}; };
response: { response: {
domainSnapshot: IDomainSnapshot; domainSnapshot: IDomainSnapshot;
} linkSnapshot: ILinkSnapshot;
};
} }