@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.
Files changed (71) hide show
  1. package/dist/application-exception-Ck-CRA9W.d.cts +9 -0
  2. package/dist/application-exception-mi3iXk8r.d.ts +9 -0
  3. package/dist/chunk-EBPUXUYY.js +28 -0
  4. package/dist/chunk-N6MCTGZD.js +6 -0
  5. package/dist/chunk-UEZ4EF5Z.js +7 -0
  6. package/dist/chunk-WY3PDSMZ.js +27 -0
  7. package/dist/chunk-YBMFDZEW.js +53 -0
  8. package/dist/domain-exception-2mxDRlhr.d.ts +9 -0
  9. package/dist/domain-exception-BJknDTC7.d.cts +9 -0
  10. package/dist/exceptions/application/index.cjs +133 -0
  11. package/dist/exceptions/application/index.d.cts +6 -0
  12. package/dist/exceptions/application/index.d.ts +6 -0
  13. package/dist/exceptions/application/index.js +68 -0
  14. package/dist/exceptions/application/jwt/index.cjs +73 -0
  15. package/dist/exceptions/application/jwt/index.d.cts +20 -0
  16. package/dist/exceptions/application/jwt/index.d.ts +20 -0
  17. package/dist/exceptions/application/jwt/index.js +11 -0
  18. package/dist/{index.cjs → exceptions/core/index.cjs} +9 -8
  19. package/dist/exceptions/core/index.d.cts +11 -0
  20. package/dist/exceptions/core/index.d.ts +11 -0
  21. package/dist/exceptions/core/index.js +7 -0
  22. package/dist/exceptions/core/types/index.cjs +18 -0
  23. package/dist/exceptions/core/types/index.d.cts +3 -0
  24. package/dist/exceptions/core/types/index.d.ts +3 -0
  25. package/dist/exceptions/core/types/index.js +0 -0
  26. package/dist/exceptions/domain/index.cjs +86 -0
  27. package/dist/exceptions/domain/index.d.cts +5 -0
  28. package/dist/exceptions/domain/index.d.ts +5 -0
  29. package/dist/exceptions/domain/index.js +41 -0
  30. package/dist/exceptions/index.cjs +74 -0
  31. package/dist/exceptions/index.d.cts +4 -0
  32. package/dist/exceptions/index.d.ts +4 -0
  33. package/dist/exceptions/index.js +45 -0
  34. package/dist/exceptions/infra/index.cjs +158 -0
  35. package/dist/exceptions/infra/index.d.cts +5 -0
  36. package/dist/exceptions/infra/index.d.ts +5 -0
  37. package/dist/exceptions/infra/index.js +107 -0
  38. package/dist/exceptions/models/index.cjs +55 -0
  39. package/dist/exceptions/models/index.d.cts +6 -0
  40. package/dist/exceptions/models/index.d.ts +6 -0
  41. package/dist/exceptions/models/index.js +12 -0
  42. package/dist/exceptions/symbols/index.cjs +32 -0
  43. package/dist/exceptions/symbols/index.d.cts +3 -0
  44. package/dist/exceptions/symbols/index.d.ts +3 -0
  45. package/dist/exceptions/symbols/index.js +6 -0
  46. package/dist/exceptions/types/index.cjs +18 -0
  47. package/dist/exceptions/types/index.d.cts +30 -0
  48. package/dist/exceptions/types/index.d.ts +30 -0
  49. package/dist/exceptions/types/index.js +0 -0
  50. package/dist/index-0ZqtQ0BA.d.ts +89 -0
  51. package/dist/index-B_h1N1CO.d.cts +55 -0
  52. package/dist/index-C4-MCapS.d.ts +40 -0
  53. package/dist/index-CNApJ5kV.d.ts +35 -0
  54. package/dist/index-DaS_UsEv.d.cts +89 -0
  55. package/dist/index-E6KvVxtW.d.ts +55 -0
  56. package/dist/index-YFuBgYBS.d.cts +35 -0
  57. package/dist/index-g4_PChJX.d.cts +40 -0
  58. package/dist/infra-exception-1PUIDeP4.d.ts +9 -0
  59. package/dist/infra-exception-Dm1D9yrN.d.cts +9 -0
  60. package/dist/schema/formats/index.cjs +55 -0
  61. package/dist/schema/formats/index.d.cts +2 -0
  62. package/dist/schema/formats/index.d.ts +2 -0
  63. package/dist/schema/formats/index.js +1 -0
  64. package/dist/schema/index.cjs +195 -0
  65. package/dist/schema/index.d.cts +19 -0
  66. package/dist/schema/index.d.ts +19 -0
  67. package/dist/schema/index.js +115 -0
  68. package/package.json +7 -8
  69. package/dist/index.d.cts +0 -3
  70. package/dist/index.d.ts +0 -3
  71. package/dist/index.js +0 -5
