fix(core): update
This commit is contained in:
3
ts/requests/index.ts
Normal file
3
ts/requests/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as checkRequests from './ul-interfaces.checkrequest';
|
||||
|
||||
export { checkRequests };
|
67
ts/requests/ul-interfaces.checkrequest.ts
Normal file
67
ts/requests/ul-interfaces.checkrequest.ts
Normal file
@ -0,0 +1,67 @@
|
||||
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: 'function';
|
||||
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[];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user