@uptime.link/interfaces 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/checks.d.ts +54 -0
- package/dist_ts/data/checks.js +2 -0
- package/dist_ts/data/property.d.ts +5 -0
- package/dist_ts/data/property.js +4 -0
- package/dist_ts/data/status.d.ts +10 -0
- package/dist_ts/data/status.js +2 -0
- package/dist_ts/requests/requests.checks.d.ts +5 -57
- package/dist_ts/requests/requests.checks.js +2 -1
- package/dist_ts/requests/requests.status.d.ts +11 -0
- package/dist_ts/requests/requests.status.js +4 -0
- package/dist_ts/ul-interfaces.plugins.d.ts +2 -0
- package/dist_ts/ul-interfaces.plugins.js +4 -1
- package/package.json +3 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/checks.ts +59 -0
- package/ts/data/property.ts +8 -0
- package/ts/data/status.ts +12 -0
- package/ts/requests/requests.checks.ts +7 -70
- package/ts/requests/requests.status.ts +17 -0
- package/ts/ul-interfaces.plugins.ts +7 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@uptime.link/interfaces',
|
|
6
|
-
version: '2.0.
|
|
6
|
+
version: '2.0.1',
|
|
7
7
|
description: 'TypeScript interface for the uptime.link API and modules'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx5QkFBeUI7SUFDL0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLDBEQUEwRDtDQUN4RSxDQUFBIn0=
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
|
|
2
|
+
export interface ICheck {
|
|
3
|
+
type: 'pwa' | 'function' | 'assumption';
|
|
4
|
+
intervalMs: number;
|
|
5
|
+
pwaData?: {
|
|
6
|
+
domain: string;
|
|
7
|
+
};
|
|
8
|
+
functionData: {
|
|
9
|
+
domain: string;
|
|
10
|
+
functionDef: string;
|
|
11
|
+
};
|
|
12
|
+
assumptionData?: {
|
|
13
|
+
domain: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
statusCode?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
dnsRecordMx?: string;
|
|
18
|
+
dnsRecordTxt?: string;
|
|
19
|
+
};
|
|
20
|
+
checkResults: Array<{
|
|
21
|
+
pwaResult?: {
|
|
22
|
+
timeStarted: number;
|
|
23
|
+
timeEnded: number;
|
|
24
|
+
duration: number;
|
|
25
|
+
status: TCheckResultStatus;
|
|
26
|
+
data: {
|
|
27
|
+
lhr: any;
|
|
28
|
+
reports: any[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
functionResult?: {
|
|
32
|
+
timeStarted: number;
|
|
33
|
+
timeEnded: number;
|
|
34
|
+
duration: number;
|
|
35
|
+
status: TCheckResultStatus;
|
|
36
|
+
data: any;
|
|
37
|
+
};
|
|
38
|
+
assumptionResult: {
|
|
39
|
+
timeStarted: number;
|
|
40
|
+
timeEnded: number;
|
|
41
|
+
duration: number;
|
|
42
|
+
status: TCheckResultStatus;
|
|
43
|
+
data: {
|
|
44
|
+
domain: string;
|
|
45
|
+
title?: string;
|
|
46
|
+
statusCode?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
dnsRecordMx?: string;
|
|
49
|
+
dnsRecordTxt?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
checkLog: string[];
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../ul-interfaces.plugins.js';
|
|
2
|
+
export class IProperty {
|
|
3
|
+
}
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL3Byb3BlcnR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQXlCLDZCQUE2QixDQUFDO0FBRXZELE1BQU0sT0FBTyxTQUFTO0NBS3JCIn0=
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as plugins from '../ul-interfaces.plugins.js';
|
|
2
|
+
export interface IStatus {
|
|
3
|
+
last90days: IDailyStatus[];
|
|
4
|
+
}
|
|
5
|
+
export interface IDailyStatus {
|
|
6
|
+
timezone: 'UTC';
|
|
7
|
+
date: plugins.tsclass.general.IDate;
|
|
8
|
+
overallStatus: 'ok' | 'reduced' | 'outage';
|
|
9
|
+
incidentRefs: string[];
|
|
10
|
+
}
|
|
@@ -1,63 +1,11 @@
|
|
|
1
|
+
import { ICheck } from '../data/checks.js';
|
|
1
2
|
import * as plugins from '../ul-interfaces.plugins.js';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
method: 'pwa';
|
|
3
|
+
export interface IRequest_CheckExchange extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IRequest_CheckExchange> {
|
|
4
|
+
method: 'check';
|
|
5
5
|
request: {
|
|
6
|
-
|
|
7
|
-
domain: string;
|
|
6
|
+
check: ICheck;
|
|
8
7
|
};
|
|
9
8
|
response: {
|
|
10
|
-
|
|
11
|
-
timeEnded: number;
|
|
12
|
-
duration: number;
|
|
13
|
-
status: TCheckResultStatus;
|
|
14
|
-
data: {
|
|
15
|
-
lhr: any;
|
|
16
|
-
reports: any[];
|
|
17
|
-
};
|
|
18
|
-
checkLog: string[];
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface IRequest_PageCheck_Function extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IRequest_PageCheck_Function> {
|
|
22
|
-
method: 'function';
|
|
23
|
-
request: {
|
|
24
|
-
intervalMs: number;
|
|
25
|
-
domain: string;
|
|
26
|
-
functionDef: string;
|
|
27
|
-
};
|
|
28
|
-
response: {
|
|
29
|
-
timeStarted: number;
|
|
30
|
-
timeEnded: number;
|
|
31
|
-
duration: number;
|
|
32
|
-
status: TCheckResultStatus;
|
|
33
|
-
data: any;
|
|
34
|
-
checkLog: string[];
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export interface IRequest_PageCheck_Assumption extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IRequest_PageCheck_Assumption> {
|
|
38
|
-
method: 'assumption';
|
|
39
|
-
request: {
|
|
40
|
-
intervalMs: number;
|
|
41
|
-
domain: string;
|
|
42
|
-
title?: string;
|
|
43
|
-
statusCode?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
dnsRecordMx?: string;
|
|
46
|
-
dnsRecordTxt?: string;
|
|
47
|
-
};
|
|
48
|
-
response: {
|
|
49
|
-
timeStarted: number;
|
|
50
|
-
timeEnded: number;
|
|
51
|
-
duration: number;
|
|
52
|
-
status: TCheckResultStatus;
|
|
53
|
-
data: {
|
|
54
|
-
domain: string;
|
|
55
|
-
title?: string;
|
|
56
|
-
statusCode?: string;
|
|
57
|
-
description?: string;
|
|
58
|
-
dnsRecordMx?: string;
|
|
59
|
-
dnsRecordTxt?: string;
|
|
60
|
-
};
|
|
61
|
-
checkLog: string[];
|
|
9
|
+
check: ICheck;
|
|
62
10
|
};
|
|
63
11
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '../data/checks.js';
|
|
1
2
|
import '../ul-interfaces.plugins.js';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdHMuY2hlY2tzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvcmVxdWVzdHMuY2hlY2tzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQXVCLG1CQUFtQixDQUFDO0FBQzNDLE9BQXlCLDZCQUE2QixDQUFDIn0=
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as plugins from '../ul-interfaces.plugins.js';
|
|
2
|
+
import { IStatus } from '../data/status.js';
|
|
3
|
+
export interface IRequest_Status_Get extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IRequest_Status_Get> {
|
|
4
|
+
method: 'getStatus';
|
|
5
|
+
request: {
|
|
6
|
+
userToken?: string;
|
|
7
|
+
};
|
|
8
|
+
response: {
|
|
9
|
+
status: IStatus;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../ul-interfaces.plugins.js';
|
|
2
|
+
import '../data/index.js';
|
|
3
|
+
import '../data/status.js';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdHMuc3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvcmVxdWVzdHMuc3RhdHVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQXlCLDZCQUE2QixDQUFDO0FBQ3ZELE9BQXNCLGtCQUFrQixDQUFDO0FBQ3pDLE9BQXdCLG1CQUFtQixDQUFDIn0=
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import * as typedRequestInterfaces from '@apiglobal/typedrequest-interfaces';
|
|
2
2
|
export { typedRequestInterfaces };
|
|
3
|
-
|
|
3
|
+
// tsclass scope
|
|
4
|
+
import * as tsclass from '@tsclass/tsclass';
|
|
5
|
+
export { tsclass };
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWwtaW50ZXJmYWNlcy5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvdWwtaW50ZXJmYWNlcy5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxzQkFBc0IsTUFBTSxvQ0FBb0MsQ0FBQztBQUU3RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsQ0FBQztBQUVsQyxnQkFBZ0I7QUFDaEIsT0FBTyxLQUFLLE9BQU8sTUFBTSxrQkFBa0IsQ0FBQztBQUU1QyxPQUFPLEVBQ0wsT0FBTyxFQUNSLENBQUEifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uptime.link/interfaces",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TypeScript interface for the uptime.link API and modules",
|
|
6
6
|
"main": "dist_ts/index.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"@types/node": "^18.0.5"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@apiglobal/typedrequest-interfaces": "^1.0.15"
|
|
23
|
+
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
|
24
|
+
"@tsclass/tsclass": "^4.0.17"
|
|
24
25
|
},
|
|
25
26
|
"files": [
|
|
26
27
|
"ts/**/*",
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as plugins from '../ul-interfaces.plugins.js';
|
|
2
|
+
|
|
3
|
+
export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
|
|
4
|
+
|
|
5
|
+
export interface ICheck {
|
|
6
|
+
type: 'pwa' | 'function' | 'assumption';
|
|
7
|
+
intervalMs: number;
|
|
8
|
+
pwaData?: {
|
|
9
|
+
domain: string;
|
|
10
|
+
};
|
|
11
|
+
functionData: {
|
|
12
|
+
domain: string;
|
|
13
|
+
functionDef: string;
|
|
14
|
+
};
|
|
15
|
+
assumptionData?: {
|
|
16
|
+
domain: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
statusCode?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
dnsRecordMx?: string;
|
|
21
|
+
dnsRecordTxt?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
checkResults: Array<{
|
|
25
|
+
pwaResult?: {
|
|
26
|
+
timeStarted: number;
|
|
27
|
+
timeEnded: number;
|
|
28
|
+
duration: number;
|
|
29
|
+
status: TCheckResultStatus;
|
|
30
|
+
data: {
|
|
31
|
+
lhr: any;
|
|
32
|
+
reports: any[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
functionResult?: {
|
|
36
|
+
timeStarted: number;
|
|
37
|
+
timeEnded: number;
|
|
38
|
+
duration: number;
|
|
39
|
+
status: TCheckResultStatus;
|
|
40
|
+
data: any;
|
|
41
|
+
|
|
42
|
+
};
|
|
43
|
+
assumptionResult: {
|
|
44
|
+
timeStarted: number;
|
|
45
|
+
timeEnded: number;
|
|
46
|
+
duration: number;
|
|
47
|
+
status: TCheckResultStatus;
|
|
48
|
+
data: {
|
|
49
|
+
domain: string;
|
|
50
|
+
title?: string;
|
|
51
|
+
statusCode?: string;
|
|
52
|
+
description?: string;
|
|
53
|
+
dnsRecordMx?: string;
|
|
54
|
+
dnsRecordTxt?: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
checkLog: string[];
|
|
58
|
+
}>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as plugins from '../ul-interfaces.plugins.js';
|
|
2
|
+
|
|
3
|
+
export interface IStatus {
|
|
4
|
+
last90days: IDailyStatus[];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface IDailyStatus {
|
|
8
|
+
timezone: 'UTC',
|
|
9
|
+
date: plugins.tsclass.general.IDate;
|
|
10
|
+
overallStatus: 'ok' | 'reduced' | 'outage';
|
|
11
|
+
incidentRefs: string[];
|
|
12
|
+
}
|
|
@@ -1,79 +1,16 @@
|
|
|
1
|
+
import { ICheck } from '../data/checks.js';
|
|
1
2
|
import * as plugins from '../ul-interfaces.plugins.js';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export interface IRequest_PageCheck_PWA
|
|
6
|
-
extends plugins.typedRequestInterfaces.implementsTR<
|
|
7
|
-
plugins.typedRequestInterfaces.ITypedRequest,
|
|
8
|
-
IRequest_PageCheck_PWA
|
|
9
|
-
> {
|
|
10
|
-
method: 'pwa';
|
|
11
|
-
request: {
|
|
12
|
-
intervalMs: number;
|
|
13
|
-
domain: string;
|
|
14
|
-
};
|
|
15
|
-
response: {
|
|
16
|
-
timeStarted: number;
|
|
17
|
-
timeEnded: number;
|
|
18
|
-
duration: number;
|
|
19
|
-
status: TCheckResultStatus;
|
|
20
|
-
data: {
|
|
21
|
-
lhr: any;
|
|
22
|
-
reports: any[];
|
|
23
|
-
};
|
|
24
|
-
checkLog: string[];
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IRequest_PageCheck_Function
|
|
4
|
+
export interface IRequest_CheckExchange
|
|
29
5
|
extends plugins.typedRequestInterfaces.implementsTR<
|
|
30
6
|
plugins.typedRequestInterfaces.ITypedRequest,
|
|
31
|
-
|
|
7
|
+
IRequest_CheckExchange
|
|
32
8
|
> {
|
|
33
|
-
method: '
|
|
9
|
+
method: 'check';
|
|
34
10
|
request: {
|
|
35
|
-
|
|
36
|
-
domain: string;
|
|
37
|
-
functionDef: string;
|
|
11
|
+
check: ICheck;
|
|
38
12
|
};
|
|
39
13
|
response: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
duration: number;
|
|
43
|
-
status: TCheckResultStatus;
|
|
44
|
-
data: any;
|
|
45
|
-
checkLog: string[];
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface IRequest_PageCheck_Assumption
|
|
50
|
-
extends plugins.typedRequestInterfaces.implementsTR<
|
|
51
|
-
plugins.typedRequestInterfaces.ITypedRequest,
|
|
52
|
-
IRequest_PageCheck_Assumption
|
|
53
|
-
> {
|
|
54
|
-
method: 'assumption';
|
|
55
|
-
request: {
|
|
56
|
-
intervalMs: number;
|
|
57
|
-
domain: string;
|
|
58
|
-
title?: string;
|
|
59
|
-
statusCode?: string;
|
|
60
|
-
description?: string;
|
|
61
|
-
dnsRecordMx?: string;
|
|
62
|
-
dnsRecordTxt?: string;
|
|
63
|
-
};
|
|
64
|
-
response: {
|
|
65
|
-
timeStarted: number;
|
|
66
|
-
timeEnded: number;
|
|
67
|
-
duration: number;
|
|
68
|
-
status: TCheckResultStatus;
|
|
69
|
-
data: {
|
|
70
|
-
domain: string;
|
|
71
|
-
title?: string;
|
|
72
|
-
statusCode?: string;
|
|
73
|
-
description?: string;
|
|
74
|
-
dnsRecordMx?: string;
|
|
75
|
-
dnsRecordTxt?: string;
|
|
76
|
-
};
|
|
77
|
-
checkLog: string[];
|
|
78
|
-
};
|
|
14
|
+
check: ICheck;
|
|
15
|
+
}
|
|
79
16
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as plugins from '../ul-interfaces.plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
import { IStatus } from '../data/status.js';
|
|
4
|
+
|
|
5
|
+
export interface IRequest_Status_Get
|
|
6
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
7
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
8
|
+
IRequest_Status_Get
|
|
9
|
+
> {
|
|
10
|
+
method: 'getStatus';
|
|
11
|
+
request: {
|
|
12
|
+
userToken?: string;
|
|
13
|
+
};
|
|
14
|
+
response: {
|
|
15
|
+
status: IStatus;
|
|
16
|
+
};
|
|
17
|
+
}
|