@thisisagile/easy 18.11.1 → 18.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-EGGEJRWA.mjs → chunk-2GYEWYBU.mjs} +4 -4
  3. package/dist/{chunk-UG3NG43J.mjs → chunk-44GORRHT.mjs} +3 -3
  4. package/dist/{chunk-WLTKHBFQ.mjs → chunk-4GK27OOO.mjs} +3 -3
  5. package/dist/{chunk-XVZYKKLD.mjs → chunk-66DVBO4C.mjs} +2 -2
  6. package/dist/{chunk-4FXDIYQT.mjs → chunk-6HTOXMLP.mjs} +3 -3
  7. package/dist/{chunk-PNSMLGOA.mjs → chunk-A7KUHZ3A.mjs} +2 -2
  8. package/dist/{chunk-I2VWZJ2K.mjs → chunk-AVHYDITZ.mjs} +4 -4
  9. package/dist/{chunk-4UKOKM72.mjs → chunk-CR2ZP2PA.mjs} +2 -2
  10. package/dist/{chunk-EFFUHXDK.mjs → chunk-DWSZUI3N.mjs} +4 -4
  11. package/dist/{chunk-ZO6LH5HU.mjs → chunk-FBZHPHXB.mjs} +2 -2
  12. package/dist/{chunk-YYXHD3PC.mjs → chunk-G6EOJ3XG.mjs} +2 -2
  13. package/dist/{chunk-3VDUMU5P.mjs → chunk-GYJHZJKL.mjs} +2 -2
  14. package/dist/chunk-HFRGTGH6.mjs +140 -0
  15. package/dist/chunk-HFRGTGH6.mjs.map +1 -0
  16. package/dist/{chunk-4NRVIWNE.mjs → chunk-HIM2UTGC.mjs} +2 -2
  17. package/dist/{chunk-RF23BV6J.mjs → chunk-IKUC55KC.mjs} +2 -2
  18. package/dist/{chunk-V5TW476J.mjs → chunk-IUZTBZYP.mjs} +2 -2
  19. package/dist/{chunk-M7OD5QSB.mjs → chunk-J6OJWNBP.mjs} +2 -2
  20. package/dist/{chunk-P4XVLBXB.mjs → chunk-JMAWKYXN.mjs} +2 -2
  21. package/dist/{chunk-M7MW5CXO.mjs → chunk-KGW3CVDO.mjs} +2 -2
  22. package/dist/{chunk-DODBPVV5.mjs → chunk-M2LLIIPG.mjs} +7 -7
  23. package/dist/{chunk-NQYUWVJT.mjs → chunk-MRV7FQNU.mjs} +2 -2
  24. package/dist/{chunk-J2RU23YZ.mjs → chunk-NUFTFLAY.mjs} +3 -3
  25. package/dist/{chunk-52VT3UEM.mjs → chunk-OWUSKHPI.mjs} +3 -3
  26. package/dist/{chunk-EHVMIXKR.mjs → chunk-PDPNMABX.mjs} +4 -4
  27. package/dist/{chunk-YDYQTX4H.mjs → chunk-QIBUS2GL.mjs} +3 -3
  28. package/dist/{chunk-HN3HW22I.mjs → chunk-RMQZRTTG.mjs} +2 -2
  29. package/dist/{chunk-KMEBQTNE.mjs → chunk-RPZ2XDQQ.mjs} +2 -2
  30. package/dist/{chunk-KXYGCS7S.mjs → chunk-TNJ2KFPQ.mjs} +2 -2
  31. package/dist/{chunk-BSN5WGZ6.mjs → chunk-TXXJY2Y7.mjs} +3 -3
  32. package/dist/{chunk-TNLJ45P5.mjs → chunk-ULOORN2E.mjs} +2 -2
  33. package/dist/{chunk-BODG3KPC.mjs → chunk-VENBCZAM.mjs} +3 -3
  34. package/dist/{chunk-YRVCY3KC.mjs → chunk-VOZBRY56.mjs} +4 -4
  35. package/dist/{chunk-4AEHKWWI.mjs → chunk-YTXIST3O.mjs} +2 -2
  36. package/dist/{chunk-HAGNDCSR.mjs → chunk-ZB323SGD.mjs} +2 -2
  37. package/dist/{chunk-5VP4WNID.mjs → chunk-ZPT6E6AF.mjs} +5 -5
  38. package/dist/data/Condition.mjs +4 -4
  39. package/dist/data/Database.mjs +3 -3
  40. package/dist/data/Field.mjs +4 -4
  41. package/dist/data/InMemoryGateway.mjs +4 -4
  42. package/dist/domain/Audit.mjs +8 -8
  43. package/dist/domain/Child.mjs +5 -5
  44. package/dist/domain/DateTime.d.ts +5 -7
  45. package/dist/domain/DateTime.mjs +4 -4
  46. package/dist/domain/Entity.mjs +8 -8
  47. package/dist/domain/Repo.mjs +4 -4
  48. package/dist/domain/Struct.mjs +4 -4
  49. package/dist/domain/Typo.mjs +4 -4
  50. package/dist/http/CacheControl.mjs +4 -4
  51. package/dist/http/ContentType.mjs +3 -3
  52. package/dist/http/HttpStatus.mjs +3 -3
  53. package/dist/http/HttpVerb.mjs +3 -3
  54. package/dist/http/LocalRequestStore.mjs +2 -2
  55. package/dist/http/RequestOptions.mjs +4 -4
  56. package/dist/http/RestResult.mjs +4 -4
  57. package/dist/http/toResponse.mjs +5 -5
  58. package/dist/index.js +33 -165
  59. package/dist/index.js.map +1 -1
  60. package/dist/process/App.mjs +3 -3
  61. package/dist/process/Manage.mjs +4 -4
  62. package/dist/process/Scope.mjs +3 -3
  63. package/dist/process/Search.mjs +4 -4
  64. package/dist/process/UseCase.mjs +2 -2
  65. package/dist/resources/Req.mjs +3 -3
  66. package/dist/services/Api.mjs +12 -12
  67. package/dist/services/ApiGateway.mjs +15 -15
  68. package/dist/services/AxiosProvider.mjs +10 -10
  69. package/dist/services/MappedRouteGateway.mjs +18 -18
  70. package/dist/services/RouteGateway.mjs +16 -16
  71. package/dist/services/ViewRouteGateway.mjs +18 -18
  72. package/dist/sql/Column.mjs +3 -3
  73. package/dist/sql/Count.mjs +5 -5
  74. package/dist/sql/Delete.mjs +4 -4
  75. package/dist/sql/Insert.mjs +4 -4
  76. package/dist/sql/Select.mjs +4 -4
  77. package/dist/sql/SqlQuery.mjs +3 -3
  78. package/dist/sql/Table.mjs +12 -12
  79. package/dist/sql/TableGateway.mjs +4 -4
  80. package/dist/sql/Update.mjs +4 -4
  81. package/dist/types/Cache.mjs +2 -2
  82. package/dist/types/CacheAge.mjs +4 -4
  83. package/dist/types/Case.mjs +2 -2
  84. package/dist/types/Context.mjs +2 -2
  85. package/dist/types/Enum.mjs +2 -2
  86. package/dist/types/Environment.mjs +2 -2
  87. package/dist/types/Exception.mjs +2 -2
  88. package/dist/types/Gateway.mjs +3 -3
  89. package/dist/types/IsEqual.mjs +2 -2
  90. package/dist/types/Json.mjs +3 -3
  91. package/dist/types/List.mjs +2 -2
  92. package/dist/types/Meta.mjs +2 -2
  93. package/dist/types/Number.mjs +3 -3
  94. package/dist/types/Object.mjs +2 -2
  95. package/dist/types/PageList.mjs +3 -3
  96. package/dist/types/Parser.mjs +2 -2
  97. package/dist/types/Repository.mjs +3 -3
  98. package/dist/types/Result.mjs +2 -2
  99. package/dist/types/Results.mjs +2 -2
  100. package/dist/types/Tag.mjs +2 -2
  101. package/dist/types/Template.mjs +2 -2
  102. package/dist/types/ToText.mjs +2 -2
  103. package/dist/types/Try.mjs +2 -2
  104. package/dist/types/Uri.mjs +2 -2
  105. package/dist/utils/If.mjs +2 -2
  106. package/dist/utils/Mapper.mjs +4 -4
  107. package/dist/utils/Period.mjs +4 -4
  108. package/dist/utils/Promise.mjs +2 -2
  109. package/dist/utils/Seconds.mjs +3 -3
  110. package/dist/utils/Sentence.mjs +2 -2
  111. package/dist/utils/View.mjs +5 -5
  112. package/dist/validation/Contraints.mjs +3 -3
  113. package/dist/validation/Validate.mjs +2 -2
  114. package/dist/validation/When.mjs +2 -2
  115. package/package.json +4 -9
  116. package/src/domain/DateTime.ts +40 -206
  117. package/dist/chunk-GRDUTNMZ.mjs +0 -272
  118. package/dist/chunk-GRDUTNMZ.mjs.map +0 -1
  119. /package/dist/{chunk-EGGEJRWA.mjs.map → chunk-2GYEWYBU.mjs.map} +0 -0
  120. /package/dist/{chunk-UG3NG43J.mjs.map → chunk-44GORRHT.mjs.map} +0 -0
  121. /package/dist/{chunk-WLTKHBFQ.mjs.map → chunk-4GK27OOO.mjs.map} +0 -0
  122. /package/dist/{chunk-XVZYKKLD.mjs.map → chunk-66DVBO4C.mjs.map} +0 -0
  123. /package/dist/{chunk-4FXDIYQT.mjs.map → chunk-6HTOXMLP.mjs.map} +0 -0
  124. /package/dist/{chunk-PNSMLGOA.mjs.map → chunk-A7KUHZ3A.mjs.map} +0 -0
  125. /package/dist/{chunk-I2VWZJ2K.mjs.map → chunk-AVHYDITZ.mjs.map} +0 -0
  126. /package/dist/{chunk-4UKOKM72.mjs.map → chunk-CR2ZP2PA.mjs.map} +0 -0
  127. /package/dist/{chunk-EFFUHXDK.mjs.map → chunk-DWSZUI3N.mjs.map} +0 -0
  128. /package/dist/{chunk-ZO6LH5HU.mjs.map → chunk-FBZHPHXB.mjs.map} +0 -0
  129. /package/dist/{chunk-YYXHD3PC.mjs.map → chunk-G6EOJ3XG.mjs.map} +0 -0
  130. /package/dist/{chunk-3VDUMU5P.mjs.map → chunk-GYJHZJKL.mjs.map} +0 -0
  131. /package/dist/{chunk-4NRVIWNE.mjs.map → chunk-HIM2UTGC.mjs.map} +0 -0
  132. /package/dist/{chunk-RF23BV6J.mjs.map → chunk-IKUC55KC.mjs.map} +0 -0
  133. /package/dist/{chunk-V5TW476J.mjs.map → chunk-IUZTBZYP.mjs.map} +0 -0
  134. /package/dist/{chunk-M7OD5QSB.mjs.map → chunk-J6OJWNBP.mjs.map} +0 -0
  135. /package/dist/{chunk-P4XVLBXB.mjs.map → chunk-JMAWKYXN.mjs.map} +0 -0
  136. /package/dist/{chunk-M7MW5CXO.mjs.map → chunk-KGW3CVDO.mjs.map} +0 -0
  137. /package/dist/{chunk-DODBPVV5.mjs.map → chunk-M2LLIIPG.mjs.map} +0 -0
  138. /package/dist/{chunk-NQYUWVJT.mjs.map → chunk-MRV7FQNU.mjs.map} +0 -0
  139. /package/dist/{chunk-J2RU23YZ.mjs.map → chunk-NUFTFLAY.mjs.map} +0 -0
  140. /package/dist/{chunk-52VT3UEM.mjs.map → chunk-OWUSKHPI.mjs.map} +0 -0
  141. /package/dist/{chunk-EHVMIXKR.mjs.map → chunk-PDPNMABX.mjs.map} +0 -0
  142. /package/dist/{chunk-YDYQTX4H.mjs.map → chunk-QIBUS2GL.mjs.map} +0 -0
  143. /package/dist/{chunk-HN3HW22I.mjs.map → chunk-RMQZRTTG.mjs.map} +0 -0
  144. /package/dist/{chunk-KMEBQTNE.mjs.map → chunk-RPZ2XDQQ.mjs.map} +0 -0
  145. /package/dist/{chunk-KXYGCS7S.mjs.map → chunk-TNJ2KFPQ.mjs.map} +0 -0
  146. /package/dist/{chunk-BSN5WGZ6.mjs.map → chunk-TXXJY2Y7.mjs.map} +0 -0
  147. /package/dist/{chunk-TNLJ45P5.mjs.map → chunk-ULOORN2E.mjs.map} +0 -0
  148. /package/dist/{chunk-BODG3KPC.mjs.map → chunk-VENBCZAM.mjs.map} +0 -0
  149. /package/dist/{chunk-YRVCY3KC.mjs.map → chunk-VOZBRY56.mjs.map} +0 -0
  150. /package/dist/{chunk-4AEHKWWI.mjs.map → chunk-YTXIST3O.mjs.map} +0 -0
  151. /package/dist/{chunk-HAGNDCSR.mjs.map → chunk-ZB323SGD.mjs.map} +0 -0
  152. /package/dist/{chunk-5VP4WNID.mjs.map → chunk-ZPT6E6AF.mjs.map} +0 -0
