@atlantjs/arch 15.6.5 → 15.6.7

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 (340) hide show
  1. package/biome.json +1 -1
  2. package/package.json +11 -11
  3. package/{@tool-box → src/@tool-box}/tests/builder.abstract.util.d.ts +1 -0
  4. package/src/@tool-box/tests/builder.abstract.util.d.ts.map +1 -0
  5. package/src/@tool-box/tests/builders/datetime/datetime.edge.builder.d.ts +7 -0
  6. package/src/@tool-box/tests/builders/datetime/datetime.edge.builder.d.ts.map +1 -0
  7. package/{@tool-box → src/@tool-box}/tests/builders/datetime/datetime.edge.builder.js +3 -3
  8. package/src/@tool-box/tests/builders/failures/dummies/failure.dummy.d.ts +5 -0
  9. package/src/@tool-box/tests/builders/failures/dummies/failure.dummy.d.ts.map +1 -0
  10. package/{@tool-box → src/@tool-box}/tests/builders/failures/dummies/failure.dummy.js +1 -1
  11. package/{@tool-box → src/@tool-box}/tests/builders/failures/failure.builder.d.ts +2 -1
  12. package/src/@tool-box/tests/builders/failures/failure.builder.d.ts.map +1 -0
  13. package/{@tool-box → src/@tool-box}/tests/builders/failures/failure.builder.js +2 -2
  14. package/src/@tool-box/tests/builders/metadata/metadata-uv.builder.d.ts +7 -0
  15. package/src/@tool-box/tests/builders/metadata/metadata-uv.builder.d.ts.map +1 -0
  16. package/{@tool-box → src/@tool-box}/tests/builders/metadata/metadata-uv.builder.js +3 -3
  17. package/src/@tool-box/tests/builders/metadata/metadata.edge.builder.d.ts +7 -0
  18. package/src/@tool-box/tests/builders/metadata/metadata.edge.builder.d.ts.map +1 -0
  19. package/{@tool-box → src/@tool-box}/tests/builders/metadata/metadata.edge.builder.js +3 -3
  20. package/src/@tool-box/tests/builders/user/email.edge.builder.d.ts +7 -0
  21. package/src/@tool-box/tests/builders/user/email.edge.builder.d.ts.map +1 -0
  22. package/{@tool-box → src/@tool-box}/tests/builders/user/email.edge.builder.js +3 -3
  23. package/src/@tool-box/tests/builders/user/username.edge.builder.d.ts +7 -0
  24. package/src/@tool-box/tests/builders/user/username.edge.builder.d.ts.map +1 -0
  25. package/{@tool-box → src/@tool-box}/tests/builders/user/username.edge.builder.js +3 -3
  26. package/{@tool-box → src/@tool-box}/tests/faker/faker.d.ts +1 -0
  27. package/src/@tool-box/tests/faker/faker.d.ts.map +1 -0
  28. package/{@tool-box → src/@tool-box}/utils/convert-units/convert-units.d.ts +6 -5
  29. package/src/@tool-box/utils/convert-units/convert-units.d.ts.map +1 -0
  30. package/{@tool-box → src/@tool-box}/utils/convert-units/convert-units.js +5 -5
  31. package/src/@tool-box/utils/datatypes/boolean-utils.d.ts +2 -0
  32. package/src/@tool-box/utils/datatypes/boolean-utils.d.ts.map +1 -0
  33. package/{@tool-box → src/@tool-box}/utils/datatypes/boolean-utils.js +1 -10
  34. package/{@tool-box → src/@tool-box}/utils/datatypes/generic-types.d.ts +1 -0
  35. package/src/@tool-box/utils/datatypes/generic-types.d.ts.map +1 -0
  36. package/{@tool-box → src/@tool-box}/utils/datatypes/plainify.d.ts +1 -0
  37. package/src/@tool-box/utils/datatypes/plainify.d.ts.map +1 -0
  38. package/src/@tool-box/utils/datatypes/string-utils.d.ts +2 -0
  39. package/src/@tool-box/utils/datatypes/string-utils.d.ts.map +1 -0
  40. package/{@tool-box → src/@tool-box}/utils/datatypes/string-utils.js +1 -0
  41. package/src/@tool-box/utils/datetime/mappers/month.mapper.d.ts +7 -0
  42. package/src/@tool-box/utils/datetime/mappers/month.mapper.d.ts.map +1 -0
  43. package/{@tool-box → src/@tool-box}/utils/datetime/mappers/month.mapper.js +2 -2
  44. package/{@tool-box → src/@tool-box}/utils/datetime/mappers/points/month-abbreviation.enum.d.ts +1 -0
  45. package/src/@tool-box/utils/datetime/mappers/points/month-abbreviation.enum.d.ts.map +1 -0
  46. package/{@tool-box → src/@tool-box}/utils/datetime/mappers/points/month-number.enum.d.ts +1 -0
  47. package/src/@tool-box/utils/datetime/mappers/points/month-number.enum.d.ts.map +1 -0
  48. package/{@tool-box → src/@tool-box}/utils/ducts/common.d.ts +1 -0
  49. package/src/@tool-box/utils/ducts/common.d.ts.map +1 -0
  50. package/{@tool-box → src/@tool-box}/utils/ducts/common.js +1 -1
  51. package/{@tool-box → src/@tool-box}/utils/ducts/optional-type.d.ts +2 -1
  52. package/src/@tool-box/utils/ducts/optional-type.d.ts.map +1 -0
  53. package/{@tool-box → src/@tool-box}/utils/ducts/optional-type.js +1 -1
  54. package/{@tool-box → src/@tool-box}/utils/ducts/return-type.d.ts +3 -2
  55. package/src/@tool-box/utils/ducts/return-type.d.ts.map +1 -0
  56. package/{@tool-box → src/@tool-box}/utils/ducts/return-type.js +1 -1
  57. package/{@tool-box → src/@tool-box}/utils/http-provider/http-provider-failure-response.d.ts +3 -3
  58. package/src/@tool-box/utils/http-provider/http-provider-failure-response.d.ts.map +1 -0
  59. package/{@tool-box → src/@tool-box}/utils/http-provider/http-provider-failure-response.js +1 -1
  60. package/{@tool-box → src/@tool-box}/utils/http-provider/http-provider-success-response.d.ts +2 -1
  61. package/src/@tool-box/utils/http-provider/http-provider-success-response.d.ts.map +1 -0
  62. package/{@tool-box → src/@tool-box}/utils/http-provider/http-provider.d.ts +5 -4
  63. package/src/@tool-box/utils/http-provider/http-provider.d.ts.map +1 -0
  64. package/{@tool-box → src/@tool-box}/utils/http-provider/http-provider.js +4 -4
  65. package/{@tool-box → src/@tool-box}/utils/logger/index.d.ts +1 -0
  66. package/src/@tool-box/utils/logger/index.d.ts.map +1 -0
  67. package/{@tool-box → src/@tool-box}/utils/map/map.abstract.d.ts +1 -0
  68. package/src/@tool-box/utils/map/map.abstract.d.ts.map +1 -0
  69. package/{@tool-box → src/@tool-box}/utils/random/random.d.ts +1 -0
  70. package/src/@tool-box/utils/random/random.d.ts.map +1 -0
  71. package/{@tool-box → src/@tool-box}/utils/type-guard/guardian-exception.d.ts +1 -0
  72. package/src/@tool-box/utils/type-guard/guardian-exception.d.ts.map +1 -0
  73. package/{@tool-box → src/@tool-box}/utils/type-guard/guardian.d.ts +3 -2
  74. package/src/@tool-box/utils/type-guard/guardian.d.ts.map +1 -0
  75. package/{@tool-box → src/@tool-box}/utils/type-guard/guardian.js +1 -1
  76. package/{@tool-box → src/@tool-box}/utils/type-guard/guardian.type.d.ts +1 -0
  77. package/src/@tool-box/utils/type-guard/guardian.type.d.ts.map +1 -0
  78. package/{@tool-box → src/@tool-box}/utils/validators/is-cron-expression.d.ts +1 -0
  79. package/src/@tool-box/utils/validators/is-cron-expression.d.ts.map +1 -0
  80. package/{@tool-box → src/@tool-box}/utils/validators/is-date-string.d.ts +1 -0
  81. package/src/@tool-box/utils/validators/is-date-string.d.ts.map +1 -0
  82. package/{@tool-box → src/@tool-box}/utils/validators/is-password-match.d.ts +1 -0
  83. package/src/@tool-box/utils/validators/is-password-match.d.ts.map +1 -0
  84. package/{@tool-box → src/@tool-box}/utils/validators/is-password-match.js +1 -1
  85. package/{@tool-box → src/@tool-box}/utils/validators/is-password-policy.validator.d.ts +1 -0
  86. package/src/@tool-box/utils/validators/is-password-policy.validator.d.ts.map +1 -0
  87. package/{@tool-box → src/@tool-box}/utils/validators/is-password-policy.validator.js +1 -1
  88. package/{@tool-box → src/@tool-box}/utils/validators/is-schedule.d.ts +1 -0
  89. package/src/@tool-box/utils/validators/is-schedule.d.ts.map +1 -0
  90. package/{@tool-box → src/@tool-box}/utils/validators/is-time-string.d.ts +1 -0
  91. package/src/@tool-box/utils/validators/is-time-string.d.ts.map +1 -0
  92. package/{@tool-box → src/@tool-box}/utils/validators/is-ulid.d.ts +1 -0
  93. package/src/@tool-box/utils/validators/is-ulid.d.ts.map +1 -0
  94. package/src/index.d.ts +77 -0
  95. package/src/index.d.ts.map +1 -0
  96. package/{index.js → src/index.js} +68 -68
  97. package/{objects → src/objects}/@common/edges/email.edge.d.ts +2 -1
  98. package/src/objects/@common/edges/email.edge.d.ts.map +1 -0
  99. package/{objects → src/objects}/@common/edges/email.edge.js +1 -2
  100. package/{objects → src/objects}/@common/edges/ulid.sketch.edge.d.ts +1 -0
  101. package/src/objects/@common/edges/ulid.sketch.edge.d.ts.map +1 -0
  102. package/{objects → src/objects}/@common/edges/ulid.sketch.edge.js +1 -1
  103. package/{objects → src/objects}/@common/edges/url.edge.d.ts +2 -1
  104. package/src/objects/@common/edges/url.edge.d.ts.map +1 -0
  105. package/{objects → src/objects}/@common/edges/url.edge.js +1 -1
  106. package/{objects → src/objects}/@common/edges/username.edge.d.ts +2 -1
  107. package/src/objects/@common/edges/username.edge.d.ts.map +1 -0
  108. package/{objects → src/objects}/@common/edges/username.edge.js +1 -1
  109. package/{objects → src/objects}/@common/edges/uuid.sketch.edge.d.ts +1 -0
  110. package/src/objects/@common/edges/uuid.sketch.edge.d.ts.map +1 -0
  111. package/{objects → src/objects}/@common/edges/uuid.sketch.edge.js +1 -1
  112. package/{objects → src/objects}/@common/points/environment.point.d.ts +1 -0
  113. package/src/objects/@common/points/environment.point.d.ts.map +1 -0
  114. package/{objects → src/objects}/@common/points/header-token-name.point.d.ts +1 -0
  115. package/src/objects/@common/points/header-token-name.point.d.ts.map +1 -0
  116. package/{objects → src/objects}/@common/points/http-status-codes.point.d.ts +1 -0
  117. package/src/objects/@common/points/http-status-codes.point.d.ts.map +1 -0
  118. package/{objects → src/objects}/amount/amount-value.edge.d.ts +2 -1
  119. package/src/objects/amount/amount-value.edge.d.ts.map +1 -0
  120. package/{objects → src/objects}/amount/amount-value.edge.js +1 -1
  121. package/{objects → src/objects}/amount/amount.edge.d.ts +143 -133
  122. package/src/objects/amount/amount.edge.d.ts.map +1 -0
  123. package/{objects → src/objects}/amount/amount.edge.js +175 -148
  124. package/{objects → src/objects}/amount/amount.polygon.d.ts +1 -0
  125. package/src/objects/amount/amount.polygon.d.ts.map +1 -0
  126. package/src/objects/amount/amount.uv.d.ts +9 -0
  127. package/src/objects/amount/amount.uv.d.ts.map +1 -0
  128. package/{objects → src/objects}/amount/amount.uv.js +2 -2
  129. package/{objects → src/objects}/amount/points/duration-unit.point.d.ts +1 -0
  130. package/src/objects/amount/points/duration-unit.point.d.ts.map +1 -0
  131. package/{objects → src/objects}/amount/points/energy-unit.point.d.ts +1 -0
  132. package/src/objects/amount/points/energy-unit.point.d.ts.map +1 -0
  133. package/{objects → src/objects}/amount/points/length-unit.point.d.ts +1 -0
  134. package/src/objects/amount/points/length-unit.point.d.ts.map +1 -0
  135. package/{objects → src/objects}/amount/points/mass-unit.point.d.ts +1 -0
  136. package/src/objects/amount/points/mass-unit.point.d.ts.map +1 -0
  137. package/{objects → src/objects}/amount/points/month-name.point.d.ts +1 -0
  138. package/src/objects/amount/points/month-name.point.d.ts.map +1 -0
  139. package/{objects → src/objects}/amount/points/object-unit.point.d.ts +1 -0
  140. package/src/objects/amount/points/object-unit.point.d.ts.map +1 -0
  141. package/src/objects/amount/points/units.point.d.ts +7 -0
  142. package/src/objects/amount/points/units.point.d.ts.map +1 -0
  143. package/{objects → src/objects}/amount/points/volume-unit.point.d.ts +1 -0
  144. package/src/objects/amount/points/volume-unit.point.d.ts.map +1 -0
  145. package/{objects → src/objects}/amount/points/week-day.point.d.ts +1 -0
  146. package/src/objects/amount/points/week-day.point.d.ts.map +1 -0
  147. package/src/objects/datetime/edges/datetime.edge.d.ts +467 -0
  148. package/src/objects/datetime/edges/datetime.edge.d.ts.map +1 -0
  149. package/{objects → src/objects}/datetime/edges/datetime.edge.js +209 -220
  150. package/src/objects/datetime/edges/locale/day/day-name-to-english.mapper.d.ts +5 -0
  151. package/src/objects/datetime/edges/locale/day/day-name-to-english.mapper.d.ts.map +1 -0
  152. package/src/objects/datetime/edges/locale/day/day-name-to-english.mapper.js +19 -0
  153. package/src/objects/datetime/edges/locale/day/day-name-to-portuguese.mapper.d.ts +5 -0
  154. package/src/objects/datetime/edges/locale/day/day-name-to-portuguese.mapper.d.ts.map +1 -0
  155. package/src/objects/datetime/edges/locale/day/day-name-to-portuguese.mapper.js +19 -0
  156. package/src/objects/datetime/edges/locale/day/today-to-language.mapper.d.ts +6 -0
  157. package/src/objects/datetime/edges/locale/day/today-to-language.mapper.d.ts.map +1 -0
  158. package/src/objects/datetime/edges/locale/day/today-to-language.mapper.js +15 -0
  159. package/src/objects/datetime/edges/locale/holidays-country.type.d.ts +3 -0
  160. package/src/objects/datetime/edges/locale/holidays-country.type.d.ts.map +1 -0
  161. package/src/objects/datetime/edges/locale/month/month-to-english.mapper.d.ts +5 -0
  162. package/src/objects/datetime/edges/locale/month/month-to-english.mapper.d.ts.map +1 -0
  163. package/src/objects/datetime/edges/locale/month/month-to-english.mapper.js +24 -0
  164. package/src/objects/datetime/edges/locale/month/month-to-portuguese.mapper.d.ts +5 -0
  165. package/src/objects/datetime/edges/locale/month/month-to-portuguese.mapper.d.ts.map +1 -0
  166. package/src/objects/datetime/edges/locale/month/month-to-portuguese.mapper.js +24 -0
  167. package/{objects → src/objects}/datetime/points/month-name.enum.d.ts +1 -0
  168. package/src/objects/datetime/points/month-name.enum.d.ts.map +1 -0
  169. package/{objects → src/objects}/datetime/points/week-day.enum.d.ts +1 -0
  170. package/src/objects/datetime/points/week-day.enum.d.ts.map +1 -0
  171. package/{objects → src/objects}/failure/edges/failure.abstract.d.ts +2 -1
  172. package/src/objects/failure/edges/failure.abstract.d.ts.map +1 -0
  173. package/{objects → src/objects}/failure/edges/failure.abstract.js +2 -2
  174. package/{objects → src/objects}/failure/edges/failure.abstract.polygon.d.ts +1 -0
  175. package/src/objects/failure/edges/failure.abstract.polygon.d.ts.map +1 -0
  176. package/{objects → src/objects}/language/points/language.point.d.ts +1 -0
  177. package/src/objects/language/points/language.point.d.ts.map +1 -0
  178. package/{objects → src/objects}/metadata/metadata.edge.d.ts +4 -3
  179. package/src/objects/metadata/metadata.edge.d.ts.map +1 -0
  180. package/{objects → src/objects}/metadata/metadata.edge.js +2 -2
  181. package/{objects → src/objects}/metadata/metadata.polygon.d.ts +1 -0
  182. package/src/objects/metadata/metadata.polygon.d.ts.map +1 -0
  183. package/{objects → src/objects}/metadata/metadata.uv.d.ts +2 -1
  184. package/src/objects/metadata/metadata.uv.d.ts.map +1 -0
  185. package/{objects → src/objects}/metadata/metadata.uv.js +2 -2
  186. package/{objects → src/objects}/password/password.edge.d.ts +3 -2
  187. package/src/objects/password/password.edge.d.ts.map +1 -0
  188. package/{objects → src/objects}/password/password.edge.js +5 -5
  189. package/src/objects/password/password.polygon.d.ts +6 -0
  190. package/src/objects/password/password.polygon.d.ts.map +1 -0
  191. package/{objects → src/objects}/password/steps/not-allowing-consecutive-chars-step.d.ts +3 -2
  192. package/src/objects/password/steps/not-allowing-consecutive-chars-step.d.ts.map +1 -0
  193. package/{objects → src/objects}/password/steps/not-allowing-consecutive-chars-step.js +1 -1
  194. package/{objects → src/objects}/password/steps/not-allowing-date-step.d.ts +3 -2
  195. package/src/objects/password/steps/not-allowing-date-step.d.ts.map +1 -0
  196. package/{objects → src/objects}/password/steps/not-allowing-date-step.js +1 -1
  197. package/src/objects/password/steps/not-allowing-phone-step.d.ts +8 -0
  198. package/src/objects/password/steps/not-allowing-phone-step.d.ts.map +1 -0
  199. package/{objects → src/objects}/password/steps/not-allowing-phone-step.js +1 -1
  200. package/{objects → src/objects}/password/steps/not-allowing-repeated-chars-step.d.ts +3 -2
  201. package/src/objects/password/steps/not-allowing-repeated-chars-step.d.ts.map +1 -0
  202. package/{objects → src/objects}/password/steps/not-allowing-repeated-chars-step.js +1 -1
  203. package/{objects → src/objects}/password/steps/not-allowing-string-step.d.ts +3 -2
  204. package/src/objects/password/steps/not-allowing-string-step.d.ts.map +1 -0
  205. package/{objects → src/objects}/password/steps/not-allowing-string-step.js +1 -1
  206. package/{objects → src/objects}/password/steps/not-allowing-these-chars-step.d.ts +3 -2
  207. package/src/objects/password/steps/not-allowing-these-chars-step.d.ts.map +1 -0
  208. package/{objects → src/objects}/password/steps/not-allowing-these-chars-step.js +1 -1
  209. package/src/objects/password/steps/numeric-step.d.ts +6 -0
  210. package/src/objects/password/steps/numeric-step.d.ts.map +1 -0
  211. package/{objects → src/objects}/password/steps/numeric-step.js +1 -1
  212. package/src/objects/password/steps/with-at-least-one-letter-step.d.ts +6 -0
  213. package/src/objects/password/steps/with-at-least-one-letter-step.d.ts.map +1 -0
  214. package/{objects → src/objects}/password/steps/with-at-least-one-letter-step.js +1 -1
  215. package/src/objects/password/steps/with-at-least-one-number-digit-step.d.ts +6 -0
  216. package/src/objects/password/steps/with-at-least-one-number-digit-step.d.ts.map +1 -0
  217. package/{objects → src/objects}/password/steps/with-at-least-one-number-digit-step.js +1 -1
  218. package/src/objects/password/steps/with-at-least-one-special-char-step.d.ts +6 -0
  219. package/src/objects/password/steps/with-at-least-one-special-char-step.d.ts.map +1 -0
  220. package/{objects → src/objects}/password/steps/with-at-least-one-special-char-step.js +1 -1
  221. package/{objects → src/objects}/password/steps/with-length-step.d.ts +3 -2
  222. package/src/objects/password/steps/with-length-step.d.ts.map +1 -0
  223. package/{objects → src/objects}/password/steps/with-length-step.js +1 -1
  224. package/{objects → src/objects}/password/validation-step.d.ts +2 -1
  225. package/src/objects/password/validation-step.d.ts.map +1 -0
  226. package/{objects → src/objects}/password/validation-step.type.d.ts +1 -0
  227. package/src/objects/password/validation-step.type.d.ts.map +1 -0
  228. package/src/objects/password/validation-step.type.js +2 -0
  229. package/{objects → src/objects}/primitives/boolean.edge.sketch.d.ts +1 -0
  230. package/src/objects/primitives/boolean.edge.sketch.d.ts.map +1 -0
  231. package/src/objects/primitives/datetime.edge.sketch.d.ts +4 -0
  232. package/src/objects/primitives/datetime.edge.sketch.d.ts.map +1 -0
  233. package/{objects → src/objects}/primitives/datetime.edge.sketch.js +1 -1
  234. package/{objects → src/objects}/primitives/number.edge.sketch.d.ts +1 -0
  235. package/src/objects/primitives/number.edge.sketch.d.ts.map +1 -0
  236. package/{objects → src/objects}/primitives/number.edge.sketch.js +1 -1
  237. package/{objects → src/objects}/primitives/string.edge.sketch.d.ts +1 -0
  238. package/src/objects/primitives/string.edge.sketch.d.ts.map +1 -0
  239. package/{objects → src/objects}/scheduling/scheduling.edge.d.ts +7 -6
  240. package/src/objects/scheduling/scheduling.edge.d.ts.map +1 -0
  241. package/src/objects/scheduling/scheduling.edge.failure.d.ts +5 -0
  242. package/src/objects/scheduling/scheduling.edge.failure.d.ts.map +1 -0
  243. package/{objects → src/objects}/scheduling/scheduling.edge.failure.js +1 -1
  244. package/{objects → src/objects}/scheduling/scheduling.edge.js +5 -5
  245. package/{objects → src/objects}/time/time.edge.d.ts +2 -1
  246. package/src/objects/time/time.edge.d.ts.map +1 -0
  247. package/{objects → src/objects}/time/time.edge.js +2 -2
  248. package/src/objects-interface/edges/edge.abstract.d.ts +5 -0
  249. package/src/objects-interface/edges/edge.abstract.d.ts.map +1 -0
  250. package/{objects-interface → src/objects-interface}/face.abstract.d.ts +3 -2
  251. package/src/objects-interface/face.abstract.d.ts.map +1 -0
  252. package/{objects-interface → src/objects-interface}/solid.abstract.d.ts +6 -5
  253. package/src/objects-interface/solid.abstract.d.ts.map +1 -0
  254. package/{objects-interface → src/objects-interface}/solid.abstract.js +1 -1
  255. package/src/objects-interface/uv.abstract.d.ts +7 -0
  256. package/src/objects-interface/uv.abstract.d.ts.map +1 -0
  257. package/{objects-interface → src/objects-interface}/vertices/vertex.abstract.d.ts +6 -5
  258. package/src/objects-interface/vertices/vertex.abstract.d.ts.map +1 -0
  259. package/{objects-interface → src/objects-interface}/vertices/vertex.abstract.js +1 -1
  260. package/{shared → src/shared}/payload.abstract.d.ts +1 -0
  261. package/src/shared/payload.abstract.d.ts.map +1 -0
  262. package/{shared → src/shared}/request.abstract.d.ts +6 -5
  263. package/src/shared/request.abstract.d.ts.map +1 -0
  264. package/src/shared/request.abstract.js +3 -0
  265. package/{shared → src/shared}/response.abstract.d.ts +1 -0
  266. package/src/shared/response.abstract.d.ts.map +1 -0
  267. package/tsconfig-default.json +2 -2
  268. package/tsconfig-lib.json +3 -2
  269. package/tsconfig.tsbuildinfo +1 -1
  270. package/types/boolean.d.ts +19 -0
  271. package/types/string.d.ts +33 -0
  272. package/@tool-box/tests/builders/datetime/datetime.edge.builder.d.ts +0 -6
  273. package/@tool-box/tests/builders/failures/dummies/failure.dummy.d.ts +0 -4
  274. package/@tool-box/tests/builders/metadata/metadata-uv.builder.d.ts +0 -6
  275. package/@tool-box/tests/builders/metadata/metadata.edge.builder.d.ts +0 -6
  276. package/@tool-box/tests/builders/user/email.edge.builder.d.ts +0 -6
  277. package/@tool-box/tests/builders/user/username.edge.builder.d.ts +0 -6
  278. package/@tool-box/utils/datatypes/boolean-utils.d.ts +0 -16
  279. package/@tool-box/utils/datatypes/string-utils.d.ts +0 -27
  280. package/@tool-box/utils/datetime/mappers/month.mapper.d.ts +0 -6
  281. package/index.d.ts +0 -76
  282. package/objects/amount/amount.uv.d.ts +0 -8
  283. package/objects/amount/points/units.point.d.ts +0 -6
  284. package/objects/datetime/edges/datetime.edge.d.ts +0 -455
  285. package/objects/password/password.polygon.d.ts +0 -5
  286. package/objects/password/steps/not-allowing-phone-step.d.ts +0 -7
  287. package/objects/password/steps/numeric-step.d.ts +0 -5
  288. package/objects/password/steps/with-at-least-one-letter-step.d.ts +0 -5
  289. package/objects/password/steps/with-at-least-one-number-digit-step.d.ts +0 -5
  290. package/objects/password/steps/with-at-least-one-special-char-step.d.ts +0 -5
  291. package/objects/primitives/datetime.edge.sketch.d.ts +0 -3
  292. package/objects/scheduling/scheduling.edge.failure.d.ts +0 -4
  293. package/objects-interface/edges/edge.abstract.d.ts +0 -4
  294. package/objects-interface/uv.abstract.d.ts +0 -6
  295. package/shared/request.abstract.js +0 -3
  296. /package/{@tool-box → src/@tool-box}/tests/builder.abstract.util.js +0 -0
  297. /package/{@tool-box → src/@tool-box}/tests/faker/faker.js +0 -0
  298. /package/{@tool-box → src/@tool-box}/utils/datatypes/generic-types.js +0 -0
  299. /package/{@tool-box → src/@tool-box}/utils/datatypes/plainify.js +0 -0
  300. /package/{@tool-box → src/@tool-box}/utils/datetime/mappers/points/month-abbreviation.enum.js +0 -0
  301. /package/{@tool-box → src/@tool-box}/utils/datetime/mappers/points/month-number.enum.js +0 -0
  302. /package/{@tool-box → src/@tool-box}/utils/http-provider/http-provider-success-response.js +0 -0
  303. /package/{@tool-box → src/@tool-box}/utils/logger/index.js +0 -0
  304. /package/{@tool-box → src/@tool-box}/utils/map/map.abstract.js +0 -0
  305. /package/{@tool-box → src/@tool-box}/utils/random/random.js +0 -0
  306. /package/{@tool-box → src/@tool-box}/utils/type-guard/guardian-exception.js +0 -0
  307. /package/{@tool-box → src/@tool-box}/utils/type-guard/guardian.type.js +0 -0
  308. /package/{@tool-box → src/@tool-box}/utils/validators/is-cron-expression.js +0 -0
  309. /package/{@tool-box → src/@tool-box}/utils/validators/is-date-string.js +0 -0
  310. /package/{@tool-box → src/@tool-box}/utils/validators/is-schedule.js +0 -0
  311. /package/{@tool-box → src/@tool-box}/utils/validators/is-time-string.js +0 -0
  312. /package/{@tool-box → src/@tool-box}/utils/validators/is-ulid.js +0 -0
  313. /package/{objects → src/objects}/@common/points/environment.point.js +0 -0
  314. /package/{objects → src/objects}/@common/points/header-token-name.point.js +0 -0
  315. /package/{objects → src/objects}/@common/points/http-status-codes.point.js +0 -0
  316. /package/{objects → src/objects}/amount/amount.polygon.js +0 -0
  317. /package/{objects → src/objects}/amount/points/duration-unit.point.js +0 -0
  318. /package/{objects → src/objects}/amount/points/energy-unit.point.js +0 -0
  319. /package/{objects → src/objects}/amount/points/length-unit.point.js +0 -0
  320. /package/{objects → src/objects}/amount/points/mass-unit.point.js +0 -0
  321. /package/{objects → src/objects}/amount/points/month-name.point.js +0 -0
  322. /package/{objects → src/objects}/amount/points/object-unit.point.js +0 -0
  323. /package/{objects → src/objects}/amount/points/units.point.js +0 -0
  324. /package/{objects → src/objects}/amount/points/volume-unit.point.js +0 -0
  325. /package/{objects → src/objects}/amount/points/week-day.point.js +0 -0
  326. /package/{objects/failure/edges/failure.abstract.polygon.js → src/objects/datetime/edges/locale/holidays-country.type.js} +0 -0
  327. /package/{objects → src/objects}/datetime/points/month-name.enum.js +0 -0
  328. /package/{objects → src/objects}/datetime/points/week-day.enum.js +0 -0
  329. /package/{objects/metadata/metadata.polygon.js → src/objects/failure/edges/failure.abstract.polygon.js} +0 -0
  330. /package/{objects → src/objects}/language/points/language.point.js +0 -0
  331. /package/{objects/password/password.polygon.js → src/objects/metadata/metadata.polygon.js} +0 -0
  332. /package/{objects/password/validation-step.type.js → src/objects/password/password.polygon.js} +0 -0
  333. /package/{objects → src/objects}/password/validation-step.js +0 -0
  334. /package/{objects → src/objects}/primitives/boolean.edge.sketch.js +0 -0
  335. /package/{objects → src/objects}/primitives/string.edge.sketch.js +0 -0
  336. /package/{objects-interface → src/objects-interface}/edges/edge.abstract.js +0 -0
  337. /package/{objects-interface → src/objects-interface}/face.abstract.js +0 -0
  338. /package/{objects-interface → src/objects-interface}/uv.abstract.js +0 -0
  339. /package/{shared → src/shared}/payload.abstract.js +0 -0
  340. /package/{shared → src/shared}/response.abstract.js +0 -0
