@thisisagile/easy 17.4.5 → 17.4.8

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 (157) hide show
  1. package/dist/{chunk-JV3PEYHS.mjs → chunk-24WJGYH4.mjs} +2 -2
  2. package/dist/{chunk-3PPC4YMQ.mjs → chunk-2V3F4LJ5.mjs} +2 -2
  3. package/dist/{chunk-OGMTD753.mjs → chunk-3BXPK7FX.mjs} +2 -2
  4. package/dist/{chunk-QLM2AYD4.mjs → chunk-3DAZTFKD.mjs} +7 -7
  5. package/dist/{chunk-2JX2SSPQ.mjs → chunk-3EYCIHXW.mjs} +3 -3
  6. package/dist/{chunk-DS6NSJUW.mjs → chunk-4KB2NPKQ.mjs} +2 -2
  7. package/dist/chunk-4NI3O7DE.mjs +26 -0
  8. package/dist/chunk-4NI3O7DE.mjs.map +1 -0
  9. package/dist/{chunk-KA3TZADE.mjs → chunk-55B7FIAE.mjs} +2 -2
  10. package/dist/{chunk-WBEMXVO6.mjs → chunk-5GALY24M.mjs} +6 -6
  11. package/dist/{chunk-V7EJJWVX.mjs → chunk-6DL5IBFE.mjs} +3 -3
  12. package/dist/{chunk-L4T4Z7PG.mjs → chunk-6TJC3RI3.mjs} +9 -9
  13. package/dist/chunk-BKA7GVXL.mjs +29 -0
  14. package/dist/chunk-BKA7GVXL.mjs.map +1 -0
  15. package/dist/{chunk-JCINHOMG.mjs → chunk-CHNRVP7J.mjs} +2 -2
  16. package/dist/{chunk-KAYSE6PM.mjs → chunk-CLIM3GJ7.mjs} +3 -3
  17. package/dist/{chunk-4KJZ4LNQ.mjs → chunk-DEESTSMV.mjs} +3 -3
  18. package/dist/{chunk-VRLSZ2MW.mjs → chunk-FZBUEEQB.mjs} +2 -2
  19. package/dist/{chunk-EG3KSNQZ.mjs → chunk-GKDMM6XO.mjs} +3 -3
  20. package/dist/{chunk-2BTY2F3A.mjs → chunk-H6WLTQXF.mjs} +4 -4
  21. package/dist/{chunk-SRFFQJLL.mjs → chunk-H7TRIY7A.mjs} +2 -2
  22. package/dist/{chunk-3LASXEE5.mjs → chunk-HE6MAJDE.mjs} +3 -3
  23. package/dist/{chunk-PJXWZFLD.mjs → chunk-ILJV7234.mjs} +2 -2
  24. package/dist/{chunk-24OSK3DS.mjs → chunk-IXUCBTR3.mjs} +7 -7
  25. package/dist/{chunk-WI2ICJHX.mjs → chunk-JEIESGLS.mjs} +3 -3
  26. package/dist/{chunk-TNOOLHK7.mjs → chunk-KK66VUSS.mjs} +2 -2
  27. package/dist/{chunk-IVX4I3NC.mjs → chunk-L5TIL3QC.mjs} +2 -2
  28. package/dist/{chunk-X3C5CS4X.mjs → chunk-NE6FVUU7.mjs} +4 -4
  29. package/dist/{chunk-PRN25GXK.mjs → chunk-NFZZGGEV.mjs} +2 -2
  30. package/dist/{chunk-T5VZORPQ.mjs → chunk-OJW2KVY7.mjs} +2 -2
  31. package/dist/{chunk-F4XMHKOR.mjs → chunk-PWYWE7H7.mjs} +4 -4
  32. package/dist/{chunk-63OA3RR6.mjs → chunk-QKWQIRUO.mjs} +4 -4
  33. package/dist/{chunk-Q3TL43R2.mjs → chunk-R43LAFNS.mjs} +6 -2
  34. package/dist/{chunk-Q3TL43R2.mjs.map → chunk-R43LAFNS.mjs.map} +1 -1
  35. package/dist/{chunk-5M76X6J5.mjs → chunk-SJJ4E4HD.mjs} +8 -2
  36. package/dist/chunk-SJJ4E4HD.mjs.map +1 -0
  37. package/dist/{chunk-RSOPHC7S.mjs → chunk-STPFSN7K.mjs} +2 -2
  38. package/dist/{chunk-YK65IKP2.mjs → chunk-VVWELITO.mjs} +2 -2
  39. package/dist/{chunk-ZDBXA2D4.mjs → chunk-XQ4KXG5O.mjs} +2 -2
  40. package/dist/{chunk-QB3ZLR7S.mjs → chunk-Y4RD46AM.mjs} +5 -5
  41. package/dist/{chunk-IX2TMY6X.mjs → chunk-YNOOWA75.mjs} +2 -2
  42. package/dist/{chunk-GVJWRPOP.mjs → chunk-YUFKMTUP.mjs} +2 -2
  43. package/dist/{chunk-INO2742F.mjs → chunk-Z7CGMLOT.mjs} +4 -4
  44. package/dist/data/Condition.mjs +3 -3
  45. package/dist/data/Database.mjs +4 -4
  46. package/dist/data/Field.mjs +3 -3
  47. package/dist/data/InMemoryGateway.mjs +11 -11
  48. package/dist/domain/Audit.mjs +15 -14
  49. package/dist/domain/Child.mjs +12 -12
  50. package/dist/domain/DateTime.d.ts +1 -0
  51. package/dist/domain/DateTime.mjs +11 -10
  52. package/dist/domain/Entity.mjs +15 -14
  53. package/dist/domain/Entity.mjs.map +1 -1
  54. package/dist/domain/Repo.mjs +11 -11
  55. package/dist/domain/Struct.mjs +11 -11
  56. package/dist/domain/Typo.mjs +10 -10
  57. package/dist/http/CacheControl.mjs +11 -11
  58. package/dist/http/ContentType.mjs +4 -4
  59. package/dist/http/HttpStatus.mjs +4 -4
  60. package/dist/http/HttpVerb.mjs +4 -4
  61. package/dist/http/LocalRequestStore.mjs +3 -3
  62. package/dist/http/RequestOptions.mjs +7 -7
  63. package/dist/http/RestResult.mjs +11 -11
  64. package/dist/http/toResponse.mjs +12 -12
  65. package/dist/index.js +49 -26
  66. package/dist/index.js.map +1 -1
  67. package/dist/process/App.mjs +5 -5
  68. package/dist/process/Manage.mjs +11 -11
  69. package/dist/process/Scope.mjs +5 -5
  70. package/dist/process/Search.mjs +11 -11
  71. package/dist/process/UseCase.mjs +4 -4
  72. package/dist/resources/Req.mjs +10 -10
  73. package/dist/services/Api.mjs +19 -19
  74. package/dist/services/ApiGateway.mjs +22 -22
  75. package/dist/services/AxiosProvider.mjs +17 -17
  76. package/dist/services/MappedRouteGateway.mjs +25 -25
  77. package/dist/services/RouteGateway.mjs +23 -23
  78. package/dist/services/ViewRouteGateway.mjs +27 -27
  79. package/dist/sql/Column.mjs +10 -10
  80. package/dist/sql/Table.mjs +13 -13
  81. package/dist/sql/TableGateway.mjs +11 -11
  82. package/dist/types/Cache.mjs +2 -2
  83. package/dist/types/CacheAge.mjs +11 -11
  84. package/dist/types/Case.mjs +9 -9
  85. package/dist/types/Context.mjs +3 -3
  86. package/dist/types/Enum.mjs +3 -3
  87. package/dist/types/Environment.mjs +3 -3
  88. package/dist/types/Exception.mjs +5 -5
  89. package/dist/types/Gateway.mjs +6 -6
  90. package/dist/types/IsEqual.mjs +10 -10
  91. package/dist/types/Json.mjs +2 -2
  92. package/dist/types/Meta.mjs +2 -2
  93. package/dist/types/Number.mjs +10 -10
  94. package/dist/types/Object.d.ts +3 -0
  95. package/dist/types/Object.mjs +3 -1
  96. package/dist/types/PageList.mjs +10 -10
  97. package/dist/types/Parser.mjs +9 -9
  98. package/dist/types/Repository.mjs +6 -6
  99. package/dist/types/Result.mjs +4 -4
  100. package/dist/types/Results.mjs +5 -5
  101. package/dist/types/Tag.mjs +2 -2
  102. package/dist/types/Template.mjs +2 -2
  103. package/dist/types/Try.mjs +9 -9
  104. package/dist/types/Uri.mjs +9 -9
  105. package/dist/utils/Mapper.mjs +4 -4
  106. package/dist/utils/Seconds.mjs +4 -25
  107. package/dist/utils/Seconds.mjs.map +1 -1
  108. package/dist/utils/Sentence.mjs +2 -2
  109. package/dist/utils/Traverse.d.ts +3 -0
  110. package/dist/utils/Traverse.mjs +7 -3
  111. package/dist/utils/View.mjs +14 -14
  112. package/dist/validation/Contraints.mjs +10 -10
  113. package/dist/validation/Validate.mjs +9 -9
  114. package/dist/validation/When.mjs +9 -9
  115. package/package.json +2 -2
  116. package/src/domain/DateTime.ts +5 -0
  117. package/src/types/Object.ts +4 -0
  118. package/src/utils/Seconds.ts +2 -7
  119. package/src/utils/Traverse.ts +21 -0
  120. package/dist/chunk-5M76X6J5.mjs.map +0 -1
  121. package/dist/chunk-DICMUQFL.mjs +0 -11
  122. package/dist/chunk-DICMUQFL.mjs.map +0 -1
  123. /package/dist/{chunk-JV3PEYHS.mjs.map → chunk-24WJGYH4.mjs.map} +0 -0
  124. /package/dist/{chunk-3PPC4YMQ.mjs.map → chunk-2V3F4LJ5.mjs.map} +0 -0
  125. /package/dist/{chunk-OGMTD753.mjs.map → chunk-3BXPK7FX.mjs.map} +0 -0
  126. /package/dist/{chunk-QLM2AYD4.mjs.map → chunk-3DAZTFKD.mjs.map} +0 -0
  127. /package/dist/{chunk-2JX2SSPQ.mjs.map → chunk-3EYCIHXW.mjs.map} +0 -0
  128. /package/dist/{chunk-DS6NSJUW.mjs.map → chunk-4KB2NPKQ.mjs.map} +0 -0
  129. /package/dist/{chunk-KA3TZADE.mjs.map → chunk-55B7FIAE.mjs.map} +0 -0
  130. /package/dist/{chunk-WBEMXVO6.mjs.map → chunk-5GALY24M.mjs.map} +0 -0
  131. /package/dist/{chunk-V7EJJWVX.mjs.map → chunk-6DL5IBFE.mjs.map} +0 -0
  132. /package/dist/{chunk-L4T4Z7PG.mjs.map → chunk-6TJC3RI3.mjs.map} +0 -0
  133. /package/dist/{chunk-JCINHOMG.mjs.map → chunk-CHNRVP7J.mjs.map} +0 -0
  134. /package/dist/{chunk-KAYSE6PM.mjs.map → chunk-CLIM3GJ7.mjs.map} +0 -0
  135. /package/dist/{chunk-4KJZ4LNQ.mjs.map → chunk-DEESTSMV.mjs.map} +0 -0
  136. /package/dist/{chunk-VRLSZ2MW.mjs.map → chunk-FZBUEEQB.mjs.map} +0 -0
  137. /package/dist/{chunk-EG3KSNQZ.mjs.map → chunk-GKDMM6XO.mjs.map} +0 -0
  138. /package/dist/{chunk-2BTY2F3A.mjs.map → chunk-H6WLTQXF.mjs.map} +0 -0
  139. /package/dist/{chunk-SRFFQJLL.mjs.map → chunk-H7TRIY7A.mjs.map} +0 -0
  140. /package/dist/{chunk-3LASXEE5.mjs.map → chunk-HE6MAJDE.mjs.map} +0 -0
  141. /package/dist/{chunk-PJXWZFLD.mjs.map → chunk-ILJV7234.mjs.map} +0 -0
  142. /package/dist/{chunk-24OSK3DS.mjs.map → chunk-IXUCBTR3.mjs.map} +0 -0
  143. /package/dist/{chunk-WI2ICJHX.mjs.map → chunk-JEIESGLS.mjs.map} +0 -0
  144. /package/dist/{chunk-TNOOLHK7.mjs.map → chunk-KK66VUSS.mjs.map} +0 -0
  145. /package/dist/{chunk-IVX4I3NC.mjs.map → chunk-L5TIL3QC.mjs.map} +0 -0
  146. /package/dist/{chunk-X3C5CS4X.mjs.map → chunk-NE6FVUU7.mjs.map} +0 -0
  147. /package/dist/{chunk-PRN25GXK.mjs.map → chunk-NFZZGGEV.mjs.map} +0 -0
  148. /package/dist/{chunk-T5VZORPQ.mjs.map → chunk-OJW2KVY7.mjs.map} +0 -0
  149. /package/dist/{chunk-F4XMHKOR.mjs.map → chunk-PWYWE7H7.mjs.map} +0 -0
  150. /package/dist/{chunk-63OA3RR6.mjs.map → chunk-QKWQIRUO.mjs.map} +0 -0
  151. /package/dist/{chunk-RSOPHC7S.mjs.map → chunk-STPFSN7K.mjs.map} +0 -0
  152. /package/dist/{chunk-YK65IKP2.mjs.map → chunk-VVWELITO.mjs.map} +0 -0
  153. /package/dist/{chunk-ZDBXA2D4.mjs.map → chunk-XQ4KXG5O.mjs.map} +0 -0
  154. /package/dist/{chunk-QB3ZLR7S.mjs.map → chunk-Y4RD46AM.mjs.map} +0 -0
  155. /package/dist/{chunk-IX2TMY6X.mjs.map → chunk-YNOOWA75.mjs.map} +0 -0
  156. /package/dist/{chunk-GVJWRPOP.mjs.map → chunk-YUFKMTUP.mjs.map} +0 -0
  157. /package/dist/{chunk-INO2742F.mjs.map → chunk-Z7CGMLOT.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-SRFFQJLL.mjs";
3
+ } from "./chunk-H7TRIY7A.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-JV3PEYHS.mjs.map
94
+ //# sourceMappingURL=chunk-24WJGYH4.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ISLR7BKT.mjs";
4
4
  import {
5
5
  Exception
6
- } from "./chunk-KAYSE6PM.mjs";
6
+ } from "./chunk-CLIM3GJ7.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-3PPC4YMQ.mjs.map
51
+ //# sourceMappingURL=chunk-2V3F4LJ5.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  choose
3
- } from "./chunk-QLM2AYD4.mjs";
3
+ } from "./chunk-3DAZTFKD.mjs";
4
4
  import {
5
5
  List,
6
6
  isList
@@ -150,4 +150,4 @@ export {
150
150
  toPageList,
151
151
  asPageList
152
152
  };
153
- //# sourceMappingURL=chunk-OGMTD753.mjs.map
153
+ //# sourceMappingURL=chunk-3BXPK7FX.mjs.map
@@ -4,29 +4,29 @@ import {
4
4
  import {
5
5
  isResults,
6
6
  toResults
7
- } from "./chunk-YK65IKP2.mjs";
7
+ } from "./chunk-VVWELITO.mjs";
8
8
  import {
9
9
  toResult
10
- } from "./chunk-VRLSZ2MW.mjs";
10
+ } from "./chunk-FZBUEEQB.mjs";
11
11
  import {
12
12
  reject,
13
13
  resolve
14
14
  } from "./chunk-ISLR7BKT.mjs";