package/README.md CHANGED
@@ -124,7 +124,7 @@ However, if you would create an `Email` value object, the validation can be impl
124
124
  You can now use the above `Email` class as the type of email properties in an entity or struct to make sure that this property is a valid email.
125
125
 
126
126
  #### DateTime
127
- DateTime is a value object that takes either a Date object, RFC-3339 formatted string, or a number representing Epoch in milliseconds. The json is always an RFC-3339 formatted string. [Day.js](https://day.js.org/) is used internally.
127
+ DateTime is a value object that takes either a Date object, RFC-3339 formatted string, or a number representing Epoch in milliseconds. The json is always an RFC-3339 formatted string. [luxon](https://moment.github.io/luxon/#/) is used internally.
128
128
 
129
129
  A few examples of DateTime:
130
130
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Api
3
- } from "./chunk-YRVCY3KC.mjs";
3
+ } from "./chunk-VOZBRY56.mjs";
4
4
  import {
5
5
  Gateway
6
- } from "./chunk-XVZYKKLD.mjs";
6
+ } from "./chunk-66DVBO4C.mjs";
7
7
  import {
8
8
  toPageList
9
- } from "./chunk-3VDUMU5P.mjs";
9
+ } from "./chunk-GYJHZJKL.mjs";
10
10
  import {
11
11
  use
12
12
  } from "./chunk-PF7HDF6B.mjs";
