@thisisagile/easy 17.4.4 → 17.4.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 (184) hide show
  1. package/dist/{chunk-44EV6UBW.mjs → chunk-2BTY2F3A.mjs} +7 -7
  2. package/dist/{chunk-RSOIS327.mjs → chunk-2JX2SSPQ.mjs} +3 -3
  3. package/dist/{chunk-GLDPNPVM.mjs → chunk-3LASXEE5.mjs} +4 -4
  4. package/dist/{chunk-J5JQOUB6.mjs → chunk-3PPC4YMQ.mjs} +5 -5
  5. package/dist/{chunk-BGUZ6X3G.mjs → chunk-4KJZ4LNQ.mjs} +4 -4
  6. package/dist/chunk-4NI3O7DE.mjs +26 -0
  7. package/dist/chunk-4NI3O7DE.mjs.map +1 -0
  8. package/dist/{chunk-XRC3T7LA.mjs → chunk-5TMFDW22.mjs} +2 -2
  9. package/dist/{chunk-52RZEWVK.mjs → chunk-63OA3RR6.mjs} +4 -4
  10. package/dist/{chunk-AZYG2PH2.mjs → chunk-B6COGV6Z.mjs} +2 -2
  11. package/dist/chunk-BKA7GVXL.mjs +29 -0
  12. package/dist/chunk-BKA7GVXL.mjs.map +1 -0
  13. package/dist/{chunk-MALJIR45.mjs → chunk-CE3FXR46.mjs} +2 -2
  14. package/dist/{chunk-DADDRAGK.mjs → chunk-DS6NSJUW.mjs} +2 -2
  15. package/dist/{chunk-ZCPJDFCM.mjs → chunk-EG3KSNQZ.mjs} +3 -3
  16. package/dist/{chunk-DAADPMMA.mjs → chunk-EX7OK25Y.mjs} +4 -4
  17. package/dist/{chunk-ERXUAL5J.mjs → chunk-F4XMHKOR.mjs} +4 -4
  18. package/dist/{chunk-XHMSJDYV.mjs → chunk-GVJWRPOP.mjs} +2 -2
  19. package/dist/{chunk-J75O2U6R.mjs → chunk-INO2742F.mjs} +5 -5
  20. package/dist/{chunk-KR55KGJF.mjs → chunk-ISLR7BKT.mjs} +2 -2
  21. package/dist/{chunk-UFLTE2AU.mjs → chunk-IVX4I3NC.mjs} +3 -3
  22. package/dist/{chunk-ZWCEEAJR.mjs → chunk-IX2TMY6X.mjs} +2 -2
  23. package/dist/{chunk-ZRFFCXE7.mjs → chunk-J62NLGQN.mjs} +2 -2
  24. package/dist/{chunk-ACEDA4PB.mjs → chunk-JCINHOMG.mjs} +2 -2
  25. package/dist/{chunk-EYMDYBPV.mjs → chunk-JV3PEYHS.mjs} +2 -2
  26. package/dist/{chunk-7EJD7BXC.mjs → chunk-KA3TZADE.mjs} +3 -3
  27. package/dist/{chunk-AMFU26AE.mjs → chunk-KAYSE6PM.mjs} +3 -3
  28. package/dist/{chunk-VRNI7CPP.mjs → chunk-L4T4Z7PG.mjs} +9 -9
  29. package/dist/{chunk-2EB753QI.mjs → chunk-O7SPVDR7.mjs} +11 -11
  30. package/dist/{chunk-MMD5J6VV.mjs → chunk-OGMTD753.mjs} +3 -3
  31. package/dist/{chunk-TQI66R6R.mjs → chunk-PJXWZFLD.mjs} +5 -5
  32. package/dist/{chunk-XIZX6MUH.mjs → chunk-PRN25GXK.mjs} +2 -2
  33. package/dist/{chunk-IPE4POOG.mjs → chunk-Q2S7DE76.mjs} +3 -3
  34. package/dist/{chunk-UJNKQ4YI.mjs → chunk-Q3TL43R2.mjs} +2 -2
  35. package/dist/{chunk-6MERHN7X.mjs → chunk-QB3ZLR7S.mjs} +9 -9
  36. package/dist/{chunk-6PQXS73I.mjs → chunk-QIHGAECB.mjs} +2 -2
  37. package/dist/{chunk-6CD7X7G5.mjs → chunk-QLM2AYD4.mjs} +11 -11
  38. package/dist/{chunk-AYFAXALA.mjs → chunk-RSOPHC7S.mjs} +2 -2
  39. package/dist/{chunk-ESGR6CW5.mjs → chunk-SRFFQJLL.mjs} +3 -3
  40. package/dist/{chunk-A6ASURUF.mjs → chunk-T5VZORPQ.mjs} +2 -2
  41. package/dist/{chunk-KTI6DAUO.mjs → chunk-TJXM2374.mjs} +8 -8
  42. package/dist/{chunk-FB6OEX2Z.mjs → chunk-TNOOLHK7.mjs} +2 -2
  43. package/dist/{chunk-ROEU3MAU.mjs → chunk-V7EJJWVX.mjs} +4 -4
  44. package/dist/{chunk-KIAV6GZR.mjs → chunk-VRLSZ2MW.mjs} +2 -2
  45. package/dist/{chunk-UZU2OSHG.mjs → chunk-VZ4Q5DDN.mjs} +8 -2
  46. package/dist/chunk-VZ4Q5DDN.mjs.map +1 -0
  47. package/dist/{chunk-2VZIXYCW.mjs → chunk-WI2ICJHX.mjs} +3 -3
  48. package/dist/{chunk-LI3EPUAI.mjs → chunk-X3C5CS4X.mjs} +4 -4
  49. package/dist/{chunk-B6UJ5IZC.mjs → chunk-YK65IKP2.mjs} +2 -2
  50. package/dist/{chunk-XERNUOCL.mjs → chunk-ZDBXA2D4.mjs} +2 -2
  51. package/dist/data/Condition.mjs +5 -5
  52. package/dist/data/Database.mjs +6 -6
  53. package/dist/data/Field.mjs +5 -5
  54. package/dist/data/InMemoryGateway.mjs +14 -14
  55. package/dist/domain/Audit.mjs +18 -17
  56. package/dist/domain/Child.mjs +17 -17
  57. package/dist/domain/DateTime.d.ts +1 -0
  58. package/dist/domain/DateTime.mjs +14 -13
  59. package/dist/domain/Entity.mjs +22 -21
  60. package/dist/domain/Entity.mjs.map +1 -1
  61. package/dist/domain/Repo.mjs +16 -16
  62. package/dist/domain/Struct.mjs +14 -14
  63. package/dist/domain/Typo.mjs +13 -13
  64. package/dist/http/CacheControl.mjs +14 -14
  65. package/dist/http/ContentType.mjs +6 -6
  66. package/dist/http/HttpStatus.mjs +6 -6
  67. package/dist/http/HttpVerb.mjs +6 -6
  68. package/dist/http/LocalRequestStore.mjs +5 -5
  69. package/dist/http/RequestOptions.mjs +10 -10
  70. package/dist/http/RestResult.mjs +14 -14
  71. package/dist/http/toResponse.mjs +15 -15
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +40 -0
  74. package/dist/index.js.map +1 -1
  75. package/dist/index.mjs +1 -0
  76. package/dist/index.mjs.map +1 -1
  77. package/dist/process/App.mjs +7 -7
  78. package/dist/process/Manage.mjs +14 -14
  79. package/dist/process/Scope.mjs +7 -7
  80. package/dist/process/Search.mjs +14 -14
  81. package/dist/process/UseCase.mjs +6 -6
  82. package/dist/resources/Req.mjs +13 -13
  83. package/dist/services/Api.mjs +23 -23
  84. package/dist/services/ApiGateway.mjs +26 -26
  85. package/dist/services/AxiosProvider.mjs +21 -21
  86. package/dist/services/MappedRouteGateway.mjs +29 -29
  87. package/dist/services/RouteGateway.mjs +27 -27
  88. package/dist/services/ViewRouteGateway.mjs +31 -31
  89. package/dist/sql/Column.mjs +13 -13
  90. package/dist/sql/Count.mjs +5 -5
  91. package/dist/sql/Delete.mjs +4 -4
  92. package/dist/sql/Insert.mjs +4 -4
  93. package/dist/sql/Select.mjs +4 -4
  94. package/dist/sql/SqlQuery.mjs +3 -3
  95. package/dist/sql/Table.mjs +22 -22
  96. package/dist/sql/TableGateway.mjs +14 -14
  97. package/dist/sql/Update.mjs +4 -4
  98. package/dist/types/Cache.mjs +4 -4
  99. package/dist/types/CacheAge.mjs +14 -14
  100. package/dist/types/Case.mjs +12 -12
  101. package/dist/types/Context.mjs +5 -5
  102. package/dist/types/Enum.mjs +5 -5
  103. package/dist/types/Environment.mjs +5 -5
  104. package/dist/types/Exception.mjs +7 -7
  105. package/dist/types/Gateway.mjs +9 -9
  106. package/dist/types/IsEqual.mjs +13 -13
  107. package/dist/types/Json.mjs +4 -4
  108. package/dist/types/List.mjs +2 -2
  109. package/dist/types/Meta.mjs +4 -4
  110. package/dist/types/Number.mjs +13 -13
  111. package/dist/types/Object.mjs +3 -3
  112. package/dist/types/PageList.mjs +13 -13
  113. package/dist/types/Parser.mjs +12 -12
  114. package/dist/types/Repository.mjs +9 -9
  115. package/dist/types/Result.mjs +6 -6
  116. package/dist/types/Results.mjs +7 -7
  117. package/dist/types/Tag.mjs +4 -4
  118. package/dist/types/Template.mjs +4 -4
  119. package/dist/types/Try.mjs +12 -12
  120. package/dist/types/Uri.mjs +12 -12
  121. package/dist/utils/Mapper.mjs +6 -6
  122. package/dist/utils/Promise.mjs +3 -3
  123. package/dist/utils/Seconds.d.ts +9 -0
  124. package/dist/utils/Seconds.mjs +18 -0
  125. package/dist/utils/Seconds.mjs.map +1 -0
  126. package/dist/utils/Sentence.mjs +4 -4
  127. package/dist/utils/Traverse.d.ts +3 -0
  128. package/dist/utils/Traverse.mjs +7 -3
  129. package/dist/utils/View.mjs +17 -17
  130. package/dist/validation/Contraints.mjs +13 -13
  131. package/dist/validation/Validate.mjs +12 -12
  132. package/dist/validation/When.mjs +12 -12
  133. package/package.json +2 -2
  134. package/src/domain/DateTime.ts +5 -0
  135. package/src/index.ts +1 -0
  136. package/src/utils/Seconds.ts +19 -0
  137. package/src/utils/Traverse.ts +21 -0
  138. package/dist/chunk-DICMUQFL.mjs +0 -11
  139. package/dist/chunk-DICMUQFL.mjs.map +0 -1
  140. package/dist/chunk-UZU2OSHG.mjs.map +0 -1
  141. /package/dist/{chunk-44EV6UBW.mjs.map → chunk-2BTY2F3A.mjs.map} +0 -0
  142. /package/dist/{chunk-RSOIS327.mjs.map → chunk-2JX2SSPQ.mjs.map} +0 -0
  143. /package/dist/{chunk-GLDPNPVM.mjs.map → chunk-3LASXEE5.mjs.map} +0 -0
  144. /package/dist/{chunk-J5JQOUB6.mjs.map → chunk-3PPC4YMQ.mjs.map} +0 -0
  145. /package/dist/{chunk-BGUZ6X3G.mjs.map → chunk-4KJZ4LNQ.mjs.map} +0 -0
  146. /package/dist/{chunk-XRC3T7LA.mjs.map → chunk-5TMFDW22.mjs.map} +0 -0
  147. /package/dist/{chunk-52RZEWVK.mjs.map → chunk-63OA3RR6.mjs.map} +0 -0
  148. /package/dist/{chunk-AZYG2PH2.mjs.map → chunk-B6COGV6Z.mjs.map} +0 -0
  149. /package/dist/{chunk-MALJIR45.mjs.map → chunk-CE3FXR46.mjs.map} +0 -0
  150. /package/dist/{chunk-DADDRAGK.mjs.map → chunk-DS6NSJUW.mjs.map} +0 -0
  151. /package/dist/{chunk-ZCPJDFCM.mjs.map → chunk-EG3KSNQZ.mjs.map} +0 -0
  152. /package/dist/{chunk-DAADPMMA.mjs.map → chunk-EX7OK25Y.mjs.map} +0 -0
  153. /package/dist/{chunk-ERXUAL5J.mjs.map → chunk-F4XMHKOR.mjs.map} +0 -0
  154. /package/dist/{chunk-XHMSJDYV.mjs.map → chunk-GVJWRPOP.mjs.map} +0 -0
  155. /package/dist/{chunk-J75O2U6R.mjs.map → chunk-INO2742F.mjs.map} +0 -0
  156. /package/dist/{chunk-KR55KGJF.mjs.map → chunk-ISLR7BKT.mjs.map} +0 -0
  157. /package/dist/{chunk-UFLTE2AU.mjs.map → chunk-IVX4I3NC.mjs.map} +0 -0
  158. /package/dist/{chunk-ZWCEEAJR.mjs.map → chunk-IX2TMY6X.mjs.map} +0 -0
  159. /package/dist/{chunk-ZRFFCXE7.mjs.map → chunk-J62NLGQN.mjs.map} +0 -0
  160. /package/dist/{chunk-ACEDA4PB.mjs.map → chunk-JCINHOMG.mjs.map} +0 -0
  161. /package/dist/{chunk-EYMDYBPV.mjs.map → chunk-JV3PEYHS.mjs.map} +0 -0
  162. /package/dist/{chunk-7EJD7BXC.mjs.map → chunk-KA3TZADE.mjs.map} +0 -0
  163. /package/dist/{chunk-AMFU26AE.mjs.map → chunk-KAYSE6PM.mjs.map} +0 -0
  164. /package/dist/{chunk-VRNI7CPP.mjs.map → chunk-L4T4Z7PG.mjs.map} +0 -0
  165. /package/dist/{chunk-2EB753QI.mjs.map → chunk-O7SPVDR7.mjs.map} +0 -0
  166. /package/dist/{chunk-MMD5J6VV.mjs.map → chunk-OGMTD753.mjs.map} +0 -0
  167. /package/dist/{chunk-TQI66R6R.mjs.map → chunk-PJXWZFLD.mjs.map} +0 -0
  168. /package/dist/{chunk-XIZX6MUH.mjs.map → chunk-PRN25GXK.mjs.map} +0 -0
  169. /package/dist/{chunk-IPE4POOG.mjs.map → chunk-Q2S7DE76.mjs.map} +0 -0
  170. /package/dist/{chunk-UJNKQ4YI.mjs.map → chunk-Q3TL43R2.mjs.map} +0 -0
  171. /package/dist/{chunk-6MERHN7X.mjs.map → chunk-QB3ZLR7S.mjs.map} +0 -0
  172. /package/dist/{chunk-6PQXS73I.mjs.map → chunk-QIHGAECB.mjs.map} +0 -0
  173. /package/dist/{chunk-6CD7X7G5.mjs.map → chunk-QLM2AYD4.mjs.map} +0 -0
  174. /package/dist/{chunk-AYFAXALA.mjs.map → chunk-RSOPHC7S.mjs.map} +0 -0
  175. /package/dist/{chunk-ESGR6CW5.mjs.map → chunk-SRFFQJLL.mjs.map} +0 -0
  176. /package/dist/{chunk-A6ASURUF.mjs.map → chunk-T5VZORPQ.mjs.map} +0 -0
  177. /package/dist/{chunk-KTI6DAUO.mjs.map → chunk-TJXM2374.mjs.map} +0 -0
  178. /package/dist/{chunk-FB6OEX2Z.mjs.map → chunk-TNOOLHK7.mjs.map} +0 -0
  179. /package/dist/{chunk-ROEU3MAU.mjs.map → chunk-V7EJJWVX.mjs.map} +0 -0
  180. /package/dist/{chunk-KIAV6GZR.mjs.map → chunk-VRLSZ2MW.mjs.map} +0 -0
  181. /package/dist/{chunk-2VZIXYCW.mjs.map → chunk-WI2ICJHX.mjs.map} +0 -0
  182. /package/dist/{chunk-LI3EPUAI.mjs.map → chunk-X3C5CS4X.mjs.map} +0 -0
  183. /package/dist/{chunk-B6UJ5IZC.mjs.map → chunk-YK65IKP2.mjs.map} +0 -0
  184. /package/dist/{chunk-XERNUOCL.mjs.map → chunk-ZDBXA2D4.mjs.map} +0 -0