15
15
  import {
16
16
  Exception
17
- } from "./chunk-KAYSE6PM.mjs";
17
+ } from "./chunk-CLIM3GJ7.mjs";
18
18
  import {
19
19
  isValue
20
20
  } from "./chunk-CAHTK3AT.mjs";
21
21
  import {
22
22
  text
23
- } from "./chunk-KA3TZADE.mjs";
23
+ } from "./chunk-55B7FIAE.mjs";
24
24
  import {
25
25
  isEnum
26
- } from "./chunk-SRFFQJLL.mjs";
26
+ } from "./chunk-H7TRIY7A.mjs";
27
27
  import {
28
28
  meta
29
- } from "./chunk-IVX4I3NC.mjs";
29
+ } from "./chunk-L5TIL3QC.mjs";
30
30
  import {
31
31
  toList
32
32
  } from "./chunk-EX7OK25Y.mjs";
@@ -312,4 +312,4 @@ export {
312
312
  tryTo,
313
313
  choose
314
314
  };
315
- //# sourceMappingURL=chunk-QLM2AYD4.mjs.map
315
+ //# sourceMappingURL=chunk-3DAZTFKD.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  rest
3
- } from "./chunk-QB3ZLR7S.mjs";
3
+ } from "./chunk-Y4RD46AM.mjs";
4
4
  import {
5
5
  toHttpStatus
6
- } from "./chunk-JV3PEYHS.mjs";
6
+ } from "./chunk-24WJGYH4.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-2JX2SSPQ.mjs.map
20
+ //# sourceMappingURL=chunk-3EYCIHXW.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-SRFFQJLL.mjs";
3
+ } from "./chunk-H7TRIY7A.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-DS6NSJUW.mjs.map
20
+ //# sourceMappingURL=chunk-4KB2NPKQ.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
  entries
