All files / src api.ts

100% Statements 83/83
100% Branches 0/0
100% Functions 0/0
100% Lines 43/43

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88                                1x 1x     1x     1x 1x 1x 1x 1x 1x     1x 1x 1x       1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                           1x 1x 1x     1x 1x 1x 1x 1x 1x     1x 1x  
// Copyright (C) 2017  Norman Breau
 
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
// Application
export {getInstance, getApplicationLogger} from './instance';
export {Application} from './Application';
 
// Config
export {ConfigLoader} from './ConfigLoader';
 
// Database
export {Database} from './Database';
export {DatabaseConnection} from './DatabaseConnection';
export {MySQLDatabase} from './MySQLDatabase';
export {MySQLConnection} from './MySQLConnection';
export {ManagedDatabaseConnection} from './ManagedDatabaseConnection';
export {Query} from './Query';
 
// Errors
export {ErrorCode} from './ErrorCode';
export {
    StormError,
    IErrorResponse,
    IAdditionalErrorDetails
} from './StormError';
export {MissingParameterError} from './MissingParameterError';
export {InvalidCredentialsError} from './InvalidCredentialsError';
export {InternalError} from './InternalError';
export {ExpiredTokenError} from './ExpiredTokenError';
export {InvalidValueError} from './InvalidValueError';
export {UnauthorizedAccessError} from './UnauthorizedAccessError';
export {EntityNotFoundError} from './EntityNotFoundError';
export {DiskSpaceError} from './DiskSpaceError';
export {DuplicateEntryError} from './DuplicateEntryError';
 
// HTTP
export {StatusCode} from './StatusCode';
export {Middleware} from './Middleware';
export {Request, IParameterMap} from './Request';
export {Response} from './Response';
export {ResponseData} from './ResponseData';
export {Handler} from './Handler';
export {CORSMiddleware} from './CORSMiddleware';
export {ServiceProvider} from './ServiceProvider';
export {HTTPMethod} from './HTTPMethod';
export {ServiceResponse} from './ServiceResponse';
export {BackendAuthenticationMiddleware} from './BackendAuthenticationMiddleware';
 
// Interfaces
export {ILogEvent} from './ILogEvent';
export {IJWTVerifyOptions} from './IJWTVerifyOptions';
export {IHandler} from './IHandler';
export {IRequestResponse} from './IRequestResponse';
export {IConfig} from './IConfig';
export {IFormData} from './IFormData';
export {IDatabaseConnection} from './IDatabaseConnection';
export {IServiceHeaders} from './IServiceHeaders';
export {IQueryParameters} from './IQueryParameters';
 
// Token
export {Token} from './Token';
export {TokenManager} from './TokenManager';
export {AuthenticationMiddleware} from './AuthenticationMiddleware';
 
// Utils
export {ExitCode} from './ExitCode';
export {LogEvent} from './LogEvent';
export {Logger} from './Logger';
export {LogSeverity} from './LogSeverity';
export {LoggerMiddleware} from './LoggerMiddleware';
export {DumpStream} from './DumpStream';
 
// Third-party
import * as formidable from 'formidable';
export {formidable};