@@ -1,18 +1,18 @@
1
- import {
2
- HttpHeader
3
- } from "./chunk-SW2OCUH3.mjs";
4
1
  import {
5
2
  toUuid
6
3
  } from "./chunk-LXQQ5N6S.mjs";
7
4
  import {
8
5
  ContentType
9
- } from "./chunk-XHMSJDYV.mjs";
6
+ } from "./chunk-GVJWRPOP.mjs";
7
+ import {
8
+ HttpHeader
9
+ } from "./chunk-SW2OCUH3.mjs";
10
10
  import {
11
11
  ctx
12
- } from "./chunk-FB6OEX2Z.mjs";
12
+ } from "./chunk-TNOOLHK7.mjs";
13
13
  import {
14
14
  Enum
15
- } from "./chunk-ESGR6CW5.mjs";
15
+ } from "./chunk-SRFFQJLL.mjs";
16
16
  import {
17
17
  asString
18
18
  } from "./chunk-45GNHDKA.mjs";
@@ -87,4 +87,4 @@ export {
87
87
  RequestOptions,
88
88
  isRequestOptions
89
89
  };
90
- //# sourceMappingURL=chunk-44EV6UBW.mjs.map
90
+ //# sourceMappingURL=chunk-2BTY2F3A.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  rest
3
- } from "./chunk-6MERHN7X.mjs";
3
+ } from "./chunk-QB3ZLR7S.mjs";
4
4
  import {
5
5
  toHttpStatus
6
- } from "./chunk-EYMDYBPV.mjs";
6
+ } from "./chunk-JV3PEYHS.mjs";
7
7
 