@@ -43,4 +43,4 @@ var ApiGateway = class extends Gateway {
43
43
  export {
44
44
  ApiGateway
45
45
  };
46
- //# sourceMappingURL=chunk-EGGEJRWA.mjs.map
46
+ //# sourceMappingURL=chunk-2GYEWYBU.mjs.map
@@ -6,12 +6,12 @@ import {
6
6
  } from "./chunk-IMJHOYU3.mjs";
7
7
  import {
8
8
  json
9
- } from "./chunk-PNSMLGOA.mjs";
9
+ } from "./chunk-A7KUHZ3A.mjs";
10
10
  import {
11
11
  ifNotEmpty,
12
12
  meta,
13
13
  toList
14
- } from "./chunk-I2VWZJ2K.mjs";
14
+ } from "./chunk-AVHYDITZ.mjs";
15
15
  import {
16
16
  ofGet
17
17
  } from "./chunk-SJGQU3OG.mjs";
@@ -129,4 +129,4 @@ export {
129
129
  Mapper,
130
130
  mappings
131
131
  };
132
- //# sourceMappingURL=chunk-UG3NG43J.mjs.map
132
+ //# sourceMappingURL=chunk-44GORRHT.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asNumber
3
- } from "./chunk-4NRVIWNE.mjs";
3
+ } from "./chunk-HIM2UTGC.mjs";
4
4
  import {
5
5
  choose
6
- } from "./chunk-I2VWZJ2K.mjs";
6
+ } from "./chunk-AVHYDITZ.mjs";
7
7
  import {
8
8
  asString
9
9
  } from "./chunk-NNA77YYC.mjs";
@@ -54,4 +54,4 @@ export {
54
54
  cacheAge,
55
55
  isCacheAge
56
56
  };
57
- //# sourceMappingURL=chunk-WLTKHBFQ.mjs.map
57
+ //# sourceMappingURL=chunk-4GK27OOO.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Exception,
3
3
  reject
4
- } from "./chunk-I2VWZJ2K.mjs";
4
+ } from "./chunk-AVHYDITZ.mjs";
5
5
 
