@hemia/common 0.0.15 → 0.0.16
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.
package/dist/hemia-common.esm.js
CHANGED
|
@@ -466,6 +466,61 @@ class GatewayTimeoutError extends HttpError {
|
|
|
466
466
|
super(message, 504, error);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
+
class TooManyRequestsError extends HttpError {
|
|
470
|
+
constructor(message = 'Too Many Requests', error) {
|
|
471
|
+
super(message, 429, error);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
class MethodNotAllowedError extends HttpError {
|
|
475
|
+
constructor(message = 'Method Not Allowed', error) {
|
|
476
|
+
super(message, 405, error);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
class NotAcceptableError extends HttpError {
|
|
480
|
+
constructor(message = 'Not Acceptable', error) {
|
|
481
|
+
super(message, 406, error);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
class ProxyAuthenticationRequiredError extends HttpError {
|
|
485
|
+
constructor(message = 'Proxy Authentication Required', error) {
|
|
486
|
+
super(message, 407, error);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
class RequestTimeoutError extends HttpError {
|
|
490
|
+
constructor(message = 'Request Timeout', error) {
|
|
491
|
+
super(message, 408, error);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
class UnsupportedMediaTypeError extends HttpError {
|
|
495
|
+
constructor(message = 'Unsupported Media Type', error) {
|
|
496
|
+
super(message, 415, error);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
class PreconditionFailedError extends HttpError {
|
|
500
|
+
constructor(message = 'Precondition Failed', error) {
|
|
501
|
+
super(message, 412, error);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
class PayloadTooLargeError extends HttpError {
|
|
505
|
+
constructor(message = 'Payload Too Large', error) {
|
|
506
|
+
super(message, 413, error);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
class URITooLongError extends HttpError {
|
|
510
|
+
constructor(message = 'URI Too Long', error) {
|
|
511
|
+
super(message, 414, error);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
class NotImplementedError extends HttpError {
|
|
515
|
+
constructor(message = 'Not Implemented', error) {
|
|
516
|
+
super(message, 501, error);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
class BadGatewayError extends HttpError {
|
|
520
|
+
constructor(message = 'Bad Gateway', error) {
|
|
521
|
+
super(message, 502, error);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
469
524
|
class CustomHttpError extends HttpError {
|
|
470
525
|
constructor(message, statusCode, error) {
|
|
471
526
|
super(message, statusCode, error);
|
|
@@ -1047,4 +1102,4 @@ class ApiResponse {
|
|
|
1047
1102
|
}
|
|
1048
1103
|
}
|
|
1049
1104
|
|
|
1050
|
-
export { AllowAny, ApiKey, ApiResponse, BackupError, BadRequestError, Body, BusinessRuleViolationError, ConfigurationError, ConflictError, ConnectionError, Controller, ControllerRegistry, Cookies, Custom, CustomHttpError, DataConflictError, DataIntegrityError, DataMigrationError, DataNotFoundError, DataValidationError, DefaultValuePipe, Delete, DependencyError, DomainError, DuplicateEntityError, EntityNotFoundError, FeatureFlag, File, Files, ForbiddenError, GatewayTimeoutError, Get, Head, Header, Headers, Host, HttpError, HttpErrorWithDetails, HttpMethod, IndexingError, InfraAuthenticationError, InfraAuthorizationError, InfraCacheConnectionError, InfraConfigurationError, InfraDataDeserializationError, InfraDataSerializationError, InfraDatabaseConnectionError, InfraExternalServiceError, InfraMessageQueueError, InfraNetworkError, InfraServiceUnavailableError, InfraTimeoutError, InfrastructureError, InternalServerError, Ip, IpWhitelist, Locale, METADATA_KEYS, ManualRegister, Module, Next, NotFoundError, OperationNotAllowedError, Options, Owner, Param, ParamType, ParseArrayPipe, ParseBoolPipe, ParseDatePipe, ParseEnumPipe, ParseFilePipe, ParseFloatPipe, ParseIntPipe, ParseUUIDPipe, Patch, Permissions, PersistenceError, PolicyBased, Post, Public, Put, Query, QueryExecutionError, RateLimit, Redirect, Repository, Req, ReqAuth, ReqContext, ReqPermissions, ReqUser, Request, Res, ResourceLimitError, ResourceLimitExceededError, Response, RestoreError, Roles, SchemaMismatchError, Scopes, Serialize, Service, ServiceUnavailableError, Session, SetMetadata, Throttle, TimeoutError, TransactionError, Transform, UnauthorizedError, UnprocessableEntityError, UseGuards, UseInterceptors, UsePipes, Validate, ValidationError, ValidationPipe, isRedirectResponse };
|
|
1105
|
+
export { AllowAny, ApiKey, ApiResponse, BackupError, BadGatewayError, BadRequestError, Body, BusinessRuleViolationError, ConfigurationError, ConflictError, ConnectionError, Controller, ControllerRegistry, Cookies, Custom, CustomHttpError, DataConflictError, DataIntegrityError, DataMigrationError, DataNotFoundError, DataValidationError, DefaultValuePipe, Delete, DependencyError, DomainError, DuplicateEntityError, EntityNotFoundError, FeatureFlag, File, Files, ForbiddenError, GatewayTimeoutError, Get, Head, Header, Headers, Host, HttpError, HttpErrorWithDetails, HttpMethod, IndexingError, InfraAuthenticationError, InfraAuthorizationError, InfraCacheConnectionError, InfraConfigurationError, InfraDataDeserializationError, InfraDataSerializationError, InfraDatabaseConnectionError, InfraExternalServiceError, InfraMessageQueueError, InfraNetworkError, InfraServiceUnavailableError, InfraTimeoutError, InfrastructureError, InternalServerError, Ip, IpWhitelist, Locale, METADATA_KEYS, ManualRegister, MethodNotAllowedError, Module, Next, NotAcceptableError, NotFoundError, NotImplementedError, OperationNotAllowedError, Options, Owner, Param, ParamType, ParseArrayPipe, ParseBoolPipe, ParseDatePipe, ParseEnumPipe, ParseFilePipe, ParseFloatPipe, ParseIntPipe, ParseUUIDPipe, Patch, PayloadTooLargeError, Permissions, PersistenceError, PolicyBased, Post, PreconditionFailedError, ProxyAuthenticationRequiredError, Public, Put, Query, QueryExecutionError, RateLimit, Redirect, Repository, Req, ReqAuth, ReqContext, ReqPermissions, ReqUser, Request, RequestTimeoutError, Res, ResourceLimitError, ResourceLimitExceededError, Response, RestoreError, Roles, SchemaMismatchError, Scopes, Serialize, Service, ServiceUnavailableError, Session, SetMetadata, Throttle, TimeoutError, TooManyRequestsError, TransactionError, Transform, URITooLongError, UnauthorizedError, UnprocessableEntityError, UnsupportedMediaTypeError, UseGuards, UseInterceptors, UsePipes, Validate, ValidationError, ValidationPipe, isRedirectResponse };
|
package/dist/hemia-common.js
CHANGED
|
@@ -468,6 +468,61 @@ class GatewayTimeoutError extends HttpError {
|
|
|
468
468
|
super(message, 504, error);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
+
class TooManyRequestsError extends HttpError {
|
|
472
|
+
constructor(message = 'Too Many Requests', error) {
|
|
473
|
+
super(message, 429, error);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
class MethodNotAllowedError extends HttpError {
|
|
477
|
+
constructor(message = 'Method Not Allowed', error) {
|
|
478
|
+
super(message, 405, error);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
class NotAcceptableError extends HttpError {
|
|
482
|
+
constructor(message = 'Not Acceptable', error) {
|
|
483
|
+
super(message, 406, error);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
class ProxyAuthenticationRequiredError extends HttpError {
|
|
487
|
+
constructor(message = 'Proxy Authentication Required', error) {
|
|
488
|
+
super(message, 407, error);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
class RequestTimeoutError extends HttpError {
|
|
492
|
+
constructor(message = 'Request Timeout', error) {
|
|
493
|
+
super(message, 408, error);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
class UnsupportedMediaTypeError extends HttpError {
|
|
497
|
+
constructor(message = 'Unsupported Media Type', error) {
|
|
498
|
+
super(message, 415, error);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
class PreconditionFailedError extends HttpError {
|
|
502
|
+
constructor(message = 'Precondition Failed', error) {
|
|
503
|
+
super(message, 412, error);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
class PayloadTooLargeError extends HttpError {
|
|
507
|
+
constructor(message = 'Payload Too Large', error) {
|
|
508
|
+
super(message, 413, error);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
class URITooLongError extends HttpError {
|
|
512
|
+
constructor(message = 'URI Too Long', error) {
|
|
513
|
+
super(message, 414, error);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
class NotImplementedError extends HttpError {
|
|
517
|
+
constructor(message = 'Not Implemented', error) {
|
|
518
|
+
super(message, 501, error);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
class BadGatewayError extends HttpError {
|
|
522
|
+
constructor(message = 'Bad Gateway', error) {
|
|
523
|
+
super(message, 502, error);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
471
526
|
class CustomHttpError extends HttpError {
|
|
472
527
|
constructor(message, statusCode, error) {
|
|
473
528
|
super(message, statusCode, error);
|
|
@@ -1053,6 +1108,7 @@ exports.AllowAny = AllowAny;
|
|
|
1053
1108
|
exports.ApiKey = ApiKey;
|
|
1054
1109
|
exports.ApiResponse = ApiResponse;
|
|
1055
1110
|
exports.BackupError = BackupError;
|
|
1111
|
+
exports.BadGatewayError = BadGatewayError;
|
|
1056
1112
|
exports.BadRequestError = BadRequestError;
|
|
1057
1113
|
exports.Body = Body;
|
|
1058
1114
|
exports.BusinessRuleViolationError = BusinessRuleViolationError;
|
|
@@ -1107,9 +1163,12 @@ exports.IpWhitelist = IpWhitelist;
|
|
|
1107
1163
|
exports.Locale = Locale;
|
|
1108
1164
|
exports.METADATA_KEYS = METADATA_KEYS;
|
|
1109
1165
|
exports.ManualRegister = ManualRegister;
|
|
1166
|
+
exports.MethodNotAllowedError = MethodNotAllowedError;
|
|
1110
1167
|
exports.Module = Module;
|
|
1111
1168
|
exports.Next = Next;
|
|
1169
|
+
exports.NotAcceptableError = NotAcceptableError;
|
|
1112
1170
|
exports.NotFoundError = NotFoundError;
|
|
1171
|
+
exports.NotImplementedError = NotImplementedError;
|
|
1113
1172
|
exports.OperationNotAllowedError = OperationNotAllowedError;
|
|
1114
1173
|
exports.Options = Options;
|
|
1115
1174
|
exports.Owner = Owner;
|
|
@@ -1123,10 +1182,13 @@ exports.ParseFloatPipe = ParseFloatPipe;
|
|
|
1123
1182
|
exports.ParseIntPipe = ParseIntPipe;
|
|
1124
1183
|
exports.ParseUUIDPipe = ParseUUIDPipe;
|
|
1125
1184
|
exports.Patch = Patch;
|
|
1185
|
+
exports.PayloadTooLargeError = PayloadTooLargeError;
|
|
1126
1186
|
exports.Permissions = Permissions;
|
|
1127
1187
|
exports.PersistenceError = PersistenceError;
|
|
1128
1188
|
exports.PolicyBased = PolicyBased;
|
|
1129
1189
|
exports.Post = Post;
|
|
1190
|
+
exports.PreconditionFailedError = PreconditionFailedError;
|
|
1191
|
+
exports.ProxyAuthenticationRequiredError = ProxyAuthenticationRequiredError;
|
|
1130
1192
|
exports.Public = Public;
|
|
1131
1193
|
exports.Put = Put;
|
|
1132
1194
|
exports.Query = Query;
|
|
@@ -1140,6 +1202,7 @@ exports.ReqContext = ReqContext;
|
|
|
1140
1202
|
exports.ReqPermissions = ReqPermissions;
|
|
1141
1203
|
exports.ReqUser = ReqUser;
|
|
1142
1204
|
exports.Request = Request;
|
|
1205
|
+
exports.RequestTimeoutError = RequestTimeoutError;
|
|
1143
1206
|
exports.Res = Res;
|
|
1144
1207
|
exports.ResourceLimitError = ResourceLimitError;
|
|
1145
1208
|
exports.ResourceLimitExceededError = ResourceLimitExceededError;
|
|
@@ -1155,10 +1218,13 @@ exports.Session = Session;
|
|
|
1155
1218
|
exports.SetMetadata = SetMetadata;
|
|
1156
1219
|
exports.Throttle = Throttle;
|
|
1157
1220
|
exports.TimeoutError = TimeoutError;
|
|
1221
|
+
exports.TooManyRequestsError = TooManyRequestsError;
|
|
1158
1222
|
exports.TransactionError = TransactionError;
|
|
1159
1223
|
exports.Transform = Transform;
|
|
1224
|
+
exports.URITooLongError = URITooLongError;
|
|
1160
1225
|
exports.UnauthorizedError = UnauthorizedError;
|
|
1161
1226
|
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
1227
|
+
exports.UnsupportedMediaTypeError = UnsupportedMediaTypeError;
|
|
1162
1228
|
exports.UseGuards = UseGuards;
|
|
1163
1229
|
exports.UseInterceptors = UseInterceptors;
|
|
1164
1230
|
exports.UsePipes = UsePipes;
|
|
@@ -31,6 +31,39 @@ export declare class ServiceUnavailableError extends HttpError {
|
|
|
31
31
|
export declare class GatewayTimeoutError extends HttpError {
|
|
32
32
|
constructor(message?: string, error?: string);
|
|
33
33
|
}
|
|
34
|
+
export declare class TooManyRequestsError extends HttpError {
|
|
35
|
+
constructor(message?: string, error?: string);
|
|
36
|
+
}
|
|
37
|
+
export declare class MethodNotAllowedError extends HttpError {
|
|
38
|
+
constructor(message?: string, error?: string);
|
|
39
|
+
}
|
|
40
|
+
export declare class NotAcceptableError extends HttpError {
|
|
41
|
+
constructor(message?: string, error?: string);
|
|
42
|
+
}
|
|
43
|
+
export declare class ProxyAuthenticationRequiredError extends HttpError {
|
|
44
|
+
constructor(message?: string, error?: string);
|
|
45
|
+
}
|
|
46
|
+
export declare class RequestTimeoutError extends HttpError {
|
|
47
|
+
constructor(message?: string, error?: string);
|
|
48
|
+
}
|
|
49
|
+
export declare class UnsupportedMediaTypeError extends HttpError {
|
|
50
|
+
constructor(message?: string, error?: string);
|
|
51
|
+
}
|
|
52
|
+
export declare class PreconditionFailedError extends HttpError {
|
|
53
|
+
constructor(message?: string, error?: string);
|
|
54
|
+
}
|
|
55
|
+
export declare class PayloadTooLargeError extends HttpError {
|
|
56
|
+
constructor(message?: string, error?: string);
|
|
57
|
+
}
|
|
58
|
+
export declare class URITooLongError extends HttpError {
|
|
59
|
+
constructor(message?: string, error?: string);
|
|
60
|
+
}
|
|
61
|
+
export declare class NotImplementedError extends HttpError {
|
|
62
|
+
constructor(message?: string, error?: string);
|
|
63
|
+
}
|
|
64
|
+
export declare class BadGatewayError extends HttpError {
|
|
65
|
+
constructor(message?: string, error?: string);
|
|
66
|
+
}
|
|
34
67
|
export declare class CustomHttpError extends HttpError {
|
|
35
68
|
constructor(message: string, statusCode: number, error?: string);
|
|
36
69
|
}
|