8
8
  // src/http/toResponse.ts
9
9
  function toResponse(status, body, headers) {
@@ -17,4 +17,4 @@ function toResponse(status, body, headers) {
17
17
  export {
18
18
  toResponse
19
19
  };
20
- //# sourceMappingURL=chunk-RSOIS327.mjs.map
20
+ //# sourceMappingURL=chunk-2JX2SSPQ.mjs.map
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-QQRGOHU6.mjs";
7
7
  import {
8
8
  json
9
- } from "./chunk-ACEDA4PB.mjs";
9
+ } from "./chunk-JCINHOMG.mjs";
10
10
  import {
11
11
  meta
12
- } from "./chunk-UFLTE2AU.mjs";
12
+ } from "./chunk-IVX4I3NC.mjs";
13
13
  import {
14
14
  toList
15
- } from "./chunk-DAADPMMA.mjs";
15
+ } from "./chunk-EX7OK25Y.mjs";
16
16
  import {
17
17
  ifNotEmpty
18
18
  } from "./chunk-JSON7A4X.mjs";
@@ -133,4 +133,4 @@ export {
133
133
  Mapper,
134
134
  mappings
135
135
  };
136
- //# sourceMappingURL=chunk-GLDPNPVM.mjs.map
136
+ //# sourceMappingURL=chunk-3LASXEE5.mjs.map
@@ -1,9 +1,9 @@
1
- import {
2
- Exception
3
- } from "./chunk-AMFU26AE.mjs";
4
1
  import {
5
2
  reject
6
- } from "./chunk-KR55KGJF.mjs";
3
+ } from "./chunk-ISLR7BKT.mjs";
4
+ import {
5
+ Exception
6
+ } from "./chunk-KAYSE6PM.mjs";
7
7
 