3
- } from "./chunk-Q3TL43R2.mjs";
3
+ } from "./chunk-R43LAFNS.mjs";
4
4
  import {
5
5
  toList
6
6
  } from "./chunk-EX7OK25Y.mjs";
@@ -152,4 +152,4 @@ export {
152
152
  text,
153
153
  textValue
154
154
  };
155
- //# sourceMappingURL=chunk-KA3TZADE.mjs.map
155
+ //# sourceMappingURL=chunk-55B7FIAE.mjs.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  required,
3
3
  valid
4
- } from "./chunk-INO2742F.mjs";
4
+ } from "./chunk-Z7CGMLOT.mjs";
5
5
  import {
6
6
  Struct
7
- } from "./chunk-WI2ICJHX.mjs";
7
+ } from "./chunk-JEIESGLS.mjs";
8
8
  import {
9
9
  DateTime
10
- } from "./chunk-5M76X6J5.mjs";
10
+ } from "./chunk-SJJ4E4HD.mjs";
11
11
  import {
12
12
  choose
13
- } from "./chunk-QLM2AYD4.mjs";
13
+ } from "./chunk-3DAZTFKD.mjs";
14
14
  import {
15
15
  ctx
16
- } from "./chunk-TNOOLHK7.mjs";
16
+ } from "./chunk-KK66VUSS.mjs";
17
17
  import {
18
18
  isIdentity
19
19
  } from "./chunk-ZHXKBOK2.mjs";