@@ -6,9 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.DatetimeEdge = void 0;
7
7
  const date_holidays_1 = __importDefault(require("date-holidays"));
8
8
  const moment_1 = __importDefault(require("moment"));
9
- const index_1 = require("../../../index");
10
- const month_name_enum_1 = require("../points/month-name.enum");
11
- const week_day_enum_1 = require("../points/week-day.enum");
9
+ const index_1 = require("#/index");
10
+ const day_name_to_english_mapper_1 = require("#/objects/datetime/edges/locale/day/day-name-to-english.mapper");
11
+ const day_name_to_portuguese_mapper_1 = require("#/objects/datetime/edges/locale/day/day-name-to-portuguese.mapper");
12
+ const today_to_language_mapper_1 = require("#/objects/datetime/edges/locale/day/today-to-language.mapper");
13
+ const month_to_english_mapper_1 = require("#/objects/datetime/edges/locale/month/month-to-english.mapper");
14
+ const month_to_portuguese_mapper_1 = require("#/objects/datetime/edges/locale/month/month-to-portuguese.mapper");
15
+ const week_day_enum_1 = require("#/objects/datetime/points/week-day.enum");
12
16
  class DatetimeEdge {
13
17
  constructor(value) {
14
18
  this.value = value;
@@ -30,75 +34,52 @@ class DatetimeEdge {
30
34
  this.validate();
31
35
  }
32
36
  /**
33
- * Retorna uma string amigável da data no formato "Dia, Mês DD".
34
- * Usa nomes de dias e meses no idioma português brasileiro.
35
- * @returns String formatada como "Domingo, Mar 29" ou "Hoje, Abr 1"
37
+ * Returns a human-friendly date string in the format "Day, Mon DD".
38
+ * Uses day and month names in the specified locale.
39
+ * @returns A formatted string such as "Sunday, Mar 29" or "Today, Apr 1"
36
40
  * @example
37
- * new DatetimeEdge(new Date("2026-03-29")).toFriendlyString() // "Domingo, Mar 29"
38
- * new DatetimeEdge(new Date()).toFriendlyString() // "Hoje, Abr 1"
41
+ * new DatetimeEdge(new Date("2026-03-29")).toFriendlyString() // "Sunday, Mar 29"
42
+ * new DatetimeEdge(new Date()).toFriendlyString() // "Today, Apr 1"
39
43
  */
40
44
  toFriendlyString(language) {
41
- const dayNames = [
42
- "Domingo",
43
- "Segunda",
44
- "Terça",
45
- "Quarta",
46
- "Quinta",
47
- "Sexta",
48
- "Sábado",
49
- ];
50
- const monthAbbr = [
51
- "Jan",
52
- "Fev",
53
- "Mar",
54
- "Abr",
55
- "Mai",
56
- "Jun",
57
- "Jul",
58
- "Ago",
59
- "Set",
60
- "Out",
61
- "Nov",
62
- "Dez",
63
- ];
64
- let dayLabel = dayNames[this.date.day()];
45
+ let dayOfWeekLabel = this.getDayOfWeek(language);
46
+ const monthLabel = this.getNameOfMonth(language);
65
47
  if (this.isToday()) {
66
- dayLabel = "Hoje";
48
+ dayOfWeekLabel = new today_to_language_mapper_1.TodayToLanguageMapper().toMap(language);
67
49
  }
68
- const month = monthAbbr[this.date.month()];
69
- const day = this.date.date();
70
- return `${dayLabel}, ${month} ${day}`;
50
+ const dayOfMonth = this.getDayOfMonth();
51
+ return `${dayOfWeekLabel}, ${monthLabel} ${dayOfMonth}`;
71
52
  }
72
53
  // ==================== Comparações ====================
73
54
  /**
74
- * Verifica se esta data é posterior a outra.
75
- * @param other - Data para comparação
76
- * @returns true se this > other, false caso contrário
55
+ * Checks whether this date is later than another date.
56
+ * @param datetime - Date to compare against.
57
+ * @returns `true` if this date is greater than `datetime`; otherwise, `false`.
77
58
  * @example
78
59
  * new DatetimeEdge(new Date("2026-12-01")).isAfter(new DatetimeEdge(new Date("2026-01-01"))) // true
79
60
  */
80
- isAfter(other) {
81
- return this.date.isAfter(other.toDate());
61
+ isAfter(datetime) {
62
+ return this.date.isAfter(datetime.toDate());
82
63
  }
83
64
  /**
84
- * Verifica se esta data é anterior a outra.
85
- * @param other - Data para comparação
86
- * @returns true se this < other, false caso contrário
65
+ * Checks whether this date is earlier than another date.
66
+ * @param datetime - Date to compare against.
67
+ * @returns `true` if this date is less than `datetime`; otherwise, `false`.
87
68
  * @example
88
69
  * new DatetimeEdge(new Date("2026-01-01")).isBefore(new DatetimeEdge(new Date("2026-12-01"))) // true
89
70
  */
90
- isBefore(other) {
91
- return this.date.isBefore(other.toDate());
71
+ isBefore(datetime) {
72
+ return this.date.isBefore(datetime.toDate());
92
73
  }
93
74
  /**
94
- * Verifica se esta data é igual a outra.
95
- * @param other - Data para comparação
96
- * @returns true se as datas são iguais, false caso contrário
75
+ * Checks whether this date is equal to another date.
76
+ * @param datetime - Date to compare against.
77
+ * @returns `true` if the dates are equal; otherwise, `false`.
97
78
  * @example
98
79
  * new DatetimeEdge(new Date("2026-01-01")).isEquals(new DatetimeEdge(new Date("2026-01-01"))) // true
99
80
  */
100
- isEquals(other) {
101
- return this.date.isSame(other.toDate());
81
+ isEquals(datetime) {
82
+ return this.date.isSame(datetime.toDate());
102
83
  }
103
84
  /**
104
85
  * Verifica se esta data está entre duas outras datas (exclusivo).
@@ -116,39 +97,41 @@ class DatetimeEdge {
116
97
  }
117
98
  // ==================== Verificações de Dia ====================
118
99
  /**
119
- * Verifica se a data cai em um fim de semana (sábado ou domingo).
120
- * @returns true se a data é sábado ou domingo, false caso contrário
100
+ * Checks whether this date falls on a weekend (Saturday or Sunday).
101
+ * @returns `true` if the date is a Saturday or Sunday; otherwise, `false`.
121
102
  * @example
122
- * new DatetimeEdge(new Date("2026-03-14")).isWeekend() // true (sábado)
123
- * new DatetimeEdge(new Date("2026-03-12")).isWeekend() // false (quinta-feira)
103
+ * new DatetimeEdge(new Date("2026-03-14")).isWeekend() // true (Saturday)
104
+ * new DatetimeEdge(new Date("2026-03-12")).isWeekend() // false (Thursday)
124
105
  */
125
106
  isWeekend() {
126
- return [week_day_enum_1.WeekDayEnum.saturday, week_day_enum_1.WeekDayEnum.sunday].includes(this.getDayOfWeek());
107
+ return [week_day_enum_1.WeekDayEnum.saturday, week_day_enum_1.WeekDayEnum.sunday].includes(this.getStandardDayOfWeek());
127
108
  }
128
109
  /**
129
- * Verifica se a data é um feriado no Brasil.
130
- * @returns true se a data é um feriado nacional, false caso contrário
110
+ * Checks whether this date is a holiday in the specified country.
111
+ * @param country - The country whose holiday calendar will be used for validation.
112
+ * @returns `true` if the date is a holiday in the specified country; otherwise, `false`.
131
113
  * @example
132
- * new DatetimeEdge(new Date("2026-12-25")).isHoliday() // true (Natal)
133
- * new DatetimeEdge(new Date("2026-03-12")).isHoliday() // false
114
+ * new DatetimeEdge(new Date("2026-12-25")).isHoliday("BR") // true (Christmas Day)
115
+ * new DatetimeEdge(new Date("2026-03-12")).isHoliday("BR") // false
134
116
  */
135
- isHoliday() {
136
- const holidays = new date_holidays_1.default("BR");
117
+ isHoliday(country) {
118
+ const holidays = new date_holidays_1.default(country);
137
119
  return holidays.isHoliday(this.date.toDate()) !== false;
138
120
  }
139
121
  /**
140
- * Verifica se a data é um dia útil (não é fim de semana nem feriado).
141
- * @returns true se a data é um dia útil, false caso contrário
122
+ * Checks whether the date is a business day (not a weekend or a holiday).
123
+ * @param country - The country whose holiday calendar will be used for validation.
124
+ * @returns `true` if the date is a business day; otherwise, `false`.
142
125
  * @example
143
- * new DatetimeEdge(new Date("2026-03-12")).isBusinessDay() // true (quinta-feira)
144
- * new DatetimeEdge(new Date("2026-12-25")).isBusinessDay() // false (Natal)
126
+ * new DatetimeEdge(new Date("2026-03-12")).isBusinessDay("BR") // true (Thursday)
127
+ * new DatetimeEdge(new Date("2026-12-25")).isBusinessDay("BR") // false (Christmas Day)
145
128
  */
146
- isBusinessDay() {
147
- return !this.isWeekend() && !this.isHoliday();
129
+ isBusinessDay(country) {
130
+ return !this.isWeekend() && !this.isHoliday(country);
148
131
  }
149
132
  /**
150
- * Verifica se a data corresponde ao dia de hoje.
151
- * @returns true se a data é hoje, false caso contrário
133
+ * Checks whether the date corresponds to today.
134
+ * @returns `true` if the date is today; otherwise, `false`.
152
135
  * @example
153
136
  * new DatetimeEdge(new Date()).isToday() // true
154
137
  * new DatetimeEdge(new Date("2020-01-01")).isToday() // false
@@ -157,8 +140,8 @@ class DatetimeEdge {
157
140
  return this.date.isSame((0, moment_1.default)(), "day");
158
141
  }
159
142
  /**
160
- * Verifica se a data corresponde a ontem.
161
- * @returns true se a data é ontem, false caso contrário
143
+ * Checks whether the date corresponds to yesterday.
144
+ * @returns `true` if the date is yesterday; otherwise, `false`.
162
145
  * @example
163
146
  * new DatetimeEdge(new Date()).isYesterday() // false
164
147
  */
@@ -166,8 +149,8 @@ class DatetimeEdge {
166
149
  return this.date.isSame((0, moment_1.default)().subtract(1, "day"), "day");
167
150
  }
168
151
  /**
169
- * Verifica se a data corresponde a amanhã.
170
- * @returns true se a data é amanhã, false caso contrário
152
+ * Checks whether the date corresponds to tomorrow.
153
+ * @returns `true` if the date is tomorrow; otherwise, `false`.
171
154
  * @example
172
155
  * new DatetimeEdge(new Date()).isTomorrow() // false
173
156
  */
@@ -175,49 +158,65 @@ class DatetimeEdge {
175
158
  return this.date.isSame((0, moment_1.default)().add(1, "day"), "day");
176
159
  }
177
160
  /**
178
- * Verifica se a data está no mesmo dia que outra.
179
- * @param other - Data para comparação
180
- * @returns true se ambas as datas estão no mesmo dia, false caso contrário
161
+ * Checks whether the date is on the same day as another date.
162
+ * @param datetime - Date for comparison
163
+ * @returns `true` if both dates are on the same day, `false` otherwise
181
164
  * @example
182
165
  * const a = new DatetimeEdge(new Date("2026-03-12T08:00"));
183
166
  * const b = new DatetimeEdge(new Date("2026-03-12T22:00"));
184
167
  * a.isSameDay(b) // true
185
168
  */
186
- isSameDay(other) {
187
- return this.date.isSame(other.toDate(), "day");
169
+ isSameDay(datetime) {
170
+ return this.date.isSame(datetime.toDate(), "day");
188
171
  }
189
172
  /**
190
- * Verifica se a data está no mesmo mês que outra.
191
- * @param other - Data para comparação
192
- * @returns true se ambas as datas estão no mesmo mês e ano, false caso contrário
173
+ * Checks whether the date is on the same month as another date.
174
+ * @param datetime - Date for comparison
175
+ * @returns `true` if both dates are on the same month and year, `false` otherwise
193
176
  * @example
194
177
  * const a = new DatetimeEdge(new Date("2026-03-01"));
195
178
  * const b = new DatetimeEdge(new Date("2026-03-31"));
196
179
  * a.isSameMonth(b) // true
197
180
  */
198
- isSameMonth(other) {
199
- return this.date.isSame(other.toDate(), "month");
181
+ isSameMonth(datetime) {
182
+ return this.date.isSame(datetime.toDate(), "month");
200
183
  }
201
184
  /**
202
- * Verifica se a data está no mesmo ano que outra.
203
- * @param other - Data para comparação
204
- * @returns true se ambas as datas estão no mesmo ano, false caso contrário
185
+ * Checks whether the date is on the same year as another date.
186
+ * @param datetime - Date for comparison
187
+ * @returns `true` if both dates are on the same year, `false` otherwise
205
188
  * @example
206
189
  * const a = new DatetimeEdge(new Date("2026-01-01"));
207
190
  * const b = new DatetimeEdge(new Date("2026-12-31"));
208
191
  * a.isSameYear(b) // true
209
192
  */
210
- isSameYear(other) {
211
- return this.date.isSame(other.toDate(), "year");
193
+ isSameYear(datetime) {
194
+ return this.date.isSame(datetime.toDate(), "year");
212
195
  }
213
196
  // ==================== Getters ====================
214
197
  /**
215
- * Retorna o dia da semana da data.
216
- * @returns Enum WeekDayEnum representando o dia da semana
198
+ * Returns the day of the week for the date.
199
+ * @returns Enum WeekDayEnum representing the day of the week
217
200
  * @example
218
201
  * new DatetimeEdge(new Date("2026-03-12")).getDayOfWeek() // WeekDayEnum.thursday
219
202
  */
220
- getDayOfWeek() {
203
+ getDayOfWeek(language) {
204
+ let dayOfWeek = new day_name_to_english_mapper_1.DayNameToEnglishMapper().toMap(this.date.day());
205
+ if (index_1._.isEqual(language, index_1.LanguagePoint.portuguese)) {
206
+ dayOfWeek = new day_name_to_portuguese_mapper_1.DayNameToPortugueseMapper().toMap(this.date.day());
207
+ }
208
+ return dayOfWeek;
209
+ }
210
+ /**
211
+ * Returns the standard day of the week as a {@link WeekDayEnum} value.
212
+ * This internal method provides the canonical weekday representation
213
+ * used throughout the class before any localization or formatting is applied.
214
+ *
215
+ * @returns The corresponding {@link WeekDayEnum} for the current date.
216
+ * @example
217
+ * new DatetimeEdge(new Date("2026-03-12")).getStandardDayOfWeek() // WeekDayEnum.thursday
218
+ */
219
+ getStandardDayOfWeek() {
221
220
  const daysOfWeek = [
222
221
  week_day_enum_1.WeekDayEnum.sunday,
223
222
  week_day_enum_1.WeekDayEnum.monday,
@@ -230,31 +229,21 @@ class DatetimeEdge {
230
229
  return daysOfWeek[this.date.day()];
231
230
  }
232
231
  /**
233
- * Retorna o nome do mês da data.
234
- * @returns Enum MonthNameEnum representando o mês
232
+ * Returns the name of the month for the date.
233
+ * @returns Enum MonthNameEnum representing the month
235
234
  * @example
236
235
  * new DatetimeEdge(new Date("2026-03-12")).getNameOfMonth() // MonthNameEnum.march
237
236
  */
238
- getNameOfMonth() {
239
- const months = [
240
- month_name_enum_1.MonthNameEnum.january,
241
- month_name_enum_1.MonthNameEnum.february,
242
- month_name_enum_1.MonthNameEnum.march,
243
- month_name_enum_1.MonthNameEnum.april,
244
- month_name_enum_1.MonthNameEnum.may,
245
- month_name_enum_1.MonthNameEnum.june,
246
- month_name_enum_1.MonthNameEnum.july,
247
- month_name_enum_1.MonthNameEnum.august,
248
- month_name_enum_1.MonthNameEnum.september,
249
- month_name_enum_1.MonthNameEnum.october,
250
- month_name_enum_1.MonthNameEnum.november,
251
- month_name_enum_1.MonthNameEnum.december,
252
- ];
253
- return months[this.date.month()];
237
+ getNameOfMonth(language) {
238
+ let month = new month_to_english_mapper_1.MonthNameToEnglishMapper().toMap(this.date.month());
239
+ if (index_1._.isEqual(language, index_1.LanguagePoint.portuguese)) {
240
+ month = new month_to_portuguese_mapper_1.MonthNameToPortugueseMapper().toMap(this.date.month());
241
+ }
242
+ return month;
254
243
  }
255
244
  /**
256
- * Retorna o número do dia no mês.
257
- * @returns Número do dia (1-31)
245
+ * Returns the day of the month for the date.
246
+ * @returns NNumber of the day (1-31)
258
247
  * @example
259
248
  * new DatetimeEdge(new Date("2026-03-12")).getDayOfMonth() // 12
260
249
  */
@@ -262,8 +251,8 @@ class DatetimeEdge {
262
251
  return this.date.date();
263
252
  }
264
253
  /**
265
- * Retorna o número do mês (base 0).
266
- * @returns Número do mês (0=janeiro, 11=dezembro)
254
+ * Returns the month number for the date (0-11).
255
+ * @returns Month number (0=January, 11=December)
267
256
  * @example
268
257
  * new DatetimeEdge(new Date("2026-03-12")).getNumberOfMonth() // 2
269
258
  */
@@ -271,8 +260,8 @@ class DatetimeEdge {
271
260
  return this.date.month();
272
261
  }
273
262
  /**
274
- * Retorna o ano da data.
275
- * @returns Número do ano
263
+ * Returns the year of the date.
264
+ * @returns The year number.
276
265
  * @example
277
266
  * new DatetimeEdge(new Date("2026-03-12")).getYear() // 2026
278
267
  */
@@ -280,8 +269,8 @@ class DatetimeEdge {
280
269
  return this.date.year();
281
270
  }
282
271
  /**
283
- * Retorna as horas da data.
284
- * @returns Número da hora (0-23)
272
+ * Returns the hours of the date.
273
+ * @returns The hour number (0-23)
285
274
  * @example
286
275
  * new DatetimeEdge(new Date("2026-03-12T14:30:00")).getHours() // 14
287
276
  */
@@ -289,8 +278,8 @@ class DatetimeEdge {
289
278
  return this.date.hours();
290
279
  }
291
280
  /**
292
- * Retorna os minutos da data.
293
- * @returns Número dos minutos (0-59)
281
+ * Returns the minutes of the date.
282
+ * @returns The minute number (0-59)
294
283
  * @example
295
284
  * new DatetimeEdge(new Date("2026-03-12T14:30:00")).getMinutes() // 30
296
285
  */
@@ -298,8 +287,8 @@ class DatetimeEdge {
298
287
  return this.date.minutes();
299
288
  }
300
289
  /**
301
- * Retorna os segundos da data.
302
- * @returns Número dos segundos (0-59)
290
+ * Returns the seconds of the date.
291
+ * @returns The second number (0-59)
303
292
  * @example
304
293
  * new DatetimeEdge(new Date("2026-03-12T14:30:45")).getSeconds() // 45
305
294
  */
@@ -308,9 +297,9 @@ class DatetimeEdge {
308
297
  }
309
298
  // ==================== Operações Aritméticas ====================
310
299
  /**
311
- * Adiciona dias à data e retorna uma nova instância.
312
- * @param days - Número de dias a adicionar
313
- * @returns Nova instância com a data atualizada
300
+ * Adds days to the date and returns a new instance.
301
+ * @param days - NNumber of days to add
302
+ * @returns New instance with the updated date
314
303
  * @example
315
304
  * new DatetimeEdge(new Date("2026-03-12")).addDays(5) // DatetimeEdge("2026-03-17")
316
305
  */
@@ -318,9 +307,9 @@ class DatetimeEdge {
318
307
  return new DatetimeEdge(this.date.clone().add(days, "days").toDate());
319
308
  }
320
309
  /**
321
- * Subtrai dias da data e retorna uma nova instância.
322
- * @param days - Número de dias a subtrair
323
- * @returns Nova instância com a data atualizada
310
+ * Subtracts days from the date and returns a new instance.
311
+ * @param days - NNumber of days to subtract
312
+ * @returns New instance with the updated date
324
313
  * @example
325
314
  * new DatetimeEdge(new Date("2026-03-12")).subtractDays(5) // DatetimeEdge("2026-03-07")
326
315
  */
@@ -328,9 +317,9 @@ class DatetimeEdge {
328
317
  return new DatetimeEdge(this.date.clone().subtract(days, "days").toDate());
329
318
  }
330
319
  /**
331
- * Adiciona meses à data e retorna uma nova instância.
332
- * @param months - Número de meses a adicionar
333
- * @returns Nova instância com a data atualizada
320
+ * Adds months to the date and returns a new instance.
321
+ * @param months - NNumber of months to add
322
+ * @returns New instance with the updated date
334
323
  * @example
335
324
  * new DatetimeEdge(new Date("2026-03-12")).addMonths(2) // DatetimeEdge("2026-05-12")
336
325
  */
@@ -338,9 +327,9 @@ class DatetimeEdge {
338
327
  return new DatetimeEdge(this.date.clone().add(months, "months").toDate());
339
328
  }
340
329
  /**
341
- * Subtrai meses da data e retorna uma nova instância.
342
- * @param months - Número de meses a subtrair
343
- * @returns Nova instância com a data atualizada
330
+ * Subtracts months from the date and returns a new instance.
331
+ * @param months - NNumber of months to subtract
332
+ * @returns New instance with the updated date
344
333
  * @example
345
334
  * new DatetimeEdge(new Date("2026-03-12")).subtractMonths(2) // DatetimeEdge("2026-01-12")
346
335
  */
@@ -348,9 +337,9 @@ class DatetimeEdge {
348
337
  return new DatetimeEdge(this.date.clone().subtract(months, "months").toDate());
349
338
  }
350
339
  /**
351
- * Adiciona anos à data e retorna uma nova instância.
352
- * @param years - Número de anos a adicionar
353
- * @returns Nova instância com a data atualizada
340
+ * Adds years to the date and returns a new instance.
341
+ * @param years - NNumber of years to add
342
+ * @returns New instance with the updated date
354
343
  * @example
355
344
  * new DatetimeEdge(new Date("2026-03-12")).addYears(1) // DatetimeEdge("2027-03-12")
356
345
  */
@@ -358,9 +347,9 @@ class DatetimeEdge {
358
347
  return new DatetimeEdge(this.date.clone().add(years, "years").toDate());
359
348
  }
360
349
  /**
361
- * Subtrai anos da data e retorna uma nova instância.
362
- * @param years - Número de anos a subtrair
363
- * @returns Nova instância com a data atualizada
350
+ * Subtracts years from the date and returns a new instance.
351
+ * @param years - NNumber of years to subtract
352
+ * @returns New instance with the updated date
364
353
  * @example
365
354
  * new DatetimeEdge(new Date("2026-03-12")).subtractYears(1) // DatetimeEdge("2025-03-12")
366
355
  */
@@ -368,9 +357,9 @@ class DatetimeEdge {
368
357
  return new DatetimeEdge(this.date.clone().subtract(years, "years").toDate());
369
358
  }
370
359
  /**
371
- * Adiciona horas à data e retorna uma nova instância.
372
- * @param hours - Número de horas a adicionar
373
- * @returns Nova instância com a data atualizada
360
+ * Adds hours to the date and returns a new instance.
361
+ * @param hours - NNumber of hours to add
362
+ * @returns New instance with the updated date
374
363
  * @example
375
364
  * new DatetimeEdge(new Date("2026-03-12T08:00")).addHours(3) // DatetimeEdge("2026-03-12T11:00")
376
365
  */
@@ -378,9 +367,9 @@ class DatetimeEdge {
378
367
  return new DatetimeEdge(this.date.clone().add(hours, "hours").toDate());
379
368
  }
380
369
  /**
381
- * Adiciona minutos à data e retorna uma nova instância.
382
- * @param minutes - Número de minutos a adicionar
383
- * @returns Nova instância com a data atualizada
370
+ * Adds minutes to the date and returns a new instance.
371
+ * @param minutes - NNumber of minutes to add
372
+ * @returns New instance with the updated date
384
373
  * @example
385
374
  * new DatetimeEdge(new Date("2026-03-12T08:00")).addMinutes(30) // DatetimeEdge("2026-03-12T08:30")
386
375
  */
@@ -388,60 +377,60 @@ class DatetimeEdge {
388
377
  return new DatetimeEdge(this.date.clone().add(minutes, "minutes").toDate());
389
378
  }
390
379
  /**
391
- * Calcula a diferença em dias entre esta data e outra.
392
- * @param other - Data para calcular a diferença
393
- * @returns Número de dias de diferença (positivo se this > other)
380
+ * Calculates the difference in days between this date and another.
381
+ * @param datetime - Date to calculate the difference from
382
+ * @returns NNumber of days difference (positive if this > datetime)
394
383
  * @example
395
384
  * new DatetimeEdge(new Date("2026-03-15")).diffInDays(new DatetimeEdge(new Date("2026-03-10"))) // 5
396
385
  */
397
- diffInDays(other) {
398
- return this.date.diff(other.toDate(), "days");
386
+ diffInDays(datetime) {
387
+ return this.date.diff(datetime.toDate(), "days");
399
388
  }
400
389
  /**
401
- * Calcula a diferença em meses entre esta data e outra.
402
- * @param other - Data para calcular a diferença
403
- * @returns Número de meses de diferença (positivo se this > other)
390
+ * Calculates the difference in months between this date and another.
391
+ * @param datetime - Date to calculate the difference from
392
+ * @returns NNumber of months difference (positive if this > datetime)
404
393
  * @example
405
394
  * new DatetimeEdge(new Date("2026-05-12")).diffInMonths(new DatetimeEdge(new Date("2026-03-12"))) // 2
406
395
  */
407
- diffInMonths(other) {
408
- return this.date.diff(other.toDate(), "months");
396
+ diffInMonths(datetime) {
397
+ return this.date.diff(datetime.toDate(), "months");
409
398
  }
410
399
  /**
411
- * Calcula a diferença em anos entre esta data e outra.
412
- * @param other - Data para calcular a diferença
413
- * @returns Número de anos de diferença (positivo se this > other)
400
+ * Calculates the difference in years between this date and another date.
401
+ * @param datetime - Date to calculate the difference against.
402
+ * @returns The number of years between the dates (positive if this date is later than `datetime`).
414
403
  * @example
415
404
  * new DatetimeEdge(new Date("2028-03-12")).diffInYears(new DatetimeEdge(new Date("2026-03-12"))) // 2
416
405
  */
417
- diffInYears(other) {
418
- return this.date.diff(other.toDate(), "years");
406
+ diffInYears(datetime) {
407
+ return this.date.diff(datetime.toDate(), "years");
419
408
  }
420
409
  /**
421
410
  * Calcula a diferença em horas entre esta data e outra.
422
- * @param other - Data para calcular a diferença
423
- * @returns Número de horas de diferença (positivo se this > other)
411
+ * @param datetime - Data para calcular a diferença
412
+ * @returns Número de horas de diferença (positivo se this > datetime)
424
413
  * @example
425
414
  * new DatetimeEdge(new Date("2026-03-12T14:00")).diffInHours(new DatetimeEdge(new Date("2026-03-12T08:00"))) // 6
426
415
  */
427
- diffInHours(other) {
428
- return this.date.diff(other.toDate(), "hours");
416
+ diffInHours(datetime) {
417
+ return this.date.diff(datetime.toDate(), "hours");
429
418
  }
430
419
  /**
431
- * Calcula a diferença em minutos entre esta data e outra.
432
- * @param other - Data para calcular a diferença
433
- * @returns Número de minutos de diferença (positivo se this > other)
420
+ * Calculates the difference in minutes between this date and another date.
421
+ * @param datetime - Date to calculate the difference against.
422
+ * @returns The number of minutes between the dates (positive if this date is later than `datetime`).
434
423
  * @example
435
424
  * new DatetimeEdge(new Date("2026-03-12T08:45")).diffInMinutes(new DatetimeEdge(new Date("2026-03-12T08:00"))) // 45
436
425
  */
437
- diffInMinutes(other) {
438
- return this.date.diff(other.toDate(), "minutes");
426
+ diffInMinutes(datetime) {
427
+ return this.date.diff(datetime.toDate(), "minutes");
439
428
  }
440
429
  /**
441
- * Retorna a diferença legível entre esta data e o momento atual.
442
- * @returns String descritiva como "3 dias.", "2 horas.", etc.
430
+ * Returns a human-readable difference between this date and the current moment.
431
+ * @returns A descriptive string such as "3 days ago.", "2 hours ago.", etc.
443
432
  * @example
444
- * new DatetimeEdge(new Date("2025-03-12")).diffFromNow() // "1 ano."
433
+ * new DatetimeEdge(new Date("2025-03-12")).diffFromNow() // "1 year ago."
445
434
  */
446
435
  diffFromNow() {
447
436
  const now = (0, moment_1.default)();
@@ -470,8 +459,8 @@ class DatetimeEdge {
470
459
  }
471
460
  // ==================== Início e Fim de Período ====================
472
461
  /**
473
- * Retorna o início do dia (00:00:00.000) como nova instância.
474
- * @returns Nova instância com o horário zerado para o início do dia
462
+ * Returns the start of the day (00:00:00.000) as a new instance.
463
+ * @returns A new instance with the time set to the beginning of the day
475
464
  * @example
476
465
  * new DatetimeEdge(new Date("2026-03-12T14:30")).startOfDay()
477
466
  * // DatetimeEdge("2026-03-12T00:00:00.000")
@@ -480,8 +469,8 @@ class DatetimeEdge {
480
469
  return new DatetimeEdge(this.date.clone().startOf("day").toDate());
481
470
  }
482
471
  /**
483
- * Retorna o fim do dia (23:59:59.999) como nova instância.
484
- * @returns Nova instância com o horário ajustado para o fim do dia
472
+ * Returns the end of the day (23:59:59.999) as a new instance.
473
+ * @returns A new instance with the time set to the end of the day
485
474
  * @example
486
475
  * new DatetimeEdge(new Date("2026-03-12T08:00")).endOfDay()
487
476
  * // DatetimeEdge("2026-03-12T23:59:59.999")
@@ -490,8 +479,8 @@ class DatetimeEdge {
490
479
  return new DatetimeEdge(this.date.clone().endOf("day").toDate());
491
480
  }
492
481
  /**
493
- * Retorna o início do mês como nova instância.
494
- * @returns Nova instância apontando para o primeiro dia do mês à meia-noite
482
+ * Returns the start of the month as a new instance.
483
+ * @returns A new instance pointing to the first day of the month at midnight
495
484
  * @example
496
485
  * new DatetimeEdge(new Date("2026-03-12")).startOfMonth()
497
486
  * // DatetimeEdge("2026-03-01T00:00:00.000")
@@ -500,8 +489,8 @@ class DatetimeEdge {
500
489
  return new DatetimeEdge(this.date.clone().startOf("month").toDate());
501
490
  }
502
491
  /**
503
- * Retorna o fim do mês como nova instância.
504
- * @returns Nova instância apontando para o último dia do mês ao fim do dia
492
+ * Returns the end of the month as a new instance.
493
+ * @returns A new instance pointing to the last day of the month at the end of the day
505
494
  * @example
506
495
  * new DatetimeEdge(new Date("2026-03-12")).endOfMonth()
507
496
  * // DatetimeEdge("2026-03-31T23:59:59.999")
@@ -510,8 +499,8 @@ class DatetimeEdge {
510
499
  return new DatetimeEdge(this.date.clone().endOf("month").toDate());
511
500
  }
512
501
  /**
513
- * Retorna o início do ano como nova instância.
514
- * @returns Nova instância apontando para o primeiro dia do ano à meia-noite
502
+ * Returns the start of the year as a new instance.
503
+ * @returns A new instance pointing to the first day of the year at midnight
515
504
  * @example
516
505
  * new DatetimeEdge(new Date("2026-03-12")).startOfYear()
517
506
  * // DatetimeEdge("2026-01-01T00:00:00.000")
@@ -520,8 +509,8 @@ class DatetimeEdge {
520
509
  return new DatetimeEdge(this.date.clone().startOf("year").toDate());
521
510
  }
522
511
  /**
523
- * Retorna o fim do ano como nova instância.
524
- * @returns Nova instância apontando para o último dia do ano ao fim do dia
512
+ * Returns the end of the year as a new instance.
513
+ * @returns A new instance pointing to the last day of the year at the end of the day
525
514
  * @example
526
515
  * new DatetimeEdge(new Date("2026-03-12")).endOfYear()
527
516
  * // DatetimeEdge("2026-12-31T23:59:59.999")
@@ -531,19 +520,19 @@ class DatetimeEdge {
531
520
  }
532
521
  // ==================== Clonagem e Imutabilidade ====================
533
522
  /**
534
- * Cria uma cópia independente desta instância de DatetimeEdge.
535
- * @returns Nova instância com o mesmo valor de data
523
+ * Creates an independent copy of this DatetimeEdge instance.
524
+ * @returns A new instance with the same date value
536
525
  * @example
537
526
  * const dt1 = new DatetimeEdge(new Date("2026-03-12"));
538
- * const dt2 = dt1.clone(); // instância independente
527
+ * const dt2 = dt1.clone(); // independent instance
539
528
  */
540
529
  clone() {
541
530
  return new DatetimeEdge(this.date.toDate());
542
531
  }
543
532
  /**
544
- * Retorna uma nova instância com a data alterada, mantendo o horário.
545
- * @param date - Novo objeto Date
546
- * @returns Nova instância com o valor fornecido
533
+ * Returns a new instance with the date changed, keeping the time.
534
+ * @param date - New Date object
535
+ * @returns New instance with the provided value
547
536
  * @example
548
537
  * new DatetimeEdge(new Date("2026-03-12")).withDate(new Date("2026-12-25"))
549
538
  * // DatetimeEdge("2026-12-25")
@@ -553,8 +542,8 @@ class DatetimeEdge {
553
542
  }
554
543
  // ==================== Formatação ====================
555
544
  /**
556
- * Retorna a data no formato ISO 8601.
557
- * @returns String no formato "YYYY-MM-DDTHH:mm:ss.sssZ"
545
+ * Returns the date in ISO 8601 format.
546
+ * @returns String in the format "YYYY-MM-DDTHH:mm:ss.sssZ"
558
547
  * @example
559
548
  * new DatetimeEdge(new Date("2026-03-12")).toISOString() // "2026-03-12T00:00:00.000Z"
560
549
  */
@@ -562,8 +551,8 @@ class DatetimeEdge {
562
551
  return this.date.toISOString();
563
552
  }
564
553
  /**
565
- * Retorna a data como objeto Date nativo.
566
- * @returns Objeto Date representando esta data
554
+ * Returns the date as a native Date object.
555
+ * @returns Date object representing this date
567
556
  * @example
568
557
  * new DatetimeEdge(new Date("2026-03-12")).toDate() // Date object
569
558
  */
@@ -571,8 +560,8 @@ class DatetimeEdge {
571
560
  return this.date.toDate();
572
561
  }
573
562
  /**
574
- * Retorna a data no formato YYYY-MM-DD.
575
- * @returns String no formato "YYYY-MM-DD"
563
+ * Returns the date in YYYY-MM-DD format.
564
+ * @returns String in the format "YYYY-MM-DD"
576
565
  * @example
577
566
  * new DatetimeEdge(new Date("2026-03-12")).toYYYYMMDD() // "2026-03-12"
578
567
  */
@@ -580,7 +569,7 @@ class DatetimeEdge {
580
569
  return this.date.format("YYYY-MM-DD");
581
570
  }
582
571
  /**
583
- * Retorna a data no formato DD/MM/YYYY (padrão brasileiro).
572
+ * Returns the date in DD/MM/YYYY format (Brazilian standard).
584
573
  * @returns String no formato "DD/MM/YYYY"
585
574
  * @example
586
575
  * new DatetimeEdge(new Date("2026-03-12")).toDDMMYYYY() // "12/03/2026"
@@ -589,8 +578,8 @@ class DatetimeEdge {
589
578
  return this.date.format("DD/MM/YYYY");
590
579
  }
591
580
  /**
592
- * Retorna a data e hora no formato DD/MM/YYYY HH:mm.
593
- * @returns String no formato "DD/MM/YYYY HH:mm"
581
+ * Returns the date and time in the format DD/MM/YYYY HH:mm.
582
+ * @returns A string in the format "DD/MM/YYYY HH:mm".
594
583
  * @example
595
584
  * new DatetimeEdge(new Date("2026-03-12T14:30")).toDDMMYYYYHHmm() // "12/03/2026 14:30"
596
585
  */
@@ -598,9 +587,9 @@ class DatetimeEdge {
598
587
  return this.date.format("DD/MM/YYYY HH:mm");
599
588
  }
600
589
  /**
601
- * Retorna a data formatada com um padrão customizado do moment.js.
602
- * @param format - Padrão de formatação (ex: "YYYY-MM-DD HH:mm:ss")
603
- * @returns String formatada conforme o padrão fornecido
590
+ * Returns the date formatted with a custom pattern from moment.js.
591
+ * @param format - Formatting pattern (e.g., "YYYY-MM-DD HH:mm:ss")
592
+ * @returns Formatted string according to the provided pattern
604
593
  * @example
605
594
  * new DatetimeEdge(new Date("2026-03-12T14:30")).format("MMMM Do YYYY") // "March 12th 2026"
606
595
  */
@@ -608,8 +597,8 @@ class DatetimeEdge {
608
597
  return this.date.format(format);
609
598
  }
610
599
  /**
611
- * Retorna o timestamp em milissegundos da data.
612
- * @returns Número de milissegundos desde 01/01/1970 UTC
600
+ * Returns the timestamp in milliseconds of the date.
601
+ * @returns NNumber of milliseconds since 01/01/1970 UTC
613
602
  * @example
614
603
  * new DatetimeEdge(new Date("2026-03-12")).timestamp() // 1773273600000
615
604
  */
@@ -617,8 +606,8 @@ class DatetimeEdge {
617
606
  return this.date.valueOf();
618
607
  }
619
608
  /**
620
- * Retorna o timestamp Unix em segundos da data.
621
- * @returns Número de segundos desde 01/01/1970 UTC
609
+ * Returns the Unix timestamp in seconds of the date.
610
+ * @returns NNumber of seconds since 01/01/1970 UTC
622
611
  * @example
623
612
  * new DatetimeEdge(new Date("2026-03-12")).unix() // 1773273600
624
613
  */
@@ -627,19 +616,19 @@ class DatetimeEdge {
627
616
  }
628
617
  // ==================== Métodos Estáticos ====================
629
618
  /**
630
- * Cria um DatetimeEdge representando o momento atual.
631
- * @returns Nova instância com a data e hora atuais
619
+ * Creates a new DatetimeEdge representing the current moment.
620
+ * @returns New instance with the current date and time
632
621
  * @example
633
- * DatetimeEdge.now() // DatetimeEdge com a data e hora do momento da chamada
622
+ * DatetimeEdge.now() // DatetimeEdge with the current date and time
634
623
  */
635
624
  static now() {
636
625
  return new DatetimeEdge(new Date());
637
626
  }
638
627
  /**
639
- * Retorna a maior (mais recente) data de uma lista.
640
- * @param dates - Array de instâncias de DatetimeEdge para comparação
641
- * @returns A instância com a data mais recente
642
- * @throws {Error} Se o array estiver vazio
628
+ * Returns the latest (most recent) date from an array.
629
+ * @param dates - Array of DatetimeEdge instances to compare
630
+ * @returns The instance with the latest date
631
+ * @throws {Error} If the array is empty
643
632
  * @example
644
633
  * DatetimeEdge.max([
645
634
  * new DatetimeEdge(new Date("2026-01-01")),
@@ -653,10 +642,10 @@ class DatetimeEdge {
653
642
  return dates.reduce((max, date) => (date.isAfter(max) ? date : max));
654
643
  }
655
644
  /**
656
- * Retorna a menor (mais antiga) data de uma lista.
657
- * @param dates - Array de instâncias de DatetimeEdge para comparação
658
- * @returns A instância com a data mais antiga
659
- * @throws {Error} Se o array estiver vazio
645
+ * Returns the earliest (oldest) date from an array.
646
+ * @param dates - Array of DatetimeEdge instances to compare
647
+ * @returns The instance with the earliest date
648
+ * @throws {Error} If the array is empty
660
649
  * @example
661
650
  * DatetimeEdge.min([
662
651
  * new DatetimeEdge(new Date("2026-01-01")),
@@ -671,8 +660,8 @@ class DatetimeEdge {
671
660
  }
672
661
  // ==================== Privados ====================
673
662
  /**
674
- * Valida se a data fornecida no construtor é uma data válida.
675
- * @throws {Error} Se a data for inválida
663
+ * Validates whether the date provided to the constructor is a valid date.
664
+ * @throws {Error} If the date is invalid.
676
665
  */
677
666
  validate() {
678
667
  if (!(0, moment_1.default)(this.date).isValid()) {