8
8
  // src/types/Repository.ts
9
9
  var Repository = class {
@@ -48,4 +48,4 @@ var Repository = class {
48
48
  export {
49
49
  Repository
50
50
  };
51
- //# sourceMappingURL=chunk-J5JQOUB6.mjs.map
51
+ //# sourceMappingURL=chunk-3PPC4YMQ.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  toPageList
3
- } from "./chunk-MMD5J6VV.mjs";
3
+ } from "./chunk-OGMTD753.mjs";
4
4
  import {
5
5
  choose
6
- } from "./chunk-6CD7X7G5.mjs";
6
+ } from "./chunk-QLM2AYD4.mjs";
7
7
  import {
8
8
  resolve
9
- } from "./chunk-KR55KGJF.mjs";
9
+ } from "./chunk-ISLR7BKT.mjs";
10
10
 
11
11
  // src/process/Search.ts
12
12
  var Search = class {
@@ -45,4 +45,4 @@ var Search = class {
45
45
  export {
46
46
  Search
47
47
  };
48
- //# sourceMappingURL=chunk-BGUZ6X3G.mjs.map
48
+ //# sourceMappingURL=chunk-4KJZ4LNQ.mjs.map
@@ -0,0 +1,26 @@
1
+ import {
2
+ toList
3
+ } from "./chunk-EX7OK25Y.mjs";
4
+ import {
5
+ ifTrue
6
+ } from "./chunk-JSON7A4X.mjs";
7
+
8
+ // src/utils/Seconds.ts
9
+ var seconds = {
10
+ toDuration: (s) => {
11
+ const seconds2 = s % 60;
12
+ const minutes = Math.floor(s / 60) % 60;
13
+ const hours = Math.floor(s / 3600) % 24;
14
+ const days = Math.floor(s / 86400);
15
+ return { days, hours, minutes, seconds: seconds2 };
16
+ },
17
+ toText: (s) => {
18
+ const { days, hours, minutes, seconds: secs } = seconds.toDuration(s);
19
+ return toList(ifTrue(days, `${days}d`), ifTrue(hours, `${hours}h`), ifTrue(minutes, `${minutes}m`), ifTrue(days + hours + minutes === 0, `${secs}s`)).mapDefined((s2) => s2).join(" ");
20
+ }
21
+ };
22
+
23
+ export {
24
+ seconds
25
+ };
26
+ //# sourceMappingURL=chunk-4NI3O7DE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/Seconds.ts"],"sourcesContent":["import { ifTrue } from './If';\nimport { toList } from '../types/List';\n\nexport const seconds = {\n toDuration: (s: number) => {\n const seconds = s % 60;\n const minutes = Math.floor(s / 60) % 60;\n const hours = Math.floor(s / 3600) % 24;\n const days = Math.floor(s / 86400);\n return { days, hours, minutes, seconds };\n },\n\n toText: (s: number): string => {\n const { days, hours, minutes, seconds: secs } = seconds.toDuration(s);\n return toList(ifTrue(days, `${days}d`), ifTrue(hours, `${hours}h`), ifTrue(minutes, `${minutes}m`), ifTrue(days + hours + minutes === 0, `${secs}s`))\n .mapDefined(s => s)\n .join(' ');\n },\n};\n"],"mappings":";;;;;;;;AAGO,IAAM,UAAU;AAAA,EACrB,YAAY,CAAC,MAAc;AACzB,UAAMA,WAAU,IAAI;AACpB,UAAM,UAAU,KAAK,MAAM,IAAI,EAAE,IAAI;AACrC,UAAM,QAAQ,KAAK,MAAM,IAAI,IAAI,IAAI;AACrC,UAAM,OAAO,KAAK,MAAM,IAAI,KAAK;AACjC,WAAO,EAAE,MAAM,OAAO,SAAS,SAAAA,SAAQ;AAAA,EACzC;AAAA,EAEA,QAAQ,CAAC,MAAsB;AAC7B,UAAM,EAAE,MAAM,OAAO,SAAS,SAAS,KAAK,IAAI,QAAQ,WAAW,CAAC;AACpE,WAAO,OAAO,OAAO,MAAM,GAAG,IAAI,GAAG,GAAG,OAAO,OAAO,GAAG,KAAK,GAAG,GAAG,OAAO,SAAS,GAAG,OAAO,GAAG,GAAG,OAAO,OAAO,QAAQ,YAAY,GAAG,GAAG,IAAI,GAAG,CAAC,EACjJ,WAAW,CAAAC,OAAKA,EAAC,EACjB,KAAK,GAAG;AAAA,EACb;AACF;","names":["seconds","s"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Select
3
- } from "./chunk-IPE4POOG.mjs";
3
+ } from "./chunk-Q2S7DE76.mjs";
4
4
  import {
5
5
  ifGet
6
6
  } from "./chunk-SJGQU3OG.mjs";