@@ -47,4 +47,4 @@ __decorateClass([
47
47
  export {
48
48
  Audit
49
49
  };
50
- //# sourceMappingURL=chunk-WBEMXVO6.mjs.map
50
+ //# sourceMappingURL=chunk-5GALY24M.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  text
3
- } from "./chunk-KA3TZADE.mjs";
3
+ } from "./chunk-55B7FIAE.mjs";
4
4
  import {
5
5
  Enum
6
- } from "./chunk-SRFFQJLL.mjs";
6
+ } from "./chunk-H7TRIY7A.mjs";
7
7
  import {
8
8
  toList
9
9
  } from "./chunk-EX7OK25Y.mjs";
@@ -36,4 +36,4 @@ var Scope = class _Scope extends Enum {
36
36
  export {
37
37
  Scope
38
38
  };
39
- //# sourceMappingURL=chunk-V7EJJWVX.mjs.map
39
+ //# sourceMappingURL=chunk-6DL5IBFE.mjs.map
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  toResponse
3
- } from "./chunk-2JX2SSPQ.mjs";
3
+ } from "./chunk-3EYCIHXW.mjs";
4
4
  import {
5
5
  isRestResult
6
- } from "./chunk-QB3ZLR7S.mjs";
6
+ } from "./chunk-Y4RD46AM.mjs";
7
7
  import {
8
8
  HttpStatus
9
- } from "./chunk-JV3PEYHS.mjs";
9
+ } from "./chunk-24WJGYH4.mjs";
10
10
  import {
11
11
  RequestOptions
12
- } from "./chunk-2BTY2F3A.mjs";
12
+ } from "./chunk-H6WLTQXF.mjs";
13
13
  import {
14
14
  cacheAge
15
- } from "./chunk-EG3KSNQZ.mjs";
15
+ } from "./chunk-GKDMM6XO.mjs";
16
16
  import {
17
17
  choose
18
- } from "./chunk-QLM2AYD4.mjs";
18
+ } from "./chunk-3DAZTFKD.mjs";
19
19
  import {
20
20
  toResult
21
- } from "./chunk-VRLSZ2MW.mjs";
21
+ } from "./chunk-FZBUEEQB.mjs";
22
22
  import {
23
23
  ctx
24
- } from "./chunk-TNOOLHK7.mjs";
24
+ } from "./chunk-KK66VUSS.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-L4T4Z7PG.mjs.map
56
+ //# sourceMappingURL=chunk-6TJC3RI3.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
  entries