6
6
  // src/types/Gateway.ts
7
7
  var Gateway = class {
@@ -40,4 +40,4 @@ var Gateway = class {
40
40
  export {
41
41
  Gateway
42
42
  };
43
- //# sourceMappingURL=chunk-XVZYKKLD.mjs.map
43
+ //# sourceMappingURL=chunk-66DVBO4C.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SqlQuery
3
- } from "./chunk-M7MW5CXO.mjs";
3
+ } from "./chunk-KGW3CVDO.mjs";
4
4
  import {
5
5
  toList
6
- } from "./chunk-I2VWZJ2K.mjs";
6
+ } from "./chunk-AVHYDITZ.mjs";
7
7
  import {
8
8
  ifGet
9
9
  } from "./chunk-SJGQU3OG.mjs";
@@ -51,4 +51,4 @@ var Select = class extends SqlQuery {
51
51
  export {
52
52
  Select
53
53
  };
54
- //# sourceMappingURL=chunk-4FXDIYQT.mjs.map
54
+ //# sourceMappingURL=chunk-6HTOXMLP.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  entries,
3
3
  ifDefined
4
- } from "./chunk-I2VWZJ2K.mjs";
4
+ } from "./chunk-AVHYDITZ.mjs";
5
5
  import {
6
6
  ofGet
7
7
  } from "./chunk-SJGQU3OG.mjs";
@@ -67,4 +67,4 @@ export {
67
67
  takeFirst,
68
68
  any
69
69
  };
70
- //# sourceMappingURL=chunk-PNSMLGOA.mjs.map
70
+ //# sourceMappingURL=chunk-A7KUHZ3A.mjs.map
@@ -1,12 +1,12 @@
1
- import {
2
- traverse
3
- } from "./chunk-SSROJBD5.mjs";
4
1
  import {
5
2
  isValidatable
6
3
  } from "./chunk-EBIF6AMC.mjs";
7
4
  import {
8
5
  toArray
9
6
  } from "./chunk-KCY4RPFR.mjs";
7
+ import {
8
+ traverse
9
+ } from "./chunk-SSROJBD5.mjs";
10
10
  import {
11
11
  isValue
12
12
  } from "./chunk-S3NSPQ7M.mjs";
@@ -1042,4 +1042,4 @@ export {
1042
1042
  ifEqual,
1043
1043
  ifEither
1044
1044
  };
1045
- //# sourceMappingURL=chunk-I2VWZJ2K.mjs.map
1045
+ //# sourceMappingURL=chunk-AVHYDITZ.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MJAB7NZV.mjs";
4
4
  import {
5
5
  json
6
- } from "./chunk-PNSMLGOA.mjs";
6
+ } from "./chunk-A7KUHZ3A.mjs";
7
7
  import {
8
8
  isDefined
9
9
  } from "./chunk-AAND4MKF.mjs";
@@ -50,4 +50,4 @@ export {
50
50
  toCondition,
51
51
  isSortCondition
52
52
  };
53
- //# sourceMappingURL=chunk-4UKOKM72.mjs.map
53
+ //# sourceMappingURL=chunk-CR2ZP2PA.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ApiGateway
3
- } from "./chunk-EGGEJRWA.mjs";
3
+ } from "./chunk-2GYEWYBU.mjs";
4
4
  import {
5
5
  Api
6
- } from "./chunk-YRVCY3KC.mjs";
6
+ } from "./chunk-VOZBRY56.mjs";
7
7
  import {
8
8
  HttpStatus
9
- } from "./chunk-KMEBQTNE.mjs";
9
+ } from "./chunk-RPZ2XDQQ.mjs";
10
10
  import {
11
11
  toArray
12
12
  } from "./chunk-KCY4RPFR.mjs";
@@ -57,4 +57,4 @@ var RouteGateway = class extends ApiGateway {
57
57
  export {
58
58
  RouteGateway
59
59
  };
60
- //# sourceMappingURL=chunk-EFFUHXDK.mjs.map
60
+ //# sourceMappingURL=chunk-DWSZUI3N.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Exception,
3
3
  reject
4
- } from "./chunk-I2VWZJ2K.mjs";
4
+ } from "./chunk-AVHYDITZ.mjs";
5
5
 
6
6
  // src/types/Repository.ts
7
7
  var Repository = class {
@@ -46,4 +46,4 @@ var Repository = class {
46
46
  export {
47
47
  Repository
48
48
  };
49
- //# sourceMappingURL=chunk-ZO6LH5HU.mjs.map
49
+ //# sourceMappingURL=chunk-FBZHPHXB.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-I2VWZJ2K.mjs";
3
+ } from "./chunk-AVHYDITZ.mjs";
4
4
  import {
5
5
  ofConstruct
6
6
  } from "./chunk-PF7HDF6B.mjs";
@@ -22,4 +22,4 @@ export {
22
22
  DefaultProvider,
23
23
  Database
24
24
  };
25
- //# sourceMappingURL=chunk-YYXHD3PC.mjs.map
25
+ //# sourceMappingURL=chunk-G6EOJ3XG.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  choose,
4
4
  isList,
5
5
  toList
6
- } from "./chunk-I2VWZJ2K.mjs";
6
+ } from "./chunk-AVHYDITZ.mjs";
7
7
  import {
8
8
  isA
9
9
  } from "./chunk-D5IYAIMK.mjs";
@@ -170,4 +170,4 @@ export {
170
170
  toPageList,
171
171
  asPageList
172
172
  };