@@ -15,4 +15,4 @@ var Count = class extends Select {
15
15
  export {
16
16
  Count
17
17
  };
18
- //# sourceMappingURL=chunk-XRC3T7LA.mjs.map
18
+ //# sourceMappingURL=chunk-5TMFDW22.mjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  AxiosProvider
3
- } from "./chunk-VRNI7CPP.mjs";
3
+ } from "./chunk-L4T4Z7PG.mjs";
4
4
  import {
5
5
  HttpVerb
6
- } from "./chunk-DADDRAGK.mjs";
6
+ } from "./chunk-DS6NSJUW.mjs";
7
7
  import {
8
8
  RequestOptions,
9
9
  toPageOptions
10
- } from "./chunk-44EV6UBW.mjs";
10
+ } from "./chunk-2BTY2F3A.mjs";
11
11
 
12
12
  // src/services/Api.ts
13
13
  var Api = class {
@@ -76,4 +76,4 @@ export {
76
76
  Api,
77
77
  api
78
78
  };
79
- //# sourceMappingURL=chunk-52RZEWVK.mjs.map
79
+ //# sourceMappingURL=chunk-63OA3RR6.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SqlQuery
3
- } from "./chunk-ZRFFCXE7.mjs";
3
+ } from "./chunk-J62NLGQN.mjs";
4
4
  import {
5
5
  quote
6
6
  } from "./chunk-U53FLD4J.mjs";
