@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
@@ -0,0 +1,9 @@
1
+ import { AmountEdge } from "#/objects/amount/amount.edge";
2
+ import { AmountPolygon } from "#/objects/amount/amount.polygon";
3
+ import { UvAbstract } from "#/objects-interface/uv.abstract";
4
+ export declare class AmountUv<T> extends UvAbstract implements AmountPolygon<T> {
5
+ value: number;
6
+ unit: T;
7
+ toEntity(): AmountEdge<T>;
8
+ }
9
+ //# sourceMappingURL=amount.uv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount.uv.d.ts","sourceRoot":"","sources":["../../../../src/objects/amount/amount.uv.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,qBAAa,QAAQ,CAAC,CAAC,CAAE,SAAQ,UAAW,YAAW,aAAa,CAAC,CAAC,CAAC;IAE/D,KAAK,EAAG,MAAM,CAAC;IAGf,IAAI,EAAG,CAAC,CAAC;IAET,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC;CAGhC"}
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AmountUv = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const uv_abstract_1 = require("../../objects-interface/uv.abstract");
15
- const amount_edge_1 = require("./amount.edge");
14
+ const amount_edge_1 = require("#/objects/amount/amount.edge");
15
+ const uv_abstract_1 = require("#/objects-interface/uv.abstract");
16
16
  class AmountUv extends uv_abstract_1.UvAbstract {
17
17
  toEntity() {
18
18
  return new amount_edge_1.AmountEdge(this.value, this.unit);
@@ -9,3 +9,4 @@ export declare enum DurationUnitPoint {
9
9
  milliseconds = "milliseconds",
10
10
  quarters = "quarters"
11
11
  }
12
+ //# sourceMappingURL=duration-unit.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duration-unit.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/duration-unit.point.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC5B,KAAK,OAAO;IACZ,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,IAAI,MAAM;IACV,KAAK,MAAM;IACX,OAAO,QAAQ;IACf,OAAO,MAAM;IACb,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACrB"}
@@ -4,3 +4,4 @@ export declare enum EnergyUnitPoint {
4
4
  kilocalorie = "kcal",
5
5
  kilocaloriePerDay = "kcal/d"
6
6
  }
7
+ //# sourceMappingURL=energy-unit.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energy-unit.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/energy-unit.point.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAC1B,KAAK,MAAM;IACX,OAAO,QAAQ;IACf,WAAW,SAAS;IACpB,iBAAiB,WAAW;CAC5B"}
@@ -4,3 +4,4 @@ export declare enum LengthUnitPoint {
4
4
  centimeter = "cm",
5
5
  millimeter = "mm"
6
6
  }
7
+ //# sourceMappingURL=length-unit.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"length-unit.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/length-unit.point.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAC1B,KAAK,MAAM;IACX,SAAS,OAAO;IAChB,UAAU,OAAO;IACjB,UAAU,OAAO;CACjB"}
@@ -5,3 +5,4 @@ export declare enum MassUnitPoint {
5
5
  micrograma = "mcg",
6
6
  internationalUnit = "ui"
7
7
  }
8
+ //# sourceMappingURL=mass-unit.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mass-unit.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/mass-unit.point.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACxB,QAAQ,OAAO;IACf,IAAI,MAAM;IACV,SAAS,OAAO;IAChB,UAAU,QAAQ;IAClB,iBAAiB,OAAO;CACxB"}
@@ -12,3 +12,4 @@ export declare enum MonthNamePoint {
12
12
  november = "november",
13
13
  december = "december"
14
14
  }
15
+ //# sourceMappingURL=month-name.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"month-name.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/month-name.point.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACzB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACrB"}
@@ -1,3 +1,4 @@
1
1
  export declare enum ObjectUnitPoint {
2
2
  un = "un"
3
3
  }
4
+ //# sourceMappingURL=object-unit.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-unit.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/object-unit.point.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAC1B,EAAE,OAAO;CACT"}
@@ -0,0 +1,7 @@
1
+ import { VolumeUnitPoint } from "#/index";
2
+ import { DurationUnitPoint } from "#/objects/amount/points/duration-unit.point";
3
+ import { EnergyUnitPoint } from "#/objects/amount/points/energy-unit.point";
4
+ import { LengthUnitPoint } from "#/objects/amount/points/length-unit.point";
5
+ import { MassUnitPoint } from "#/objects/amount/points/mass-unit.point";
6
+ export type UnitPoints = LengthUnitPoint | VolumeUnitPoint | MassUnitPoint | EnergyUnitPoint | DurationUnitPoint | "un";
7
+ //# sourceMappingURL=units.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"units.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/units.point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,MAAM,MAAM,UAAU,GACnB,eAAe,GACf,eAAe,GACf,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,IAAI,CAAC"}
@@ -2,3 +2,4 @@ export declare enum VolumeUnitPoint {
2
2
  liter = "L",
3
3
  milliliter = "mL"
4
4
  }
5
+ //# sourceMappingURL=volume-unit.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volume-unit.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/volume-unit.point.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAC1B,KAAK,MAAM;IACX,UAAU,OAAO;CACjB"}
@@ -7,3 +7,4 @@ export declare enum WeekDayPoint {
7
7
  friday = "friday",
8
8
  saturday = "saturday"
9
9
  }
10
+ //# sourceMappingURL=week-day.point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"week-day.point.d.ts","sourceRoot":"","sources":["../../../../../src/objects/amount/points/week-day.point.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB"}
@@ -0,0 +1,467 @@
1
+ import { Moment } from "moment";
2
+ import { LanguagePoint } from "#/index";
3
+ import { HolidaysCountry } from "#/objects/datetime/edges/locale/holidays-country.type";
4
+ export declare class DatetimeEdge {
5
+ private readonly value?;
6
+ protected readonly date: Moment;
7
+ constructor(value?: (Date | string) | undefined);
8
+ /**
9
+ * Returns a human-friendly date string in the format "Day, Mon DD".
10
+ * Uses day and month names in the specified locale.
11
+ * @returns A formatted string such as "Sunday, Mar 29" or "Today, Apr 1"
12
+ * @example
13
+ * new DatetimeEdge(new Date("2026-03-29")).toFriendlyString() // "Sunday, Mar 29"
14
+ * new DatetimeEdge(new Date()).toFriendlyString() // "Today, Apr 1"
15
+ */
16
+ toFriendlyString(language: LanguagePoint): string;
17
+ /**
18
+ * Checks whether this date is later than another date.
19
+ * @param datetime - Date to compare against.
20
+ * @returns `true` if this date is greater than `datetime`; otherwise, `false`.
21
+ * @example
22
+ * new DatetimeEdge(new Date("2026-12-01")).isAfter(new DatetimeEdge(new Date("2026-01-01"))) // true
23
+ */
24
+ isAfter(datetime: DatetimeEdge): boolean;
25
+ /**
26
+ * Checks whether this date is earlier than another date.
27
+ * @param datetime - Date to compare against.
28
+ * @returns `true` if this date is less than `datetime`; otherwise, `false`.
29
+ * @example
30
+ * new DatetimeEdge(new Date("2026-01-01")).isBefore(new DatetimeEdge(new Date("2026-12-01"))) // true
31
+ */
32
+ isBefore(datetime: DatetimeEdge): boolean;
33
+ /**
34
+ * Checks whether this date is equal to another date.
35
+ * @param datetime - Date to compare against.
36
+ * @returns `true` if the dates are equal; otherwise, `false`.
37
+ * @example
38
+ * new DatetimeEdge(new Date("2026-01-01")).isEquals(new DatetimeEdge(new Date("2026-01-01"))) // true
39
+ */
40
+ isEquals(datetime: DatetimeEdge): boolean;
41
+ /**
42
+ * Verifica se esta data está entre duas outras datas (exclusivo).
43
+ * @param initialDate - Data inicial do intervalo
44
+ * @param finalDate - Data final do intervalo
45
+ * @returns true se this está entre initialDate e finalDate, false caso contrário
46
+ * @example
47
+ * new DatetimeEdge(new Date("2026-06-15")).isBetween(
48
+ * new DatetimeEdge(new Date("2026-01-01")),
49
+ * new DatetimeEdge(new Date("2026-12-31"))
50
+ * ) // true
51
+ */
52
+ isBetween(initialDate: DatetimeEdge, finalDate: DatetimeEdge): boolean;
53
+ /**
54
+ * Checks whether this date falls on a weekend (Saturday or Sunday).
55
+ * @returns `true` if the date is a Saturday or Sunday; otherwise, `false`.
56
+ * @example
57
+ * new DatetimeEdge(new Date("2026-03-14")).isWeekend() // true (Saturday)
58
+ * new DatetimeEdge(new Date("2026-03-12")).isWeekend() // false (Thursday)
59
+ */
60
+ isWeekend(): boolean;
61
+ /**
62
+ * Checks whether this date is a holiday in the specified country.
63
+ * @param country - The country whose holiday calendar will be used for validation.
64
+ * @returns `true` if the date is a holiday in the specified country; otherwise, `false`.
65
+ * @example
66
+ * new DatetimeEdge(new Date("2026-12-25")).isHoliday("BR") // true (Christmas Day)
67
+ * new DatetimeEdge(new Date("2026-03-12")).isHoliday("BR") // false
68
+ */
69
+ isHoliday(country: HolidaysCountry): boolean;
70
+ /**
71
+ * Checks whether the date is a business day (not a weekend or a holiday).
72
+ * @param country - The country whose holiday calendar will be used for validation.
73
+ * @returns `true` if the date is a business day; otherwise, `false`.
74
+ * @example
75
+ * new DatetimeEdge(new Date("2026-03-12")).isBusinessDay("BR") // true (Thursday)
76
+ * new DatetimeEdge(new Date("2026-12-25")).isBusinessDay("BR") // false (Christmas Day)
77
+ */
78
+ isBusinessDay(country: HolidaysCountry): boolean;
79
+ /**
80
+ * Checks whether the date corresponds to today.
81
+ * @returns `true` if the date is today; otherwise, `false`.
82
+ * @example
83
+ * new DatetimeEdge(new Date()).isToday() // true
84
+ * new DatetimeEdge(new Date("2020-01-01")).isToday() // false
85
+ */
86
+ isToday(): boolean;
87
+ /**
88
+ * Checks whether the date corresponds to yesterday.
89
+ * @returns `true` if the date is yesterday; otherwise, `false`.
90
+ * @example
91
+ * new DatetimeEdge(new Date()).isYesterday() // false
92
+ */
93
+ isYesterday(): boolean;
94
+ /**
95
+ * Checks whether the date corresponds to tomorrow.
96
+ * @returns `true` if the date is tomorrow; otherwise, `false`.
97
+ * @example
98
+ * new DatetimeEdge(new Date()).isTomorrow() // false
99
+ */
100
+ isTomorrow(): boolean;
101
+ /**
102
+ * Checks whether the date is on the same day as another date.
103
+ * @param datetime - Date for comparison
104
+ * @returns `true` if both dates are on the same day, `false` otherwise
105
+ * @example
106
+ * const a = new DatetimeEdge(new Date("2026-03-12T08:00"));
107
+ * const b = new DatetimeEdge(new Date("2026-03-12T22:00"));
108
+ * a.isSameDay(b) // true
109
+ */
110
+ isSameDay(datetime: DatetimeEdge): boolean;
111
+ /**
112
+ * Checks whether the date is on the same month as another date.
113
+ * @param datetime - Date for comparison
114
+ * @returns `true` if both dates are on the same month and year, `false` otherwise
115
+ * @example
116
+ * const a = new DatetimeEdge(new Date("2026-03-01"));
117
+ * const b = new DatetimeEdge(new Date("2026-03-31"));
118
+ * a.isSameMonth(b) // true
119
+ */
120
+ isSameMonth(datetime: DatetimeEdge): boolean;
121
+ /**
122
+ * Checks whether the date is on the same year as another date.
123
+ * @param datetime - Date for comparison
124
+ * @returns `true` if both dates are on the same year, `false` otherwise
125
+ * @example
126
+ * const a = new DatetimeEdge(new Date("2026-01-01"));
127
+ * const b = new DatetimeEdge(new Date("2026-12-31"));
128
+ * a.isSameYear(b) // true
129
+ */
130
+ isSameYear(datetime: DatetimeEdge): boolean;
131
+ /**
132
+ * Returns the day of the week for the date.
133
+ * @returns Enum WeekDayEnum representing the day of the week
134
+ * @example
135
+ * new DatetimeEdge(new Date("2026-03-12")).getDayOfWeek() // WeekDayEnum.thursday
136
+ */
137
+ getDayOfWeek(language: LanguagePoint): string;
138
+ /**
139
+ * Returns the standard day of the week as a {@link WeekDayEnum} value.
140
+ * This internal method provides the canonical weekday representation
141
+ * used throughout the class before any localization or formatting is applied.
142
+ *
143
+ * @returns The corresponding {@link WeekDayEnum} for the current date.
144
+ * @example
145
+ * new DatetimeEdge(new Date("2026-03-12")).getStandardDayOfWeek() // WeekDayEnum.thursday
146
+ */
147
+ private getStandardDayOfWeek;
148
+ /**
149
+ * Returns the name of the month for the date.
150
+ * @returns Enum MonthNameEnum representing the month
151
+ * @example
152
+ * new DatetimeEdge(new Date("2026-03-12")).getNameOfMonth() // MonthNameEnum.march
153
+ */
154
+ getNameOfMonth(language: LanguagePoint): string;
155
+ /**
156
+ * Returns the day of the month for the date.
157
+ * @returns NNumber of the day (1-31)
158
+ * @example
159
+ * new DatetimeEdge(new Date("2026-03-12")).getDayOfMonth() // 12
160
+ */
161
+ getDayOfMonth(): number;
162
+ /**
163
+ * Returns the month number for the date (0-11).
164
+ * @returns Month number (0=January, 11=December)
165
+ * @example
166
+ * new DatetimeEdge(new Date("2026-03-12")).getNumberOfMonth() // 2
167
+ */
168
+ getNumberOfMonth(): number;
169
+ /**
170
+ * Returns the year of the date.
171
+ * @returns The year number.
172
+ * @example
173
+ * new DatetimeEdge(new Date("2026-03-12")).getYear() // 2026
174
+ */
175
+ getYear(): number;
176
+ /**
177
+ * Returns the hours of the date.
178
+ * @returns The hour number (0-23)
179
+ * @example
180
+ * new DatetimeEdge(new Date("2026-03-12T14:30:00")).getHours() // 14
181
+ */
182
+ getHours(): number;
183
+ /**
184
+ * Returns the minutes of the date.
185
+ * @returns The minute number (0-59)
186
+ * @example
187
+ * new DatetimeEdge(new Date("2026-03-12T14:30:00")).getMinutes() // 30
188
+ */
189
+ getMinutes(): number;
190
+ /**
191
+ * Returns the seconds of the date.
192
+ * @returns The second number (0-59)
193
+ * @example
194
+ * new DatetimeEdge(new Date("2026-03-12T14:30:45")).getSeconds() // 45
195
+ */
196
+ getSeconds(): number;
197
+ /**
198
+ * Adds days to the date and returns a new instance.
199
+ * @param days - NNumber of days to add
200
+ * @returns New instance with the updated date
201
+ * @example
202
+ * new DatetimeEdge(new Date("2026-03-12")).addDays(5) // DatetimeEdge("2026-03-17")
203
+ */
204
+ addDays(days: number): DatetimeEdge;
205
+ /**
206
+ * Subtracts days from the date and returns a new instance.
207
+ * @param days - NNumber of days to subtract
208
+ * @returns New instance with the updated date
209
+ * @example
210
+ * new DatetimeEdge(new Date("2026-03-12")).subtractDays(5) // DatetimeEdge("2026-03-07")
211
+ */
212
+ subtractDays(days: number): DatetimeEdge;
213
+ /**
214
+ * Adds months to the date and returns a new instance.
215
+ * @param months - NNumber of months to add
216
+ * @returns New instance with the updated date
217
+ * @example
218
+ * new DatetimeEdge(new Date("2026-03-12")).addMonths(2) // DatetimeEdge("2026-05-12")
219
+ */
220
+ addMonths(months: number): DatetimeEdge;
221
+ /**
222
+ * Subtracts months from the date and returns a new instance.
223
+ * @param months - NNumber of months to subtract
224
+ * @returns New instance with the updated date
225
+ * @example
226
+ * new DatetimeEdge(new Date("2026-03-12")).subtractMonths(2) // DatetimeEdge("2026-01-12")
227
+ */
228
+ subtractMonths(months: number): DatetimeEdge;
229
+ /**
230
+ * Adds years to the date and returns a new instance.
231
+ * @param years - NNumber of years to add
232
+ * @returns New instance with the updated date
233
+ * @example
234
+ * new DatetimeEdge(new Date("2026-03-12")).addYears(1) // DatetimeEdge("2027-03-12")
235
+ */
236
+ addYears(years: number): DatetimeEdge;
237
+ /**
238
+ * Subtracts years from the date and returns a new instance.
239
+ * @param years - NNumber of years to subtract
240
+ * @returns New instance with the updated date
241
+ * @example
242
+ * new DatetimeEdge(new Date("2026-03-12")).subtractYears(1) // DatetimeEdge("2025-03-12")
243
+ */
244
+ subtractYears(years: number): DatetimeEdge;
245
+ /**
246
+ * Adds hours to the date and returns a new instance.
247
+ * @param hours - NNumber of hours to add
248
+ * @returns New instance with the updated date
249
+ * @example
250
+ * new DatetimeEdge(new Date("2026-03-12T08:00")).addHours(3) // DatetimeEdge("2026-03-12T11:00")
251
+ */
252
+ addHours(hours: number): DatetimeEdge;
253
+ /**
254
+ * Adds minutes to the date and returns a new instance.
255
+ * @param minutes - NNumber of minutes to add
256
+ * @returns New instance with the updated date
257
+ * @example
258
+ * new DatetimeEdge(new Date("2026-03-12T08:00")).addMinutes(30) // DatetimeEdge("2026-03-12T08:30")
259
+ */
260
+ addMinutes(minutes: number): DatetimeEdge;
261
+ /**
262
+ * Calculates the difference in days between this date and another.
263
+ * @param datetime - Date to calculate the difference from
264
+ * @returns NNumber of days difference (positive if this > datetime)
265
+ * @example
266
+ * new DatetimeEdge(new Date("2026-03-15")).diffInDays(new DatetimeEdge(new Date("2026-03-10"))) // 5
267
+ */
268
+ diffInDays(datetime: DatetimeEdge): number;
269
+ /**
270
+ * Calculates the difference in months between this date and another.
271
+ * @param datetime - Date to calculate the difference from
272
+ * @returns NNumber of months difference (positive if this > datetime)
273
+ * @example
274
+ * new DatetimeEdge(new Date("2026-05-12")).diffInMonths(new DatetimeEdge(new Date("2026-03-12"))) // 2
275
+ */
276
+ diffInMonths(datetime: DatetimeEdge): number;
277
+ /**
278
+ * Calculates the difference in years between this date and another date.
279
+ * @param datetime - Date to calculate the difference against.
280
+ * @returns The number of years between the dates (positive if this date is later than `datetime`).
281
+ * @example
282
+ * new DatetimeEdge(new Date("2028-03-12")).diffInYears(new DatetimeEdge(new Date("2026-03-12"))) // 2
283
+ */
284
+ diffInYears(datetime: DatetimeEdge): number;
285
+ /**
286
+ * Calcula a diferença em horas entre esta data e outra.
287
+ * @param datetime - Data para calcular a diferença
288
+ * @returns Número de horas de diferença (positivo se this > datetime)
289
+ * @example
290
+ * new DatetimeEdge(new Date("2026-03-12T14:00")).diffInHours(new DatetimeEdge(new Date("2026-03-12T08:00"))) // 6
291
+ */
292
+ diffInHours(datetime: DatetimeEdge): number;
293
+ /**
294
+ * Calculates the difference in minutes between this date and another date.
295
+ * @param datetime - Date to calculate the difference against.
296
+ * @returns The number of minutes between the dates (positive if this date is later than `datetime`).
297
+ * @example
298
+ * new DatetimeEdge(new Date("2026-03-12T08:45")).diffInMinutes(new DatetimeEdge(new Date("2026-03-12T08:00"))) // 45
299
+ */
300
+ diffInMinutes(datetime: DatetimeEdge): number;
301
+ /**
302
+ * Returns a human-readable difference between this date and the current moment.
303
+ * @returns A descriptive string such as "3 days ago.", "2 hours ago.", etc.
304
+ * @example
305
+ * new DatetimeEdge(new Date("2025-03-12")).diffFromNow() // "1 year ago."
306
+ */
307
+ diffFromNow(): string;
308
+ /**
309
+ * Returns the start of the day (00:00:00.000) as a new instance.
310
+ * @returns A new instance with the time set to the beginning of the day
311
+ * @example
312
+ * new DatetimeEdge(new Date("2026-03-12T14:30")).startOfDay()
313
+ * // DatetimeEdge("2026-03-12T00:00:00.000")
314
+ */
315
+ startOfDay(): DatetimeEdge;
316
+ /**
317
+ * Returns the end of the day (23:59:59.999) as a new instance.
318
+ * @returns A new instance with the time set to the end of the day
319
+ * @example
320
+ * new DatetimeEdge(new Date("2026-03-12T08:00")).endOfDay()
321
+ * // DatetimeEdge("2026-03-12T23:59:59.999")
322
+ */
323
+ endOfDay(): DatetimeEdge;
324
+ /**
325
+ * Returns the start of the month as a new instance.
326
+ * @returns A new instance pointing to the first day of the month at midnight
327
+ * @example
328
+ * new DatetimeEdge(new Date("2026-03-12")).startOfMonth()
329
+ * // DatetimeEdge("2026-03-01T00:00:00.000")
330
+ */
331
+ startOfMonth(): DatetimeEdge;
332
+ /**
333
+ * Returns the end of the month as a new instance.
334
+ * @returns A new instance pointing to the last day of the month at the end of the day
335
+ * @example
336
+ * new DatetimeEdge(new Date("2026-03-12")).endOfMonth()
337
+ * // DatetimeEdge("2026-03-31T23:59:59.999")
338
+ */
339
+ endOfMonth(): DatetimeEdge;
340
+ /**
341
+ * Returns the start of the year as a new instance.
342
+ * @returns A new instance pointing to the first day of the year at midnight
343
+ * @example
344
+ * new DatetimeEdge(new Date("2026-03-12")).startOfYear()
345
+ * // DatetimeEdge("2026-01-01T00:00:00.000")
346
+ */
347
+ startOfYear(): DatetimeEdge;
348
+ /**
349
+ * Returns the end of the year as a new instance.
350
+ * @returns A new instance pointing to the last day of the year at the end of the day
351
+ * @example
352
+ * new DatetimeEdge(new Date("2026-03-12")).endOfYear()
353
+ * // DatetimeEdge("2026-12-31T23:59:59.999")
354
+ */
355
+ endOfYear(): DatetimeEdge;
356
+ /**
357
+ * Creates an independent copy of this DatetimeEdge instance.
358
+ * @returns A new instance with the same date value
359
+ * @example
360
+ * const dt1 = new DatetimeEdge(new Date("2026-03-12"));
361
+ * const dt2 = dt1.clone(); // independent instance
362
+ */
363
+ clone(): DatetimeEdge;
364
+ /**
365
+ * Returns a new instance with the date changed, keeping the time.
366
+ * @param date - New Date object
367
+ * @returns New instance with the provided value
368
+ * @example
369
+ * new DatetimeEdge(new Date("2026-03-12")).withDate(new Date("2026-12-25"))
370
+ * // DatetimeEdge("2026-12-25")
371
+ */
372
+ withDate(date: Date): DatetimeEdge;
373
+ /**
374
+ * Returns the date in ISO 8601 format.
375
+ * @returns String in the format "YYYY-MM-DDTHH:mm:ss.sssZ"
376
+ * @example
377
+ * new DatetimeEdge(new Date("2026-03-12")).toISOString() // "2026-03-12T00:00:00.000Z"
378
+ */
379
+ toISOString(): string;
380
+ /**
381
+ * Returns the date as a native Date object.
382
+ * @returns Date object representing this date
383
+ * @example
384
+ * new DatetimeEdge(new Date("2026-03-12")).toDate() // Date object
385
+ */
386
+ toDate(): Date;
387
+ /**
388
+ * Returns the date in YYYY-MM-DD format.
389
+ * @returns String in the format "YYYY-MM-DD"
390
+ * @example
391
+ * new DatetimeEdge(new Date("2026-03-12")).toYYYYMMDD() // "2026-03-12"
392
+ */
393
+ toYYYYMMDD(): string;
394
+ /**
395
+ * Returns the date in DD/MM/YYYY format (Brazilian standard).
396
+ * @returns String no formato "DD/MM/YYYY"
397
+ * @example
398
+ * new DatetimeEdge(new Date("2026-03-12")).toDDMMYYYY() // "12/03/2026"
399
+ */
400
+ toDDMMYYYY(): string;
401
+ /**
402
+ * Returns the date and time in the format DD/MM/YYYY HH:mm.
403
+ * @returns A string in the format "DD/MM/YYYY HH:mm".
404
+ * @example
405
+ * new DatetimeEdge(new Date("2026-03-12T14:30")).toDDMMYYYYHHmm() // "12/03/2026 14:30"
406
+ */
407
+ toDDMMYYYYHHmm(): string;
408
+ /**
409
+ * Returns the date formatted with a custom pattern from moment.js.
410
+ * @param format - Formatting pattern (e.g., "YYYY-MM-DD HH:mm:ss")
411
+ * @returns Formatted string according to the provided pattern
412
+ * @example
413
+ * new DatetimeEdge(new Date("2026-03-12T14:30")).format("MMMM Do YYYY") // "March 12th 2026"
414
+ */
415
+ format(format: string): string;
416
+ /**
417
+ * Returns the timestamp in milliseconds of the date.
418
+ * @returns NNumber of milliseconds since 01/01/1970 UTC
419
+ * @example
420
+ * new DatetimeEdge(new Date("2026-03-12")).timestamp() // 1773273600000
421
+ */
422
+ timestamp(): number;
423
+ /**
424
+ * Returns the Unix timestamp in seconds of the date.
425
+ * @returns NNumber of seconds since 01/01/1970 UTC
426
+ * @example
427
+ * new DatetimeEdge(new Date("2026-03-12")).unix() // 1773273600
428
+ */
429
+ unix(): number;
430
+ /**
431
+ * Creates a new DatetimeEdge representing the current moment.
432
+ * @returns New instance with the current date and time
433
+ * @example
434
+ * DatetimeEdge.now() // DatetimeEdge with the current date and time
435
+ */
436
+ static now(): DatetimeEdge;
437
+ /**
438
+ * Returns the latest (most recent) date from an array.
439
+ * @param dates - Array of DatetimeEdge instances to compare
440
+ * @returns The instance with the latest date
441
+ * @throws {Error} If the array is empty
442
+ * @example
443
+ * DatetimeEdge.max([
444
+ * new DatetimeEdge(new Date("2026-01-01")),
445
+ * new DatetimeEdge(new Date("2026-06-15")),
446
+ * ]) // DatetimeEdge("2026-06-15")
447
+ */
448
+ static max(dates: DatetimeEdge[]): DatetimeEdge;
449
+ /**
450
+ * Returns the earliest (oldest) date from an array.
451
+ * @param dates - Array of DatetimeEdge instances to compare
452
+ * @returns The instance with the earliest date
453
+ * @throws {Error} If the array is empty
454
+ * @example
455
+ * DatetimeEdge.min([
456
+ * new DatetimeEdge(new Date("2026-01-01")),
457
+ * new DatetimeEdge(new Date("2026-06-15")),
458
+ * ]) // DatetimeEdge("2026-01-01")
459
+ */
460
+ static min(dates: DatetimeEdge[]): DatetimeEdge;
461
+ /**
462
+ * Validates whether the date provided to the constructor is a valid date.
463
+ * @throws {Error} If the date is invalid.
464
+ */
465
+ protected validate(): void;
466
+ }
467
+ //# sourceMappingURL=datetime.edge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime.edge.d.ts","sourceRoot":"","sources":["../../../../../src/objects/datetime/edges/datetime.edge.ts"],"names":[],"mappings":"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"}