@arkyn/server 3.0.1-beta.12 → 3.0.1-beta.121

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 (221) hide show
  1. package/README.md +368 -65
  2. package/dist/bundle.js +1518 -0
  3. package/dist/bundle.umd.cjs +5 -0
  4. package/dist/{api/arkynLogRequest.d.ts → http/api/_logRequest.d.ts} +22 -19
  5. package/dist/{api/arkynLogRequest.d.ts.map → http/api/_logRequest.d.ts.map} +1 -1
  6. package/dist/http/api/_logRequest.js +88 -0
  7. package/dist/http/api/_makeRequest.d.ts +61 -0
  8. package/dist/http/api/_makeRequest.d.ts.map +1 -0
  9. package/dist/{api/makeRequest.js → http/api/_makeRequest.js} +33 -20
  10. package/dist/http/api/deleteRequest.d.ts +17 -0
  11. package/dist/http/api/deleteRequest.d.ts.map +1 -0
  12. package/dist/http/api/deleteRequest.js +18 -0
  13. package/dist/http/api/getRequest.d.ts +16 -0
  14. package/dist/http/api/getRequest.d.ts.map +1 -0
  15. package/dist/http/api/getRequest.js +17 -0
  16. package/dist/http/api/patchRequest.d.ts +17 -0
  17. package/dist/http/api/patchRequest.d.ts.map +1 -0
  18. package/dist/http/api/patchRequest.js +18 -0
  19. package/dist/http/api/postRequest.d.ts +17 -0
  20. package/dist/http/api/postRequest.d.ts.map +1 -0
  21. package/dist/http/api/postRequest.js +18 -0
  22. package/dist/http/api/putRequest.d.ts +17 -0
  23. package/dist/http/api/putRequest.d.ts.map +1 -0
  24. package/dist/http/api/putRequest.js +18 -0
  25. package/dist/http/badResponses/_badResponse.d.ts +22 -0
  26. package/dist/http/badResponses/_badResponse.d.ts.map +1 -0
  27. package/dist/http/badResponses/_badResponse.js +51 -0
  28. package/dist/http/badResponses/badGateway.d.ts +6 -9
  29. package/dist/http/badResponses/badGateway.d.ts.map +1 -1
  30. package/dist/http/badResponses/badGateway.js +12 -14
  31. package/dist/http/badResponses/badRequest.d.ts +6 -9
  32. package/dist/http/badResponses/badRequest.d.ts.map +1 -1
  33. package/dist/http/badResponses/badRequest.js +12 -14
  34. package/dist/http/badResponses/conflict.d.ts +6 -9
  35. package/dist/http/badResponses/conflict.d.ts.map +1 -1
  36. package/dist/http/badResponses/conflict.js +12 -14
  37. package/dist/http/badResponses/forbidden.d.ts +6 -9
  38. package/dist/http/badResponses/forbidden.d.ts.map +1 -1
  39. package/dist/http/badResponses/forbidden.js +12 -14
  40. package/dist/http/badResponses/notFound.d.ts +6 -9
  41. package/dist/http/badResponses/notFound.d.ts.map +1 -1
  42. package/dist/http/badResponses/notFound.js +12 -14
  43. package/dist/http/badResponses/notImplemented.d.ts +6 -9
  44. package/dist/http/badResponses/notImplemented.d.ts.map +1 -1
  45. package/dist/http/badResponses/notImplemented.js +12 -14
  46. package/dist/http/badResponses/serverError.d.ts +6 -9
  47. package/dist/http/badResponses/serverError.d.ts.map +1 -1
  48. package/dist/http/badResponses/serverError.js +12 -14
  49. package/dist/http/badResponses/unauthorized.d.ts +4 -7
  50. package/dist/http/badResponses/unauthorized.d.ts.map +1 -1
  51. package/dist/http/badResponses/unauthorized.js +10 -12
  52. package/dist/http/badResponses/unprocessableEntity.d.ts +15 -19
  53. package/dist/http/badResponses/unprocessableEntity.d.ts.map +1 -1
  54. package/dist/http/badResponses/unprocessableEntity.js +18 -21
  55. package/dist/http/successResponses/_successResponse.d.ts +33 -0
  56. package/dist/http/successResponses/_successResponse.d.ts.map +1 -0
  57. package/dist/http/successResponses/_successResponse.js +66 -0
  58. package/dist/http/successResponses/created.d.ts +9 -19
  59. package/dist/http/successResponses/created.d.ts.map +1 -1
  60. package/dist/http/successResponses/created.js +16 -25
  61. package/dist/http/successResponses/found.d.ts +10 -23
  62. package/dist/http/successResponses/found.d.ts.map +1 -1
  63. package/dist/http/successResponses/found.js +17 -29
  64. package/dist/http/successResponses/noContent.d.ts +6 -13
  65. package/dist/http/successResponses/noContent.d.ts.map +1 -1
  66. package/dist/http/successResponses/noContent.js +12 -17
  67. package/dist/http/successResponses/success.d.ts +9 -19
  68. package/dist/http/successResponses/success.d.ts.map +1 -1
  69. package/dist/http/successResponses/success.js +16 -25
  70. package/dist/http/successResponses/updated.d.ts +9 -19
  71. package/dist/http/successResponses/updated.d.ts.map +1 -1
  72. package/dist/http/successResponses/updated.js +16 -25
  73. package/dist/index.d.ts +19 -10
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +22 -13
  76. package/dist/services/apiService.d.ts +63 -0
  77. package/dist/services/apiService.d.ts.map +1 -0
  78. package/dist/services/apiService.js +158 -0
  79. package/dist/services/debugService.d.ts +69 -0
  80. package/dist/services/debugService.d.ts.map +1 -0
  81. package/dist/services/debugService.js +114 -0
  82. package/dist/services/logMapperService.d.ts +86 -0
  83. package/dist/services/logMapperService.d.ts.map +1 -0
  84. package/dist/services/logMapperService.js +68 -0
  85. package/dist/services/logService.d.ts +38 -0
  86. package/dist/services/logService.d.ts.map +1 -0
  87. package/dist/services/logService.js +40 -0
  88. package/dist/{services → utilities}/decodeRequestBody.d.ts +3 -4
  89. package/dist/utilities/decodeRequestBody.d.ts.map +1 -0
  90. package/dist/{services → utilities}/decodeRequestBody.js +5 -5
  91. package/dist/{services/decodeErrorMessageFromRequest.d.ts → utilities/decodeRequestErrorMessage.d.ts} +6 -6
  92. package/dist/utilities/decodeRequestErrorMessage.d.ts.map +1 -0
  93. package/dist/{services/decodeErrorMessageFromRequest.js → utilities/decodeRequestErrorMessage.js} +5 -5
  94. package/dist/utilities/errorHandler.d.ts +50 -0
  95. package/dist/utilities/errorHandler.d.ts.map +1 -0
  96. package/dist/{services → utilities}/errorHandler.js +34 -28
  97. package/dist/utilities/flushDebugLogs.d.ts +46 -0
  98. package/dist/utilities/flushDebugLogs.d.ts.map +1 -0
  99. package/dist/utilities/flushDebugLogs.js +59 -0
  100. package/dist/utilities/formAsyncParse.d.ts +59 -0
  101. package/dist/utilities/formAsyncParse.d.ts.map +1 -0
  102. package/dist/utilities/formAsyncParse.js +58 -0
  103. package/dist/{services → utilities}/formParse.d.ts +6 -6
  104. package/dist/utilities/formParse.d.ts.map +1 -0
  105. package/dist/{services → utilities}/formParse.js +10 -8
  106. package/dist/{services → utilities}/getScopedParams.d.ts +3 -4
  107. package/dist/utilities/getScopedParams.d.ts.map +1 -0
  108. package/dist/{services → utilities}/getScopedParams.js +4 -4
  109. package/dist/utilities/schemaValidator.d.ts +146 -0
  110. package/dist/utilities/schemaValidator.d.ts.map +1 -0
  111. package/dist/utilities/schemaValidator.js +191 -0
  112. package/dist/validations/validateCep.d.ts +19 -0
  113. package/dist/validations/validateCep.d.ts.map +1 -0
  114. package/dist/validations/validateCep.js +27 -0
  115. package/dist/validations/validateCnpj.d.ts +21 -0
  116. package/dist/validations/validateCnpj.d.ts.map +1 -0
  117. package/dist/validations/validateCnpj.js +59 -0
  118. package/dist/validations/validateCpf.d.ts +23 -0
  119. package/dist/validations/validateCpf.d.ts.map +1 -0
  120. package/dist/validations/validateCpf.js +61 -0
  121. package/dist/validations/validateDate.d.ts +27 -0
  122. package/dist/validations/validateDate.d.ts.map +1 -0
  123. package/dist/validations/validateDate.js +55 -0
  124. package/dist/validations/validateEmail.d.ts +21 -0
  125. package/dist/validations/validateEmail.d.ts.map +1 -0
  126. package/dist/validations/validateEmail.js +111 -0
  127. package/dist/validations/validatePassword.d.ts +20 -0
  128. package/dist/validations/validatePassword.d.ts.map +1 -0
  129. package/dist/validations/validatePassword.js +34 -0
  130. package/dist/validations/validatePhone.d.ts +28 -0
  131. package/dist/validations/validatePhone.d.ts.map +1 -0
  132. package/dist/validations/validatePhone.js +44 -0
  133. package/dist/validations/validateRg.d.ts +21 -0
  134. package/dist/validations/validateRg.d.ts.map +1 -0
  135. package/dist/validations/validateRg.js +31 -0
  136. package/package.json +34 -18
  137. package/dist/api/arkynLogRequest.js +0 -82
  138. package/dist/api/deleteRequest.d.ts +0 -13
  139. package/dist/api/deleteRequest.d.ts.map +0 -1
  140. package/dist/api/deleteRequest.js +0 -14
  141. package/dist/api/getRequest.d.ts +0 -12
  142. package/dist/api/getRequest.d.ts.map +0 -1
  143. package/dist/api/getRequest.js +0 -13
  144. package/dist/api/makeRequest.d.ts +0 -38
  145. package/dist/api/makeRequest.d.ts.map +0 -1
  146. package/dist/api/patchRequest.d.ts +0 -13
  147. package/dist/api/patchRequest.d.ts.map +0 -1
  148. package/dist/api/patchRequest.js +0 -14
  149. package/dist/api/postRequest.d.ts +0 -13
  150. package/dist/api/postRequest.d.ts.map +0 -1
  151. package/dist/api/postRequest.js +0 -14
  152. package/dist/api/putRequest.d.ts +0 -13
  153. package/dist/api/putRequest.d.ts.map +0 -1
  154. package/dist/api/putRequest.js +0 -14
  155. package/dist/config/apiInstance.d.ts +0 -80
  156. package/dist/config/apiInstance.d.ts.map +0 -1
  157. package/dist/config/apiInstance.js +0 -111
  158. package/dist/config/arkynLogInstance.d.ts +0 -44
  159. package/dist/config/arkynLogInstance.d.ts.map +0 -1
  160. package/dist/config/arkynLogInstance.js +0 -49
  161. package/dist/mapper/arkynLogRequestMapper.d.ts +0 -30
  162. package/dist/mapper/arkynLogRequestMapper.d.ts.map +0 -1
  163. package/dist/mapper/arkynLogRequestMapper.js +0 -44
  164. package/dist/services/decodeErrorMessageFromRequest.d.ts.map +0 -1
  165. package/dist/services/decodeRequestBody.d.ts.map +0 -1
  166. package/dist/services/errorHandler.d.ts +0 -44
  167. package/dist/services/errorHandler.d.ts.map +0 -1
  168. package/dist/services/formParse.d.ts.map +0 -1
  169. package/dist/services/getCaller.d.ts +0 -17
  170. package/dist/services/getCaller.d.ts.map +0 -1
  171. package/dist/services/getCaller.js +0 -65
  172. package/dist/services/getScopedParams.d.ts.map +0 -1
  173. package/dist/services/httpDebug.d.ts +0 -35
  174. package/dist/services/httpDebug.d.ts.map +0 -1
  175. package/dist/services/httpDebug.js +0 -52
  176. package/dist/services/measureRouteExecution.d.ts +0 -3
  177. package/dist/services/measureRouteExecution.d.ts.map +0 -1
  178. package/dist/services/measureRouteExecution.js +0 -24
  179. package/dist/services/schemaValidator.d.ts +0 -13
  180. package/dist/services/schemaValidator.d.ts.map +0 -1
  181. package/dist/services/schemaValidator.js +0 -51
  182. package/dist/types/ApiResponseDTO.d.ts +0 -17
  183. package/dist/types/ApiResponseDTO.d.ts.map +0 -1
  184. package/dist/types/ApiResponseDTO.js +0 -1
  185. package/src/api/arkynLogRequest.ts +0 -118
  186. package/src/api/deleteRequest.ts +0 -22
  187. package/src/api/getRequest.ts +0 -20
  188. package/src/api/makeRequest.ts +0 -118
  189. package/src/api/patchRequest.ts +0 -22
  190. package/src/api/postRequest.ts +0 -22
  191. package/src/api/putRequest.ts +0 -22
  192. package/src/config/apiInstance.ts +0 -148
  193. package/src/config/arkynLogInstance.ts +0 -70
  194. package/src/http/badResponses/badGateway.ts +0 -63
  195. package/src/http/badResponses/badRequest.ts +0 -63
  196. package/src/http/badResponses/conflict.ts +0 -63
  197. package/src/http/badResponses/forbidden.ts +0 -63
  198. package/src/http/badResponses/notFound.ts +0 -63
  199. package/src/http/badResponses/notImplemented.ts +0 -63
  200. package/src/http/badResponses/serverError.ts +0 -63
  201. package/src/http/badResponses/unauthorized.ts +0 -63
  202. package/src/http/badResponses/unprocessableEntity.ts +0 -79
  203. package/src/http/successResponses/created.ts +0 -64
  204. package/src/http/successResponses/found.ts +0 -67
  205. package/src/http/successResponses/noContent.ts +0 -42
  206. package/src/http/successResponses/success.ts +0 -64
  207. package/src/http/successResponses/updated.ts +0 -64
  208. package/src/index.ts +0 -31
  209. package/src/mapper/arkynLogRequestMapper.ts +0 -73
  210. package/src/services/decodeErrorMessageFromRequest.ts +0 -36
  211. package/src/services/decodeRequestBody.ts +0 -43
  212. package/src/services/errorHandler.ts +0 -99
  213. package/src/services/formParse.ts +0 -83
  214. package/src/services/getCaller.ts +0 -82
  215. package/src/services/getScopedParams.ts +0 -43
  216. package/src/services/httpDebug.ts +0 -61
  217. package/src/services/measureRouteExecution.ts +0 -31
  218. package/src/services/schemaValidator.ts +0 -66
  219. package/src/types/ApiResponseDTO.ts +0 -19
  220. package/tsconfig.json +0 -21
  221. package/vitest.config.ts +0 -5
