@arkyn/server 3.0.1-beta.117 → 3.0.1-beta.119

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 (178) hide show
  1. package/dist/bundle.js +721 -734
  2. package/dist/bundle.umd.cjs +5 -10
  3. package/dist/{api/arkynLogRequest.d.ts → http/api/_logRequest.d.ts} +22 -19
  4. package/dist/{api/arkynLogRequest.d.ts.map → http/api/_logRequest.d.ts.map} +1 -1
  5. package/dist/{api/arkynLogRequest.js → http/api/_logRequest.js} +30 -30
  6. package/dist/http/api/_makeRequest.d.ts +61 -0
  7. package/dist/http/api/_makeRequest.d.ts.map +1 -0
  8. package/dist/{api/makeRequest.js → http/api/_makeRequest.js} +29 -20
  9. package/dist/http/api/deleteRequest.d.ts +17 -0
  10. package/dist/http/api/deleteRequest.d.ts.map +1 -0
  11. package/dist/http/api/deleteRequest.js +18 -0
  12. package/dist/http/api/getRequest.d.ts +16 -0
  13. package/dist/http/api/getRequest.d.ts.map +1 -0
  14. package/dist/http/api/getRequest.js +17 -0
  15. package/dist/http/api/patchRequest.d.ts +17 -0
  16. package/dist/http/api/patchRequest.d.ts.map +1 -0
  17. package/dist/http/api/patchRequest.js +18 -0
  18. package/dist/http/api/postRequest.d.ts +17 -0
  19. package/dist/http/api/postRequest.d.ts.map +1 -0
  20. package/dist/http/api/postRequest.js +18 -0
  21. package/dist/http/api/putRequest.d.ts +17 -0
  22. package/dist/http/api/putRequest.d.ts.map +1 -0
  23. package/dist/http/api/putRequest.js +18 -0
  24. package/dist/http/badResponses/_badResponse.d.ts +18 -7
  25. package/dist/http/badResponses/_badResponse.d.ts.map +1 -1
  26. package/dist/http/badResponses/_badResponse.js +44 -13
  27. package/dist/http/badResponses/badGateway.d.ts +4 -8
  28. package/dist/http/badResponses/badGateway.d.ts.map +1 -1
  29. package/dist/http/badResponses/badGateway.js +9 -17
  30. package/dist/http/badResponses/badRequest.d.ts +4 -8
  31. package/dist/http/badResponses/badRequest.d.ts.map +1 -1
  32. package/dist/http/badResponses/badRequest.js +9 -17
  33. package/dist/http/badResponses/conflict.d.ts +4 -8
  34. package/dist/http/badResponses/conflict.d.ts.map +1 -1
  35. package/dist/http/badResponses/conflict.js +9 -17
  36. package/dist/http/badResponses/forbidden.d.ts +4 -8
  37. package/dist/http/badResponses/forbidden.d.ts.map +1 -1
  38. package/dist/http/badResponses/forbidden.js +9 -17
  39. package/dist/http/badResponses/notFound.d.ts +4 -8
  40. package/dist/http/badResponses/notFound.d.ts.map +1 -1
  41. package/dist/http/badResponses/notFound.js +9 -17
  42. package/dist/http/badResponses/notImplemented.d.ts +4 -8
  43. package/dist/http/badResponses/notImplemented.d.ts.map +1 -1
  44. package/dist/http/badResponses/notImplemented.js +9 -17
  45. package/dist/http/badResponses/serverError.d.ts +4 -8
  46. package/dist/http/badResponses/serverError.d.ts.map +1 -1
  47. package/dist/http/badResponses/serverError.js +9 -17
  48. package/dist/http/badResponses/unauthorized.d.ts +2 -6
  49. package/dist/http/badResponses/unauthorized.d.ts.map +1 -1
  50. package/dist/http/badResponses/unauthorized.js +7 -15
  51. package/dist/http/badResponses/unprocessableEntity.d.ts +13 -18
  52. package/dist/http/badResponses/unprocessableEntity.d.ts.map +1 -1
  53. package/dist/http/badResponses/unprocessableEntity.js +14 -22
  54. package/dist/http/successResponses/_successResponse.d.ts +18 -7
  55. package/dist/http/successResponses/_successResponse.d.ts.map +1 -1
  56. package/dist/http/successResponses/_successResponse.js +50 -21
  57. package/dist/http/successResponses/created.d.ts +8 -22
  58. package/dist/http/successResponses/created.d.ts.map +1 -1
  59. package/dist/http/successResponses/created.js +13 -25
  60. package/dist/http/successResponses/found.d.ts +9 -26
  61. package/dist/http/successResponses/found.d.ts.map +1 -1
  62. package/dist/http/successResponses/found.js +14 -29
  63. package/dist/http/successResponses/noContent.d.ts +4 -12
  64. package/dist/http/successResponses/noContent.d.ts.map +1 -1
  65. package/dist/http/successResponses/noContent.js +9 -17
  66. package/dist/http/successResponses/success.d.ts +8 -22
  67. package/dist/http/successResponses/success.d.ts.map +1 -1
  68. package/dist/http/successResponses/success.js +13 -25
  69. package/dist/http/successResponses/updated.d.ts +8 -22
  70. package/dist/http/successResponses/updated.d.ts.map +1 -1
  71. package/dist/http/successResponses/updated.js +13 -25
  72. package/dist/index.d.ts +9 -10
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +11 -12
  75. package/dist/services/apiService.d.ts +7 -28
  76. package/dist/services/apiService.d.ts.map +1 -1
  77. package/dist/services/apiService.js +36 -42
  78. package/dist/services/debugService.d.ts +16 -1
  79. package/dist/services/debugService.d.ts.map +1 -1
  80. package/dist/services/debugService.js +58 -1
  81. package/dist/services/logMapperService.d.ts +86 -0
  82. package/dist/services/logMapperService.d.ts.map +1 -0
  83. package/dist/services/logMapperService.js +68 -0
  84. package/dist/services/logService.d.ts +38 -0
  85. package/dist/services/logService.d.ts.map +1 -0
  86. package/dist/services/logService.js +40 -0
  87. package/dist/{services → utilities}/decodeRequestBody.d.ts +3 -4
  88. package/dist/utilities/decodeRequestBody.d.ts.map +1 -0
  89. package/dist/{services → utilities}/decodeRequestBody.js +5 -5
  90. package/dist/{services/decodeErrorMessageFromRequest.d.ts → utilities/decodeRequestErrorMessage.d.ts} +6 -6
  91. package/dist/utilities/decodeRequestErrorMessage.d.ts.map +1 -0
  92. package/dist/{services/decodeErrorMessageFromRequest.js → utilities/decodeRequestErrorMessage.js} +5 -5
  93. package/dist/utilities/errorHandler.d.ts +50 -0
  94. package/dist/utilities/errorHandler.d.ts.map +1 -0
  95. package/dist/{services → utilities}/errorHandler.js +34 -28
  96. package/dist/utilities/flushDebugLogs.d.ts +46 -0
  97. package/dist/utilities/flushDebugLogs.d.ts.map +1 -0
  98. package/dist/utilities/flushDebugLogs.js +59 -0
  99. package/dist/{services → utilities}/formAsyncParse.d.ts +3 -3
  100. package/dist/utilities/formAsyncParse.d.ts.map +1 -0
  101. package/dist/{services → utilities}/formAsyncParse.js +3 -3
  102. package/dist/{services → utilities}/formParse.d.ts +3 -3
  103. package/dist/utilities/formParse.d.ts.map +1 -0
  104. package/dist/{services → utilities}/formParse.js +3 -3
  105. package/dist/{services → utilities}/getScopedParams.d.ts +3 -4
  106. package/dist/utilities/getScopedParams.d.ts.map +1 -0
  107. package/dist/{services → utilities}/getScopedParams.js +4 -4
  108. package/dist/{services → utilities}/schemaValidator.d.ts +3 -15
  109. package/dist/utilities/schemaValidator.d.ts.map +1 -0
  110. package/dist/{services → utilities}/schemaValidator.js +3 -19
  111. package/dist/validations/validateCep.d.ts +7 -12
  112. package/dist/validations/validateCep.d.ts.map +1 -1
  113. package/dist/validations/validateCep.js +9 -15
  114. package/dist/validations/validateCnpj.d.ts +4 -5
  115. package/dist/validations/validateCnpj.d.ts.map +1 -1
  116. package/dist/validations/validateCnpj.js +12 -5
  117. package/dist/validations/validateCpf.d.ts +3 -4
  118. package/dist/validations/validateCpf.d.ts.map +1 -1
  119. package/dist/validations/validateCpf.js +11 -4
  120. package/dist/validations/validateDate.d.ts +16 -23
  121. package/dist/validations/validateDate.d.ts.map +1 -1
  122. package/dist/validations/validateDate.js +38 -56
  123. package/dist/validations/validateEmail.d.ts +3 -4
  124. package/dist/validations/validateEmail.d.ts.map +1 -1
  125. package/dist/validations/validateEmail.js +23 -35
  126. package/dist/validations/validatePassword.d.ts +3 -4
  127. package/dist/validations/validatePassword.d.ts.map +1 -1
  128. package/dist/validations/validatePassword.js +5 -5
  129. package/dist/validations/validatePhone.d.ts +3 -4
  130. package/dist/validations/validatePhone.d.ts.map +1 -1
  131. package/dist/validations/validatePhone.js +4 -4
  132. package/dist/validations/validateRg.d.ts +3 -4
  133. package/dist/validations/validateRg.d.ts.map +1 -1
  134. package/dist/validations/validateRg.js +4 -4
  135. package/package.json +1 -1
  136. package/dist/api/deleteRequest.d.ts +0 -13
  137. package/dist/api/deleteRequest.d.ts.map +0 -1
  138. package/dist/api/deleteRequest.js +0 -14
  139. package/dist/api/getRequest.d.ts +0 -12
  140. package/dist/api/getRequest.d.ts.map +0 -1
  141. package/dist/api/getRequest.js +0 -13
  142. package/dist/api/makeRequest.d.ts +0 -38
  143. package/dist/api/makeRequest.d.ts.map +0 -1
  144. package/dist/api/patchRequest.d.ts +0 -13
  145. package/dist/api/patchRequest.d.ts.map +0 -1
  146. package/dist/api/patchRequest.js +0 -14
  147. package/dist/api/postRequest.d.ts +0 -13
  148. package/dist/api/postRequest.d.ts.map +0 -1
  149. package/dist/api/postRequest.js +0 -14
  150. package/dist/api/putRequest.d.ts +0 -13
  151. package/dist/api/putRequest.d.ts.map +0 -1
  152. package/dist/api/putRequest.js +0 -14
  153. package/dist/mapper/arkynLogRequestMapper.d.ts +0 -30
  154. package/dist/mapper/arkynLogRequestMapper.d.ts.map +0 -1
  155. package/dist/mapper/arkynLogRequestMapper.js +0 -44
  156. package/dist/services/arkynLogService.d.ts +0 -44
  157. package/dist/services/arkynLogService.d.ts.map +0 -1
  158. package/dist/services/arkynLogService.js +0 -46
  159. package/dist/services/decodeErrorMessageFromRequest.d.ts.map +0 -1
  160. package/dist/services/decodeRequestBody.d.ts.map +0 -1
  161. package/dist/services/errorHandler.d.ts +0 -44
  162. package/dist/services/errorHandler.d.ts.map +0 -1
  163. package/dist/services/flushDebugLogs.d.ts +0 -8
  164. package/dist/services/flushDebugLogs.d.ts.map +0 -1
  165. package/dist/services/flushDebugLogs.js +0 -20
  166. package/dist/services/formAsyncParse.d.ts.map +0 -1
  167. package/dist/services/formParse.d.ts.map +0 -1
  168. package/dist/services/getCaller.d.ts +0 -17
  169. package/dist/services/getCaller.d.ts.map +0 -1
  170. package/dist/services/getCaller.js +0 -60
  171. package/dist/services/getScopedParams.d.ts.map +0 -1
  172. package/dist/services/measureRouteExecution.d.ts +0 -3
  173. package/dist/services/measureRouteExecution.d.ts.map +0 -1
  174. package/dist/services/measureRouteExecution.js +0 -24
  175. package/dist/services/schemaValidator.d.ts.map +0 -1
  176. package/dist/types/ApiResponseDTO.d.ts +0 -17
  177. package/dist/types/ApiResponseDTO.d.ts.map +0 -1
  178. package/dist/types/ApiResponseDTO.js +0 -1
