@uptime.link/interfaces 2.0.0

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * autocreated commitinfo by @pushrocks/commitinfo
3
+ */
4
+ export declare const commitinfo: {
5
+ name: string;
6
+ version: string;
7
+ description: string;
8
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * autocreated commitinfo by @pushrocks/commitinfo
3
+ */
4
+ export const commitinfo = {
5
+ name: '@uptime.link/interfaces',
6
+ version: '2.0.0',
7
+ description: 'TypeScript interface for the uptime.link API and modules'
8
+ };
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx5QkFBeUI7SUFDL0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLDBEQUEwRDtDQUN4RSxDQUFBIn0=
@@ -0,0 +1,18 @@
1
+ export interface IIncident {
2
+ timestamp: number;
3
+ firstResponseTimestamp?: number;
4
+ /**
5
+ * indicates
6
+ */
7
+ status: 'discovered' | 'investigating' | 'fixing' | 'fixImplemented' | 'watching' | 'resolved';
8
+ creationMode: 'monitor' | 'manual';
9
+ assignedUserId?: string;
10
+ postMortemLink?: string;
11
+ updates: {
12
+ markdownText: string;
13
+ type: 'comment' | 'manualUpdate' | 'automaticUpdate';
14
+ }[];
15
+ justForLooks: {
16
+ isoTimestamp: string;
17
+ };
18
+ }
@@ -0,0 +1,2 @@
1
+ import '../ul-interfaces.plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5jaWRlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luY2lkZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQXlCLDZCQUE2QixDQUFDIn0=
@@ -0,0 +1 @@
1
+ export * from './incident.js';
@@ -0,0 +1,2 @@
1
+ export * from './incident.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDIn0=
@@ -0,0 +1,3 @@
1
+ import * as requests from './requests/index.js';
2
+ import * as data from './data/index.js';
3
+ export { requests, data };
@@ -0,0 +1,4 @@
1
+ import * as requests from './requests/index.js';
2
+ import * as data from './data/index.js';
3
+ export { requests, data };
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssUUFBUSxNQUFNLHFCQUFxQixDQUFDO0FBQ2hELE9BQU8sS0FBSyxJQUFJLE1BQU0saUJBQWlCLENBQUM7QUFFeEMsT0FBTyxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQUUsQ0FBQyJ9
@@ -0,0 +1,2 @@
1
+ import * as checkRequests from './requests.checks.js';
2
+ export { checkRequests };
@@ -0,0 +1,3 @@
1
+ import * as checkRequests from './requests.checks.js';
2
+ export { checkRequests };
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssYUFBYSxNQUFNLHNCQUFzQixDQUFDO0FBRXRELE9BQU8sRUFBRSxhQUFhLEVBQUUsQ0FBQyJ9
@@ -0,0 +1,63 @@
1
+ import * as plugins from '../ul-interfaces.plugins.js';
2
+ export declare type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
3
+ export interface IRequest_PageCheck_PWA extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IRequest_PageCheck_PWA> {
4
+ method: 'pwa';
5
+ request: {
6
+ intervalMs: number;
7
+ domain: string;
8
+ };
9
+ response: {
10
+ timeStarted: number;
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[];
62
+ };
63
+ }
@@ -0,0 +1,2 @@
1
+ import '../ul-interfaces.plugins.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdHMuY2hlY2tzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvcmVxdWVzdHMuY2hlY2tzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQXlCLDZCQUE2QixDQUFDIn0=
@@ -0,0 +1,12 @@
1
+ import * as plugins from '../ul-interfaces.plugins.js';
2
+ import * as data from '../data/index.js';
3
+ export interface IRequest_Incidents_Get extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IRequest_Incidents_Get> {
4
+ method: 'getIncidents';
5
+ request: {
6
+ userToken?: string;
7
+ };
8
+ response: {
9
+ currentIncidents: data.IIncident[];
10
+ pastIncidents: data.IIncident[];
11
+ };
12
+ }
@@ -0,0 +1,3 @@
1
+ import '../ul-interfaces.plugins.js';
2
+ import '../data/index.js';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdHMuaW5jaWRlbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdHMvcmVxdWVzdHMuaW5jaWRlbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQXlCLDZCQUE2QixDQUFDO0FBQ3ZELE9BQXNCLGtCQUFrQixDQUFDIn0=
@@ -0,0 +1,7 @@
1
+ export declare type TServiceStatus = 'up' | 'down';
2
+ export interface IHourlyStatus {
3
+ states: {
4
+ unixTimes: number;
5
+ status: TServiceStatus;
6
+ };
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc3RhdHVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1,2 @@
1
+ import * as typedRequestInterfaces from '@apiglobal/typedrequest-interfaces';
2
+ export { typedRequestInterfaces };
@@ -0,0 +1,3 @@
1
+ import * as typedRequestInterfaces from '@apiglobal/typedrequest-interfaces';
2
+ export { typedRequestInterfaces };
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWwtaW50ZXJmYWNlcy5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvdWwtaW50ZXJmYWNlcy5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxzQkFBc0IsTUFBTSxvQ0FBb0MsQ0FBQztBQUU3RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsQ0FBQyJ9
package/license ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2019 Lossless GmbH (hello@lossless.com)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/npmextra.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "gitzone": {
3
+ "projectType": "npm",
4
+ "module": {
5
+ "githost": "gitlab.com",
6
+ "gitscope": "uptime.link",
7
+ "gitrepo": "interfaces",
8
+ "description": "TypeScript interface for the uptime.link API and modules",
9
+ "npmPackagename": "@uptime.link/interfaces",
10
+ "license": "MIT",
11
+ "projectDomain": "uptime.link"
12
+ }
13
+ },
14
+ "npmci": {
15
+ "npmGlobalTools": [],
16
+ "npmAccessLevel": "public"
17
+ }
18
+ }
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@uptime.link/interfaces",
3
+ "version": "2.0.0",
4
+ "private": false,
5
+ "description": "TypeScript interface for the uptime.link API and modules",
6
+ "main": "dist_ts/index.js",
7
+ "typings": "dist_ts/index.d.ts",
8
+ "type": "module",
9
+ "author": "Lossless GmbH",
10
+ "license": "MIT",
11
+ "scripts": {
12
+ "test": "(tstest test/)",
13
+ "build": "(tsbuild --web)",
14
+ "buildDocs": "tsdoc"
15
+ },
16
+ "devDependencies": {
17
+ "@gitzone/tsbuild": "^2.1.63",
18
+ "@gitzone/tstest": "^1.0.71",
19
+ "@pushrocks/tapbundle": "^5.0.3",
20
+ "@types/node": "^18.0.5"
21
+ },
22
+ "dependencies": {
23
+ "@apiglobal/typedrequest-interfaces": "^1.0.15"
24
+ },
25
+ "files": [
26
+ "ts/**/*",
27
+ "ts_web/**/*",
28
+ "dist/**/*",
29
+ "dist_*/**/*",
30
+ "dist_ts/**/*",
31
+ "dist_ts_web/**/*",
32
+ "assets/**/*",
33
+ "cli.js",
34
+ "npmextra.json",
35
+ "readme.md"
36
+ ],
37
+ "browserslist": [
38
+ "last 1 chrome versions"
39
+ ]
40
+ }
package/readme.md ADDED
@@ -0,0 +1,41 @@
1
+ # @uptime.link/interfaces
2
+ TypeScript interface for the uptime.link API and modules
3
+
4
+ ## Availabililty and Links
5
+ * [npmjs.org (npm package)](https://www.npmjs.com/package/@uptime.link/interfaces)
6
+ * [gitlab.com (source)](https://gitlab.com/uptime.link/interfaces)
7
+ * [github.com (source mirror)](https://github.com/uptime.link/interfaces)
8
+ * [docs (typedoc)](https://uptime.link.gitlab.io/interfaces/)
9
+
10
+ ## Status for master
11
+
12
+ Status Category | Status Badge
13
+ -- | --
14
+ GitLab Pipelines | [![pipeline status](https://gitlab.com/uptime.link/interfaces/badges/master/pipeline.svg)](https://lossless.cloud)
15
+ GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/uptime.link/interfaces/badges/master/coverage.svg)](https://lossless.cloud)
16
+ npm | [![npm downloads per month](https://badgen.net/npm/dy/@uptime.link/interfaces)](https://lossless.cloud)
17
+ Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/uptime.link/interfaces)](https://lossless.cloud)
18
+ TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
19
+ node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
20
+ Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
21
+ PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@uptime.link/interfaces)](https://lossless.cloud)
22
+ PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@uptime.link/interfaces)](https://lossless.cloud)
23
+ BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@uptime.link/interfaces)](https://lossless.cloud)
24
+ Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
25
+
26
+ ## Usage
27
+
28
+ ## Contribution
29
+
30
+ We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
31
+
32
+ ## Contribution
33
+
34
+ We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
35
+
36
+ For further information read the linked docs at the top of this readme.
37
+
38
+ > MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh)
39
+ | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
40
+
41
+ [![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)
@@ -0,0 +1,8 @@
1
+ /**
2
+ * autocreated commitinfo by @pushrocks/commitinfo
3
+ */
4
+ export const commitinfo = {
5
+ name: '@uptime.link/interfaces',
6
+ version: '2.0.0',
7
+ description: 'TypeScript interface for the uptime.link API and modules'
8
+ }
@@ -0,0 +1,22 @@
1
+ import * as plugins from '../ul-interfaces.plugins.js';
2
+
3
+ export interface IIncident {
4
+ timestamp: number;
5
+ firstResponseTimestamp?: number;
6
+ /**
7
+ * indicates
8
+ */
9
+ status: 'discovered' | 'investigating' | 'fixing' | 'fixImplemented' | 'watching' | 'resolved';
10
+ creationMode: 'monitor' | 'manual';
11
+ assignedUserId?: string;
12
+ postMortemLink?: string;
13
+
14
+ updates: {
15
+ markdownText: string;
16
+ type: 'comment' | 'manualUpdate' | 'automaticUpdate';
17
+ }[];
18
+
19
+ justForLooks: {
20
+ isoTimestamp: string;
21
+ };
22
+ }
@@ -0,0 +1 @@
1
+ export * from './incident.js';
package/ts/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as requests from './requests/index.js';
2
+ import * as data from './data/index.js';
3
+
4
+ export { requests, data };
@@ -0,0 +1,3 @@
1
+ import * as checkRequests from './requests.checks.js';
2
+
3
+ export { checkRequests };
@@ -0,0 +1,79 @@
1
+ import * as plugins from '../ul-interfaces.plugins.js';
2
+
3
+ export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
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
29
+ extends plugins.typedRequestInterfaces.implementsTR<
30
+ plugins.typedRequestInterfaces.ITypedRequest,
31
+ IRequest_PageCheck_Function
32
+ > {
33
+ method: 'function';
34
+ request: {
35
+ intervalMs: number;
36
+ domain: string;
37
+ functionDef: string;
38
+ };
39
+ response: {
40
+ timeStarted: number;
41
+ timeEnded: number;
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
+ };
79
+ }
@@ -0,0 +1,17 @@
1
+ import * as plugins from '../ul-interfaces.plugins.js';
2
+ import * as data from '../data/index.js';
3
+
4
+ export interface IRequest_Incidents_Get
5
+ extends plugins.typedRequestInterfaces.implementsTR<
6
+ plugins.typedRequestInterfaces.ITypedRequest,
7
+ IRequest_Incidents_Get
8
+ > {
9
+ method: 'getIncidents';
10
+ request: {
11
+ userToken?: string;
12
+ };
13
+ response: {
14
+ currentIncidents: data.IIncident[];
15
+ pastIncidents: data.IIncident[];
16
+ };
17
+ }
package/ts/status.ts ADDED
@@ -0,0 +1,5 @@
1
+ export type TServiceStatus = 'up' | 'down';
2
+
3
+ export interface IHourlyStatus {
4
+ states: { unixTimes: number; status: TServiceStatus };
5
+ }
@@ -0,0 +1,3 @@
1
+ import * as typedRequestInterfaces from '@apiglobal/typedrequest-interfaces';
2
+
3
+ export { typedRequestInterfaces };