@@ -20,4 +20,4 @@ var Insert = class extends SqlQuery {
20
20
  export {
21
21
  Insert
22
22
  };
23
- //# sourceMappingURL=chunk-AZYG2PH2.mjs.map
23
+ //# sourceMappingURL=chunk-B6COGV6Z.mjs.map
@@ -0,0 +1,29 @@
1
+ // src/utils/Traverse.ts
2
+ var traverse = (subject = {}, property = "") => {
3
+ const props = property.split(".");
4
+ const p = props.shift();
5
+ return props.length === 0 ? subject[p] : traverse(subject[p], props.join("."));
6
+ };
7
+ var traverseSet = (subject, property, value) => {
8
+ const props = property.split(".");
9
+ const p = props.shift();
10
+ return {
11
+ ...subject,
12
+ [p]: props.length === 0 ? value : traverseSet(subject[p], props.join("."), value)
13
+ };
14
+ };
15
+ var accumulate = (items, ...keys) => items.map((t, i, arr) => {
16
+ const acc = keys.reduce(
17
+ (acc2, v) => traverseSet(acc2, v, i === 0 ? traverse(t, v) : traverse(arr[i - 1], v) + traverse(t, v)),
18
+ t
19
+ );
20
+ arr[i] = acc;
21
+ return acc;
22
+ });
23
+
24
+ export {
25
+ traverse,
26
+ traverseSet,
27
+ accumulate
28
+ };
29
+ //# sourceMappingURL=chunk-BKA7GVXL.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/Traverse.ts"],"sourcesContent":["import { AnyKey } from '../types/AnyKey';\n\nexport const traverse = (subject: unknown = {}, property = ''): unknown => {\n const props = property.split('.');\n const p = props.shift() as string;\n return props.length === 0 ? (subject as any)[p] : traverse((subject as any)[p], props.join('.'));\n};\n\nexport const traverseSet = <T>(subject: T, property: AnyKey<T>, value: unknown): unknown => {\n const props = property.split('.');\n const p = props.shift() as string;\n return {\n ...(subject as any),\n [p]: props.length === 0 ? value : traverseSet((subject as any)[p], props.join('.'), value),\n } as T;\n};\n\nexport const accumulate = <T>(items: T[], ...keys: AnyKey<T>[]): T[] =>\n items.map((t, i, arr) => {\n const acc = keys.reduce(\n (acc, v) => traverseSet(acc, v, i === 0 ? traverse(t, v) : (traverse(arr[i - 1], v) as number) + (traverse(t, v) as number)) as T,\n t\n );\n arr[i] = acc;\n return acc;\n });\n"],"mappings":";AAEO,IAAM,WAAW,CAAC,UAAmB,CAAC,GAAG,WAAW,OAAgB;AACzE,QAAM,QAAQ,SAAS,MAAM,GAAG;AAChC,QAAM,IAAI,MAAM,MAAM;AACtB,SAAO,MAAM,WAAW,IAAK,QAAgB,CAAC,IAAI,SAAU,QAAgB,CAAC,GAAG,MAAM,KAAK,GAAG,CAAC;AACjG;AAEO,IAAM,cAAc,CAAI,SAAY,UAAqB,UAA4B;AAC1F,QAAM,QAAQ,SAAS,MAAM,GAAG;AAChC,QAAM,IAAI,MAAM,MAAM;AACtB,SAAO;AAAA,IACL,GAAI;AAAA,IACJ,CAAC,CAAC,GAAG,MAAM,WAAW,IAAI,QAAQ,YAAa,QAAgB,CAAC,GAAG,MAAM,KAAK,GAAG,GAAG,KAAK;AAAA,EAC3F;AACF;AAEO,IAAM,aAAa,CAAI,UAAe,SAC3C,MAAM,IAAI,CAAC,GAAG,GAAG,QAAQ;AACvB,QAAM,MAAM,KAAK;AAAA,IACf,CAACA,MAAK,MAAM,YAAYA,MAAK,GAAG,MAAM,IAAI,SAAS,GAAG,CAAC,IAAK,SAAS,IAAI,IAAI,CAAC,GAAG,CAAC,IAAgB,SAAS,GAAG,CAAC,CAAY;AAAA,IAC3H;AAAA,EACF;AACA,MAAI,CAAC,IAAI;AACT,SAAO;AACT,CAAC;","names":["acc"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SqlQuery
3
- } from "./chunk-ZRFFCXE7.mjs";
3
+ } from "./chunk-J62NLGQN.mjs";
4
4
  import {
5
5
  toClause
6
6
  } from "./chunk-U53FLD4J.mjs";
@@ -23,4 +23,4 @@ var Update = class extends SqlQuery {
23
23
  export {
24
24
  Update
25
25
  };
26
- //# sourceMappingURL=chunk-MALJIR45.mjs.map
26
+ //# sourceMappingURL=chunk-CE3FXR46.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-ESGR6CW5.mjs";
3
+ } from "./chunk-SRFFQJLL.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-DADDRAGK.mjs.map
20
+ //# sourceMappingURL=chunk-DS6NSJUW.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asNumber
3
- } from "./chunk-AYFAXALA.mjs";
3
+ } from "./chunk-RSOPHC7S.mjs";
4
4
  import {
5
5
  choose
6
- } from "./chunk-6CD7X7G5.mjs";
6
+ } from "./chunk-QLM2AYD4.mjs";
7
7
  import {
8
8
  asString
9
9
  } from "./chunk-45GNHDKA.mjs";
@@ -48,4 +48,4 @@ var cacheAge = {
48
48
  export {
49
49
  cacheAge
50
50
  };
51
- //# sourceMappingURL=chunk-ZCPJDFCM.mjs.map
51
+ //# sourceMappingURL=chunk-EG3KSNQZ.mjs.map
@@ -1,10 +1,10 @@
1
- import {
2
- toArray
3
- } from "./chunk-X7FZPY3P.mjs";
4
1
  import {
5
2
  ifDefined,
6
3
  ifTrue
7
4
  } from "./chunk-JSON7A4X.mjs";
5
+ import {
6
+ toArray
7
+ } from "./chunk-X7FZPY3P.mjs";
8
8
  import {
9
9
  asString
10
10
  } from "./chunk-45GNHDKA.mjs";
@@ -233,4 +233,4 @@ export {
233
233
  maxValue,
234
234
  minValue
235
235
  };
236
- //# sourceMappingURL=chunk-DAADPMMA.mjs.map
236
+ //# sourceMappingURL=chunk-EX7OK25Y.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Api
3
- } from "./chunk-52RZEWVK.mjs";
3
+ } from "./chunk-63OA3RR6.mjs";
4
4
  import {
5
5
  Gateway
6
- } from "./chunk-TQI66R6R.mjs";
6
+ } from "./chunk-PJXWZFLD.mjs";
7
7
  import {
8
8
  toPageList
9
- } from "./chunk-MMD5J6VV.mjs";
9
+ } from "./chunk-OGMTD753.mjs";
10
10
  import {
11
11
  use
12
12
  } from "./chunk-ZPNFXK7Y.mjs";
@@ -43,4 +43,4 @@ var ApiGateway = class extends Gateway {
43
43
  export {
44
44
  ApiGateway
45
45
  };
46
- //# sourceMappingURL=chunk-ERXUAL5J.mjs.map
46
+ //# sourceMappingURL=chunk-F4XMHKOR.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-ESGR6CW5.mjs";
3
+ } from "./chunk-SRFFQJLL.mjs";
4
4
  import {
5
5
  asString
6
6
  } from "./chunk-45GNHDKA.mjs";