@@ -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 ApplicationException extends CoreException {
6
+ readonly [ExceptionLayer]: CoreExceptionType;
7
+ }
8
+
9
+ export { ApplicationException as A };
@@ -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 ApplicationException extends CoreException {
6
+ readonly [ExceptionLayer]: CoreExceptionType;
7
+ }
8
+
9
+ export { ApplicationException as A };
@@ -0,0 +1,28 @@
1
+ import {
2
+ ApplicationException
3
+ } from "./chunk-WY3PDSMZ.js";
4
+
5
+ // src/exceptions/application/jwt/invalid-jwt.exception.ts
6
+ var InvalidJWTException = class extends ApplicationException {
7
+ constructor(source, message = `Invalid JWT for the ${source} application.`) {
8
+ super(message);
9
+ this.source = source;
10
+ this.message = message;
11
+ }
12
+ name = "Invalid JWT";
13
+ };
14
+
15
+ // src/exceptions/application/jwt/unable-to-sign-payload.exception.ts
16
+ var UnableToSignPayloadException = class extends ApplicationException {
17
+ constructor(source, message = `Unable to sign payload for the ${source} application.`) {
18
+ super(message);
19
+ this.source = source;
20
+ this.message = message;
21
+ }
22
+ name = "Unable to Sign Payload";
23
+ };
24
+
25
+ export {
26
+ InvalidJWTException,
27
+ UnableToSignPayloadException
28
+ };
@@ -0,0 +1,6 @@
1
+ // src/exceptions/symbols/exception-layer.ts
2
+ var ExceptionLayer = /* @__PURE__ */ Symbol("exception:layer");
3
+
4
+ export {
5
+ ExceptionLayer
6
+ };
@@ -0,0 +1,7 @@
1
+ // src/exceptions/core/core-exception.ts
2
+ var CoreException = class extends Error {
3
+ };
4
+
5
+ export {
6
+ CoreException
7
+ };
@@ -0,0 +1,27 @@
1
+ import {
2
+ CoreException
3
+ } from "./chunk-UEZ4EF5Z.js";
4
+ import {
5
+ ExceptionLayer
6
+ } from "./chunk-N6MCTGZD.js";
7
+
8
+ // src/exceptions/models/domain-exception.ts
9
+ var DomainException = class extends CoreException {
10
+ [ExceptionLayer] = "domain";
11
+ };
12
+
13
+ // src/exceptions/models/infra-exception.ts
14
+ var InfraException = class extends CoreException {
15
+ [ExceptionLayer] = "infra";
16
+ };
17
+
18
+ // src/exceptions/models/application-exception.ts
19
+ var ApplicationException = class extends CoreException {
20
+ [ExceptionLayer] = "application";
21
+ };
22
+
23
+ export {
24
+ DomainException,
25
+ InfraException,
26
+ ApplicationException
27
+ };
@@ -0,0 +1,53 @@
1
+ // src/schema/formats/date-time.ts
2
+ import { FormatRegistry } from "@sinclair/typebox";
3
+ FormatRegistry.Set("date-time", (value) => {
4
+ return !Number.isNaN(Date.parse(value));
5
+ });
6
+
7
+ // src/schema/formats/url.ts
8
+ import { FormatRegistry as FormatRegistry2 } from "@sinclair/typebox";
9
+ FormatRegistry2.Set("url", (value) => {
10
+ try {
11
+ const url = new URL(value);
12
+ return url.hostname.includes(".");
13
+ } catch {
14
+ return false;
15
+ }
16
+ });
17
+
18
+ // src/schema/formats/uuid.ts
19
+ import { FormatRegistry as FormatRegistry3 } from "@sinclair/typebox";
20
+ import { validate, version } from "uuid";
21
+ FormatRegistry3.Set("uuid", (value) => validate(value) && version(value) === 7);
22
+
23
+ // src/schema/formats/slug.ts
24
+ import { FormatRegistry as FormatRegistry4 } from "@sinclair/typebox";
25
+ var slugPattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
26
+ FormatRegistry4.Set("slug", (value) => slugPattern.test(value));
27
+
28
+ // src/schema/formats/email.ts
29
+ import { FormatRegistry as FormatRegistry5 } from "@sinclair/typebox";
30
+ var emailPattern = /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/i;
31
+ FormatRegistry5.Set("email", (value) => emailPattern.test(value));
32
+
33
+ // src/schema/formats/json.ts
34
+ import { FormatRegistry as FormatRegistry6 } from "@sinclair/typebox";
35
+ FormatRegistry6.Set("json", (value) => {
36
+ try {
37
+ JSON.parse(value);
38
+ return true;
39
+ } catch {
40
+ return false;
41
+ }
42
+ });
43
+
44
+ // src/schema/formats/simple-url.ts
45
+ import { FormatRegistry as FormatRegistry7 } from "@sinclair/typebox";
46
+ FormatRegistry7.Set("simple-url", (value) => {
47
+ try {
48
+ new URL(value);
49
+ return true;
50
+ } catch {
51
+ return false;
52
+ }
53
+ });
@@ -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 DomainException extends CoreException {
6
+ readonly [ExceptionLayer]: CoreExceptionType;
7
+ }
8
+
9
+ export { DomainException as D };
@@ -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 DomainException extends CoreException {
6
+ readonly [ExceptionLayer]: CoreExceptionType;
7
+ }
8
+
9
+ export { DomainException as D };
@@ -0,0 +1,133 @@
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/application/index.ts
21
+ var application_exports = {};
22
+ __export(application_exports, {
23
+ BadRequestException: () => BadRequestException,
24
+ InvalidJWTException: () => InvalidJWTException,
25
+ InvalidOperationException: () => InvalidOperationException,
26
+ ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
27
+ ResourceNotFoundException: () => ResourceNotFoundException,
28
+ UnableToSignPayloadException: () => UnableToSignPayloadException,
29
+ UnauthorizedException: () => UnauthorizedException
30
+ });
31
+ module.exports = __toCommonJS(application_exports);
32
+
33
+ // src/exceptions/symbols/exception-layer.ts
34
+ var ExceptionLayer = /* @__PURE__ */ Symbol("exception:layer");
35
+
36
+ // src/exceptions/core/core-exception.ts
37
+ var CoreException = class extends Error {
38
+ };
39
+
40
+ // src/exceptions/models/domain-exception.ts
41
+ var DomainException = class extends CoreException {
42
+ [ExceptionLayer] = "domain";
43
+ };
44
+
45
+ // src/exceptions/models/infra-exception.ts
46
+ var InfraException = class extends CoreException {
47
+ [ExceptionLayer] = "infra";
48
+ };
49
+
50
+ // src/exceptions/models/application-exception.ts
51
+ var ApplicationException = class extends CoreException {
52
+ [ExceptionLayer] = "application";
53
+ };
54
+
55
+ // src/exceptions/application/resource-already-exists.exception.ts
56
+ var ResourceAlreadyExistsException = class extends ApplicationException {
57
+ constructor(source, message = `Resource already exists in the ${source} domain.`) {
58
+ super(message);
59
+ this.source = source;
60
+ this.message = message;
61
+ }
62
+ name = "Resource Already Exists";
63
+ };
64
+
65
+ // src/exceptions/application/resource-not-found.exception.ts
66
+ var ResourceNotFoundException = class extends ApplicationException {
67
+ constructor(source, message = `Resource not found in the ${source} domain.`) {
68
+ super(message);
69
+ this.source = source;
70
+ this.message = message;
71
+ }
72
+ name = "Resource Not Found";
73
+ };
74
+
75
+ // src/exceptions/application/bad-request.exception.ts
76
+ var BadRequestException = class extends ApplicationException {
77
+ constructor(source, message = `Bad request for the ${source} application.`) {
78
+ super(message);
79
+ this.source = source;
80
+ this.message = message;
81
+ }
82
+ name = "Bad Request";
83
+ };
84
+
85
+ // src/exceptions/application/unauthorized.exception.ts
86
+ var UnauthorizedException = class extends ApplicationException {
87
+ constructor(source, message = `Unauthorized access to the ${source} application.`) {
88
+ super(message);
89
+ this.source = source;
90
+ this.message = message;
91
+ }
92
+ name = "Unauthorized";
93
+ };
94
+
95
+ // src/exceptions/application/invalid-operation.exception.ts
96
+ var InvalidOperationException = class extends ApplicationException {
97
+ constructor(source, message = `Invalid operation for the ${source} application.`) {
98
+ super(message);
99
+ this.source = source;
100
+ this.message = message;
101
+ }
102
+ name = "Invalid Operation";
103
+ };
104
+
105
+ // src/exceptions/application/jwt/invalid-jwt.exception.ts
106
+ var InvalidJWTException = class extends ApplicationException {
107
+ constructor(source, message = `Invalid JWT for the ${source} application.`) {
108
+ super(message);
109
+ this.source = source;
110
+ this.message = message;
111
+ }
112
+ name = "Invalid JWT";
113
+ };
114
+
115
+ // src/exceptions/application/jwt/unable-to-sign-payload.exception.ts
116
+ var UnableToSignPayloadException = class extends ApplicationException {
117
+ constructor(source, message = `Unable to sign payload for the ${source} application.`) {
118
+ super(message);
119
+ this.source = source;
120
+ this.message = message;
121
+ }
122
+ name = "Unable to Sign Payload";
123
+ };
124
+ // Annotate the CommonJS export names for ESM import in node:
125
+ 0 && (module.exports = {
126
+ BadRequestException,
127
+ InvalidJWTException,
128
+ InvalidOperationException,
129
+ ResourceAlreadyExistsException,
130
+ ResourceNotFoundException,
131
+ UnableToSignPayloadException,
132
+ UnauthorizedException
133
+ });
@@ -0,0 +1,6 @@
1
+ export { B as BadRequestException, I as InvalidOperationException, R as ResourceAlreadyExistsException, a as ResourceNotFoundException, U as UnauthorizedException } from '../../index-B_h1N1CO.cjs';
2
+ export { InvalidJWTException, UnableToSignPayloadException } from './jwt/index.cjs';
3
+ import '../../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 { B as BadRequestException, I as InvalidOperationException, R as ResourceAlreadyExistsException, a as ResourceNotFoundException, U as UnauthorizedException } from '../../index-E6KvVxtW.js';
2
+ export { InvalidJWTException, UnableToSignPayloadException } from './jwt/index.js';
3
+ import '../../application-exception-mi3iXk8r.js';
4
+ import '../symbols/index.js';
5
+ import '../core/index.js';
6
+ import '../core/types/index.js';
@@ -0,0 +1,68 @@
1
+ import {
2
+ InvalidJWTException,
3
+ UnableToSignPayloadException
4
+ } from "../../chunk-EBPUXUYY.js";
5
+ import {
6
+ ApplicationException
7
+ } from "../../chunk-WY3PDSMZ.js";
8
+ import "../../chunk-UEZ4EF5Z.js";
9
+ import "../../chunk-N6MCTGZD.js";
10
+
11
+ // src/exceptions/application/resource-already-exists.exception.ts
12
+ var ResourceAlreadyExistsException = class extends ApplicationException {
13
+ constructor(source, message = `Resource already exists in the ${source} domain.`) {
14
+ super(message);
15
+ this.source = source;
16
+ this.message = message;
17
+ }
18
+ name = "Resource Already Exists";
19
+ };
20
+
21
+ // src/exceptions/application/resource-not-found.exception.ts
22
+ var ResourceNotFoundException = class extends ApplicationException {
23
+ constructor(source, message = `Resource not found in the ${source} domain.`) {
24
+ super(message);
25
+ this.source = source;
26
+ this.message = message;
27
+ }
28
+ name = "Resource Not Found";
29
+ };
30
+
31
+ // src/exceptions/application/bad-request.exception.ts
32
+ var BadRequestException = class extends ApplicationException {
33
+ constructor(source, message = `Bad request for the ${source} application.`) {
34
+ super(message);
35
+ this.source = source;
36
+ this.message = message;
37
+ }
38
+ name = "Bad Request";
39
+ };
40
+
41
+ // src/exceptions/application/unauthorized.exception.ts
42
+ var UnauthorizedException = class extends ApplicationException {
43
+ constructor(source, message = `Unauthorized access to the ${source} application.`) {
44
+ super(message);
45
+ this.source = source;
46
+ this.message = message;
47
+ }
48
+ name = "Unauthorized";
49
+ };
50
+
51
+ // src/exceptions/application/invalid-operation.exception.ts
52
+ var InvalidOperationException = class extends ApplicationException {
53
+ constructor(source, message = `Invalid operation for the ${source} application.`) {
54
+ super(message);
55
+ this.source = source;
56
+ this.message = message;
57
+ }
58
+ name = "Invalid Operation";
59
+ };
60
+ export {
61
+ BadRequestException,
62
+ InvalidJWTException,
63
+ InvalidOperationException,
64
+ ResourceAlreadyExistsException,
65
+ ResourceNotFoundException,
66
+ UnableToSignPayloadException,
67
+ UnauthorizedException
68
+ };
@@ -0,0 +1,73 @@
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/application/jwt/index.ts
21
+ var jwt_exports = {};
22
+ __export(jwt_exports, {
23
+ InvalidJWTException: () => InvalidJWTException,
24
+ UnableToSignPayloadException: () => UnableToSignPayloadException
25
+ });
26
+ module.exports = __toCommonJS(jwt_exports);
27
+
28
+ // src/exceptions/symbols/exception-layer.ts
29
+ var ExceptionLayer = /* @__PURE__ */ Symbol("exception:layer");
30
+
31
+ // src/exceptions/core/core-exception.ts
32
+ var CoreException = class extends Error {
33
+ };
34
+
35
+ // src/exceptions/models/domain-exception.ts
36
+ var DomainException = class extends CoreException {
37
+ [ExceptionLayer] = "domain";
38
+ };
39
+
40
+ // src/exceptions/models/infra-exception.ts
41
+ var InfraException = class extends CoreException {
42
+ [ExceptionLayer] = "infra";
43
+ };
44
+
45
+ // src/exceptions/models/application-exception.ts
46
+ var ApplicationException = class extends CoreException {
47
+ [ExceptionLayer] = "application";
48
+ };
49
+
50
+ // src/exceptions/application/jwt/invalid-jwt.exception.ts
51
+ var InvalidJWTException = class extends ApplicationException {
52
+ constructor(source, message = `Invalid JWT for the ${source} application.`) {
53
+ super(message);
54
+ this.source = source;
55
+ this.message = message;
56
+ }
57
+ name = "Invalid JWT";
58
+ };
59
+
60
+ // src/exceptions/application/jwt/unable-to-sign-payload.exception.ts
61
+ var UnableToSignPayloadException = class extends ApplicationException {
62
+ constructor(source, message = `Unable to sign payload for the ${source} application.`) {
63
+ super(message);
64
+ this.source = source;
65
+ this.message = message;
66
+ }
67
+ name = "Unable to Sign Payload";
68
+ };
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ InvalidJWTException,
72
+ UnableToSignPayloadException
73
+ });
@@ -0,0 +1,20 @@
1
+ import { A as ApplicationException } from '../../../application-exception-Ck-CRA9W.cjs';
2
+ import '../../symbols/index.cjs';
3
+ import '../../core/index.cjs';
4
+ import '../../core/types/index.cjs';
5
+
6
+ declare class InvalidJWTException extends ApplicationException {
7
+ source: string;
8
+ message: string;
9
+ readonly name = "Invalid JWT";
10
+ constructor(source: string, message?: string);
11
+ }
12
+
13
+ declare class UnableToSignPayloadException extends ApplicationException {
14
+ source: string;
15
+ message: string;
16
+ readonly name = "Unable to Sign Payload";
17
+ constructor(source: string, message?: string);
18
+ }
19
+
20
+ export { InvalidJWTException, UnableToSignPayloadException };
@@ -0,0 +1,20 @@
1
+ import { A as ApplicationException } from '../../../application-exception-mi3iXk8r.js';
2
+ import '../../symbols/index.js';
3
+ import '../../core/index.js';
4
+ import '../../core/types/index.js';
5
+
6
+ declare class InvalidJWTException extends ApplicationException {
7
+ source: string;
8
+ message: string;
9
+ readonly name = "Invalid JWT";
10
+ constructor(source: string, message?: string);
11
+ }
12
+
13
+ declare class UnableToSignPayloadException extends ApplicationException {
14
+ source: string;
15
+ message: string;
16
+ readonly name = "Unable to Sign Payload";
17
+ constructor(source: string, message?: string);
18
+ }
19
+
20
+ export { InvalidJWTException, UnableToSignPayloadException };
@@ -0,0 +1,11 @@
1
+ import {
2
+ InvalidJWTException,
3
+ UnableToSignPayloadException
4
+ } from "../../../chunk-EBPUXUYY.js";
5
+ import "../../../chunk-WY3PDSMZ.js";
6
+ import "../../../chunk-UEZ4EF5Z.js";
7
+ import "../../../chunk-N6MCTGZD.js";
8
+ export {
9
+ InvalidJWTException,
10
+ UnableToSignPayloadException
11
+ };
@@ -17,16 +17,17 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- hello: () => hello
20
+ // src/exceptions/core/index.ts
21
+ var core_exports = {};
22
+ __export(core_exports, {
23
+ CoreException: () => CoreException
24
24
  });