3
- } from "./chunk-Q3TL43R2.mjs";
3
+ } from "./chunk-R43LAFNS.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-JCINHOMG.mjs.map
55
+ //# sourceMappingURL=chunk-CHNRVP7J.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  text
3
- } from "./chunk-KA3TZADE.mjs";
3
+ } from "./chunk-55B7FIAE.mjs";
4
4
  import {
5
5
  Enum
6
- } from "./chunk-SRFFQJLL.mjs";
6
+ } from "./chunk-H7TRIY7A.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-KAYSE6PM.mjs.map
40
+ //# sourceMappingURL=chunk-CLIM3GJ7.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toPageList
3
- } from "./chunk-OGMTD753.mjs";
3
+ } from "./chunk-3BXPK7FX.mjs";
4
4
  import {
5
5
  choose
6
- } from "./chunk-QLM2AYD4.mjs";
6
+ } from "./chunk-3DAZTFKD.mjs";
7
7
  import {
8
8
  resolve
9
9
  } from "./chunk-ISLR7BKT.mjs";
@@ -45,4 +45,4 @@ var Search = class {
45
45
  export {
46
46
  Search
47
47
  };
48
- //# sourceMappingURL=chunk-4KJZ4LNQ.mjs.map
48
+ //# sourceMappingURL=chunk-DEESTSMV.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ctx
3
- } from "./chunk-TNOOLHK7.mjs";
3
+ } from "./chunk-KK66VUSS.mjs";
4
4
  import {
5
5
  isA
6
6
  } from "./chunk-ZHXKBOK2.mjs";