@@ -27,4 +27,4 @@ var ContentType = class _ContentType extends Enum {
27
27
  export {
28
28
  ContentType
29
29
  };
30
- //# sourceMappingURL=chunk-XHMSJDYV.mjs.map
30
+ //# sourceMappingURL=chunk-GVJWRPOP.mjs.map
@@ -5,16 +5,16 @@ import {
5
5
  import {
6
6
  tryTo,
7
7
  validate
8
- } from "./chunk-6CD7X7G5.mjs";
8
+ } from "./chunk-QLM2AYD4.mjs";
9
9
  import {
10
10
  text
11
- } from "./chunk-7EJD7BXC.mjs";
11
+ } from "./chunk-KA3TZADE.mjs";
12
12
  import {
13
13
  meta
14
- } from "./chunk-UFLTE2AU.mjs";
14
+ } from "./chunk-IVX4I3NC.mjs";
15
15
  import {
16
16
  toList
17
- } from "./chunk-DAADPMMA.mjs";
17
+ } from "./chunk-EX7OK25Y.mjs";
18
18
  import {
19
19
  isBoolean,
20
20
  isDefined,
@@ -73,4 +73,4 @@ export {
73
73
  maxLength,
74
74
  rule
75
75
  };
76
- //# sourceMappingURL=chunk-J75O2U6R.mjs.map
76
+ //# sourceMappingURL=chunk-INO2742F.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toList
3
- } from "./chunk-DAADPMMA.mjs";
3
+ } from "./chunk-EX7OK25Y.mjs";
4
4
  import {
5
5
  toArray
6
6
  } from "./chunk-X7FZPY3P.mjs";
@@ -31,4 +31,4 @@ export {
31
31
  tuple4,
32
32
  tuple5
33
33
  };
34
- //# sourceMappingURL=chunk-KR55KGJF.mjs.map
34
+ //# sourceMappingURL=chunk-ISLR7BKT.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  entries,
3
3
  values
4
- } from "./chunk-UJNKQ4YI.mjs";
4
+ } from "./chunk-Q3TL43R2.mjs";
5
5
  import {
6
6
  toList
7
- } from "./chunk-DAADPMMA.mjs";
7
+ } from "./chunk-EX7OK25Y.mjs";
8
8
  import {
9
9
  on,
10
10
  use
@@ -55,4 +55,4 @@ var meta = (subject) => new ClassMeta(subject ?? {});
55
55
  export {
56
56
  meta
57
57
  };
58
- //# sourceMappingURL=chunk-UFLTE2AU.mjs.map
58
+ //# sourceMappingURL=chunk-IVX4I3NC.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-ESGR6CW5.mjs";
3
+ } from "./chunk-SRFFQJLL.mjs";
4
4
  import {
5
5
  ofConstruct
6
6
  } from "./chunk-ZPNFXK7Y.mjs";
@@ -22,4 +22,4 @@ export {
22
22
  DefaultProvider,
23
23
  Database
24
24
  };
25
- //# sourceMappingURL=chunk-ZWCEEAJR.mjs.map
25
+ //# sourceMappingURL=chunk-IX2TMY6X.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toList
3
- } from "./chunk-DAADPMMA.mjs";
3
+ } from "./chunk-EX7OK25Y.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-ZRFFCXE7.mjs.map
20
+ //# sourceMappingURL=chunk-J62NLGQN.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entries
3
- } from "./chunk-UJNKQ4YI.mjs";
3
+ } from "./chunk-Q3TL43R2.mjs";
4
4
  import {
5
5
  ifDefined
6
6
  } from "./chunk-JSON7A4X.mjs";
@@ -52,4 +52,4 @@ export {
52
52
  asJson,
53
53
  any
54
54
  };
55
- //# sourceMappingURL=chunk-ACEDA4PB.mjs.map
55
+ //# sourceMappingURL=chunk-JCINHOMG.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-ESGR6CW5.mjs";
3
+ } from "./chunk-SRFFQJLL.mjs";
4
4
  import {
5
5
  isAn
6
6
  } from "./chunk-ZHXKBOK2.mjs";
@@ -91,4 +91,4 @@ export {
91
91
  isHttpStatus,
92
92
  toHttpStatus
93
93
  };
94
- //# sourceMappingURL=chunk-EYMDYBPV.mjs.map
94
+ //# sourceMappingURL=chunk-JV3PEYHS.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  entries
3
- } from "./chunk-UJNKQ4YI.mjs";
3
+ } from "./chunk-Q3TL43R2.mjs";
4
4
  import {
5
5
  toList
6
- } from "./chunk-DAADPMMA.mjs";
6
+ } from "./chunk-EX7OK25Y.mjs";
7
7
  import {
8
8
  asString,
9
9
  replaceAll
@@ -152,4 +152,4 @@ export {
152
152
  text,
153
153
  textValue
154
154
  };
155
- //# sourceMappingURL=chunk-7EJD7BXC.mjs.map
155
+ //# sourceMappingURL=chunk-KA3TZADE.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  text
3
- } from "./chunk-7EJD7BXC.mjs";
3
+ } from "./chunk-KA3TZADE.mjs";
4
4
  import {
5
5
  Enum
6
- } from "./chunk-ESGR6CW5.mjs";
6
+ } from "./chunk-SRFFQJLL.mjs";
7
7
  import {
8
8
  asString
9
9
  } from "./chunk-45GNHDKA.mjs";
@@ -37,4 +37,4 @@ export {
37
37
  isException,
38
38
  isDoesNotExist
39
39
  };