173
- //# sourceMappingURL=chunk-3VDUMU5P.mjs.map
173
+ //# sourceMappingURL=chunk-GYJHZJKL.mjs.map
@@ -0,0 +1,140 @@
1
+ import {
2
+ seconds
3
+ } from "./chunk-IKUC55KC.mjs";
4
+ import {
5
+ isDate
6
+ } from "./chunk-ADJAEGCT.mjs";
7
+ import {
8
+ choose,
9
+ ifDefined,
10
+ tryTo
11
+ } from "./chunk-AVHYDITZ.mjs";
12
+ import {
13
+ Value
14
+ } from "./chunk-S3NSPQ7M.mjs";
15
+ import {
16
+ isA
17
+ } from "./chunk-D5IYAIMK.mjs";
18
+ import {
19
+ use
20
+ } from "./chunk-PF7HDF6B.mjs";
21
+ import {
22
+ isDefined,
23
+ isNumber,
24
+ isString
25
+ } from "./chunk-AAND4MKF.mjs";
26
+
27
+ // src/domain/DateTime.ts
28
+ import { DateTime as LuxonDateTime, Settings } from "luxon";
29
+ Settings.defaultZone = "utc";
30
+ var DateTime = class _DateTime extends Value {
31
+ luxon;
32
+ constructor(value, format) {
33
+ const luxon = choose(value).type(isString, (v) => format ? LuxonDateTime.fromFormat(v, format, { setZone: true }) : LuxonDateTime.fromISO(v, { setZone: true })).type(isNumber, (v) => LuxonDateTime.fromMillis(v)).type(isDate, (v) => LuxonDateTime.fromJSDate(v)).type(isDateTime, (v) => v.luxon).else(value instanceof LuxonDateTime ? value : LuxonDateTime.fromISO(void 0));
34
+ super(luxon.toISO() ?? void 0);
35
+ this.luxon = luxon;
36
+ }
37
+ static get now() {
38
+ return new _DateTime(LuxonDateTime.utc());
39
+ }
40
+ get isValid() {
41
+ return isDefined(this.value) && this.utc.isValid;
42
+ }
43
+ /**
44
+ * @deprecated Deprecated in favor for DateTime.from as that also accepts locales and another DateTime
45
+ */
46
+ get fromNow() {
47
+ return this.from();
48
+ }
49
+ get inAmsterdam() {
50
+ return this.withZone("Europe/Amsterdam");
51
+ }
52
+ get inNewYork() {
53
+ return this.withZone("America/New_York");
54
+ }
55
+ get inLondon() {
56
+ return this.withZone("Europe/London");
57
+ }
58
+ get inWarsaw() {
59
+ return this.withZone("Europe/Warsaw");
60
+ }
61
+ get utc() {
62
+ return this.luxon.setZone("utc");
63
+ }
64
+ from(dateOrLocale, maybeLocale) {
65
+ return use(
66
+ (isString(dateOrLocale) ? dateOrLocale : maybeLocale) ?? "en",
67
+ (locale) => ifDefined(
68
+ isA(dateOrLocale) ? dateOrLocale : void 0,
69
+ (d) => this.utc.setLocale(locale).toRelative({ base: d.utc }),
70
+ () => this.utc.setLocale(locale).toRelative()
71
+ )
72
+ ) ?? "";
73
+ }
74
+ isAfter(dt2) {
75
+ return this.utc > dt2.utc;
76
+ }
77
+ isBefore(dt2) {
78
+ return this.utc < dt2.utc;
79
+ }
80
+ equals(dt2) {
81
+ return this.utc.hasSame(dt2.utc, "millisecond");
82
+ }
83
+ add(n, unit = "day") {
84
+ return new _DateTime(this.luxon.plus(isNumber(n) ? { [unit]: n } : n));
85
+ }
86
+ subtract(n, unit = "day") {
87
+ return new _DateTime(this.luxon.minus(isNumber(n) ? { [unit]: n } : n));
88
+ }
89
+ diff(other, unit = "day", opts) {
90
+ return Math[opts?.rounding ?? "floor"](this.utc.diff(other.utc).as(unit));
91
+ }
92
+ startOf(unit = "day") {
93
+ return new _DateTime(this.luxon.startOf(unit));
94
+ }
95
+ endOf(unit = "day") {
96
+ return new _DateTime(this.luxon.endOf(unit));
97
+ }
98
+ isWeekend() {
99
+ return this.luxon.isWeekend;
100
+ }
101
+ withZone(zone) {
102
+ return new _DateTime(this.luxon.setZone(zone));
103
+ }
104
+ toString() {
105
+ return this.value ?? "";
106
+ }
107
+ toJSON() {
108
+ return this.utc.toISO();
109
+ }
110
+ toFormat(format) {
111
+ return this.luxon.toFormat(format);
112
+ }
113
+ toLocale(locale = "nl-NL", format = "D") {
114
+ return this.luxon.setLocale(locale).toFormat(format);
115
+ }
116
+ toFull(locale) {
117
+ return this.toLocale(locale, "DDD");
118
+ }
119
+ toDate() {
120
+ return this.isValid ? this.utc.toJSDate() : void 0;
121
+ }
122
+ toEpoch() {
123
+ return this.luxon.toMillis();
124
+ }
125
+ ago(end = _DateTime.now) {
126
+ return seconds.toText(end.diff(this, "second"));
127
+ }
128
+ withClock(clock) {
129
+ return tryTo(() => [this.toDate(), clock.toDate()]).map(([td, cd]) => new Date(td.getFullYear(), td.getMonth(), td.getDate(), cd.getHours(), cd.getMinutes(), cd.getSeconds())).map((d) => new _DateTime(d)).value;
130
+ }
131
+ };
132
+ var isDateTime = (dt2) => isDefined(dt2) && dt2 instanceof DateTime;
133
+ var dt = (dt2) => new DateTime(dt2);
134
+
135
+ export {
136
+ DateTime,
137
+ isDateTime,
138
+ dt
139
+ };
140
+ //# sourceMappingURL=chunk-HFRGTGH6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/domain/DateTime.ts"],"sourcesContent":["import { DateTime as LuxonDateTime, DateTimeUnit as LuxonDateTimeUnit, DurationUnit as LuxonDurationUnit, Settings } from 'luxon';\nimport { Value } from '../types/Value';\nimport { Optional } from '../types/Types';\nimport { choose } from '../types/Case';\nimport { isDefined, isNumber, isString } from '../types/Is';\nimport { isDate } from '../types/IsDate';\nimport { isA } from '../types/IsA';\nimport { ifDefined } from '../utils/If';\nimport { JsonValue } from '../types/Json';\nimport { seconds } from '../utils/Seconds';\nimport { tryTo } from '../types/Try';\nimport { use } from '../types/Constructor';\n\nSettings.defaultZone = 'utc';\n\nexport type DateTimeUnit = LuxonDateTimeUnit;\nexport type DurationUnit = LuxonDurationUnit;\nexport type Duration = Partial<Record<DurationUnit, number>>;\n\nexport type DiffOptions = {\n rounding: 'floor' | 'ceil' | 'round';\n};\n\nexport type DatetimeInput = string | number | Date | DateTime | null;\n\nexport class DateTime extends Value<Optional<string>> {\n protected readonly luxon: LuxonDateTime;\n\n constructor(value?: DatetimeInput);\n constructor(value?: string, format?: string);\n constructor(value?: DatetimeInput, format?: string) {\n const luxon = choose(value)\n .type(isString, v => (format ? LuxonDateTime.fromFormat(v, format, { setZone: true }) : LuxonDateTime.fromISO(v, { setZone: true })))\n .type(isNumber, v => LuxonDateTime.fromMillis(v))\n .type(isDate, v => LuxonDateTime.fromJSDate(v))\n .type(isDateTime, v => v.luxon)\n // Allow constructing with LuxonDateTime without exposing types\n .else(value instanceof LuxonDateTime ? value : LuxonDateTime.fromISO(undefined as any));\n\n super(luxon.toISO() ?? undefined);\n this.luxon = luxon;\n }\n\n static get now(): DateTime {\n return new DateTime(LuxonDateTime.utc() as any);\n }\n\n get isValid(): boolean {\n return isDefined(this.value) && this.utc.isValid;\n }\n\n /**\n * @deprecated Deprecated in favor for DateTime.from as that also accepts locales and another DateTime\n */\n get fromNow(): string {\n return this.from();\n }\n\n get inAmsterdam(): DateTime {\n return this.withZone('Europe/Amsterdam');\n }\n\n get inNewYork(): DateTime {\n return this.withZone('America/New_York');\n }\n\n get inLondon(): DateTime {\n return this.withZone('Europe/London');\n }\n\n get inWarsaw(): DateTime {\n return this.withZone('Europe/Warsaw');\n }\n\n protected get utc(): LuxonDateTime {\n return this.luxon.setZone('utc');\n }\n\n from(locale?: string): string;\n\n from(date?: DateTime, locale?: string): string;\n\n from(dateOrLocale?: string | DateTime, maybeLocale?: string): string {\n return (\n use((isString(dateOrLocale) ? dateOrLocale : maybeLocale) ?? 'en', locale =>\n ifDefined(\n isA<DateTime>(dateOrLocale) ? dateOrLocale : undefined,\n d => this.utc.setLocale(locale).toRelative({ base: d.utc }),\n () => this.utc.setLocale(locale).toRelative()\n )\n ) ?? ''\n );\n }\n\n isAfter(dt: DateTime): boolean {\n return this.utc > dt.utc;\n }\n\n isBefore(dt: DateTime): boolean {\n return this.utc < dt.utc;\n }\n\n equals(dt: DateTime): boolean {\n return this.utc.hasSame(dt.utc, 'millisecond');\n }\n\n add(n: number, unit?: DurationUnit): DateTime;\n\n add(duration: Duration): DateTime;\n\n add(n: number | Duration, unit: DurationUnit = 'day'): DateTime {\n return new DateTime(this.luxon.plus(isNumber(n) ? { [unit]: n } : n) as any);\n }\n\n subtract(n: number, unit?: DurationUnit): DateTime;\n\n subtract(duration: Duration): DateTime;\n\n subtract(n: number | Duration, unit: DurationUnit = 'day'): DateTime {\n return new DateTime(this.luxon.minus(isNumber(n) ? { [unit]: n } : n) as any);\n }\n\n diff(other: DateTime, unit: DateTimeUnit = 'day', opts?: DiffOptions): number {\n return Math[opts?.rounding ?? 'floor'](this.utc.diff(other.utc).as(unit));\n }\n\n startOf(unit: DateTimeUnit = 'day'): DateTime {\n return new DateTime(this.luxon.startOf(unit) as any);\n }\n\n endOf(unit: DateTimeUnit = 'day'): DateTime {\n return new DateTime(this.luxon.endOf(unit) as any);\n }\n\n isWeekend(): boolean {\n return this.luxon.isWeekend;\n }\n\n withZone(zone: string): DateTime {\n return new DateTime(this.luxon.setZone(zone) as any);\n }\n\n toString(): string {\n return this.value ?? '';\n }\n\n toJSON(): JsonValue {\n return this.utc.toISO();\n }\n\n toFormat(format: string): string {\n return this.luxon.toFormat(format);\n }\n\n toLocale(locale = 'nl-NL', format = 'D'): string {\n return this.luxon.setLocale(locale).toFormat(format);\n }\n\n toFull(locale?: string): string {\n return this.toLocale(locale, 'DDD');\n }\n\n toDate(): Optional<Date> {\n return this.isValid ? this.utc.toJSDate() : undefined;\n }\n\n toEpoch(): number {\n return this.luxon.toMillis();\n }\n\n ago(end: DateTime = DateTime.now): string {\n return seconds.toText(end.diff(this, 'second'));\n }\n\n withClock(clock: DateTime): DateTime {\n return tryTo(() => [this.toDate() as Date, clock.toDate() as Date])\n .map(([td, cd]) => new Date(td.getFullYear(), td.getMonth(), td.getDate(), cd.getHours(), cd.getMinutes(), cd.getSeconds()))\n .map(d => new DateTime(d)).value;\n }\n}\n\nexport const isDateTime = (dt?: unknown): dt is DateTime => isDefined(dt) && dt instanceof DateTime;\n\nexport const dt = (dt?: DatetimeInput): DateTime => new DateTime(dt);\n"],"mappings":"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","names":["dt"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tryTo
3
- } from "./chunk-I2VWZJ2K.mjs";
3
+ } from "./chunk-AVHYDITZ.mjs";
4
4
  import {
5
5
  asString
6
6
  } from "./chunk-NNA77YYC.mjs";
