fix(core): update

This commit is contained in:
Philipp Kunz 2019-11-30 16:25:24 +00:00
parent aa4c9d6554
commit f536957bbd
7 changed files with 79 additions and 15 deletions

3
package-lock.json generated
View File

@ -7,8 +7,7 @@
"@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

@ -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
};