@@ -17,4 +17,4 @@ export {
17
17
  toResult,
18
18
  isResult
19
19
  };
20
- //# sourceMappingURL=chunk-VRLSZ2MW.mjs.map
20
+ //# sourceMappingURL=chunk-FZBUEEQB.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asNumber
3
- } from "./chunk-RSOPHC7S.mjs";
3
+ } from "./chunk-STPFSN7K.mjs";
4
4
  import {
5
5
  choose
6
- } from "./chunk-QLM2AYD4.mjs";
6
+ } from "./chunk-3DAZTFKD.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-EG3KSNQZ.mjs.map
51
+ //# sourceMappingURL=chunk-GKDMM6XO.mjs.map
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-LXQQ5N6S.mjs";
4
4
  import {
5
5
  ContentType
6
- } from "./chunk-GVJWRPOP.mjs";
6
+ } from "./chunk-YUFKMTUP.mjs";
7
7
  import {
8
8
  HttpHeader
9
9
  } from "./chunk-SW2OCUH3.mjs";
10
10
  import {
11
11
  ctx
12
- } from "./chunk-TNOOLHK7.mjs";
12
+ } from "./chunk-KK66VUSS.mjs";
13
13
  import {
14
14
  Enum
15
- } from "./chunk-SRFFQJLL.mjs";
15
+ } from "./chunk-H7TRIY7A.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-2BTY2F3A.mjs.map
90
+ //# sourceMappingURL=chunk-H6WLTQXF.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-IVX4I3NC.mjs";
3
+ } from "./chunk-L5TIL3QC.mjs";
4
4
  import {
5
5
  toList
6
6
  } from "./chunk-EX7OK25Y.mjs";