@@ -17,4 +17,4 @@ var asNumber = (n, alt) => tryTo(() => asString(n)).map((s) => parseInt(s)).filt
17
17
  export {
18
18
  asNumber
19
19
  };
20
- //# sourceMappingURL=chunk-4NRVIWNE.mjs.map
20
+ //# sourceMappingURL=chunk-HIM2UTGC.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ifTrue,
3
3
  toList
4
- } from "./chunk-I2VWZJ2K.mjs";
4
+ } from "./chunk-AVHYDITZ.mjs";
5
5
 
6
6
  // src/utils/Seconds.ts
7
7
  var seconds = {
@@ -21,4 +21,4 @@ var seconds = {
21
21
  export {
22
22
  seconds
23
23
  };
24
- //# sourceMappingURL=chunk-RF23BV6J.mjs.map
24
+ //# sourceMappingURL=chunk-IKUC55KC.mjs.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-IMJHOYU3.mjs";
7
7
  import {
8
8
  tryTo
9
- } from "./chunk-I2VWZJ2K.mjs";
9
+ } from "./chunk-AVHYDITZ.mjs";
10
10
  import {
11
11
  ofGet
12
12
  } from "./chunk-SJGQU3OG.mjs";
@@ -79,4 +79,4 @@ export {
79
79
  PatternColumn,
80
80
  OrderColumn
81
81
  };
82
- //# sourceMappingURL=chunk-V5TW476J.mjs.map
82
+ //# sourceMappingURL=chunk-IUZTBZYP.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SqlQuery
3
- } from "./chunk-M7MW5CXO.mjs";
3
+ } from "./chunk-KGW3CVDO.mjs";
4
4
  import {
5
5
  toClause
6
6
  } from "./chunk-5WGOB7QF.mjs";
