fix(core): update
This commit is contained in:
23
ts/data/checks/assumption.check.ts
Normal file
23
ts/data/checks/assumption.check.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import * as plugins from '../../ul-interfaces.plugins.js';
|
||||
import { TCheckResultStatus, TExecutionTiming } from './index.js';
|
||||
|
||||
export interface IAssumptionCheck {
|
||||
inputData: {
|
||||
domain: string;
|
||||
title?: string;
|
||||
statusCode?: string;
|
||||
description?: string;
|
||||
dnsRecords?: plugins.tsclass.network.IDnsRecord;
|
||||
};
|
||||
executionResults: Array<{
|
||||
timing: TExecutionTiming;
|
||||
status: TCheckResultStatus;
|
||||
data: {
|
||||
domain: string;
|
||||
title?: string;
|
||||
statusCode?: string;
|
||||
description?: string;
|
||||
dnsRecords: Array<plugins.tsclass.network.IDnsRecord>;
|
||||
};
|
||||
}>;
|
||||
}
|
15
ts/data/checks/function.check.ts
Normal file
15
ts/data/checks/function.check.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { TCheckResultStatus, TExecutionTiming } from "./index.js";
|
||||
|
||||
export interface IFunctionCheck {
|
||||
checkId: string;
|
||||
inputData: {
|
||||
domain: string;
|
||||
functionDef: string;
|
||||
};
|
||||
executionResults: Array<{
|
||||
timing: TExecutionTiming;
|
||||
status: TCheckResultStatus;
|
||||
data: any;
|
||||
checkLog: string[];
|
||||
}>
|
||||
}
|
13
ts/data/checks/index.ts
Normal file
13
ts/data/checks/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
|
||||
|
||||
export interface TExecutionTiming {
|
||||
plannedTime: number;
|
||||
timeStarted: number;
|
||||
timeEnded: number;
|
||||
duration: number;
|
||||
}
|
||||
|
||||
export * from './assumption.check.js';
|
||||
export * from './function.check.js';
|
||||
export * from './pagerank.check.js';
|
||||
export * from './pwa.check.js';
|
19
ts/data/checks/pagerank.check.ts
Normal file
19
ts/data/checks/pagerank.check.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import * as search from '../search.js';
|
||||
import { TCheckResultStatus, TExecutionTiming } from './index.js';
|
||||
|
||||
export interface IPageRankCheck {
|
||||
inputData: {
|
||||
subId: string;
|
||||
domain: string;
|
||||
searchTerm: string;
|
||||
checkBing?: boolean;
|
||||
checkGoogle?: boolean;
|
||||
bingMinRank?: number;
|
||||
googleMinRank?: number;
|
||||
};
|
||||
executionResults: Array<{
|
||||
timing: TExecutionTiming;
|
||||
status: TCheckResultStatus;
|
||||
pageRankResult: search.IPageRankResult
|
||||
}>
|
||||
}
|
16
ts/data/checks/pwa.check.ts
Normal file
16
ts/data/checks/pwa.check.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { TCheckResultStatus } from "./index.js";
|
||||
|
||||
export interface IPwaCheck {
|
||||
inputData: { domain: string };
|
||||
executionResults: Array<{
|
||||
subId: string;
|
||||
timeStarted: number;
|
||||
timeEnded: number;
|
||||
duration: number;
|
||||
status: TCheckResultStatus;
|
||||
data: {
|
||||
lhr: any;
|
||||
reports: any[];
|
||||
};
|
||||
}>;
|
||||
}
|
Reference in New Issue
Block a user