@@ -61,4 +61,4 @@ export {
61
61
  Enum,
62
62
  isEnum
63
63
  };
64
- //# sourceMappingURL=chunk-SRFFQJLL.mjs.map
64
+ //# sourceMappingURL=chunk-H7TRIY7A.mjs.map
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-QQRGOHU6.mjs";
7
7
  import {
8
8
  json
9
- } from "./chunk-JCINHOMG.mjs";
9
+ } from "./chunk-CHNRVP7J.mjs";
10
10
  import {
11
11
  meta
12
- } from "./chunk-IVX4I3NC.mjs";
12
+ } from "./chunk-L5TIL3QC.mjs";
13
13
  import {
14
14
  toList
15
15
  } from "./chunk-EX7OK25Y.mjs";
@@ -133,4 +133,4 @@ export {
133
133
  Mapper,
134
134
  mappings
135
135
  };
136
- //# sourceMappingURL=chunk-3LASXEE5.mjs.map
136
+ //# sourceMappingURL=chunk-HE6MAJDE.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ISLR7BKT.mjs";
4
4
  import {
5
5
  Exception
6
- } from "./chunk-KAYSE6PM.mjs";
6
+ } from "./chunk-CLIM3GJ7.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-PJXWZFLD.mjs.map
45
+ //# sourceMappingURL=chunk-ILJV7234.mjs.map
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  traverse
3
- } from "./chunk-DICMUQFL.mjs";
3
+ } from "./chunk-BKA7GVXL.mjs";
4
4
  import {
5
5
  isEqual
6
- } from "./chunk-T5VZORPQ.mjs";
6
+ } from "./chunk-OJW2KVY7.mjs";
7
7
  import {
8
8
  asJson,
9
9
  json
10
- } from "./chunk-JCINHOMG.mjs";
10
+ } from "./chunk-CHNRVP7J.mjs";
11
11
  import {
12
12
  isPageList,
13
13
  toPageList
14
- } from "./chunk-OGMTD753.mjs";
14
+ } from "./chunk-3BXPK7FX.mjs";
15
15
  import {
16
16
  choose
17
- } from "./chunk-QLM2AYD4.mjs";
17
+ } from "./chunk-3DAZTFKD.mjs";
18
18
  import {
19
19
  meta
20
- } from "./chunk-IVX4I3NC.mjs";
20
+ } from "./chunk-L5TIL3QC.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-24OSK3DS.mjs.map
91
+ //# sourceMappingURL=chunk-IXUCBTR3.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  json
3
- } from "./chunk-JCINHOMG.mjs";
3
+ } from "./chunk-CHNRVP7J.mjs";
4
4
  import {
5
5
  validate
6
- } from "./chunk-QLM2AYD4.mjs";
6
+ } from "./chunk-3DAZTFKD.mjs";
7
7
  import {
8
8
  isDefined
9
9
  } from "./chunk-DEJ7A5PY.mjs";
@@ -37,4 +37,4 @@ export {
37
37
  Struct,
38
38
  isStruct
39
39
  };
40
- //# sourceMappingURL=chunk-WI2ICJHX.mjs.map
40
+ //# sourceMappingURL=chunk-JEIESGLS.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  text
3
- } from "./chunk-KA3TZADE.mjs";
3
+ } from "./chunk-55B7FIAE.mjs";
4
4
 
5
5
  // src/types/Context.ts
6
6
  var DotEnvContext = class {
@@ -91,4 +91,4 @@ export {
91
91
  Context,
92
92
  ctx
93
93
  };
94
- //# sourceMappingURL=chunk-TNOOLHK7.mjs.map
94
+ //# sourceMappingURL=chunk-KK66VUSS.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  entries,
3
3
  values
4
- } from "./chunk-Q3TL43R2.mjs";
4
+ } from "./chunk-R43LAFNS.mjs";
5
5
  import {
6
6
  toList
7
7
  } from "./chunk-EX7OK25Y.mjs";