@@ -23,4 +23,4 @@ var Update = class extends SqlQuery {
23
23
  export {
24
24
  Update
25
25
  };
26
- //# sourceMappingURL=chunk-M7OD5QSB.mjs.map
26
+ //# sourceMappingURL=chunk-J6OJWNBP.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-I2VWZJ2K.mjs";
3
+ } from "./chunk-AVHYDITZ.mjs";
4
4
  import {
5
5
  asString
6
6
  } from "./chunk-NNA77YYC.mjs";
@@ -28,4 +28,4 @@ var ContentType = class _ContentType extends Enum {
28
28
  export {
29
29
  ContentType
30
30
  };
31
- //# sourceMappingURL=chunk-P4XVLBXB.mjs.map
31
+ //# sourceMappingURL=chunk-JMAWKYXN.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toList
3
- } from "./chunk-I2VWZJ2K.mjs";
3
+ } from "./chunk-AVHYDITZ.mjs";
4
4
 
5
5
  // src/sql/SqlQuery.ts
6
6
  var SqlQuery = class {
@@ -17,4 +17,4 @@ var SqlQuery = class {
17
17
  export {
18
18
  SqlQuery
19
19
  };
20
- //# sourceMappingURL=chunk-M7MW5CXO.mjs.map
20
+ //# sourceMappingURL=chunk-KGW3CVDO.mjs.map
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  toResponse
3
- } from "./chunk-BODG3KPC.mjs";
3
+ } from "./chunk-VENBCZAM.mjs";
4
4
  import {
5
5
  isRestResult
6
- } from "./chunk-J2RU23YZ.mjs";
6
+ } from "./chunk-NUFTFLAY.mjs";
7
7
  import {
8
8
  HttpStatus
9
- } from "./chunk-KMEBQTNE.mjs";
9
+ } from "./chunk-RPZ2XDQQ.mjs";
10
10
  import {
11
11
  RequestOptions
12
- } from "./chunk-YDYQTX4H.mjs";
12
+ } from "./chunk-QIBUS2GL.mjs";
13
13
  import {
14
14
  cacheAge
15
- } from "./chunk-WLTKHBFQ.mjs";
15
+ } from "./chunk-4GK27OOO.mjs";
16
16
  import {
17
17
  choose,
18
18
  ctx,
19
19
  toResult
20
- } from "./chunk-I2VWZJ2K.mjs";
20
+ } from "./chunk-AVHYDITZ.mjs";
21
21
  import {
22
22
  isDefined,
23
23
  isEmpty
@@ -49,4 +49,4 @@ var AxiosProvider = class {
49
49
  export {
50
50
  AxiosProvider
51
51
  };
52
- //# sourceMappingURL=chunk-DODBPVV5.mjs.map
52
+ //# sourceMappingURL=chunk-M2LLIIPG.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  Enum,
3
3
  text,
4
4
  toList
5
- } from "./chunk-I2VWZJ2K.mjs";
5
+ } from "./chunk-AVHYDITZ.mjs";
6
6
  import {
7
7
  kebab
8
8
  } from "./chunk-NNA77YYC.mjs";
