BREAKING CHANGE(core): switch to esm
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal 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'
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export * from './incident';
|
||||
export * from './incident.js';
|
||||
|
@ -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 };
|
||||
|
@ -1,3 +1,3 @@
|
||||
import * as checkRequests from './requests.checks';
|
||||
import * as checkRequests from './requests.checks.js';
|
||||
|
||||
export { checkRequests };
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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[];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user