40
- //# sourceMappingURL=chunk-AMFU26AE.mjs.map
40
+ //# sourceMappingURL=chunk-KAYSE6PM.mjs.map
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  toResponse
3
- } from "./chunk-RSOIS327.mjs";
3
+ } from "./chunk-2JX2SSPQ.mjs";
4
4
  import {
5
5
  isRestResult
6
- } from "./chunk-6MERHN7X.mjs";
6
+ } from "./chunk-QB3ZLR7S.mjs";
7
7
  import {
8
8
  HttpStatus
9
- } from "./chunk-EYMDYBPV.mjs";
9
+ } from "./chunk-JV3PEYHS.mjs";
10
10
  import {
11
11
  RequestOptions
12
- } from "./chunk-44EV6UBW.mjs";
12
+ } from "./chunk-2BTY2F3A.mjs";
13
13
  import {
14
14
  cacheAge
15
- } from "./chunk-ZCPJDFCM.mjs";
15
+ } from "./chunk-EG3KSNQZ.mjs";
16
16
  import {
17
17
  choose
18
- } from "./chunk-6CD7X7G5.mjs";
18
+ } from "./chunk-QLM2AYD4.mjs";
19
19
  import {
20
20
  toResult
21
- } from "./chunk-KIAV6GZR.mjs";
21
+ } from "./chunk-VRLSZ2MW.mjs";
22
22
  import {
23
23
  ctx
24
- } from "./chunk-FB6OEX2Z.mjs";
24
+ } from "./chunk-TNOOLHK7.mjs";
25
25
  import {
26
26
  isDefined,
27
27
  isEmpty
@@ -53,4 +53,4 @@ var AxiosProvider = class {
53
53
  export {
54
54
  AxiosProvider
55
55
  };
56
- //# sourceMappingURL=chunk-VRNI7CPP.mjs.map
56
+ //# sourceMappingURL=chunk-L4T4Z7PG.mjs.map
@@ -1,23 +1,23 @@
1
- import {
2
- isEqual
3
- } from "./chunk-A6ASURUF.mjs";
4
1
  import {
5
2
  traverse
6
- } from "./chunk-DICMUQFL.mjs";
3
+ } from "./chunk-BKA7GVXL.mjs";
7
4
  import {
8
- isPageList,
9
- toPageList
10
- } from "./chunk-MMD5J6VV.mjs";
5
+ isEqual
6
+ } from "./chunk-T5VZORPQ.mjs";
11
7
  import {
12
8
  asJson,
13
9
  json
14
- } from "./chunk-ACEDA4PB.mjs";
10
+ } from "./chunk-JCINHOMG.mjs";
11
+ import {
12
+ isPageList,
13
+ toPageList
14
+ } from "./chunk-OGMTD753.mjs";
15
15
  import {
16
16
  choose
17
- } from "./chunk-6CD7X7G5.mjs";
17
+ } from "./chunk-QLM2AYD4.mjs";
18
18
  import {
19
19
  meta
20
- } from "./chunk-UFLTE2AU.mjs";
20
+ } from "./chunk-IVX4I3NC.mjs";
21
21
  import {
22
22
  ifDefined
23
23
  } from "./chunk-JSON7A4X.mjs";
@@ -88,4 +88,4 @@ export {
88
88
  view,
89
89
  views
90
90
  };
91
- //# sourceMappingURL=chunk-2EB753QI.mjs.map
91
+ //# sourceMappingURL=chunk-O7SPVDR7.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  choose
3
- } from "./chunk-6CD7X7G5.mjs";
3
+ } from "./chunk-QLM2AYD4.mjs";
4
4
  import {
5
5
  List,
6
6
  isList
7
- } from "./chunk-DAADPMMA.mjs";
7
+ } from "./chunk-EX7OK25Y.mjs";
8
8
  import {
9
9
  isA
10
10
  } from "./chunk-ZHXKBOK2.mjs";
@@ -150,4 +150,4 @@ export {
150
150
  toPageList,
151
151
  asPageList
152
152
  };
153
- //# sourceMappingURL=chunk-MMD5J6VV.mjs.map
153
+ //# sourceMappingURL=chunk-OGMTD753.mjs.map
@@ -1,9 +1,9 @@
1
- import {
2
- Exception
3
- } from "./chunk-AMFU26AE.mjs";
4
1
  import {
5
2
  reject
6
- } from "./chunk-KR55KGJF.mjs";
3
+ } from "./chunk-ISLR7BKT.mjs";
4
+ import {
5
+ Exception
6
+ } from "./chunk-KAYSE6PM.mjs";
7
7
 
8
8
  // src/types/Gateway.ts
9
9
  var Gateway = class {
@@ -42,4 +42,4 @@ var Gateway = class {
42
42
  export {
43
43
  Gateway
44
44
  };
45
- //# sourceMappingURL=chunk-TQI66R6R.mjs.map
45
+ //# sourceMappingURL=chunk-PJXWZFLD.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-APYISY5K.mjs";
4
4
  import {
5
5
  json
6
- } from "./chunk-ACEDA4PB.mjs";
6
+ } from "./chunk-JCINHOMG.mjs";
7
7
  import {
8
8
  isDefined
9
9
  } from "./chunk-DEJ7A5PY.mjs";
@@ -50,4 +50,4 @@ export {
50
50
  toCondition,
51
51
  isSortCondition
52
52
  };
53
- //# sourceMappingURL=chunk-XIZX6MUH.mjs.map
53
+ //# sourceMappingURL=chunk-PRN25GXK.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SqlQuery
3
- } from "./chunk-ZRFFCXE7.mjs";
3
+ } from "./chunk-J62NLGQN.mjs";
4
4
  import {
5
5
  toList
6
- } from "./chunk-DAADPMMA.mjs";
6
+ } from "./chunk-EX7OK25Y.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-IPE4POOG.mjs.map
54
+ //# sourceMappingURL=chunk-Q2S7DE76.mjs.map