@@ -1,38 +1,24 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
- type InitProps = ResponseInit & {
3
- message?: string;
4
- };
5
2
  /**
6
- * Represents a successful HTTP response with a status code of 201 (Created).
7
- * This class is used to standardize the structure of a "Created" response,
8
- * including the response body, headers, status, and status text.
9
- *
10
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 201 Created response.
11
4
  */
12
- declare class Created<T> extends SuccessResponse {
13
- body: T;
14
- headers: ResponseInit["headers"];
15
- status: number;
16
- statusText: string;
5
+ declare class Created extends SuccessResponse {
17
6
  /**
18
7
  * Creates an instance of the `Created` class.
19
8
  *
20
- * @param body - The response body to be included in the HTTP response.
21
- * @param init - Optional initialization object for customizing headers, status, and status text.
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
22
11
  */
23
- constructor(body: T, init?: InitProps);
12
+ constructor(message: string, body?: any);
24
13
  /**
25
- * Converts the `Created` instance into a `Response` object with a JSON body.
26
- * This method ensures the response has the appropriate headers, status, and status text.
27
- *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
14
+ * Converts the `Created` instance into a `Response` object.
15
+ * @returns {Response} A `Response` object with the body and response metadata.
29
16
  */
30
17
  toResponse(): Response;
31
18
  /**
32
19
  * Converts the `Created` instance into a `Response` object using the `Response.json` method.
33
20
  * This method is an alternative to `toResponse` for generating JSON responses.
34
- *
35
- * @returns A `Response` object with the JSON body and response metadata.
21
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
36
22
  */
37
23
  toJson(): Response;
38
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"created.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/created.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,KAAK,SAAS,GAAG,YAAY,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AAEH,cAAM,OAAO,CAAC,CAAC,CAAE,SAAQ,eAAe;IACtC,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;IAWrC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CASnB;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"created.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/created.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AAEH,cAAM,OAAQ,SAAQ,eAAe;IACnC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;IAWvC;;;OAGG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;OAIG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,39 +1,29 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
2
  /**
3
- * Represents a successful HTTP response with a status code of 201 (Created).
4
- * This class is used to standardize the structure of a "Created" response,
5
- * including the response body, headers, status, and status text.
6
- *
7
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 201 Created response.
8
4
  */
9
5
  class Created extends SuccessResponse {
10
- body;
11
- headers;
12
- status;
13
- statusText;
14
6
  /**
15
7
  * Creates an instance of the `Created` class.
16
8
  *
17
- * @param body - The response body to be included in the HTTP response.
18
- * @param init - Optional initialization object for customizing headers, status, and status text.
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
19
11
  */
20
- constructor(body, init) {
12
+ constructor(message, body) {
21
13
  super();
22
- this.body = { ...body, name: "Created", message: init?.message };
23
- this.headers = init?.headers || {};
24
- this.status = init?.status || 201;
25
- this.statusText = init?.statusText || "Resource created successfully";
26
- this.onDebug("Created", body);
14
+ this.name = "Created";
15
+ this.status = 201;
16
+ this.statusText = message;
17
+ this.body = body || undefined;
18
+ this.onDebug();
27
19
  }
28
20
  /**
29
- * Converts the `Created` instance into a `Response` object with a JSON body.
30
- * This method ensures the response has the appropriate headers, status, and status text.
31
- *
32
- * @returns A `Response` object with the serialized JSON body and response metadata.
21
+ * Converts the `Created` instance into a `Response` object.
22
+ * @returns {Response} A `Response` object with the body and response metadata.
33
23
  */
34
24
  toResponse() {
35
25
  const responseInit = {
36
- headers: { "Content-Type": "application/json", ...this.headers },
26
+ headers: { "Content-Type": "application/json" },
37
27
  status: this.status,
38
28
  statusText: this.statusText,
39
29
  };
@@ -42,12 +32,10 @@ class Created extends SuccessResponse {
42
32
  /**
43
33
  * Converts the `Created` instance into a `Response` object using the `Response.json` method.
44
34
  * This method is an alternative to `toResponse` for generating JSON responses.
45
- *
46
- * @returns A `Response` object with the JSON body and response metadata.
35
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
47
36
  */
48
37
  toJson() {
49
38
  const responseInit = {
50
- headers: this.headers,
51
39
  status: this.status,
52
40
  statusText: this.statusText,
53
41
  };
@@ -1,41 +1,24 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
- type InitProps = ResponseInit & {
3
- message?: string;
4
- };
5
2
  /**
6
- * Represents an HTTP 302 Found response.
7
- * This class is used to create a standardized HTTP response with a status of 302 (Found),
8
- * including optional headers and a response body.
9
- *
10
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 302 Found response.
11
4
  */
12
- declare class Found<T> extends SuccessResponse {
13
- body: T;
14
- headers: ResponseInit["headers"];
15
- status: number;
16
- statusText: string;
5
+ declare class Found extends SuccessResponse {
17
6
  /**
18
7
  * Creates an instance of the `Found` class.
19
8
  *
20
- * @param body - The body of the response.
21
- * @param init - Optional initialization object to set headers, status, and statusText.
22
- * - `headers`: Additional headers to include in the response.
23
- * - `status`: HTTP status code (default is 302).
24
- * - `statusText`: HTTP status text (default is "Found").
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
25
11
  */
26
- constructor(body: T, init?: InitProps);
12
+ constructor(message: string, body?: any);
27
13
  /**
28
14
  * Converts the `Found` instance into a `Response` object.
29
- * This method serializes the response body as JSON and includes the appropriate headers.
30
- *
31
- * @returns A `Response` object with the serialized JSON body and the specified headers, status, and statusText.
15
+ * @returns {Response} A `Response` object with the body and response metadata.
32
16
  */
33
17
  toResponse(): Response;
34
18
  /**
35
- * Converts the `Found` instance into a JSON response using `Response.json`.
36
- * This method is an alternative to `toResponse` for creating JSON responses.
37
- *
38
- * @returns A `Response` object with the JSON body and the specified headers, status, and statusText.
19
+ * Converts the `Found` instance into a `Response` object using the `Response.json` method.
20
+ * This method is an alternative to `toResponse` for generating JSON responses.
21
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
39
22
  */
40
23
  toJson(): Response;
41
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"found.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/found.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,KAAK,SAAS,GAAG,YAAY,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AAEH,cAAM,KAAK,CAAC,CAAC,CAAE,SAAQ,eAAe;IACpC,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;gBAES,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;IAWrC;;;;;OAKG;IAEH,UAAU;IAUV;;;;;OAKG;IAEH,MAAM;CASP;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"found.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/found.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AAEH,cAAM,KAAM,SAAQ,eAAe;IACjC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;IAWvC;;;OAGG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;OAIG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,56 +1,41 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
2
  /**
3
- * Represents an HTTP 302 Found response.
4
- * This class is used to create a standardized HTTP response with a status of 302 (Found),
5
- * including optional headers and a response body.
6
- *
7
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 302 Found response.
8
4
  */
9
5
  class Found extends SuccessResponse {
10
- body;
11
- headers;
12
- status;
13
- statusText;
14
6
  /**
15
7
  * Creates an instance of the `Found` class.
16
8
  *
17
- * @param body - The body of the response.
18
- * @param init - Optional initialization object to set headers, status, and statusText.
19
- * - `headers`: Additional headers to include in the response.
20
- * - `status`: HTTP status code (default is 302).
21
- * - `statusText`: HTTP status text (default is "Found").
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
22
11
  */
23
- constructor(body, init) {
12
+ constructor(message, body) {
24
13
  super();
25
- this.body = { ...body, name: "Found", message: init?.message };
26
- this.headers = init?.headers || {};
27
- this.status = init?.status || 302;
28
- this.statusText = init?.statusText || "Found";
29
- this.onDebug("Found", body);
14
+ this.name = "Found";
15
+ this.status = 302;
16
+ this.statusText = message;
17
+ this.body = body || undefined;
18
+ this.onDebug();
30
19
  }
31
20
  /**
32
21
  * Converts the `Found` instance into a `Response` object.
33
- * This method serializes the response body as JSON and includes the appropriate headers.
34
- *
35
- * @returns A `Response` object with the serialized JSON body and the specified headers, status, and statusText.
22
+ * @returns {Response} A `Response` object with the body and response metadata.
36
23
  */
37
24
  toResponse() {
38
25
  const responseInit = {
39
- headers: { "Content-Type": "application/json", ...this.headers },
26
+ headers: { "Content-Type": "application/json" },
40
27
  status: this.status,
41
28
  statusText: this.statusText,
42
29
  };
43
30
  return new Response(JSON.stringify(this.body), responseInit);
44
31
  }
45
32
  /**
46
- * Converts the `Found` instance into a JSON response using `Response.json`.
47
- * This method is an alternative to `toResponse` for creating JSON responses.
48
- *
49
- * @returns A `Response` object with the JSON body and the specified headers, status, and statusText.
33
+ * Converts the `Found` instance into a `Response` object using the `Response.json` method.
34
+ * This method is an alternative to `toResponse` for generating JSON responses.
35
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
50
36
  */
51
37
  toJson() {
52
38
  const responseInit = {
53
- headers: this.headers,
54
39
  status: this.status,
55
40
  statusText: this.statusText,
56
41
  };
@@ -1,24 +1,16 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
2
  /**
3
- * Represents a successful HTTP response with a status code of 204 (No Content).
4
- * This class is used to standardize the structure of a "No Content" response,
5
- * including headers, status, and status text.
3
+ * Class representing a successful HTTP 204 NoContent response.
6
4
  */
7
5
  declare class NoContent extends SuccessResponse {
8
- headers: ResponseInit["headers"];
9
- status: number;
10
- statusText: string;
11
6
  /**
12
7
  * Creates an instance of the `NoContent` class.
13
- *
14
- * @param init - Optional initialization object for customizing headers, status, and status text.
8
+ * @param {string} message - A message describing the creation status.
15
9
  */
16
- constructor(init?: ResponseInit);
10
+ constructor(message: string);
17
11
  /**
18
12
  * Converts the `NoContent` instance into a `Response` object.
19
- * This method ensures the response has the appropriate headers, status, and status text.
20
- *
21
- * @returns A `Response` object with no body and response metadata.
13
+ * @returns {Response} A `Response` object with the body and response metadata.
22
14
  */
23
15
  toResponse(): Response;
24
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"noContent.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/noContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;GAIG;AAEH,cAAM,SAAU,SAAQ,eAAe;IACrC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBAES,IAAI,CAAC,EAAE,YAAY;IAU/B;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;CASvB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"noContent.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/noContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AAEH,cAAM,SAAU,SAAQ,eAAe;IACrC;;;OAGG;gBAES,OAAO,EAAE,MAAM;IAU3B;;;OAGG;IAEH,UAAU,IAAI,QAAQ;CASvB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,34 +1,26 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
2
  /**
3
- * Represents a successful HTTP response with a status code of 204 (No Content).
4
- * This class is used to standardize the structure of a "No Content" response,
5
- * including headers, status, and status text.
3
+ * Class representing a successful HTTP 204 NoContent response.
6
4
  */
7
5
  class NoContent extends SuccessResponse {
8
- headers;
9
- status;
10
- statusText;
11
6
  /**
12
7
  * Creates an instance of the `NoContent` class.
13
- *
14
- * @param init - Optional initialization object for customizing headers, status, and status text.
8
+ * @param {string} message - A message describing the creation status.
15
9
  */
16
- constructor(init) {
10
+ constructor(message) {
17
11
  super();
18
- this.headers = init?.headers || {};
19
- this.status = init?.status || 204;
20
- this.statusText = init?.statusText ?? "No content";
21
- this.onDebug("No content", null);
12
+ this.name = "NoContent";
13
+ this.status = 204;
14
+ this.statusText = message;
15
+ this.onDebug();
22
16
  }
23
17
  /**
24
18
  * Converts the `NoContent` instance into a `Response` object.
25
- * This method ensures the response has the appropriate headers, status, and status text.
26
- *
27
- * @returns A `Response` object with no body and response metadata.
19
+ * @returns {Response} A `Response` object with the body and response metadata.
28
20
  */
29
21
  toResponse() {
30
22
  const responseInit = {
31
- headers: this.headers,
23
+ headers: { "Content-Type": "application/json" },
32
24
  status: this.status,
33
25
  statusText: this.statusText,
34
26
  };
@@ -1,38 +1,24 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
- type InitProps = ResponseInit & {
3
- message?: string;
4
- };
5
2
  /**
6
- * Represents a successful HTTP response with a status code of 200 (OK).
7
- * This class is used to standardize the structure of a "Success" response,
8
- * including the response body, headers, status, and status text.
9
- *
10
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 200 Success response.
11
4
  */
12
- declare class Success<T> extends SuccessResponse {
13
- body: T;
14
- headers: ResponseInit["headers"];
15
- status: number;
16
- statusText: string;
5
+ declare class Success extends SuccessResponse {
17
6
  /**
18
7
  * Creates an instance of the `Success` class.
19
8
  *
20
- * @param body - The response body to be included in the HTTP response.
21
- * @param init - Optional initialization object for customizing headers, status, and status text.
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
22
11
  */
23
- constructor(body: T, init?: InitProps);
12
+ constructor(message: string, body?: any);
24
13
  /**
25
- * Converts the `Success` instance into a `Response` object with a JSON body.
26
- * This method ensures the response has the appropriate headers, status, and status text.
27
- *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
14
+ * Converts the `Success` instance into a `Response` object.
15
+ * @returns {Response} A `Response` object with the body and response metadata.
29
16
  */
30
17
  toResponse(): Response;
31
18
  /**
32
19
  * Converts the `Success` instance into a `Response` object using the `Response.json` method.
33
20
  * This method is an alternative to `toResponse` for generating JSON responses.
34
- *
35
- * @returns A `Response` object with the JSON body and response metadata.
21
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
36
22
  */
37
23
  toJson(): Response;
38
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/success.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,KAAK,SAAS,GAAG,YAAY,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AAEH,cAAM,OAAO,CAAC,CAAC,CAAE,SAAQ,eAAe;IACtC,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;IAWrC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CASnB;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/success.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AAEH,cAAM,OAAQ,SAAQ,eAAe;IACnC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;IAWvC;;;OAGG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;OAIG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,39 +1,29 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
2
  /**
3
- * Represents a successful HTTP response with a status code of 200 (OK).
4
- * This class is used to standardize the structure of a "Success" response,
5
- * including the response body, headers, status, and status text.
6
- *
7
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 200 Success response.
8
4
  */
9
5
  class Success extends SuccessResponse {
10
- body;
11
- headers;
12
- status;
13
- statusText;
14
6
  /**
15
7
  * Creates an instance of the `Success` class.
16
8
  *
17
- * @param body - The response body to be included in the HTTP response.
18
- * @param init - Optional initialization object for customizing headers, status, and status text.
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
19
11
  */
20
- constructor(body, init) {
12
+ constructor(message, body) {
21
13
  super();
22
- this.body = { ...body, name: "Success", message: init?.message };
23
- this.headers = init?.headers || {};
24
- this.status = init?.status || 200;
25
- this.statusText = init?.statusText ?? "OK";
26
- this.onDebug("Success", body);
14
+ this.name = "Success";
15
+ this.status = 200;
16
+ this.statusText = message;
17
+ this.body = body || undefined;
18
+ this.onDebug();
27
19
  }
28
20
  /**
29
- * Converts the `Success` instance into a `Response` object with a JSON body.
30
- * This method ensures the response has the appropriate headers, status, and status text.
31
- *
32
- * @returns A `Response` object with the serialized JSON body and response metadata.
21
+ * Converts the `Success` instance into a `Response` object.
22
+ * @returns {Response} A `Response` object with the body and response metadata.
33
23
  */
34
24
  toResponse() {
35
25
  const responseInit = {
36
- headers: { "Content-Type": "application/json", ...this.headers },
26
+ headers: { "Content-Type": "application/json" },
37
27
  status: this.status,
38
28
  statusText: this.statusText,
39
29
  };
@@ -42,12 +32,10 @@ class Success extends SuccessResponse {
42
32
  /**
43
33
  * Converts the `Success` instance into a `Response` object using the `Response.json` method.
44
34
  * This method is an alternative to `toResponse` for generating JSON responses.
45
- *
46
- * @returns A `Response` object with the JSON body and response metadata.
35
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
47
36
  */
48
37
  toJson() {
49
38
  const responseInit = {
50
- headers: this.headers,
51
39
  status: this.status,
52
40
  statusText: this.statusText,
53
41
  };
@@ -1,38 +1,24 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
- type InitProps = ResponseInit & {
3
- message?: string;
4
- };
5
2
  /**
6
- * Represents a successful HTTP response with a status code of 200 (OK) or other custom status codes.
7
- * This class is used to standardize the structure of an "Updated" response,
8
- * including the response body, headers, status, and status text.
9
- *
10
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 200 Updated response.
11
4
  */
12
- declare class Updated<T> extends SuccessResponse {
13
- body: T;
14
- headers: ResponseInit["headers"];
15
- status: number;
16
- statusText: string;
5
+ declare class Updated extends SuccessResponse {
17
6
  /**
18
7
  * Creates an instance of the `Updated` class.
19
8
  *
20
- * @param body - The response body to be included in the HTTP response.
21
- * @param init - Optional initialization object for customizing headers, status, and status text.
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
22
11
  */
23
- constructor(body: T, init?: InitProps);
12
+ constructor(message: string, body?: any);
24
13
  /**
25
- * Converts the `Updated` instance into a `Response` object with a JSON body.
26
- * This method ensures the response has the appropriate headers, status, and status text.
27
- *
28
- * @returns A `Response` object with the serialized JSON body and response metadata.
14
+ * Converts the `Updated` instance into a `Response` object.
15
+ * @returns {Response} A `Response` object with the body and response metadata.
29
16
  */
30
17
  toResponse(): Response;
31
18
  /**
32
19
  * Converts the `Updated` instance into a `Response` object using the `Response.json` method.
33
20
  * This method is an alternative to `toResponse` for generating JSON responses.
34
- *
35
- * @returns A `Response` object with the JSON body and response metadata.
21
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
36
22
  */
37
23
  toJson(): Response;
38
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"updated.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/updated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,KAAK,SAAS,GAAG,YAAY,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AAEH,cAAM,OAAO,CAAC,CAAC,CAAE,SAAQ,eAAe;IACtC,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAES,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;IAWrC;;;;;OAKG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;;OAKG;IAEH,MAAM,IAAI,QAAQ;CASnB;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"updated.d.ts","sourceRoot":"","sources":["../../../src/http/successResponses/updated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AAEH,cAAM,OAAQ,SAAQ,eAAe;IACnC;;;;;OAKG;gBAES,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;IAWvC;;;OAGG;IAEH,UAAU,IAAI,QAAQ;IAUtB;;;;OAIG;IAEH,MAAM,IAAI,QAAQ;CAQnB;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,39 +1,29 @@
1
1
  import { SuccessResponse } from "./_successResponse";
2
2
  /**
3
- * Represents a successful HTTP response with a status code of 200 (OK) or other custom status codes.
4
- * This class is used to standardize the structure of an "Updated" response,
5
- * including the response body, headers, status, and status text.
6
- *
7
- * @template T - The type of the response body.
3
+ * Class representing a successful HTTP 200 Updated response.
8
4
  */
9
5
  class Updated extends SuccessResponse {
10
- body;
11
- headers;
12
- status;
13
- statusText;
14
6
  /**
15
7
  * Creates an instance of the `Updated` class.
16
8
  *
17
- * @param body - The response body to be included in the HTTP response.
18
- * @param init - Optional initialization object for customizing headers, status, and status text.
9
+ * @param {string} message - A message describing the creation status.
10
+ * @param {any} body - The response body to be included in the HTTP response.
19
11
  */
20
- constructor(body, init) {
12
+ constructor(message, body) {
21
13
  super();
22
- this.body = { ...body, name: "Updated", message: init?.message };
23
- this.headers = init?.headers || {};
24
- this.status = init?.status || 200;
25
- this.statusText = init?.statusText || "Resource updated successfully";
26
- this.onDebug("Updated", body);
14
+ this.name = "Updated";
15
+ this.status = 200;
16
+ this.statusText = message;
17
+ this.body = body || undefined;
18
+ this.onDebug();
27
19
  }
28
20
  /**
29
- * Converts the `Updated` instance into a `Response` object with a JSON body.
30
- * This method ensures the response has the appropriate headers, status, and status text.
31
- *
32
- * @returns A `Response` object with the serialized JSON body and response metadata.
21
+ * Converts the `Updated` instance into a `Response` object.
22
+ * @returns {Response} A `Response` object with the body and response metadata.
33
23
  */
34
24
  toResponse() {
35
25
  const responseInit = {
36
- headers: { "Content-Type": "application/json", ...this.headers },
26
+ headers: { "Content-Type": "application/json" },
37
27
  status: this.status,
38
28
  statusText: this.statusText,
39
29
  };
@@ -42,12 +32,10 @@ class Updated extends SuccessResponse {
42
32
  /**
43
33
  * Converts the `Updated` instance into a `Response` object using the `Response.json` method.
44
34
  * This method is an alternative to `toResponse` for generating JSON responses.
45
- *
46
- * @returns A `Response` object with the JSON body and response metadata.
35
+ * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
47
36
  */
48
37
  toJson() {
49
38
  const responseInit = {
50
- headers: this.headers,
51
39
  status: this.status,
52
40
  statusText: this.statusText,
53
41
  };
package/dist/index.d.ts CHANGED
@@ -13,17 +13,16 @@ export { NoContent } from "./http/successResponses/noContent";
13
13
  export { Success } from "./http/successResponses/success";
14
14
  export { Updated } from "./http/successResponses/updated";
15
15
  export { ApiService } from "./services/apiService";
16
- export { ArkynLogService } from "./services/arkynLogService";
17
16
  export { DebugService } from "./services/debugService";
18
- export { decodeErrorMessageFromRequest } from "./services/decodeErrorMessageFromRequest";
19
- export { decodeRequestBody } from "./services/decodeRequestBody";
20
- export { errorHandler } from "./services/errorHandler";
21
- export { flushDebugLogs } from "./services/flushDebugLogs";
22
- export { formAsyncParse } from "./services/formAsyncParse";
23
- export { formParse } from "./services/formParse";
24
- export { getCaller } from "./services/getCaller";
25
- export { getScopedParams } from "./services/getScopedParams";
26
- export { SchemaValidator } from "./services/schemaValidator";
17
+ export { LogService } from "./services/logService";
18
+ export { decodeRequestBody } from "./utilities/decodeRequestBody";
19
+ export { decodeRequestErrorMessage } from "./utilities/decodeRequestErrorMessage";
20
+ export { errorHandler } from "./utilities/errorHandler";
21
+ export { flushDebugLogs } from "./utilities/flushDebugLogs";
22
+ export { formAsyncParse } from "./utilities/formAsyncParse";
23
+ export { formParse } from "./utilities/formParse";
24
+ export { getScopedParams } from "./utilities/getScopedParams";
25
+ export { SchemaValidator } from "./utilities/schemaValidator";
27
26
  export { validateCep } from "./validations/validateCep";
28
27
  export { validateCnpj } from "./validations/validateCnpj";
29
28
  export { validateCpf } from "./validations/validateCpf";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAG9E,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC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