3 Commits

Author SHA1 Message Date
5ce1997085 1.0.6 2019-11-30 18:54:10 +00:00
69eeed0cba 1.0.5 2019-11-30 16:25:25 +00:00
f536957bbd fix(core): update 2019-11-30 16:25:24 +00:00
7 changed files with 81 additions and 17 deletions

5
package-lock.json generated
View File

@ -1,14 +1,13 @@
{ {
"name": "@uptimelink/interfaces", "name": "@uptimelink/interfaces",
"version": "1.0.4", "version": "1.0.6",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@apiglobal/typedrequest-interfaces": { "@apiglobal/typedrequest-interfaces": {
"version": "1.0.10", "version": "1.0.10",
"resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest-interfaces/-/typedrequest-interfaces-1.0.10.tgz", "resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest-interfaces/-/typedrequest-interfaces-1.0.10.tgz",
"integrity": "sha512-RGG7s/mP7MGVz3g+y/kvH0ZrVWY/vJy3BignsUv3DLtoFvfWnvxqT2WWqSJhyXCOSeR/nzVsGxFgKAI/ZVZKdg==", "integrity": "sha512-RGG7s/mP7MGVz3g+y/kvH0ZrVWY/vJy3BignsUv3DLtoFvfWnvxqT2WWqSJhyXCOSeR/nzVsGxFgKAI/ZVZKdg=="
"dev": true
}, },
"@babel/code-frame": { "@babel/code-frame": {
"version": "7.5.5", "version": "7.5.5",

View File

@ -1,6 +1,6 @@
{ {
"name": "@uptimelink/interfaces", "name": "@uptimelink/interfaces",
"version": "1.0.4", "version": "1.0.6",
"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/index.js", "main": "dist/index.js",
@ -20,7 +20,9 @@
"tslint": "^5.11.0", "tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },
"dependencies": {}, "dependencies": {
"@apiglobal/typedrequest-interfaces": "^1.0.10"
},
"files": [ "files": [
"ts/**/*", "ts/**/*",
"ts_web/**/*", "ts_web/**/*",

View File

@ -2,7 +2,8 @@ import { expect, tap } from '@pushrocks/tapbundle';
import * as interfaces from '../ts/index'; import * as interfaces from '../ts/index';
tap.test('first test', async () => { tap.test('first test', async () => {
console.log(interfaces.standardExport); console.log('hi' as interfaces.pagechecks.IRequest_PageCheck_Assumption['request']['domain']);
}); });
tap.start(); tap.start();

View File

@ -1,5 +1,5 @@
import * as pagechecks from './ul-interfaces.pagechecks'; import * as checkRequests from './ul-interfaces.checkrequest';
export { export {
pagechecks checkRequests as pagechecks
}; };

View File

@ -1,3 +1,67 @@
export interface IPageCheckRequest { import * as plugins from './ul-interfaces.plugins';
export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
export interface IRequest_PageCheck_PWA {
method: 'pwa';
request: {
intervalMs: number,
domain: string;
};
response: {
timeStarted: number;
timeEnded: number;
duration: number;
status: TCheckResultStatus;
data: {
lhr: any;
reports: any[];
};
checkLog: string[];
};
}
export interface IRequest_PageCheck_Function {
method: 'checkPwa';
request: {
intervalMs: number,
domain: string;
functionDef: string;
};
response: {
timeStarted: number;
timeEnded: number;
duration: number;
status: TCheckResultStatus;
data: any;
checkLog: string[];
};
}
export interface IRequest_PageCheck_Assumption {
method: 'assumption';
request: {
intervalMs: number,
domain: string;
title?: string;
statusCode?: string;
description?: string;
dnsRecordMx?: string;
dnsRecordTxt?: string;
};
response: {
timeStarted: number;
timeEnded: number;
duration: number;
status: TCheckResultStatus;
data: {
domain: string;
title?: string;
statusCode?: string;
description?: string;
dnsRecordMx?: string;
dnsRecordTxt?: string;
};
checkLog: string[];
};
} }

View File

@ -1,7 +0,0 @@
export interface IPageCheckSimple {};
export interface IPageCheckAdvanced {};
export interface IPageCheckPWA {
}

View File

@ -0,0 +1,5 @@
import * as typedRequestInterfaces from '@apiglobal/typedrequest-interfaces';
export {
typedRequestInterfaces
};