@@ -32,4 +32,4 @@ var Scope = class _Scope extends Enum {
32
32
  export {
33
33
  Scope
34
34
  };
35
- //# sourceMappingURL=chunk-NQYUWVJT.mjs.map
35
+ //# sourceMappingURL=chunk-MRV7FQNU.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpStatus,
3
3
  isHttpStatus
4
- } from "./chunk-KMEBQTNE.mjs";
4
+ } from "./chunk-RPZ2XDQQ.mjs";
5
5
  import {
6
6
  isResponse
7
7
  } from "./chunk-EZ4FZ3HS.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  isResults,
12
12
  toList,
13
13
  toResult
14
- } from "./chunk-I2VWZJ2K.mjs";
14
+ } from "./chunk-AVHYDITZ.mjs";
15
15
  import {
16
16
  isDefined,
17
17
  isError
@@ -46,4 +46,4 @@ export {
46
46
  rest,
47
47
  isRestResult
48
48
  };
49
- //# sourceMappingURL=chunk-J2RU23YZ.mjs.map
49
+ //# sourceMappingURL=chunk-NUFTFLAY.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  toPageList
3
- } from "./chunk-3VDUMU5P.mjs";
3
+ } from "./chunk-GYJHZJKL.mjs";
4
4
  import {
5
5
  choose,
6
6
  resolve
7
- } from "./chunk-I2VWZJ2K.mjs";
7
+ } from "./chunk-AVHYDITZ.mjs";
8
8
 
9
9
  // src/process/Search.ts
10
10
  var Search = class {
@@ -43,4 +43,4 @@ var Search = class {
43
43
  export {
44
44
  Search
45
45
  };
46
- //# sourceMappingURL=chunk-52VT3UEM.mjs.map
46
+ //# sourceMappingURL=chunk-OWUSKHPI.mjs.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  isPageList,
3
3
  toPageList
4
- } from "./chunk-3VDUMU5P.mjs";
4
+ } from "./chunk-GYJHZJKL.mjs";
5
5
  import {
6
6
  asJson,
7
7
  json
8
- } from "./chunk-PNSMLGOA.mjs";
8
+ } from "./chunk-A7KUHZ3A.mjs";
9
9
  import {
10
10
  choose,
11
11
  ifDefined,
12
12
  isEnumConstructor,
13
13
  isEqual,
14
14
  meta
15
- } from "./chunk-I2VWZJ2K.mjs";
15
+ } from "./chunk-AVHYDITZ.mjs";
16
16
  import {
17
17
  traverse
18
18
  } from "./chunk-SSROJBD5.mjs";
@@ -119,4 +119,4 @@ export {
119
119
  view,
120
120
  views
121
121
  };
122
- //# sourceMappingURL=chunk-EHVMIXKR.mjs.map
122
+ //# sourceMappingURL=chunk-PDPNMABX.mjs.map
@@ -6,11 +6,11 @@ import {
6
6
  } from "./chunk-6FUVIZYN.mjs";
7
7
  import {
8
8
  ContentType
9
- } from "./chunk-P4XVLBXB.mjs";
9
+ } from "./chunk-JMAWKYXN.mjs";
10
10
  import {
11
11
  Enum,
12
12
  ctx
13
- } from "./chunk-I2VWZJ2K.mjs";
13
+ } from "./chunk-AVHYDITZ.mjs";
14
14
  import {
15
15
  asString
16
16
  } from "./chunk-NNA77YYC.mjs";
@@ -85,4 +85,4 @@ export {
85
85
  RequestOptions,
86
86
  isRequestOptions
87
87
  };
88
- //# sourceMappingURL=chunk-YDYQTX4H.mjs.map
88
+ //# sourceMappingURL=chunk-QIBUS2GL.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SqlQuery
3
- } from "./chunk-M7MW5CXO.mjs";
3
+ } from "./chunk-KGW3CVDO.mjs";
4
4
  import {
5
5
  ifGet
6
6
  } from "./chunk-SJGQU3OG.mjs";
@@ -15,4 +15,4 @@ var Delete = class extends SqlQuery {
15
15
  export {
16
16
  Delete
17
17
  };
18
- //# sourceMappingURL=chunk-HN3HW22I.mjs.map
18
+ //# sourceMappingURL=chunk-RMQZRTTG.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-I2VWZJ2K.mjs";
3
+ } from "./chunk-AVHYDITZ.mjs";
4
4
  import {
5
5
  isAn
6
6
  } from "./chunk-D5IYAIMK.mjs";
@@ -91,4 +91,4 @@ export {
91
91
  isHttpStatus,
92
92
  toHttpStatus
93
93
  };
94
- //# sourceMappingURL=chunk-KMEBQTNE.mjs.map
94
+ //# sourceMappingURL=chunk-RPZ2XDQQ.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-I2VWZJ2K.mjs";
3
+ } from "./chunk-AVHYDITZ.mjs";
4
4
 
5
5
  // src/http/HttpVerb.ts
6
6
  var HttpVerb = class _HttpVerb extends Enum {
@@ -17,4 +17,4 @@ var HttpVerb = class _HttpVerb extends Enum {
17
17
  export {
18
18
  HttpVerb
19
19
  };
20
- //# sourceMappingURL=chunk-KXYGCS7S.mjs.map
20
+ //# sourceMappingURL=chunk-TNJ2KFPQ.mjs.map