BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-07-16 17:45:10 +02:00
parent 5887eefbca
commit 4f8107221b
16 changed files with 3971 additions and 19946 deletions

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@uptime.link/interfaces',
version: '2.0.0',
description: 'TypeScript interface for the uptime.link API and modules'
}

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
import * as plugins from '../ul-interfaces.plugins';
import * as plugins from '../ul-interfaces.plugins.js';
export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';

View File

@ -1,16 +1,17 @@
import * as plugins from '../ul-interfaces.plugins';
import * as data from '../data';
import * as plugins from '../ul-interfaces.plugins.js';
import * as data from '../data/index.js';
export interface IRequest_Incidents_Get extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_Incidents_Get
> {
method: 'getIncidents',
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[];
}
};
}