@@ -55,4 +55,4 @@ var meta = (subject) => new ClassMeta(subject ?? {});
55
55
  export {
56
56
  meta
57
57
  };
58
- //# sourceMappingURL=chunk-IVX4I3NC.mjs.map
58
+ //# sourceMappingURL=chunk-L5TIL3QC.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ApiGateway
3
- } from "./chunk-F4XMHKOR.mjs";
3
+ } from "./chunk-PWYWE7H7.mjs";
4
4
  import {
5
5
  Api
6
- } from "./chunk-63OA3RR6.mjs";
6
+ } from "./chunk-QKWQIRUO.mjs";
7
7
  import {
8
8
  HttpStatus
9
- } from "./chunk-JV3PEYHS.mjs";
9
+ } from "./chunk-24WJGYH4.mjs";
10
10
  import {
11
11
  toArray
12
12
  } from "./chunk-X7FZPY3P.mjs";
@@ -54,4 +54,4 @@ var RouteGateway = class extends ApiGateway {
54
54
  export {
55
55
  RouteGateway
56
56
  };
57
- //# sourceMappingURL=chunk-X3C5CS4X.mjs.map
57
+ //# sourceMappingURL=chunk-NE6FVUU7.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-APYISY5K.mjs";
4
4
  import {
5
5
  json
6
- } from "./chunk-JCINHOMG.mjs";
6
+ } from "./chunk-CHNRVP7J.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-PRN25GXK.mjs.map
53
+ //# sourceMappingURL=chunk-NFZZGGEV.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  choose
3
- } from "./chunk-QLM2AYD4.mjs";
3
+ } from "./chunk-3DAZTFKD.mjs";
4
4
  import {
5
5
  isArray,
6
6
  isObject
@@ -20,4 +20,4 @@ var isEqual = (one, another) => choose([one, another]).case(([o, a]) => o === a,
20
20
  export {
21
21
  isEqual
22
22
  };
23
- //# sourceMappingURL=chunk-T5VZORPQ.mjs.map
23
+ //# sourceMappingURL=chunk-OJW2KVY7.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Api
3
- } from "./chunk-63OA3RR6.mjs";
3
+ } from "./chunk-QKWQIRUO.mjs";
4
4
  import {
5
5
  Gateway
6
- } from "./chunk-PJXWZFLD.mjs";
6
+ } from "./chunk-ILJV7234.mjs";
7
7
  import {
8
8
  toPageList
9
- } from "./chunk-OGMTD753.mjs";
9
+ } from "./chunk-3BXPK7FX.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-F4XMHKOR.mjs.map
46
+ //# sourceMappingURL=chunk-PWYWE7H7.mjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  AxiosProvider
3
- } from "./chunk-L4T4Z7PG.mjs";
3
+ } from "./chunk-6TJC3RI3.mjs";
4
4
  import {
5
5
  HttpVerb
6
- } from "./chunk-DS6NSJUW.mjs";
6
+ } from "./chunk-4KB2NPKQ.mjs";
7
7
  import {
8
8
  RequestOptions,
9
9
  toPageOptions
10
- } from "./chunk-2BTY2F3A.mjs";
10
+ } from "./chunk-H6WLTQXF.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-63OA3RR6.mjs.map
79
+ //# sourceMappingURL=chunk-QKWQIRUO.mjs.map
@@ -16,9 +16,13 @@ function entries(subject) {
16
16
  function values(subject) {
17
17
  return toList([...Object.values(subject), ...Object.values(Object.getPrototypeOf(subject))]);
18
18
  }
19
+ function keys(subject) {
20
+ return toList([...Object.keys(subject), ...Object.keys(Object.getPrototypeOf(subject))]);
21
+ }
19
22
 
20
23
  export {
21
24
  entries,
22
- values
25
+ values,
26
+ keys
23
27
  };
24
- //# sourceMappingURL=chunk-Q3TL43R2.mjs.map
28
+ //# sourceMappingURL=chunk-R43LAFNS.mjs.map