@roastery/terroir 0.0.1 → 0.0.2
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/application-exception-Ck-CRA9W.d.cts +9 -0
- package/dist/application-exception-mi3iXk8r.d.ts +9 -0
- package/dist/chunk-EBPUXUYY.js +28 -0
- package/dist/chunk-N6MCTGZD.js +6 -0
- package/dist/chunk-UEZ4EF5Z.js +7 -0
- package/dist/chunk-WY3PDSMZ.js +27 -0
- package/dist/chunk-YBMFDZEW.js +53 -0
- package/dist/domain-exception-2mxDRlhr.d.ts +9 -0
- package/dist/domain-exception-BJknDTC7.d.cts +9 -0
- package/dist/exceptions/application/index.cjs +133 -0
- package/dist/exceptions/application/index.d.cts +6 -0
- package/dist/exceptions/application/index.d.ts +6 -0
- package/dist/exceptions/application/index.js +68 -0
- package/dist/exceptions/application/jwt/index.cjs +73 -0
- package/dist/exceptions/application/jwt/index.d.cts +20 -0
- package/dist/exceptions/application/jwt/index.d.ts +20 -0
- package/dist/exceptions/application/jwt/index.js +11 -0
- package/dist/{index.cjs → exceptions/core/index.cjs} +9 -8
- package/dist/exceptions/core/index.d.cts +11 -0
- package/dist/exceptions/core/index.d.ts +11 -0
- package/dist/exceptions/core/index.js +7 -0
- package/dist/exceptions/core/types/index.cjs +18 -0
- package/dist/exceptions/core/types/index.d.cts +3 -0
- package/dist/exceptions/core/types/index.d.ts +3 -0
- package/dist/exceptions/core/types/index.js +0 -0
- package/dist/exceptions/domain/index.cjs +86 -0
- package/dist/exceptions/domain/index.d.cts +5 -0
- package/dist/exceptions/domain/index.d.ts +5 -0
- package/dist/exceptions/domain/index.js +41 -0
- package/dist/exceptions/index.cjs +74 -0
- package/dist/exceptions/index.d.cts +4 -0
- package/dist/exceptions/index.d.ts +4 -0
- package/dist/exceptions/index.js +45 -0
- package/dist/exceptions/infra/index.cjs +158 -0
- package/dist/exceptions/infra/index.d.cts +5 -0
- package/dist/exceptions/infra/index.d.ts +5 -0
- package/dist/exceptions/infra/index.js +107 -0
- package/dist/exceptions/models/index.cjs +55 -0
- package/dist/exceptions/models/index.d.cts +6 -0
- package/dist/exceptions/models/index.d.ts +6 -0
- package/dist/exceptions/models/index.js +12 -0
- package/dist/exceptions/symbols/index.cjs +32 -0
- package/dist/exceptions/symbols/index.d.cts +3 -0
- package/dist/exceptions/symbols/index.d.ts +3 -0
- package/dist/exceptions/symbols/index.js +6 -0
- package/dist/exceptions/types/index.cjs +18 -0
- package/dist/exceptions/types/index.d.cts +30 -0
- package/dist/exceptions/types/index.d.ts +30 -0
- package/dist/exceptions/types/index.js +0 -0
- package/dist/index-0ZqtQ0BA.d.ts +89 -0
- package/dist/index-B_h1N1CO.d.cts +55 -0
- package/dist/index-C4-MCapS.d.ts +40 -0
- package/dist/index-CNApJ5kV.d.ts +35 -0
- package/dist/index-DaS_UsEv.d.cts +89 -0
- package/dist/index-E6KvVxtW.d.ts +55 -0
- package/dist/index-YFuBgYBS.d.cts +35 -0
- package/dist/index-g4_PChJX.d.cts +40 -0
- package/dist/infra-exception-1PUIDeP4.d.ts +9 -0
- package/dist/infra-exception-Dm1D9yrN.d.cts +9 -0
- package/dist/schema/formats/index.cjs +55 -0
- package/dist/schema/formats/index.d.cts +2 -0
- package/dist/schema/formats/index.d.ts +2 -0
- package/dist/schema/formats/index.js +1 -0
- package/dist/schema/index.cjs +195 -0
- package/dist/schema/index.d.cts +19 -0
- package/dist/schema/index.d.ts +19 -0
- package/dist/schema/index.js +115 -0
- package/package.json +7 -8
- package/dist/index.d.cts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/exceptions/types/index.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CoreExceptionType } from '../core/types/index.cjs';
|
|
2
|
+
import { I as InternalErrors } from '../../index-g4_PChJX.cjs';
|
|
3
|
+
import { D as DomainExceptions } from '../../index-YFuBgYBS.cjs';
|
|
4
|
+
import { A as ApplicationExceptions } from '../../index-B_h1N1CO.cjs';
|
|
5
|
+
import { I as InfraExceptions } from '../../index-DaS_UsEv.cjs';
|
|
6
|
+
import '../core/index.cjs';
|
|
7
|
+
import '../symbols/index.cjs';
|
|
8
|
+
import '../../domain-exception-BJknDTC7.cjs';
|
|
9
|
+
import '../../application-exception-Ck-CRA9W.cjs';
|
|
10
|
+
import '../application/jwt/index.cjs';
|
|
11
|
+
import '../../infra-exception-Dm1D9yrN.cjs';
|
|
12
|
+
|
|
13
|
+
type CaffeineDomainExceptions = keyof typeof DomainExceptions;
|
|
14
|
+
|
|
15
|
+
type CaffeineApplicationExceptions = keyof typeof ApplicationExceptions;
|
|
16
|
+
|
|
17
|
+
type CaffeineInfraExceptions = keyof typeof InfraExceptions;
|
|
18
|
+
|
|
19
|
+
type CaffeineExceptionKeysByLayer = {
|
|
20
|
+
internal: keyof typeof InternalErrors;
|
|
21
|
+
domain: CaffeineDomainExceptions;
|
|
22
|
+
application: CaffeineApplicationExceptions;
|
|
23
|
+
infra: CaffeineInfraExceptions;
|
|
24
|
+
};
|
|
25
|
+
type CaffeineExceptionKeys<T extends CoreExceptionType> = CaffeineExceptionKeysByLayer[T];
|
|
26
|
+
type CaffeineExceptionRecords<T> = {
|
|
27
|
+
[Key in keyof CaffeineExceptionKeysByLayer]: Record<CaffeineExceptionKeysByLayer[Key], T>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { CaffeineExceptionKeys, CaffeineExceptionKeysByLayer, CaffeineExceptionRecords };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CoreExceptionType } from '../core/types/index.js';
|
|
2
|
+
import { I as InternalErrors } from '../../index-C4-MCapS.js';
|
|
3
|
+
import { D as DomainExceptions } from '../../index-CNApJ5kV.js';
|
|
4
|
+
import { A as ApplicationExceptions } from '../../index-E6KvVxtW.js';
|
|
5
|
+
import { I as InfraExceptions } from '../../index-0ZqtQ0BA.js';
|
|
6
|
+
import '../core/index.js';
|
|
7
|
+
import '../symbols/index.js';
|
|
8
|
+
import '../../domain-exception-2mxDRlhr.js';
|
|
9
|
+
import '../../application-exception-mi3iXk8r.js';
|
|
10
|
+
import '../application/jwt/index.js';
|
|
11
|
+
import '../../infra-exception-1PUIDeP4.js';
|
|
12
|
+
|
|
13
|
+
type CaffeineDomainExceptions = keyof typeof DomainExceptions;
|
|
14
|
+
|
|
15
|
+
type CaffeineApplicationExceptions = keyof typeof ApplicationExceptions;
|
|
16
|
+
|
|
17
|
+
type CaffeineInfraExceptions = keyof typeof InfraExceptions;
|
|
18
|
+
|
|
19
|
+
type CaffeineExceptionKeysByLayer = {
|
|
20
|
+
internal: keyof typeof InternalErrors;
|
|
21
|
+
domain: CaffeineDomainExceptions;
|
|
22
|
+
application: CaffeineApplicationExceptions;
|
|
23
|
+
infra: CaffeineInfraExceptions;
|
|
24
|
+
};
|
|
25
|
+
type CaffeineExceptionKeys<T extends CoreExceptionType> = CaffeineExceptionKeysByLayer[T];
|
|
26
|
+
type CaffeineExceptionRecords<T> = {
|
|
27
|
+
[Key in keyof CaffeineExceptionKeysByLayer]: Record<CaffeineExceptionKeysByLayer[Key], T>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { CaffeineExceptionKeys, CaffeineExceptionKeysByLayer, CaffeineExceptionRecords };
|
|
File without changes
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { I as InfraException } from './infra-exception-1PUIDeP4.js';
|
|
2
|
+
|
|
3
|
+
declare class CacheUnavailableException extends InfraException {
|
|
4
|
+
source: string;
|
|
5
|
+
message: string;
|
|
6
|
+
name: string;
|
|
7
|
+
constructor(source: string, message?: string);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class ConflictException extends InfraException {
|
|
11
|
+
source: string;
|
|
12
|
+
message: string;
|
|
13
|
+
name: string;
|
|
14
|
+
constructor(source: string, message?: string);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class OperationNotAllowedException extends InfraException {
|
|
18
|
+
source: string;
|
|
19
|
+
message: string;
|
|
20
|
+
name: string;
|
|
21
|
+
constructor(source: string, message?: string);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class DatabaseUnavailableException extends InfraException {
|
|
25
|
+
source: string;
|
|
26
|
+
message: string;
|
|
27
|
+
name: string;
|
|
28
|
+
constructor(source: string, message?: string);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class ResourceNotFoundException extends InfraException {
|
|
32
|
+
source: string;
|
|
33
|
+
message: string;
|
|
34
|
+
name: string;
|
|
35
|
+
constructor(source: string, message?: string);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class ForeignDependencyConstraintException extends InfraException {
|
|
39
|
+
source: string;
|
|
40
|
+
message: string;
|
|
41
|
+
name: string;
|
|
42
|
+
constructor(source: string, message?: string);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class UnexpectedCacheValueException extends InfraException {
|
|
46
|
+
readonly key: string;
|
|
47
|
+
readonly source: string;
|
|
48
|
+
readonly message: string;
|
|
49
|
+
readonly name = "Unexpected Cache Value Exception";
|
|
50
|
+
constructor(key: string, source: string, message?: string);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare class MissingPluginDependencyException extends InfraException {
|
|
54
|
+
source: string;
|
|
55
|
+
message: string;
|
|
56
|
+
name: string;
|
|
57
|
+
constructor(source: string, message?: string);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class InvalidEnvironmentException extends InfraException {
|
|
61
|
+
source: string;
|
|
62
|
+
message: string;
|
|
63
|
+
name: string;
|
|
64
|
+
constructor(source: string, message?: string);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type InfraExceptions_CacheUnavailableException = CacheUnavailableException;
|
|
68
|
+
declare const InfraExceptions_CacheUnavailableException: typeof CacheUnavailableException;
|
|
69
|
+
type InfraExceptions_ConflictException = ConflictException;
|
|
70
|
+
declare const InfraExceptions_ConflictException: typeof ConflictException;
|
|
71
|
+
type InfraExceptions_DatabaseUnavailableException = DatabaseUnavailableException;
|
|
72
|
+
declare const InfraExceptions_DatabaseUnavailableException: typeof DatabaseUnavailableException;
|
|
73
|
+
type InfraExceptions_ForeignDependencyConstraintException = ForeignDependencyConstraintException;
|
|
74
|
+
declare const InfraExceptions_ForeignDependencyConstraintException: typeof ForeignDependencyConstraintException;
|
|
75
|
+
type InfraExceptions_InvalidEnvironmentException = InvalidEnvironmentException;
|
|
76
|
+
declare const InfraExceptions_InvalidEnvironmentException: typeof InvalidEnvironmentException;
|
|
77
|
+
type InfraExceptions_MissingPluginDependencyException = MissingPluginDependencyException;
|
|
78
|
+
declare const InfraExceptions_MissingPluginDependencyException: typeof MissingPluginDependencyException;
|
|
79
|
+
type InfraExceptions_OperationNotAllowedException = OperationNotAllowedException;
|
|
80
|
+
declare const InfraExceptions_OperationNotAllowedException: typeof OperationNotAllowedException;
|
|
81
|
+
type InfraExceptions_ResourceNotFoundException = ResourceNotFoundException;
|
|
82
|
+
declare const InfraExceptions_ResourceNotFoundException: typeof ResourceNotFoundException;
|
|
83
|
+
type InfraExceptions_UnexpectedCacheValueException = UnexpectedCacheValueException;
|
|
84
|
+
declare const InfraExceptions_UnexpectedCacheValueException: typeof UnexpectedCacheValueException;
|
|
85
|
+
declare namespace InfraExceptions {
|
|
86
|
+
export { InfraExceptions_CacheUnavailableException as CacheUnavailableException, InfraExceptions_ConflictException as ConflictException, InfraExceptions_DatabaseUnavailableException as DatabaseUnavailableException, InfraExceptions_ForeignDependencyConstraintException as ForeignDependencyConstraintException, InfraExceptions_InvalidEnvironmentException as InvalidEnvironmentException, InfraExceptions_MissingPluginDependencyException as MissingPluginDependencyException, InfraExceptions_OperationNotAllowedException as OperationNotAllowedException, InfraExceptions_ResourceNotFoundException as ResourceNotFoundException, InfraExceptions_UnexpectedCacheValueException as UnexpectedCacheValueException };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { CacheUnavailableException as C, DatabaseUnavailableException as D, ForeignDependencyConstraintException as F, InfraExceptions as I, MissingPluginDependencyException as M, OperationNotAllowedException as O, ResourceNotFoundException as R, UnexpectedCacheValueException as U, ConflictException as a, InvalidEnvironmentException as b };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { A as ApplicationException } from './application-exception-Ck-CRA9W.cjs';
|
|
2
|
+
import { InvalidJWTException, UnableToSignPayloadException } from './exceptions/application/jwt/index.cjs';
|
|
3
|
+
|
|
4
|
+
declare class ResourceAlreadyExistsException extends ApplicationException {
|
|
5
|
+
source: string;
|
|
6
|
+
message: string;
|
|
7
|
+
readonly name = "Resource Already Exists";
|
|
8
|
+
constructor(source: string, message?: string);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class ResourceNotFoundException extends ApplicationException {
|
|
12
|
+
source: string;
|
|
13
|
+
message: string;
|
|
14
|
+
readonly name = "Resource Not Found";
|
|
15
|
+
constructor(source: string, message?: string);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class BadRequestException extends ApplicationException {
|
|
19
|
+
source: string;
|
|
20
|
+
message: string;
|
|
21
|
+
readonly name = "Bad Request";
|
|
22
|
+
constructor(source: string, message?: string);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class UnauthorizedException extends ApplicationException {
|
|
26
|
+
source: string;
|
|
27
|
+
message: string;
|
|
28
|
+
readonly name = "Unauthorized";
|
|
29
|
+
constructor(source: string, message?: string);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class InvalidOperationException extends ApplicationException {
|
|
33
|
+
source: string;
|
|
34
|
+
message: string;
|
|
35
|
+
readonly name = "Invalid Operation";
|
|
36
|
+
constructor(source: string, message?: string);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type ApplicationExceptions_BadRequestException = BadRequestException;
|
|
40
|
+
declare const ApplicationExceptions_BadRequestException: typeof BadRequestException;
|
|
41
|
+
declare const ApplicationExceptions_InvalidJWTException: typeof InvalidJWTException;
|
|
42
|
+
type ApplicationExceptions_InvalidOperationException = InvalidOperationException;
|
|
43
|
+
declare const ApplicationExceptions_InvalidOperationException: typeof InvalidOperationException;
|
|
44
|
+
type ApplicationExceptions_ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
45
|
+
declare const ApplicationExceptions_ResourceAlreadyExistsException: typeof ResourceAlreadyExistsException;
|
|
46
|
+
type ApplicationExceptions_ResourceNotFoundException = ResourceNotFoundException;
|
|
47
|
+
declare const ApplicationExceptions_ResourceNotFoundException: typeof ResourceNotFoundException;
|
|
48
|
+
declare const ApplicationExceptions_UnableToSignPayloadException: typeof UnableToSignPayloadException;
|
|
49
|
+
type ApplicationExceptions_UnauthorizedException = UnauthorizedException;
|
|
50
|
+
declare const ApplicationExceptions_UnauthorizedException: typeof UnauthorizedException;
|
|
51
|
+
declare namespace ApplicationExceptions {
|
|
52
|
+
export { ApplicationExceptions_BadRequestException as BadRequestException, ApplicationExceptions_InvalidJWTException as InvalidJWTException, ApplicationExceptions_InvalidOperationException as InvalidOperationException, ApplicationExceptions_ResourceAlreadyExistsException as ResourceAlreadyExistsException, ApplicationExceptions_ResourceNotFoundException as ResourceNotFoundException, ApplicationExceptions_UnableToSignPayloadException as UnableToSignPayloadException, ApplicationExceptions_UnauthorizedException as UnauthorizedException };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { ApplicationExceptions as A, BadRequestException as B, InvalidOperationException as I, ResourceAlreadyExistsException as R, UnauthorizedException as U, ResourceNotFoundException as a };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CoreException } from './exceptions/core/index.js';
|
|
2
|
+
import { CoreExceptionType } from './exceptions/core/types/index.js';
|
|
3
|
+
import { ExceptionLayer } from './exceptions/symbols/index.js';
|
|
4
|
+
|
|
5
|
+
declare class InvalidEntityData extends CoreException {
|
|
6
|
+
message: string;
|
|
7
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
8
|
+
name: string;
|
|
9
|
+
source: string;
|
|
10
|
+
constructor(message?: string);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class InvalidObjectValueException extends CoreException {
|
|
14
|
+
objectValueName: string;
|
|
15
|
+
message: string;
|
|
16
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
17
|
+
readonly name = "Invalid Object Value";
|
|
18
|
+
source: string;
|
|
19
|
+
constructor(objectValueName: string, message?: string);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class UnknownException extends CoreException {
|
|
23
|
+
message: string;
|
|
24
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
25
|
+
name: string;
|
|
26
|
+
source: string;
|
|
27
|
+
constructor(message?: string);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type InternalErrors_InvalidEntityData = InvalidEntityData;
|
|
31
|
+
declare const InternalErrors_InvalidEntityData: typeof InvalidEntityData;
|
|
32
|
+
type InternalErrors_InvalidObjectValueException = InvalidObjectValueException;
|
|
33
|
+
declare const InternalErrors_InvalidObjectValueException: typeof InvalidObjectValueException;
|
|
34
|
+
type InternalErrors_UnknownException = UnknownException;
|
|
35
|
+
declare const InternalErrors_UnknownException: typeof UnknownException;
|
|
36
|
+
declare namespace InternalErrors {
|
|
37
|
+
export { InternalErrors_InvalidEntityData as InvalidEntityData, InternalErrors_InvalidObjectValueException as InvalidObjectValueException, InternalErrors_UnknownException as UnknownException };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { InternalErrors as I, UnknownException as U, InvalidEntityData as a, InvalidObjectValueException as b };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { D as DomainException } from './domain-exception-2mxDRlhr.js';
|
|
2
|
+
|
|
3
|
+
declare class InvalidDomainDataException extends DomainException {
|
|
4
|
+
source: string;
|
|
5
|
+
message: string;
|
|
6
|
+
readonly name = "Invalid Domain Data";
|
|
7
|
+
constructor(source: string, message?: string);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class OperationFailedException extends DomainException {
|
|
11
|
+
source: string;
|
|
12
|
+
message: string;
|
|
13
|
+
readonly name = "Operation Failed";
|
|
14
|
+
constructor(source: string, message?: string);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class InvalidPropertyException extends DomainException {
|
|
18
|
+
readonly property: string;
|
|
19
|
+
readonly source: string;
|
|
20
|
+
readonly message: string;
|
|
21
|
+
readonly name = "Invalid Property";
|
|
22
|
+
constructor(property: string, source: string, message?: string);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type DomainExceptions_InvalidDomainDataException = InvalidDomainDataException;
|
|
26
|
+
declare const DomainExceptions_InvalidDomainDataException: typeof InvalidDomainDataException;
|
|
27
|
+
type DomainExceptions_InvalidPropertyException = InvalidPropertyException;
|
|
28
|
+
declare const DomainExceptions_InvalidPropertyException: typeof InvalidPropertyException;
|
|
29
|
+
type DomainExceptions_OperationFailedException = OperationFailedException;
|
|
30
|
+
declare const DomainExceptions_OperationFailedException: typeof OperationFailedException;
|
|
31
|
+
declare namespace DomainExceptions {
|
|
32
|
+
export { DomainExceptions_InvalidDomainDataException as InvalidDomainDataException, DomainExceptions_InvalidPropertyException as InvalidPropertyException, DomainExceptions_OperationFailedException as OperationFailedException };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { DomainExceptions as D, InvalidDomainDataException as I, OperationFailedException as O, InvalidPropertyException as a };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { I as InfraException } from './infra-exception-Dm1D9yrN.cjs';
|
|
2
|
+
|
|
3
|
+
declare class CacheUnavailableException extends InfraException {
|
|
4
|
+
source: string;
|
|
5
|
+
message: string;
|
|
6
|
+
name: string;
|
|
7
|
+
constructor(source: string, message?: string);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class ConflictException extends InfraException {
|
|
11
|
+
source: string;
|
|
12
|
+
message: string;
|
|
13
|
+
name: string;
|
|
14
|
+
constructor(source: string, message?: string);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class OperationNotAllowedException extends InfraException {
|
|
18
|
+
source: string;
|
|
19
|
+
message: string;
|
|
20
|
+
name: string;
|
|
21
|
+
constructor(source: string, message?: string);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class DatabaseUnavailableException extends InfraException {
|
|
25
|
+
source: string;
|
|
26
|
+
message: string;
|
|
27
|
+
name: string;
|
|
28
|
+
constructor(source: string, message?: string);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class ResourceNotFoundException extends InfraException {
|
|
32
|
+
source: string;
|
|
33
|
+
message: string;
|
|
34
|
+
name: string;
|
|
35
|
+
constructor(source: string, message?: string);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class ForeignDependencyConstraintException extends InfraException {
|
|
39
|
+
source: string;
|
|
40
|
+
message: string;
|
|
41
|
+
name: string;
|
|
42
|
+
constructor(source: string, message?: string);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class UnexpectedCacheValueException extends InfraException {
|
|
46
|
+
readonly key: string;
|
|
47
|
+
readonly source: string;
|
|
48
|
+
readonly message: string;
|
|
49
|
+
readonly name = "Unexpected Cache Value Exception";
|
|
50
|
+
constructor(key: string, source: string, message?: string);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare class MissingPluginDependencyException extends InfraException {
|
|
54
|
+
source: string;
|
|
55
|
+
message: string;
|
|
56
|
+
name: string;
|
|
57
|
+
constructor(source: string, message?: string);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class InvalidEnvironmentException extends InfraException {
|
|
61
|
+
source: string;
|
|
62
|
+
message: string;
|
|
63
|
+
name: string;
|
|
64
|
+
constructor(source: string, message?: string);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type InfraExceptions_CacheUnavailableException = CacheUnavailableException;
|
|
68
|
+
declare const InfraExceptions_CacheUnavailableException: typeof CacheUnavailableException;
|
|
69
|
+
type InfraExceptions_ConflictException = ConflictException;
|
|
70
|
+
declare const InfraExceptions_ConflictException: typeof ConflictException;
|
|
71
|
+
type InfraExceptions_DatabaseUnavailableException = DatabaseUnavailableException;
|
|
72
|
+
declare const InfraExceptions_DatabaseUnavailableException: typeof DatabaseUnavailableException;
|
|
73
|
+
type InfraExceptions_ForeignDependencyConstraintException = ForeignDependencyConstraintException;
|
|
74
|
+
declare const InfraExceptions_ForeignDependencyConstraintException: typeof ForeignDependencyConstraintException;
|
|
75
|
+
type InfraExceptions_InvalidEnvironmentException = InvalidEnvironmentException;
|
|
76
|
+
declare const InfraExceptions_InvalidEnvironmentException: typeof InvalidEnvironmentException;
|
|
77
|
+
type InfraExceptions_MissingPluginDependencyException = MissingPluginDependencyException;
|
|
78
|
+
declare const InfraExceptions_MissingPluginDependencyException: typeof MissingPluginDependencyException;
|
|
79
|
+
type InfraExceptions_OperationNotAllowedException = OperationNotAllowedException;
|
|
80
|
+
declare const InfraExceptions_OperationNotAllowedException: typeof OperationNotAllowedException;
|
|
81
|
+
type InfraExceptions_ResourceNotFoundException = ResourceNotFoundException;
|
|
82
|
+
declare const InfraExceptions_ResourceNotFoundException: typeof ResourceNotFoundException;
|
|
83
|
+
type InfraExceptions_UnexpectedCacheValueException = UnexpectedCacheValueException;
|
|
84
|
+
declare const InfraExceptions_UnexpectedCacheValueException: typeof UnexpectedCacheValueException;
|
|
85
|
+
declare namespace InfraExceptions {
|
|
86
|
+
export { InfraExceptions_CacheUnavailableException as CacheUnavailableException, InfraExceptions_ConflictException as ConflictException, InfraExceptions_DatabaseUnavailableException as DatabaseUnavailableException, InfraExceptions_ForeignDependencyConstraintException as ForeignDependencyConstraintException, InfraExceptions_InvalidEnvironmentException as InvalidEnvironmentException, InfraExceptions_MissingPluginDependencyException as MissingPluginDependencyException, InfraExceptions_OperationNotAllowedException as OperationNotAllowedException, InfraExceptions_ResourceNotFoundException as ResourceNotFoundException, InfraExceptions_UnexpectedCacheValueException as UnexpectedCacheValueException };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { CacheUnavailableException as C, DatabaseUnavailableException as D, ForeignDependencyConstraintException as F, InfraExceptions as I, MissingPluginDependencyException as M, OperationNotAllowedException as O, ResourceNotFoundException as R, UnexpectedCacheValueException as U, ConflictException as a, InvalidEnvironmentException as b };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { A as ApplicationException } from './application-exception-mi3iXk8r.js';
|
|
2
|
+
import { InvalidJWTException, UnableToSignPayloadException } from './exceptions/application/jwt/index.js';
|
|
3
|
+
|
|
4
|
+
declare class ResourceAlreadyExistsException extends ApplicationException {
|
|
5
|
+
source: string;
|
|
6
|
+
message: string;
|
|
7
|
+
readonly name = "Resource Already Exists";
|
|
8
|
+
constructor(source: string, message?: string);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class ResourceNotFoundException extends ApplicationException {
|
|
12
|
+
source: string;
|
|
13
|
+
message: string;
|
|
14
|
+
readonly name = "Resource Not Found";
|
|
15
|
+
constructor(source: string, message?: string);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class BadRequestException extends ApplicationException {
|
|
19
|
+
source: string;
|
|
20
|
+
message: string;
|
|
21
|
+
readonly name = "Bad Request";
|
|
22
|
+
constructor(source: string, message?: string);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class UnauthorizedException extends ApplicationException {
|
|
26
|
+
source: string;
|
|
27
|
+
message: string;
|
|
28
|
+
readonly name = "Unauthorized";
|
|
29
|
+
constructor(source: string, message?: string);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class InvalidOperationException extends ApplicationException {
|
|
33
|
+
source: string;
|
|
34
|
+
message: string;
|
|
35
|
+
readonly name = "Invalid Operation";
|
|
36
|
+
constructor(source: string, message?: string);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type ApplicationExceptions_BadRequestException = BadRequestException;
|
|
40
|
+
declare const ApplicationExceptions_BadRequestException: typeof BadRequestException;
|
|
41
|
+
declare const ApplicationExceptions_InvalidJWTException: typeof InvalidJWTException;
|
|
42
|
+
type ApplicationExceptions_InvalidOperationException = InvalidOperationException;
|
|
43
|
+
declare const ApplicationExceptions_InvalidOperationException: typeof InvalidOperationException;
|
|
44
|
+
type ApplicationExceptions_ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
45
|
+
declare const ApplicationExceptions_ResourceAlreadyExistsException: typeof ResourceAlreadyExistsException;
|
|
46
|
+
type ApplicationExceptions_ResourceNotFoundException = ResourceNotFoundException;
|
|
47
|
+
declare const ApplicationExceptions_ResourceNotFoundException: typeof ResourceNotFoundException;
|
|
48
|
+
declare const ApplicationExceptions_UnableToSignPayloadException: typeof UnableToSignPayloadException;
|
|
49
|
+
type ApplicationExceptions_UnauthorizedException = UnauthorizedException;
|
|
50
|
+
declare const ApplicationExceptions_UnauthorizedException: typeof UnauthorizedException;
|
|
51
|
+
declare namespace ApplicationExceptions {
|
|
52
|
+
export { ApplicationExceptions_BadRequestException as BadRequestException, ApplicationExceptions_InvalidJWTException as InvalidJWTException, ApplicationExceptions_InvalidOperationException as InvalidOperationException, ApplicationExceptions_ResourceAlreadyExistsException as ResourceAlreadyExistsException, ApplicationExceptions_ResourceNotFoundException as ResourceNotFoundException, ApplicationExceptions_UnableToSignPayloadException as UnableToSignPayloadException, ApplicationExceptions_UnauthorizedException as UnauthorizedException };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { ApplicationExceptions as A, BadRequestException as B, InvalidOperationException as I, ResourceAlreadyExistsException as R, UnauthorizedException as U, ResourceNotFoundException as a };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { D as DomainException } from './domain-exception-BJknDTC7.cjs';
|
|
2
|
+
|
|
3
|
+
declare class InvalidDomainDataException extends DomainException {
|
|
4
|
+
source: string;
|
|
5
|
+
message: string;
|
|
6
|
+
readonly name = "Invalid Domain Data";
|
|
7
|
+
constructor(source: string, message?: string);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class OperationFailedException extends DomainException {
|
|
11
|
+
source: string;
|
|
12
|
+
message: string;
|
|
13
|
+
readonly name = "Operation Failed";
|
|
14
|
+
constructor(source: string, message?: string);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class InvalidPropertyException extends DomainException {
|
|
18
|
+
readonly property: string;
|
|
19
|
+
readonly source: string;
|
|
20
|
+
readonly message: string;
|
|
21
|
+
readonly name = "Invalid Property";
|
|
22
|
+
constructor(property: string, source: string, message?: string);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type DomainExceptions_InvalidDomainDataException = InvalidDomainDataException;
|
|
26
|
+
declare const DomainExceptions_InvalidDomainDataException: typeof InvalidDomainDataException;
|
|
27
|
+
type DomainExceptions_InvalidPropertyException = InvalidPropertyException;
|
|
28
|
+
declare const DomainExceptions_InvalidPropertyException: typeof InvalidPropertyException;
|
|
29
|
+
type DomainExceptions_OperationFailedException = OperationFailedException;
|
|
30
|
+
declare const DomainExceptions_OperationFailedException: typeof OperationFailedException;
|
|
31
|
+
declare namespace DomainExceptions {
|
|
32
|
+
export { DomainExceptions_InvalidDomainDataException as InvalidDomainDataException, DomainExceptions_InvalidPropertyException as InvalidPropertyException, DomainExceptions_OperationFailedException as OperationFailedException };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { DomainExceptions as D, InvalidDomainDataException as I, OperationFailedException as O, InvalidPropertyException as a };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CoreException } from './exceptions/core/index.cjs';
|
|
2
|
+
import { CoreExceptionType } from './exceptions/core/types/index.cjs';
|
|
3
|
+
import { ExceptionLayer } from './exceptions/symbols/index.cjs';
|
|
4
|
+
|
|
5
|
+
declare class InvalidEntityData extends CoreException {
|
|
6
|
+
message: string;
|
|
7
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
8
|
+
name: string;
|
|
9
|
+
source: string;
|
|
10
|
+
constructor(message?: string);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class InvalidObjectValueException extends CoreException {
|
|
14
|
+
objectValueName: string;
|
|
15
|
+
message: string;
|
|
16
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
17
|
+
readonly name = "Invalid Object Value";
|
|
18
|
+
source: string;
|
|
19
|
+
constructor(objectValueName: string, message?: string);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class UnknownException extends CoreException {
|
|
23
|
+
message: string;
|
|
24
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
25
|
+
name: string;
|
|
26
|
+
source: string;
|
|
27
|
+
constructor(message?: string);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type InternalErrors_InvalidEntityData = InvalidEntityData;
|
|
31
|
+
declare const InternalErrors_InvalidEntityData: typeof InvalidEntityData;
|
|
32
|
+
type InternalErrors_InvalidObjectValueException = InvalidObjectValueException;
|
|
33
|
+
declare const InternalErrors_InvalidObjectValueException: typeof InvalidObjectValueException;
|
|
34
|
+
type InternalErrors_UnknownException = UnknownException;
|
|
35
|
+
declare const InternalErrors_UnknownException: typeof UnknownException;
|
|
36
|
+
declare namespace InternalErrors {
|
|
37
|
+
export { InternalErrors_InvalidEntityData as InvalidEntityData, InternalErrors_InvalidObjectValueException as InvalidObjectValueException, InternalErrors_UnknownException as UnknownException };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { InternalErrors as I, UnknownException as U, InvalidEntityData as a, InvalidObjectValueException as b };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExceptionLayer } from './exceptions/symbols/index.js';
|
|
2
|
+
import { CoreException } from './exceptions/core/index.js';
|
|
3
|
+
import { CoreExceptionType } from './exceptions/core/types/index.js';
|
|
4
|
+
|
|
5
|
+
declare abstract class InfraException extends CoreException {
|
|
6
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { InfraException as I };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExceptionLayer } from './exceptions/symbols/index.cjs';
|
|
2
|
+
import { CoreException } from './exceptions/core/index.cjs';
|
|
3
|
+
import { CoreExceptionType } from './exceptions/core/types/index.cjs';
|
|
4
|
+
|
|
5
|
+
declare abstract class InfraException extends CoreException {
|
|
6
|
+
readonly [ExceptionLayer]: CoreExceptionType;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { InfraException as I };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// src/schema/formats/date-time.ts
|
|
4
|
+
var import_typebox = require("@sinclair/typebox");
|
|
5
|
+
import_typebox.FormatRegistry.Set("date-time", (value) => {
|
|
6
|
+
return !Number.isNaN(Date.parse(value));
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// src/schema/formats/url.ts
|
|
10
|
+
var import_typebox2 = require("@sinclair/typebox");
|
|
11
|
+
import_typebox2.FormatRegistry.Set("url", (value) => {
|
|
12
|
+
try {
|
|
13
|
+
const url = new URL(value);
|
|
14
|
+
return url.hostname.includes(".");
|
|
15
|
+
} catch {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
// src/schema/formats/uuid.ts
|
|
21
|
+
var import_typebox3 = require("@sinclair/typebox");
|
|
22
|
+
var import_uuid = require("uuid");
|
|
23
|
+
import_typebox3.FormatRegistry.Set("uuid", (value) => (0, import_uuid.validate)(value) && (0, import_uuid.version)(value) === 7);
|
|
24
|
+
|
|
25
|
+
// src/schema/formats/slug.ts
|
|
26
|
+
var import_typebox4 = require("@sinclair/typebox");
|
|
27
|
+
var slugPattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
28
|
+
import_typebox4.FormatRegistry.Set("slug", (value) => slugPattern.test(value));
|
|
29
|
+
|
|
30
|
+
// src/schema/formats/email.ts
|
|
31
|
+
var import_typebox5 = require("@sinclair/typebox");
|
|
32
|
+
var emailPattern = /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/i;
|
|
33
|
+
import_typebox5.FormatRegistry.Set("email", (value) => emailPattern.test(value));
|
|
34
|
+
|
|
35
|
+
// src/schema/formats/json.ts
|
|
36
|
+
var import_typebox6 = require("@sinclair/typebox");
|
|
37
|
+
import_typebox6.FormatRegistry.Set("json", (value) => {
|
|
38
|
+
try {
|
|
39
|
+
JSON.parse(value);
|
|
40
|
+
return true;
|
|
41
|
+
} catch {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// src/schema/formats/simple-url.ts
|
|
47
|
+
var import_typebox7 = require("@sinclair/typebox");
|
|
48
|
+
import_typebox7.FormatRegistry.Set("simple-url", (value) => {
|
|
49
|
+
try {
|
|
50
|
+
new URL(value);
|
|
51
|
+
return true;
|
|
52
|
+
} catch {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../chunk-YBMFDZEW.js";
|