@bitblit/ratchet-epsilon-common 4.0.184-alpha → 4.0.200-alpha

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.
@@ -1,7 +1,7 @@
1
1
  import { Context, ProxyResult } from 'aws-lambda';
2
+ import { LoggerOptions } from '@bitblit/ratchet-common';
2
3
  import { BackgroundEntry } from './background/background-entry.js';
3
4
  import { EpsilonInstance } from './epsilon-instance.js';
4
- import { LoggerOptions } from '@bitblit/ratchet-common';
5
5
  export declare class EpsilonGlobalHandler {
6
6
  private _epsilon;
7
7
  private static LOGGER_CONFIGURED;
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class BadGateway<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class BadGateway<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class BadRequestError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class BadRequestError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class ConflictError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class ConflictError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class ForbiddenError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class ForbiddenError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class GatewayTimeout<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class GatewayTimeout<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class MethodNotAllowedError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class MethodNotAllowedError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class MisconfiguredError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class MisconfiguredError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class NotFoundError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class NotFoundError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class NotImplemented<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class NotImplemented<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class RequestTimeoutError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class RequestTimeoutError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class ServiceUnavailable<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class ServiceUnavailable<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class TooManyRequestsError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class TooManyRequestsError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { EpsilonHttpError } from './epsilon-http-error.js';
2
- export declare class UnauthorizedError<T = void> extends EpsilonHttpError<T> {
1
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
2
+ export declare class UnauthorizedError<T = void> extends RestfulApiHttpError<T> {
3
3
  static readonly HTTP_CODE: number;
4
4
  constructor(...errors: string[]);
5
5
  }
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  import { ProxyResult } from 'aws-lambda';
3
- import { EpsilonHttpError } from './error/epsilon-http-error.js';
3
+ import { RestfulApiHttpError } from '@bitblit/ratchet-common';
4
4
  export declare class ResponseUtil {
5
5
  private constructor();
6
- static errorResponse<T>(err: EpsilonHttpError<T>): ProxyResult;
6
+ static errorResponse<T>(err: RestfulApiHttpError<T>): ProxyResult;
7
7
  static redirect(target: string, code?: number, queryParams?: any): ProxyResult;
8
8
  static coerceToProxyResult(input: any): ProxyResult;
9
9
  static applyGzipIfPossible(encodingHeader: string, proxyResult: ProxyResult): Promise<ProxyResult>;
package/lib/index.d.ts CHANGED
@@ -102,7 +102,6 @@ export * from './http/auth/web-token-manipulator.js';
102
102
  export * from './http/error/bad-gateway.js';
103
103
  export * from './http/error/bad-request-error.js';
104
104
  export * from './http/error/conflict-error.js';
105
- export * from './http/error/epsilon-http-error.js';
106
105
  export * from './http/error/forbidden-error.js';
107
106
  export * from './http/error/gateway-timeout.js';
108
107
  export * from './http/error/method-not-allowed-error.js';