fix(core): update

This commit is contained in:
Philipp Kunz 2021-09-26 16:11:41 +02:00
parent cba5c17252
commit 615fb17baa
8 changed files with 18977 additions and 3152 deletions

22058
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,14 +9,13 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild)", "build": "(tsbuild --web)"
"format": "(gitzone format)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.25", "@gitzone/tsbuild": "^2.1.27",
"@gitzone/tstest": "^1.0.52", "@gitzone/tstest": "^1.0.57",
"@pushrocks/tapbundle": "^3.2.14", "@pushrocks/tapbundle": "^3.2.14",
"@types/node": "^14.14.32", "@types/node": "^16.10.1",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },

22
ts/data/incident.ts Normal file
View File

@ -0,0 +1,22 @@
import * as plugins from '../ul-interfaces.plugins';
export interface IIncident {
timestamp: number;
firstResponseTimestamp?: number;
/**
* indicates
*/
status: 'discovered' | 'investigating' | 'fixing' | 'fixImplemented' | 'watching' | 'resolved';
creationMode: 'monitor' | 'manual';
assignedUserId?: string;
postMortemLink?: string;
updates: {
markdownText: string;
type: 'comment' | 'manualUpdate' | 'automaticUpdate'
}[];
justForLooks: {
isoTimestamp: string;
}
}

1
ts/data/index.ts Normal file
View File

@ -0,0 +1 @@
export * from './incident';

View File

@ -1,3 +1,4 @@
import * as requests from './requests'; import * as requests from './requests';
import * as data from './data';
export { requests }; export { requests, data };

View File

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

View File

@ -2,7 +2,11 @@ import * as plugins from '../ul-interfaces.plugins';
export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out'; export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
export interface IRequest_PageCheck_PWA { export interface IRequest_PageCheck_PWA
extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_PageCheck_PWA
> {
method: 'pwa'; method: 'pwa';
request: { request: {
intervalMs: number; intervalMs: number;
@ -21,7 +25,11 @@ export interface IRequest_PageCheck_PWA {
}; };
} }
export interface IRequest_PageCheck_Function { export interface IRequest_PageCheck_Function
extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_PageCheck_Function
> {
method: 'function'; method: 'function';
request: { request: {
intervalMs: number; intervalMs: number;
@ -38,7 +46,11 @@ export interface IRequest_PageCheck_Function {
}; };
} }
export interface IRequest_PageCheck_Assumption { export interface IRequest_PageCheck_Assumption
extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_PageCheck_Assumption
> {
method: 'assumption'; method: 'assumption';
request: { request: {
intervalMs: number; intervalMs: number;

View File

@ -0,0 +1,16 @@
import * as plugins from '../ul-interfaces.plugins';
import * as data from '../data';
export interface IRequest_Incidents_Get extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_Incidents_Get
> {
method: 'getIncidents',
request: {
userToken?: string;
};
response: {
currentIncidents: data.IIncident[];
pastIncidents: data.IIncident[];
}
}