@@ -0,0 +1,51 @@
1
+ import { DebugService } from "../../services/debugService";
2
+ import { flushDebugLogs } from "../../utilities/flushDebugLogs";
3
+ class BadResponse {
4
+ _cause;
5
+ _name = "BadResponse";
6
+ _status = 500;
7
+ _statusText = "Unknown error";
8
+ get cause() {
9
+ return this._cause;
10
+ }
11
+ set cause(value) {
12
+ this._cause = value;
13
+ }
14
+ get name() {
15
+ return this._name;
16
+ }
17
+ set name(value) {
18
+ this._name = value;
19
+ }
20
+ get status() {
21
+ return this._status;
22
+ }
23
+ set status(value) {
24
+ this._status = value;
25
+ }
26
+ get statusText() {
27
+ return this._statusText;
28
+ }
29
+ set statusText(value) {
30
+ this._statusText = value;
31
+ }
32
+ onDebug() {
33
+ const debugs = [];
34
+ const { callerInfo, functionName } = DebugService.getCaller();
35
+ debugs.push(`Caller Function: ${functionName}`);
36
+ debugs.push(`Caller Location: ${callerInfo}`);
37
+ if (this._statusText)
38
+ debugs.push(`Message: ${this._statusText}`);
39
+ if (this._cause)
40
+ debugs.push(`Cause: ${JSON.stringify(this._cause)}`);
41
+ flushDebugLogs({ scheme: "red", name: this._name, debugs });
42
+ }
43
+ makeBody() {
44
+ return {
45
+ name: this._name,
46
+ message: this._statusText,
47
+ cause: this._cause,
48
+ };
49
+ }
50
+ }
51
+ export { BadResponse };
@@ -1,32 +1,29 @@
1
+ import { BadResponse } from "./_badResponse";
1
2
  /**
2
3
  * Represents an HTTP error response with a status code of 502 (Bad Gateway).
3
4
  * This class is used to standardize the structure of a "Bad Gateway" error response,
4
5
  * including the response body, headers, status, and status text.
5
6
  */