25
- module.exports = __toCommonJS(index_exports);
25
+ module.exports = __toCommonJS(core_exports);
26
26
 
27
- // src/hello.ts
28
- var hello = "world";
27
+ // src/exceptions/core/core-exception.ts
28
+ var CoreException = class extends Error {
29
+ };
29
30
  // Annotate the CommonJS export names for ESM import in node:
30
31
  0 && (module.exports = {
31
- hello
32
+ CoreException
32
33
  });
@@ -0,0 +1,11 @@
1
+ import { ExceptionLayer } from '../symbols/index.cjs';
2
+ import { CoreExceptionType } from './types/index.cjs';
3
+
4
+ declare abstract class CoreException extends Error {
5
+ abstract readonly [ExceptionLayer]: CoreExceptionType;
6
+ abstract readonly name: string;
7
+ abstract readonly message: string;
8
+ abstract readonly source: string;
9
+ }
10
+
11
+ export { CoreException, CoreExceptionType };
@@ -0,0 +1,11 @@
1
+ import { ExceptionLayer } from '../symbols/index.js';
2
+ import { CoreExceptionType } from './types/index.js';
3
+
4
+ declare abstract class CoreException extends Error {
5
+ abstract readonly [ExceptionLayer]: CoreExceptionType;
6
+ abstract readonly name: string;
7
+ abstract readonly message: string;
8
+ abstract readonly source: string;
9
+ }
10
+
11
+ export { CoreException, CoreExceptionType };
@@ -0,0 +1,7 @@
1
+ import {
2
+ CoreException
3
+ } from "../../chunk-UEZ4EF5Z.js";
4
+ import "../../chunk-N6MCTGZD.js";
5
+ export {
6
+ CoreException
7
+ };
@@ -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/core/types/index.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,3 @@
1
+ type CoreExceptionType = "internal" | "domain" | "application" | "infra";
2
+
3
+ export type { CoreExceptionType };
@@ -0,0 +1,3 @@
1
+ type CoreExceptionType = "internal" | "domain" | "application" | "infra";
2
+
3
+ export type { CoreExceptionType };
File without changes