@roastery/terroir 0.0.1 → 0.0.3

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.
Files changed (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/dist/application-exception-Ck-CRA9W.d.cts +9 -0
  4. package/dist/application-exception-mi3iXk8r.d.ts +9 -0
  5. package/dist/chunk-EBPUXUYY.js +28 -0
  6. package/dist/chunk-N6MCTGZD.js +6 -0
  7. package/dist/chunk-UEZ4EF5Z.js +7 -0
  8. package/dist/chunk-WY3PDSMZ.js +27 -0
  9. package/dist/chunk-YBMFDZEW.js +53 -0
  10. package/dist/domain-exception-2mxDRlhr.d.ts +9 -0
  11. package/dist/domain-exception-BJknDTC7.d.cts +9 -0
  12. package/dist/exceptions/application/index.cjs +133 -0
  13. package/dist/exceptions/application/index.d.cts +6 -0
  14. package/dist/exceptions/application/index.d.ts +6 -0
  15. package/dist/exceptions/application/index.js +68 -0
  16. package/dist/exceptions/application/jwt/index.cjs +73 -0
  17. package/dist/exceptions/application/jwt/index.d.cts +20 -0
  18. package/dist/exceptions/application/jwt/index.d.ts +20 -0
  19. package/dist/exceptions/application/jwt/index.js +11 -0
  20. package/dist/{index.cjs → exceptions/core/index.cjs} +9 -8
  21. package/dist/exceptions/core/index.d.cts +11 -0
  22. package/dist/exceptions/core/index.d.ts +11 -0
  23. package/dist/exceptions/core/index.js +7 -0
  24. package/dist/exceptions/core/types/index.cjs +18 -0
  25. package/dist/exceptions/core/types/index.d.cts +3 -0
  26. package/dist/exceptions/core/types/index.d.ts +3 -0
  27. package/dist/exceptions/core/types/index.js +0 -0
  28. package/dist/exceptions/domain/index.cjs +86 -0
  29. package/dist/exceptions/domain/index.d.cts +5 -0
  30. package/dist/exceptions/domain/index.d.ts +5 -0
  31. package/dist/exceptions/domain/index.js +41 -0
  32. package/dist/exceptions/index.cjs +74 -0
  33. package/dist/exceptions/index.d.cts +4 -0
  34. package/dist/exceptions/index.d.ts +4 -0
  35. package/dist/exceptions/index.js +45 -0
  36. package/dist/exceptions/infra/index.cjs +158 -0
  37. package/dist/exceptions/infra/index.d.cts +5 -0
  38. package/dist/exceptions/infra/index.d.ts +5 -0
  39. package/dist/exceptions/infra/index.js +107 -0
  40. package/dist/exceptions/models/index.cjs +55 -0
  41. package/dist/exceptions/models/index.d.cts +6 -0
  42. package/dist/exceptions/models/index.d.ts +6 -0
  43. package/dist/exceptions/models/index.js +12 -0
  44. package/dist/exceptions/symbols/index.cjs +32 -0
  45. package/dist/exceptions/symbols/index.d.cts +3 -0
  46. package/dist/exceptions/symbols/index.d.ts +3 -0
  47. package/dist/exceptions/symbols/index.js +6 -0
  48. package/dist/exceptions/types/index.cjs +18 -0
  49. package/dist/exceptions/types/index.d.cts +30 -0
  50. package/dist/exceptions/types/index.d.ts +30 -0
  51. package/dist/exceptions/types/index.js +0 -0
  52. package/dist/index-0ZqtQ0BA.d.ts +89 -0
  53. package/dist/index-B_h1N1CO.d.cts +55 -0
  54. package/dist/index-C4-MCapS.d.ts +40 -0
  55. package/dist/index-CNApJ5kV.d.ts +35 -0
  56. package/dist/index-DaS_UsEv.d.cts +89 -0
  57. package/dist/index-E6KvVxtW.d.ts +55 -0
  58. package/dist/index-YFuBgYBS.d.cts +35 -0
  59. package/dist/index-g4_PChJX.d.cts +40 -0
  60. package/dist/infra-exception-1PUIDeP4.d.ts +9 -0
  61. package/dist/infra-exception-Dm1D9yrN.d.cts +9 -0
  62. package/dist/schema/formats/index.cjs +55 -0
  63. package/dist/schema/formats/index.d.cts +2 -0
  64. package/dist/schema/formats/index.d.ts +2 -0
  65. package/dist/schema/formats/index.js +1 -0
  66. package/dist/schema/index.cjs +193 -0
  67. package/dist/schema/index.d.cts +19 -0
  68. package/dist/schema/index.d.ts +19 -0
  69. package/dist/schema/index.js +113 -0
  70. package/package.json +61 -57
  71. package/dist/index.d.cts +0 -3
  72. package/dist/index.d.ts +0 -3
  73. package/dist/index.js +0 -5
@@ -0,0 +1,107 @@
1
+ import {
2
+ InfraException
3
+ } from "../../chunk-WY3PDSMZ.js";
4
+ import "../../chunk-UEZ4EF5Z.js";
5
+ import "../../chunk-N6MCTGZD.js";
6
+
7
+ // src/exceptions/infra/cache-unavailable.exception.ts
8
+ var CacheUnavailableException = class extends InfraException {
9
+ constructor(source, message = "The cache is currently unavailable.") {
10
+ super(message);
11
+ this.source = source;
12
+ this.message = message;
13
+ }
14
+ name = "Cache Unavailable Exception";
15
+ };
16
+
17
+ // src/exceptions/infra/conflict.exception.ts
18
+ var ConflictException = class extends InfraException {
19
+ constructor(source, message = "A conflict occurred in the database.") {
20
+ super(message);
21
+ this.source = source;
22
+ this.message = message;
23
+ }
24
+ name = "Conflict Exception";
25
+ };
26
+
27
+ // src/exceptions/infra/operation-not-allowed.exception.ts
28
+ var OperationNotAllowedException = class extends InfraException {
29
+ constructor(source, message = "The operation is not allowed.") {
30
+ super(message);
31
+ this.source = source;
32
+ this.message = message;
33
+ }
34
+ name = "Operation Not Allowed Exception";
35
+ };
36
+
37
+ // src/exceptions/infra/database-unavailable.exception.ts
38
+ var DatabaseUnavailableException = class extends InfraException {
39
+ constructor(source, message = "The database is currently unavailable.") {
40
+ super(message);
41
+ this.source = source;
42
+ this.message = message;
43
+ }
44
+ name = "Database Unavailable Exception";
45
+ };
46
+
47
+ // src/exceptions/infra/resource-not-found.exception.ts
48
+ var ResourceNotFoundException = class extends InfraException {
49
+ constructor(source, message = "The resource was not found.") {
50
+ super(message);
51
+ this.source = source;
52
+ this.message = message;
53
+ }
54
+ name = "Resource Not Found Exception";
55
+ };
56
+
57
+ // src/exceptions/infra/foreign-dependency-constraint.exception.ts
58
+ var ForeignDependencyConstraintException = class extends InfraException {
59
+ constructor(source, message = `It was not possible to remove the ${source} resource due to its usefulness in other domains.`) {
60
+ super(message);
61
+ this.source = source;
62
+ this.message = message;
63
+ }
64
+ name = "Foreign Dependency Constraint Exception";
65
+ };
66
+
67
+ // src/exceptions/infra/unexpected-cache-value.exception.ts
68
+ var UnexpectedCacheValueException = class extends InfraException {
69
+ constructor(key, source, message = `The value from cache for key '${key}' was unexpected.`) {
70
+ super(message);
71
+ this.key = key;
72
+ this.source = source;
73
+ this.message = message;
74
+ }
75
+ name = "Unexpected Cache Value Exception";
76
+ };
77
+
78
+ // src/exceptions/infra/missing-plugin-dependency.exception.ts
79
+ var MissingPluginDependencyException = class extends InfraException {
80
+ constructor(source, message = `The dependencies of the "${source}" plugin are not satisfied.`) {
81
+ super(message);
82
+ this.source = source;
83
+ this.message = message;
84
+ }
85
+ name = "Missing Plugin Dependency Exception";
86
+ };
87
+
88
+ // src/exceptions/infra/invalid-environment.exception.ts
89
+ var InvalidEnvironmentException = class extends InfraException {
90
+ constructor(source, message = "The required environment variables are invalid or missing.") {
91
+ super(message);
92
+ this.source = source;
93
+ this.message = message;
94
+ }
95
+ name = "Invalid Environment Exception";
96
+ };
97
+ export {
98
+ CacheUnavailableException,
99
+ ConflictException,
100
+ DatabaseUnavailableException,
101
+ ForeignDependencyConstraintException,
102
+ InvalidEnvironmentException,
103
+ MissingPluginDependencyException,
104
+ OperationNotAllowedException,
105
+ ResourceNotFoundException,
106
+ UnexpectedCacheValueException
107
+ };
@@ -0,0 +1,55 @@
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 __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/exceptions/models/index.ts
21
+ var models_exports = {};
22
+ __export(models_exports, {
23
+ ApplicationException: () => ApplicationException,
24
+ DomainException: () => DomainException,
25
+ InfraException: () => InfraException
26
+ });
27
+ module.exports = __toCommonJS(models_exports);
28
+
29
+ // src/exceptions/symbols/exception-layer.ts
30
+ var ExceptionLayer = /* @__PURE__ */ Symbol("exception:layer");
31
+
32
+ // src/exceptions/core/core-exception.ts
33
+ var CoreException = class extends Error {
34
+ };
35
+
36
+ // src/exceptions/models/domain-exception.ts
37
+ var DomainException = class extends CoreException {
38
+ [ExceptionLayer] = "domain";
39
+ };
40
+
41
+ // src/exceptions/models/infra-exception.ts
42
+ var InfraException = class extends CoreException {
43
+ [ExceptionLayer] = "infra";
44
+ };
45
+
46
+ // src/exceptions/models/application-exception.ts
47
+ var ApplicationException = class extends CoreException {
48
+ [ExceptionLayer] = "application";
49
+ };
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ ApplicationException,
53
+ DomainException,
54
+ InfraException
55
+ });
@@ -0,0 +1,6 @@
1
+ export { D as DomainException } from '../../domain-exception-BJknDTC7.cjs';
2
+ export { I as InfraException } from '../../infra-exception-Dm1D9yrN.cjs';
3
+ export { A as ApplicationException } from '../../application-exception-Ck-CRA9W.cjs';
4
+ import '../symbols/index.cjs';
5
+ import '../core/index.cjs';
6
+ import '../core/types/index.cjs';
@@ -0,0 +1,6 @@
1
+ export { D as DomainException } from '../../domain-exception-2mxDRlhr.js';
2
+ export { I as InfraException } from '../../infra-exception-1PUIDeP4.js';
3
+ export { A as ApplicationException } from '../../application-exception-mi3iXk8r.js';
4
+ import '../symbols/index.js';
5
+ import '../core/index.js';
6
+ import '../core/types/index.js';
@@ -0,0 +1,12 @@
1
+ import {
2
+ ApplicationException,
3
+ DomainException,
4
+ InfraException
5
+ } from "../../chunk-WY3PDSMZ.js";
6
+ import "../../chunk-UEZ4EF5Z.js";
7
+ import "../../chunk-N6MCTGZD.js";
8
+ export {
9
+ ApplicationException,
10
+ DomainException,
11
+ InfraException
12
+ };
@@ -0,0 +1,32 @@
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 __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/exceptions/symbols/index.ts
21
+ var symbols_exports = {};
22
+ __export(symbols_exports, {
23
+ ExceptionLayer: () => ExceptionLayer
24
+ });
25
+ module.exports = __toCommonJS(symbols_exports);
26
+
27
+ // src/exceptions/symbols/exception-layer.ts
28
+ var ExceptionLayer = /* @__PURE__ */ Symbol("exception:layer");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ ExceptionLayer
32
+ });
@@ -0,0 +1,3 @@
1
+ declare const ExceptionLayer: unique symbol;
2
+
3
+ export { ExceptionLayer };
@@ -0,0 +1,3 @@
1
+ declare const ExceptionLayer: unique symbol;
2
+
3
+ export { ExceptionLayer };
@@ -0,0 +1,6 @@
1
+ import {
2
+ ExceptionLayer
3
+ } from "../../chunk-N6MCTGZD.js";
4
+ export {
5
+ ExceptionLayer
6
+ };
@@ -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 };