6
- declare class BadGateway {
7
- body: any;
8
- cause?: any;
9
- status: number;
10
- statusText: string;
7
+ declare class BadGateway extends BadResponse {
11
8
  /**
12
9
  * Creates an instance of the `BadGateway` class.
13
10
  *
14
- * @param message - A descriptive message explaining the cause of the error.
15
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining the cause of the error.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
16
13
  */
17
14
  constructor(message: string, cause?: any);
18
15
  /**
19
16
  * Converts the `BadGateway` instance into a `Response` object with a JSON body.
20
17
  * This method ensures the response has the appropriate headers, status, and status text.
21
18
  *
22
- * @returns A `Response` object with the serialized JSON body and response metadata.
19
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
23
20
  */
24
21
  toResponse(): Response;
25
22
  /**
26
23
  * Converts the `BadGateway` instance into a `Response` object using the `Response.json` method.
27
24
  * This method is an alternative to `toResponse` for generating JSON error responses.
28
25
  *
29
- * @returns A `Response` object with the JSON body and response metadata.
26
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
30
27
  */
31
28
  toJson(): Response;
32
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"badGateway.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/badGateway.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,cAAM,UAAU;IACd,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAO;IACrB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAOxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"badGateway.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/badGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AAEH,cAAM,UAAW,SAAQ,WAAW;IAClC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAWxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,31 +1,29 @@
1
- import { httpDebug } from "../../services/httpDebug";
1
+ import { BadResponse } from "./_badResponse";
2
2
  /**
3
3
  * Represents an HTTP error response with a status code of 502 (Bad Gateway).
4
4
  * This class is used to standardize the structure of a "Bad Gateway" error response,
5
5
  * including the response body, headers, status, and status text.
6
6
  */
7
- class BadGateway {
8
- body;
9
- cause;
10
- status = 502;
11
- statusText;
7
+ class BadGateway extends BadResponse {
12
8
  /**
13
9
  * Creates an instance of the `BadGateway` class.
14
10
  *
15
- * @param message - A descriptive message explaining the cause of the error.
16
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining the cause of the error.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
17
13
  */
18
14
  constructor(message, cause) {
19
- this.body = { name: "BadGateway", message: message };
15
+ super();
16
+ this.name = "BadGateway";
17
+ this.status = 502;
20
18
  this.statusText = message;
21
19
  this.cause = cause ? JSON.stringify(cause) : undefined;
22
- httpDebug("BadGateway", this.body, this.cause);
20
+ this.onDebug();
23
21
  }
24
22
  /**
25
23
  * Converts the `BadGateway` instance into a `Response` object with a JSON body.
26
24
  * This method ensures the response has the appropriate headers, status, and status text.
27
25
  *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
26
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
29
27
  */
30
28
  toResponse() {
31
29
  const responseInit = {
@@ -33,20 +31,20 @@ class BadGateway {
33
31
  status: this.status,
34
32
  statusText: this.statusText,
35
33
  };
36
- return new Response(JSON.stringify(this.body), responseInit);
34
+ return new Response(JSON.stringify(this.makeBody()), responseInit);
37
35
  }
38
36
  /**
39
37
  * Converts the `BadGateway` instance into a `Response` object using the `Response.json` method.
40
38
  * This method is an alternative to `toResponse` for generating JSON error responses.
41
39
  *
42
- * @returns A `Response` object with the JSON body and response metadata.
40
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
43
41
  */
44
42
  toJson() {
45
43
  const responseInit = {
46
44
  status: this.status,
47
45
  statusText: this.statusText,
48
46
  };
49
- return Response.json(this.body, responseInit);
47
+ return Response.json(this.makeBody(), responseInit);
50
48
  }
51
49
  }
52
50
  export { BadGateway };
@@ -1,32 +1,29 @@
1
+ import { BadResponse } from "./_badResponse";
1
2
  /**
2
3
  * Represents an HTTP error response with a status code of 400 (Bad Request).
3
4
  * This class is used to standardize the structure of a "Bad Request" error response,
4
5
  * including the response body, headers, status, and status text.
5
6
  */
6
- declare class BadRequest {
7
- body: any;
8
- cause?: any;
9
- status: number;
10
- statusText: string;
7
+ declare class BadRequest extends BadResponse {
11
8
  /**
12
9
  * Creates an instance of the `BadRequest` class.
13
10
  *
14
- * @param message - A descriptive message explaining the cause of the error.
15
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining the cause of the error.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
16
13
  */
17
14
  constructor(message: string, cause?: any);
18
15
  /**
19
16
  * Converts the `BadRequest` instance into a `Response` object with a JSON body.
20
17
  * This method ensures the response has the appropriate headers, status, and status text.
21
18
  *
22
- * @returns A `Response` object with the serialized JSON body and response metadata.
19
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
23
20
  */
24
21
  toResponse(): Response;
25
22
  /**
26
23
  * Converts the `BadRequest` instance into a `Response` object using the `Response.json` method.
27
24
  * This method is an alternative to `toResponse` for generating JSON error responses.
28
25
  *
29
- * @returns A `Response` object with the JSON body and response metadata.
26
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
30
27
  */
31
28
  toJson(): Response;
32
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"badRequest.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/badRequest.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,cAAM,UAAU;IACd,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAO;IACrB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAOxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"badRequest.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/badRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AAEH,cAAM,UAAW,SAAQ,WAAW;IAClC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAWxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,31 +1,29 @@
1
- import { httpDebug } from "../../services/httpDebug";
1
+ import { BadResponse } from "./_badResponse";
2
2
  /**
3
3
  * Represents an HTTP error response with a status code of 400 (Bad Request).
4
4
  * This class is used to standardize the structure of a "Bad Request" error response,
5
5
  * including the response body, headers, status, and status text.
6
6
  */
7
- class BadRequest {
8
- body;
9
- cause;
10
- status = 400;
11
- statusText;
7
+ class BadRequest extends BadResponse {
12
8
  /**
13
9
  * Creates an instance of the `BadRequest` class.
14
10
  *
15
- * @param message - A descriptive message explaining the cause of the error.
16
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining the cause of the error.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
17
13
  */
18
14
  constructor(message, cause) {
19
- this.body = { name: "BadRequest", message: message };
15
+ super();
16
+ this.name = "BadRequest";
17
+ this.status = 400;
20
18
  this.statusText = message;
21
19
  this.cause = cause ? JSON.stringify(cause) : undefined;
22
- httpDebug("BadRequest", this.body, this.cause);
20
+ this.onDebug();
23
21
  }
24
22
  /**
25
23
  * Converts the `BadRequest` instance into a `Response` object with a JSON body.
26
24
  * This method ensures the response has the appropriate headers, status, and status text.
27
25
  *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
26
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
29
27
  */
30
28
  toResponse() {
31
29
  const responseInit = {
@@ -33,20 +31,20 @@ class BadRequest {
33
31
  status: this.status,
34
32
  statusText: this.statusText,
35
33
  };
36
- return new Response(JSON.stringify(this.body), responseInit);
34
+ return new Response(JSON.stringify(this.makeBody()), responseInit);
37
35
  }
38
36
  /**
39
37
  * Converts the `BadRequest` instance into a `Response` object using the `Response.json` method.
40
38
  * This method is an alternative to `toResponse` for generating JSON error responses.
41
39
  *
42
- * @returns A `Response` object with the JSON body and response metadata.
40
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
43
41
  */
44
42
  toJson() {
45
43
  const responseInit = {
46
44
  status: this.status,
47
45
  statusText: this.statusText,
48
46
  };
49
- return Response.json(this.body, responseInit);
47
+ return Response.json(this.makeBody(), responseInit);
50
48
  }
51
49
  }
52
50
  export { BadRequest };
@@ -1,32 +1,29 @@
1
+ import { BadResponse } from "./_badResponse";
1
2
  /**
2
3
  * Represents an HTTP error response with a status code of 409 (Conflict).
3
4
  * This class is used to standardize the structure of a "Conflict" error response,
4
5
  * including the response body, headers, status, and status text.
5
6
  */
6
- declare class Conflict {
7
- body: any;
8
- cause?: any;
9
- status: number;
10
- statusText: string;
7
+ declare class Conflict extends BadResponse {
11
8
  /**
12
9
  * Creates an instance of the `Conflict` class.
13
10
  *
14
- * @param message - A descriptive message explaining the cause of the conflict.
15
- * @param cause - Optional additional information about the cause of the conflict.
11
+ * @param {string} message - A descriptive message explaining the cause of the conflict.
12
+ * @param {any} cause - Optional additional information about the cause of the conflict.
16
13
  */
17
14
  constructor(message: string, cause?: any);
18
15
  /**
19
16
  * Converts the `Conflict` instance into a `Response` object with a JSON body.
20
17
  * This method ensures the response has the appropriate headers, status, and status text.
21
18
  *
22
- * @returns A `Response` object with the serialized JSON body and response metadata.
19
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
23
20
  */
24
21
  toResponse(): Response;
25
22
  /**
26
23
  * Converts the `Conflict` instance into a `Response` object using the `Response.json` method.
27
24
  * This method is an alternative to `toResponse` for generating JSON error responses.
28
25
  *
29
- * @returns A `Response` object with the JSON body and response metadata.
26
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
30
27
  */
31
28
  toJson(): Response;
32
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"conflict.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/conflict.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,cAAM,QAAQ;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAO;IACrB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAOxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"conflict.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/conflict.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AAEH,cAAM,QAAS,SAAQ,WAAW;IAChC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAWxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,31 +1,29 @@
1
- import { httpDebug } from "../../services/httpDebug";
1
+ import { BadResponse } from "./_badResponse";
2
2
  /**
3
3
  * Represents an HTTP error response with a status code of 409 (Conflict).
4
4
  * This class is used to standardize the structure of a "Conflict" error response,
5
5
  * including the response body, headers, status, and status text.
6
6
  */
7
- class Conflict {
8
- body;
9
- cause;
10
- status = 409;
11
- statusText;
7
+ class Conflict extends BadResponse {
12
8
  /**
13
9
  * Creates an instance of the `Conflict` class.
14
10
  *
15
- * @param message - A descriptive message explaining the cause of the conflict.
16
- * @param cause - Optional additional information about the cause of the conflict.
11
+ * @param {string} message - A descriptive message explaining the cause of the conflict.
12
+ * @param {any} cause - Optional additional information about the cause of the conflict.
17
13
  */
18
14
  constructor(message, cause) {
19
- this.body = { name: "Conflict", message: message };
15
+ super();
16
+ this.name = "Conflict";
17
+ this.status = 409;
20
18
  this.statusText = message;
21
19
  this.cause = cause ? JSON.stringify(cause) : undefined;
22
- httpDebug("Conflict", this.body, this.cause);
20
+ this.onDebug();
23
21
  }
24
22
  /**
25
23
  * Converts the `Conflict` instance into a `Response` object with a JSON body.
26
24
  * This method ensures the response has the appropriate headers, status, and status text.
27
25
  *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
26
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
29
27
  */
30
28
  toResponse() {
31
29
  const responseInit = {
@@ -33,20 +31,20 @@ class Conflict {
33
31
  status: this.status,
34
32
  statusText: this.statusText,
35
33
  };
36
- return new Response(JSON.stringify(this.body), responseInit);
34
+ return new Response(JSON.stringify(this.makeBody()), responseInit);
37
35
  }
38
36
  /**
39
37
  * Converts the `Conflict` instance into a `Response` object using the `Response.json` method.
40
38
  * This method is an alternative to `toResponse` for generating JSON error responses.
41
39
  *
42
- * @returns A `Response` object with the JSON body and response metadata.
40
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
43
41
  */
44
42
  toJson() {
45
43
  const responseInit = {
46
44
  status: this.status,
47
45
  statusText: this.statusText,
48
46
  };
49
- return Response.json(this.body, responseInit);
47
+ return Response.json(this.makeBody(), responseInit);
50
48
  }
51
49
  }
52
50
  export { Conflict };
@@ -1,32 +1,29 @@
1
+ import { BadResponse } from "./_badResponse";
1
2
  /**
2
3
  * Represents an HTTP error response with a status code of 403 (Forbidden).
3
4
  * This class is used to standardize the structure of a "Forbidden" error response,
4
5
  * including the response body, headers, status, and status text.
5
6
  */
6
- declare class Forbidden {
7
- body: any;
8
- cause?: any;
9
- status: number;
10
- statusText: string;
7
+ declare class Forbidden extends BadResponse {
11
8
  /**
12
9
  * Creates an instance of the `Forbidden` class.
13
10
  *
14
- * @param message - A descriptive message explaining why access is forbidden.
15
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining why access is forbidden.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
16
13
  */
17
14
  constructor(message: string, cause?: any);
18
15
  /**
19
16
  * Converts the `Forbidden` instance into a `Response` object with a JSON body.
20
17
  * This method ensures the response has the appropriate headers, status, and status text.
21
18
  *
22
- * @returns A `Response` object with the serialized JSON body and response metadata.
19
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
23
20
  */
24
21
  toResponse(): Response;
25
22
  /**
26
23
  * Converts the `Forbidden` instance into a `Response` object using the `Response.json` method.
27
24
  * This method is an alternative to `toResponse` for generating JSON error responses.
28
25
  *
29
- * @returns A `Response` object with the JSON body and response metadata.
26
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
30
27
  */
31
28
  toJson(): Response;
32
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"forbidden.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/forbidden.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,cAAM,SAAS;IACb,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAO;IACrB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAOxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"forbidden.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/forbidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AAEH,cAAM,SAAU,SAAQ,WAAW;IACjC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAWxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,31 +1,29 @@
1
- import { httpDebug } from "../../services/httpDebug";
1
+ import { BadResponse } from "./_badResponse";
2
2
  /**
3
3
  * Represents an HTTP error response with a status code of 403 (Forbidden).
4
4
  * This class is used to standardize the structure of a "Forbidden" error response,
5
5
  * including the response body, headers, status, and status text.
6
6
  */
7
- class Forbidden {
8
- body;
9
- cause;
10
- status = 403;
11
- statusText;
7
+ class Forbidden extends BadResponse {
12
8
  /**
13
9
  * Creates an instance of the `Forbidden` class.
14
10
  *
15
- * @param message - A descriptive message explaining why access is forbidden.
16
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining why access is forbidden.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
17
13
  */
18
14
  constructor(message, cause) {
19
- this.body = { name: "Forbidden", message: message };
15
+ super();
16
+ this.name = "Forbidden";
17
+ this.status = 403;
20
18
  this.statusText = message;
21
19
  this.cause = cause ? JSON.stringify(cause) : undefined;
22
- httpDebug("Forbidden", this.body, this.cause);
20
+ this.onDebug();
23
21
  }
24
22
  /**
25
23
  * Converts the `Forbidden` instance into a `Response` object with a JSON body.
26
24
  * This method ensures the response has the appropriate headers, status, and status text.
27
25
  *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
26
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
29
27
  */
30
28
  toResponse() {
31
29
  const responseInit = {
@@ -33,20 +31,20 @@ class Forbidden {
33
31
  status: this.status,
34
32
  statusText: this.statusText,
35
33
  };
36
- return new Response(JSON.stringify(this.body), responseInit);
34
+ return new Response(JSON.stringify(this.makeBody()), responseInit);
37
35
  }
38
36
  /**
39
37
  * Converts the `Forbidden` instance into a `Response` object using the `Response.json` method.
40
38
  * This method is an alternative to `toResponse` for generating JSON error responses.
41
39
  *
42
- * @returns A `Response` object with the JSON body and response metadata.
40
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
43
41
  */
44
42
  toJson() {
45
43
  const responseInit = {
46
44
  status: this.status,
47
45
  statusText: this.statusText,
48
46
  };
49
- return Response.json(this.body, responseInit);
47
+ return Response.json(this.makeBody(), responseInit);
50
48
  }
51
49
  }
52
50
  export { Forbidden };
@@ -1,32 +1,29 @@
1
+ import { BadResponse } from "./_badResponse";
1
2
  /**
2
3
  * Represents an HTTP error response with a status code of 404 (Not Found).
3
4
  * This class is used to standardize the structure of a "Not Found" error response,
4
5
  * including the response body, headers, status, and status text.
5
6
  */
6
- declare class NotFound {
7
- body: any;
8
- cause?: any;
9
- status: number;
10
- statusText: string;
7
+ declare class NotFound extends BadResponse {
11
8
  /**
12
9
  * Creates an instance of the `NotFound` class.
13
10
  *
14
- * @param message - A descriptive message explaining the reason the resource was not found.
15
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining the reason the resource was not found.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
16
13
  */
17
14
  constructor(message: string, cause?: any);
18
15
  /**
19
16
  * Converts the `NotFound` instance into a `Response` object with a JSON body.
20
17
  * This method ensures the response has the appropriate headers, status, and status text.
21
18
  *
22
- * @returns A `Response` object with the serialized JSON body and response metadata.
19
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
23
20
  */
24
21
  toResponse(): Response;
25
22
  /**
26
23
  * Converts the `NotFound` instance into a `Response` object using the `Response.json` method.
27
24
  * This method is an alternative to `toResponse` for generating JSON error responses.
28
25
  *
29
- * @returns A `Response` object with the JSON body and response metadata.
26
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
30
27
  */
31
28
  toJson(): Response;
32
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"notFound.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/notFound.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,cAAM,QAAQ;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAO;IACrB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAOxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"notFound.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/notFound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AAEH,cAAM,QAAS,SAAQ,WAAW;IAChC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAWxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,31 +1,29 @@
1
- import { httpDebug } from "../../services/httpDebug";
1
+ import { BadResponse } from "./_badResponse";
2
2
  /**
3
3
  * Represents an HTTP error response with a status code of 404 (Not Found).
4
4
  * This class is used to standardize the structure of a "Not Found" error response,
5
5
  * including the response body, headers, status, and status text.
6
6
  */
7
- class NotFound {
8
- body;
9
- cause;
10
- status = 404;
11
- statusText;
7
+ class NotFound extends BadResponse {
12
8
  /**
13
9
  * Creates an instance of the `NotFound` class.
14
10
  *
15
- * @param message - A descriptive message explaining the reason the resource was not found.
16
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining the reason the resource was not found.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
17
13
  */
18
14
  constructor(message, cause) {
19
- this.body = { name: "NotFound", message: message };
15
+ super();
16
+ this.name = "NotFound";
17
+ this.status = 404;
20
18
  this.statusText = message;
21
19
  this.cause = cause ? JSON.stringify(cause) : undefined;
22
- httpDebug("NotFound", this.body, this.cause);
20
+ this.onDebug();
23
21
  }
24
22
  /**
25
23
  * Converts the `NotFound` instance into a `Response` object with a JSON body.
26
24
  * This method ensures the response has the appropriate headers, status, and status text.
27
25
  *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
26
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
29
27
  */
30
28
  toResponse() {
31
29
  const responseInit = {
@@ -33,20 +31,20 @@ class NotFound {
33
31
  status: this.status,
34
32
  statusText: this.statusText,
35
33
  };
36
- return new Response(JSON.stringify(this.body), responseInit);
34
+ return new Response(JSON.stringify(this.makeBody()), responseInit);
37
35
  }
38
36
  /**
39
37
  * Converts the `NotFound` instance into a `Response` object using the `Response.json` method.
40
38
  * This method is an alternative to `toResponse` for generating JSON error responses.
41
39
  *
42
- * @returns A `Response` object with the JSON body and response metadata.
40
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
43
41
  */
44
42
  toJson() {
45
43
  const responseInit = {
46
44
  status: this.status,
47
45
  statusText: this.statusText,
48
46
  };
49
- return Response.json(this.body, responseInit);
47
+ return Response.json(this.makeBody(), responseInit);
50
48
  }
51
49
  }
52
50
  export { NotFound };
@@ -1,32 +1,29 @@
1
+ import { BadResponse } from "./_badResponse";
1
2
  /**
2
3
  * Represents an HTTP error response with a status code of 501 (Not Implemented).
3
4
  * This class is used to standardize the structure of a "Not Implemented" error response,
4
5
  * including the response body, headers, status, and status text.
5
6
  */
6
- declare class NotImplemented {
7
- body: any;
8
- cause?: any;
9
- status: number;
10
- statusText: string;
7
+ declare class NotImplemented extends BadResponse {
11
8
  /**
12
9
  * Creates an instance of the `NotImplemented` class.
13
10
  *
14
- * @param message - A descriptive message explaining why the functionality is not implemented.
15
- * @param cause - Optional additional information about the cause of the error.
11
+ * @param {string} message - A descriptive message explaining why the functionality is not implemented.
12
+ * @param {any} cause - Optional additional information about the cause of the error.
16
13
  */
17
14
  constructor(message: string, cause?: any);
18
15
  /**
19
16
  * Converts the `NotImplemented` instance into a `Response` object with a JSON body.
20
17
  * This method ensures the response has the appropriate headers, status, and status text.
21
18
  *
22
- * @returns A `Response` object with the serialized JSON body and response metadata.
19
+ * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
23
20
  */
24
21
  toResponse(): Response;
25
22
  /**
26
23
  * Converts the `NotImplemented` instance into a `Response` object using the `Response.json` method.
27
24
  * This method is an alternative to `toResponse` for generating JSON error responses.
28
25
  *
29
- * @returns A `Response` object with the JSON body and response metadata.
26
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
30
27
  */
31
28
  toJson(): Response;
32
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"notImplemented.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/notImplemented.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,cAAM,cAAc;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAO;IACrB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAOxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"notImplemented.d.ts","sourceRoot":"","sources":["../../../src/http/badResponses/notImplemented.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AAEH,cAAM,cAAe,SAAQ,WAAW;IACtC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAWxC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}