@thisisagile/easy 17.11.30 → 17.11.31

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 (174) hide show
  1. package/dist/{chunk-7VIXZ3N2.mjs → chunk-2JRHJC5I.mjs} +2 -2
  2. package/dist/{chunk-PLS55V3F.mjs → chunk-2ZX3KK44.mjs} +2 -2
  3. package/dist/{chunk-W4SWU2TX.mjs → chunk-3AQKTTTC.mjs} +2 -2
  4. package/dist/{chunk-SFQXZDOM.mjs → chunk-3RKVT7CA.mjs} +3 -3
  5. package/dist/{chunk-ZYP5UGM7.mjs → chunk-4V5GJC76.mjs} +3 -3
  6. package/dist/{chunk-K5WFQH7X.mjs → chunk-75D2275A.mjs} +4 -4
  7. package/dist/{chunk-XUQPFRR7.mjs → chunk-7QSRWII4.mjs} +3 -3
  8. package/dist/{chunk-6WEUF3WU.mjs → chunk-AD6VQSSQ.mjs} +2 -2
  9. package/dist/{chunk-2BHUXSFT.mjs → chunk-AGQP7QMM.mjs} +2 -2
  10. package/dist/{chunk-EA6HSMJJ.mjs → chunk-B44UOL2U.mjs} +3 -3
  11. package/dist/{chunk-5MJFKHSN.mjs → chunk-BGFD6HT2.mjs} +6 -6
  12. package/dist/{chunk-73V5LPS2.mjs → chunk-BJ6YF5ZH.mjs} +2 -2
  13. package/dist/{chunk-X7FZPY3P.mjs → chunk-CO2AFYVD.mjs} +7 -1
  14. package/dist/chunk-CO2AFYVD.mjs.map +1 -0
  15. package/dist/{chunk-7WHBZLM5.mjs → chunk-DIVCOWAG.mjs} +5 -5
  16. package/dist/{chunk-WPQSYMUU.mjs → chunk-DYKHAHHH.mjs} +2 -2
  17. package/dist/{chunk-UUB27VX2.mjs → chunk-EQKPZNKV.mjs} +3 -3
  18. package/dist/{chunk-OSMTZTEO.mjs → chunk-EVB7GWVS.mjs} +2 -2
  19. package/dist/{chunk-SGSBQTUR.mjs → chunk-FA2L634X.mjs} +3 -3
  20. package/dist/{chunk-ACKOJ4XB.mjs → chunk-GFJRYIPU.mjs} +3 -3
  21. package/dist/{chunk-F62OESVK.mjs → chunk-HNFUOMJP.mjs} +5 -5
  22. package/dist/{chunk-4KF3K32F.mjs → chunk-JUDDV2H5.mjs} +3 -3
  23. package/dist/{chunk-GBZISW66.mjs → chunk-KJFC3DRU.mjs} +2 -2
  24. package/dist/{chunk-GGNGYTHR.mjs → chunk-L6QRIUO4.mjs} +2 -2
  25. package/dist/{chunk-33HIHOKQ.mjs → chunk-MXYKI6HR.mjs} +5 -5
  26. package/dist/{chunk-ZAWHOX5H.mjs → chunk-NJJY5OBB.mjs} +6 -6
  27. package/dist/{chunk-UCTCPEZD.mjs → chunk-O6SIDZ5X.mjs} +9 -9
  28. package/dist/{chunk-HYIHPHGJ.mjs → chunk-PYT4JZDZ.mjs} +2 -2
  29. package/dist/{chunk-J762GOVN.mjs → chunk-QKU7KTMF.mjs} +2 -2
  30. package/dist/{chunk-EAQ2MYAX.mjs → chunk-QQYH3LWF.mjs} +3 -3
  31. package/dist/{chunk-GPSPH4NX.mjs → chunk-RPXYLXNK.mjs} +5 -5
  32. package/dist/chunk-RPXYLXNK.mjs.map +1 -0
  33. package/dist/{chunk-RBTB5C4B.mjs → chunk-SAOC5RCH.mjs} +2 -2
  34. package/dist/{chunk-YD4NFOOC.mjs → chunk-SAYFQ3KJ.mjs} +5 -5
  35. package/dist/{chunk-FT7I64SO.mjs → chunk-SEMYSRYW.mjs} +12 -12
  36. package/dist/{chunk-SPMBBLP2.mjs → chunk-SYOOOVM3.mjs} +2 -2
  37. package/dist/{chunk-SV3LLENW.mjs → chunk-T7ZKYDXT.mjs} +4 -4
  38. package/dist/{chunk-X4UT6C6X.mjs → chunk-TMD77DUA.mjs} +8 -8
  39. package/dist/{chunk-4XR4FJ2Q.mjs → chunk-TU2I7DC4.mjs} +3 -3
  40. package/dist/{chunk-XTWAPJQ5.mjs → chunk-U3VBJFUV.mjs} +3 -3
  41. package/dist/{chunk-2KBLMD52.mjs → chunk-VEFEJKUM.mjs} +4 -4
  42. package/dist/{chunk-OVKDKQKI.mjs → chunk-VWTL2GWP.mjs} +4 -4
  43. package/dist/{chunk-XYQWMDTR.mjs → chunk-WN7CJLBX.mjs} +2 -2
  44. package/dist/{chunk-T3EBWHG5.mjs → chunk-X5W4BQUW.mjs} +3 -3
  45. package/dist/{chunk-LFV5W6AB.mjs → chunk-XIW5H5Z4.mjs} +4 -4
  46. package/dist/{chunk-RYSAGDY7.mjs → chunk-XVDKDGGN.mjs} +4 -4
  47. package/dist/{chunk-TCICYSL6.mjs → chunk-YTAE5NRO.mjs} +2 -2
  48. package/dist/{chunk-4YRTJEDO.mjs → chunk-ZA72FTVQ.mjs} +2 -2
  49. package/dist/{chunk-M3AJCXS5.mjs → chunk-ZRTPDDQ7.mjs} +2 -2
  50. package/dist/data/Condition.mjs +5 -5
  51. package/dist/data/Database.mjs +6 -6
  52. package/dist/data/Field.mjs +6 -6
  53. package/dist/data/InMemoryGateway.mjs +14 -14
  54. package/dist/domain/Audit.mjs +18 -18
  55. package/dist/domain/Child.mjs +15 -15
  56. package/dist/domain/DateTime.mjs +14 -14
  57. package/dist/domain/Entity.mjs +18 -18
  58. package/dist/domain/Repo.mjs +16 -16
  59. package/dist/domain/Struct.mjs +14 -14
  60. package/dist/domain/Typo.mjs +13 -13
  61. package/dist/http/CacheControl.mjs +14 -14
  62. package/dist/http/ContentType.mjs +6 -6
  63. package/dist/http/HttpStatus.mjs +6 -6
  64. package/dist/http/HttpVerb.mjs +6 -6
  65. package/dist/http/LocalRequestStore.mjs +5 -5
  66. package/dist/http/RequestOptions.mjs +9 -9
  67. package/dist/http/RestResult.mjs +14 -14
  68. package/dist/http/toResponse.mjs +15 -15
  69. package/dist/index.js +7 -1
  70. package/dist/index.js.map +1 -1
  71. package/dist/process/App.mjs +7 -7
  72. package/dist/process/Manage.mjs +14 -14
  73. package/dist/process/Scope.mjs +7 -7
  74. package/dist/process/Search.mjs +14 -14
  75. package/dist/process/UseCase.mjs +6 -6
  76. package/dist/resources/Req.mjs +13 -13
  77. package/dist/services/Api.mjs +22 -22
  78. package/dist/services/ApiGateway.mjs +25 -25
  79. package/dist/services/AxiosProvider.mjs +20 -20
  80. package/dist/services/MappedRouteGateway.mjs +28 -28
  81. package/dist/services/RouteGateway.mjs +26 -26
  82. package/dist/services/ViewRouteGateway.mjs +29 -29
  83. package/dist/sql/Column.mjs +13 -13
  84. package/dist/sql/Count.mjs +5 -5
  85. package/dist/sql/Delete.mjs +4 -4
  86. package/dist/sql/Insert.mjs +4 -4
  87. package/dist/sql/Select.mjs +4 -4
  88. package/dist/sql/SqlQuery.mjs +3 -3
  89. package/dist/sql/Table.mjs +22 -22
  90. package/dist/sql/TableGateway.mjs +14 -14
  91. package/dist/sql/Update.mjs +4 -4
  92. package/dist/types/Array.d.ts +1 -0
  93. package/dist/types/Array.mjs +1 -1
  94. package/dist/types/Cache.mjs +4 -4
  95. package/dist/types/CacheAge.mjs +14 -14
  96. package/dist/types/Case.mjs +12 -12
  97. package/dist/types/Context.mjs +5 -5
  98. package/dist/types/Enum.mjs +5 -5
  99. package/dist/types/Environment.mjs +5 -5
  100. package/dist/types/Exception.mjs +7 -7
  101. package/dist/types/Gateway.mjs +9 -9
  102. package/dist/types/IsEqual.mjs +13 -13
  103. package/dist/types/Json.mjs +4 -4
  104. package/dist/types/List.mjs +2 -2
  105. package/dist/types/Meta.mjs +4 -4
  106. package/dist/types/Number.mjs +13 -13
  107. package/dist/types/Object.mjs +3 -3
  108. package/dist/types/PageList.mjs +13 -13
  109. package/dist/types/Parser.mjs +13 -13
  110. package/dist/types/Repository.mjs +9 -9
  111. package/dist/types/Result.mjs +6 -6
  112. package/dist/types/Results.mjs +7 -7
  113. package/dist/types/Tag.mjs +4 -4
  114. package/dist/types/Template.mjs +4 -4
  115. package/dist/types/Try.mjs +12 -12
  116. package/dist/types/Uri.mjs +13 -13
  117. package/dist/utils/Mapper.mjs +6 -6
  118. package/dist/utils/Promise.mjs +3 -3
  119. package/dist/utils/Seconds.mjs +3 -3
  120. package/dist/utils/Sentence.mjs +4 -4
  121. package/dist/utils/View.mjs +16 -16
  122. package/dist/validation/Contraints.mjs +13 -13
  123. package/dist/validation/Validate.mjs +12 -12
  124. package/dist/validation/When.mjs +12 -12
  125. package/package.json +1 -1
  126. package/src/types/Array.ts +6 -0
  127. package/src/utils/Mapper.ts +2 -2
  128. package/dist/chunk-GPSPH4NX.mjs.map +0 -1
  129. package/dist/chunk-X7FZPY3P.mjs.map +0 -1
  130. /package/dist/{chunk-7VIXZ3N2.mjs.map → chunk-2JRHJC5I.mjs.map} +0 -0
  131. /package/dist/{chunk-PLS55V3F.mjs.map → chunk-2ZX3KK44.mjs.map} +0 -0
  132. /package/dist/{chunk-W4SWU2TX.mjs.map → chunk-3AQKTTTC.mjs.map} +0 -0
  133. /package/dist/{chunk-SFQXZDOM.mjs.map → chunk-3RKVT7CA.mjs.map} +0 -0
  134. /package/dist/{chunk-ZYP5UGM7.mjs.map → chunk-4V5GJC76.mjs.map} +0 -0
  135. /package/dist/{chunk-K5WFQH7X.mjs.map → chunk-75D2275A.mjs.map} +0 -0
  136. /package/dist/{chunk-XUQPFRR7.mjs.map → chunk-7QSRWII4.mjs.map} +0 -0
  137. /package/dist/{chunk-6WEUF3WU.mjs.map → chunk-AD6VQSSQ.mjs.map} +0 -0
  138. /package/dist/{chunk-2BHUXSFT.mjs.map → chunk-AGQP7QMM.mjs.map} +0 -0
  139. /package/dist/{chunk-EA6HSMJJ.mjs.map → chunk-B44UOL2U.mjs.map} +0 -0
  140. /package/dist/{chunk-5MJFKHSN.mjs.map → chunk-BGFD6HT2.mjs.map} +0 -0
  141. /package/dist/{chunk-73V5LPS2.mjs.map → chunk-BJ6YF5ZH.mjs.map} +0 -0
  142. /package/dist/{chunk-7WHBZLM5.mjs.map → chunk-DIVCOWAG.mjs.map} +0 -0
  143. /package/dist/{chunk-WPQSYMUU.mjs.map → chunk-DYKHAHHH.mjs.map} +0 -0
  144. /package/dist/{chunk-UUB27VX2.mjs.map → chunk-EQKPZNKV.mjs.map} +0 -0
  145. /package/dist/{chunk-OSMTZTEO.mjs.map → chunk-EVB7GWVS.mjs.map} +0 -0
  146. /package/dist/{chunk-SGSBQTUR.mjs.map → chunk-FA2L634X.mjs.map} +0 -0
  147. /package/dist/{chunk-ACKOJ4XB.mjs.map → chunk-GFJRYIPU.mjs.map} +0 -0
  148. /package/dist/{chunk-F62OESVK.mjs.map → chunk-HNFUOMJP.mjs.map} +0 -0
  149. /package/dist/{chunk-4KF3K32F.mjs.map → chunk-JUDDV2H5.mjs.map} +0 -0
  150. /package/dist/{chunk-GBZISW66.mjs.map → chunk-KJFC3DRU.mjs.map} +0 -0
  151. /package/dist/{chunk-GGNGYTHR.mjs.map → chunk-L6QRIUO4.mjs.map} +0 -0
  152. /package/dist/{chunk-33HIHOKQ.mjs.map → chunk-MXYKI6HR.mjs.map} +0 -0
  153. /package/dist/{chunk-ZAWHOX5H.mjs.map → chunk-NJJY5OBB.mjs.map} +0 -0
  154. /package/dist/{chunk-UCTCPEZD.mjs.map → chunk-O6SIDZ5X.mjs.map} +0 -0
  155. /package/dist/{chunk-HYIHPHGJ.mjs.map → chunk-PYT4JZDZ.mjs.map} +0 -0
  156. /package/dist/{chunk-J762GOVN.mjs.map → chunk-QKU7KTMF.mjs.map} +0 -0
  157. /package/dist/{chunk-EAQ2MYAX.mjs.map → chunk-QQYH3LWF.mjs.map} +0 -0
  158. /package/dist/{chunk-RBTB5C4B.mjs.map → chunk-SAOC5RCH.mjs.map} +0 -0
  159. /package/dist/{chunk-YD4NFOOC.mjs.map → chunk-SAYFQ3KJ.mjs.map} +0 -0
  160. /package/dist/{chunk-FT7I64SO.mjs.map → chunk-SEMYSRYW.mjs.map} +0 -0
  161. /package/dist/{chunk-SPMBBLP2.mjs.map → chunk-SYOOOVM3.mjs.map} +0 -0
  162. /package/dist/{chunk-SV3LLENW.mjs.map → chunk-T7ZKYDXT.mjs.map} +0 -0
  163. /package/dist/{chunk-X4UT6C6X.mjs.map → chunk-TMD77DUA.mjs.map} +0 -0
  164. /package/dist/{chunk-4XR4FJ2Q.mjs.map → chunk-TU2I7DC4.mjs.map} +0 -0
  165. /package/dist/{chunk-XTWAPJQ5.mjs.map → chunk-U3VBJFUV.mjs.map} +0 -0
  166. /package/dist/{chunk-2KBLMD52.mjs.map → chunk-VEFEJKUM.mjs.map} +0 -0
  167. /package/dist/{chunk-OVKDKQKI.mjs.map → chunk-VWTL2GWP.mjs.map} +0 -0
  168. /package/dist/{chunk-XYQWMDTR.mjs.map → chunk-WN7CJLBX.mjs.map} +0 -0
  169. /package/dist/{chunk-T3EBWHG5.mjs.map → chunk-X5W4BQUW.mjs.map} +0 -0
  170. /package/dist/{chunk-LFV5W6AB.mjs.map → chunk-XIW5H5Z4.mjs.map} +0 -0
  171. /package/dist/{chunk-RYSAGDY7.mjs.map → chunk-XVDKDGGN.mjs.map} +0 -0
  172. /package/dist/{chunk-TCICYSL6.mjs.map → chunk-YTAE5NRO.mjs.map} +0 -0
  173. /package/dist/{chunk-4YRTJEDO.mjs.map → chunk-ZA72FTVQ.mjs.map} +0 -0
  174. /package/dist/{chunk-M3AJCXS5.mjs.map → chunk-ZRTPDDQ7.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Select
3
- } from "./chunk-4XR4FJ2Q.mjs";
3
+ } from "./chunk-TU2I7DC4.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-7VIXZ3N2.mjs.map
18
+ //# sourceMappingURL=chunk-2JRHJC5I.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ctx
3
- } from "./chunk-GGNGYTHR.mjs";
3
+ } from "./chunk-L6QRIUO4.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-PLS55V3F.mjs.map
20
+ //# sourceMappingURL=chunk-2ZX3KK44.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toList
3
- } from "./chunk-OVKDKQKI.mjs";
3
+ } from "./chunk-VWTL2GWP.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-W4SWU2TX.mjs.map
20
+ //# sourceMappingURL=chunk-3AQKTTTC.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  text
3
- } from "./chunk-T3EBWHG5.mjs";
3
+ } from "./chunk-X5W4BQUW.mjs";
4
4
  import {
5
5
  Enum
6
- } from "./chunk-UUB27VX2.mjs";
6
+ } from "./chunk-EQKPZNKV.mjs";
7
7
  import {
8
8
  asString
9
9
  } from "./chunk-BDA5LB4S.mjs";
@@ -37,4 +37,4 @@ export {
37
37
  isException,
38
38
  isDoesNotExist
39
39
  };
40
- //# sourceMappingURL=chunk-SFQXZDOM.mjs.map
40
+ //# sourceMappingURL=chunk-3RKVT7CA.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toList
3
- } from "./chunk-OVKDKQKI.mjs";
3
+ } from "./chunk-VWTL2GWP.mjs";
4
4
  import {
5
5
  toArray
6
- } from "./chunk-X7FZPY3P.mjs";
6
+ } from "./chunk-CO2AFYVD.mjs";
7
7
  import {
8
8
  asString
9
9
  } from "./chunk-BDA5LB4S.mjs";
@@ -40,4 +40,4 @@ export {
40
40
  tuple5,
41
41
  settled
42
42
  };
43
- //# sourceMappingURL=chunk-ZYP5UGM7.mjs.map
43
+ //# sourceMappingURL=chunk-4V5GJC76.mjs.map
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-LXQQ5N6S.mjs";
7
7
  import {
8
8
  ContentType
9
- } from "./chunk-6WEUF3WU.mjs";
9
+ } from "./chunk-AD6VQSSQ.mjs";
10
10
  import {
11
11
  ctx
12
- } from "./chunk-GGNGYTHR.mjs";
12
+ } from "./chunk-L6QRIUO4.mjs";
13
13
  import {
14
14
  Enum
15
- } from "./chunk-UUB27VX2.mjs";
15
+ } from "./chunk-EQKPZNKV.mjs";
16
16
  import {
17
17
  asString
18
18
  } from "./chunk-BDA5LB4S.mjs";
@@ -87,4 +87,4 @@ export {
87
87
  RequestOptions,
88
88
  isRequestOptions
89
89
  };
90
- //# sourceMappingURL=chunk-K5WFQH7X.mjs.map
90
+ //# sourceMappingURL=chunk-75D2275A.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  json
3
- } from "./chunk-OSMTZTEO.mjs";
3
+ } from "./chunk-EVB7GWVS.mjs";
4
4
  import {
5
5
  validate
6
- } from "./chunk-FT7I64SO.mjs";
6
+ } from "./chunk-SEMYSRYW.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-XUQPFRR7.mjs.map
40
+ //# sourceMappingURL=chunk-7QSRWII4.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-UUB27VX2.mjs";
3
+ } from "./chunk-EQKPZNKV.mjs";
4
4
  import {
5
5
  asString
6
6
  } from "./chunk-BDA5LB4S.mjs";
@@ -27,4 +27,4 @@ var ContentType = class _ContentType extends Enum {
27
27
  export {
28
28
  ContentType
29
29
  };
30
- //# sourceMappingURL=chunk-6WEUF3WU.mjs.map
30
+ //# sourceMappingURL=chunk-AD6VQSSQ.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tryTo
3
- } from "./chunk-FT7I64SO.mjs";
3
+ } from "./chunk-SEMYSRYW.mjs";
4
4
  import {
5
5
  asString
6
6
  } from "./chunk-BDA5LB4S.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-2BHUXSFT.mjs.map
20
+ //# sourceMappingURL=chunk-AGQP7QMM.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asNumber
3
- } from "./chunk-2BHUXSFT.mjs";
3
+ } from "./chunk-AGQP7QMM.mjs";
4
4
  import {
5
5
  choose
6
- } from "./chunk-FT7I64SO.mjs";
6
+ } from "./chunk-SEMYSRYW.mjs";
7
7
  import {
8
8
  asString
9
9
  } from "./chunk-BDA5LB4S.mjs";
@@ -48,4 +48,4 @@ var cacheAge = {
48
48
  export {
49
49
  cacheAge
50
50
  };
51
- //# sourceMappingURL=chunk-EA6HSMJJ.mjs.map
51
+ //# sourceMappingURL=chunk-B44UOL2U.mjs.map
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  HttpStatus,
3
3
  isHttpStatus
4
- } from "./chunk-HYIHPHGJ.mjs";
4
+ } from "./chunk-PYT4JZDZ.mjs";
5
5
  import {
6
6
  isResponse
7
7
  } from "./chunk-UYDZZAEK.mjs";
8
8
  import {
9
9
  choose
10
- } from "./chunk-FT7I64SO.mjs";
10
+ } from "./chunk-SEMYSRYW.mjs";
11
11
  import {
12
12
  isResults
13
- } from "./chunk-XTWAPJQ5.mjs";
13
+ } from "./chunk-U3VBJFUV.mjs";
14
14
  import {
15
15
  isResult,
16
16
  toResult
17
- } from "./chunk-PLS55V3F.mjs";
17
+ } from "./chunk-2ZX3KK44.mjs";
18
18
  import {
19
19
  toList
20
- } from "./chunk-OVKDKQKI.mjs";
20
+ } from "./chunk-VWTL2GWP.mjs";
21
21
  import {
22
22
  isDefined,
23
23
  isError
@@ -52,4 +52,4 @@ export {
52
52
  rest,
53
53
  isRestResult
54
54
  };
55
- //# sourceMappingURL=chunk-5MJFKHSN.mjs.map
55
+ //# sourceMappingURL=chunk-BGFD6HT2.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toList
3
- } from "./chunk-OVKDKQKI.mjs";
3
+ } from "./chunk-VWTL2GWP.mjs";
4
4
  import {
5
5
  ifDefined
6
6
  } from "./chunk-JSON7A4X.mjs";
@@ -36,4 +36,4 @@ export {
36
36
  keys,
37
37
  extractKeys
38
38
  };
39
- //# sourceMappingURL=chunk-73V5LPS2.mjs.map
39
+ //# sourceMappingURL=chunk-BJ6YF5ZH.mjs.map
@@ -26,6 +26,12 @@ var array = {
26
26
  const res = Array.from({ length }, () => []);
27
27
  items.forEach((i, index) => res[index % length].push(i));
28
28
  return res;
29
+ },
30
+ chunk: (items = [], length = 2) => {
31
+ const chunks = Math.ceil(items.length / length);
32
+ const res = Array.from({ length: chunks }, () => []);
33
+ items.forEach((i, index) => res[Math.floor(index / chunks)].push(i));
34
+ return res;
29
35
  }
30
36
  };
31
37
 
@@ -34,4 +40,4 @@ export {
34
40
  toObject,
35
41
  array
36
42
  };
37
- //# sourceMappingURL=chunk-X7FZPY3P.mjs.map
43
+ //# sourceMappingURL=chunk-CO2AFYVD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/Array.ts"],"sourcesContent":["import { isArray, isDefined } from './Is';\nimport { on, use } from './Constructor';\n\nexport type OneOrMore<T> = T | Array<T>;\nexport type ArrayLike<T> = OneOrMore<T>[];\n\nexport const toArray = <T>(...items: ArrayLike<T>): T[] =>\n items.length > 1 ? (items as T[]) : isArray(items[0]) ? items[0] : isDefined(items[0]) ? [items[0]] : [];\n\nexport const toObject = <T>(key: keyof T, ...items: ArrayLike<T>): Record<string | number | symbol, T> =>\n toArray(...items).reduce((o: any, i) => {\n o[i[key]] = i;\n return o;\n }, {});\n\nexport const array = {\n merge: (first: any[] = [], second: any[] = [], firstKey = 'id', secondKey = 'id'): any[] =>\n first.map(f => ({\n ...f,\n ...second.find(s => isDefined(s[secondKey]) && isDefined(f[firstKey]) && s[secondKey] === f[firstKey]),\n })),\n switch: <T>(items: T[] = [], item: T): T[] =>\n use([...items], res => {\n on(res.indexOf(item), i => (i !== -1 ? res.splice(i, 1) : res.push(item)));\n return res;\n }),\n splitIn: <T>(items: T[] = [], length = 2): T[][] => {\n const res: T[][] = Array.from({ length }, () => []);\n items.forEach((i, index) => res[index % length].push(i));\n return res;\n },\n chunk: <T>(items: T[] = [], length = 2): T[][] => {\n const chunks = Math.ceil(items.length / length);\n const res: T[][] = Array.from({ length: chunks }, () => []);\n items.forEach((i, index) => res[Math.floor(index / chunks)].push(i));\n return res;\n },\n};\n"],"mappings":";;;;;;;;;;AAMO,IAAM,UAAU,IAAO,UAC5B,MAAM,SAAS,IAAK,QAAgB,QAAQ,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,UAAU,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;AAElG,IAAM,WAAW,CAAI,QAAiB,UAC3C,QAAQ,GAAG,KAAK,EAAE,OAAO,CAAC,GAAQ,MAAM;AACtC,IAAE,EAAE,GAAG,CAAC,IAAI;AACZ,SAAO;AACT,GAAG,CAAC,CAAC;AAEA,IAAM,QAAQ;AAAA,EACnB,OAAO,CAAC,QAAe,CAAC,GAAG,SAAgB,CAAC,GAAG,WAAW,MAAM,YAAY,SAC1E,MAAM,IAAI,QAAM;AAAA,IACd,GAAG;AAAA,IACH,GAAG,OAAO,KAAK,OAAK,UAAU,EAAE,SAAS,CAAC,KAAK,UAAU,EAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,QAAQ,CAAC;AAAA,EACvG,EAAE;AAAA,EACJ,QAAQ,CAAI,QAAa,CAAC,GAAG,SAC3B,IAAI,CAAC,GAAG,KAAK,GAAG,SAAO;AACrB,OAAG,IAAI,QAAQ,IAAI,GAAG,OAAM,MAAM,KAAK,IAAI,OAAO,GAAG,CAAC,IAAI,IAAI,KAAK,IAAI,CAAE;AACzE,WAAO;AAAA,EACT,CAAC;AAAA,EACH,SAAS,CAAI,QAAa,CAAC,GAAG,SAAS,MAAa;AAClD,UAAM,MAAa,MAAM,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;AAClD,UAAM,QAAQ,CAAC,GAAG,UAAU,IAAI,QAAQ,MAAM,EAAE,KAAK,CAAC,CAAC;AACvD,WAAO;AAAA,EACT;AAAA,EACA,OAAO,CAAI,QAAa,CAAC,GAAG,SAAS,MAAa;AAChD,UAAM,SAAS,KAAK,KAAK,MAAM,SAAS,MAAM;AAC9C,UAAM,MAAa,MAAM,KAAK,EAAE,QAAQ,OAAO,GAAG,MAAM,CAAC,CAAC;AAC1D,UAAM,QAAQ,CAAC,GAAG,UAAU,IAAI,KAAK,MAAM,QAAQ,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC;AACnE,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -5,16 +5,16 @@ import {
5
5
  import {
6
6
  tryTo,
7
7
  validate
8
- } from "./chunk-FT7I64SO.mjs";
8
+ } from "./chunk-SEMYSRYW.mjs";
9
9
  import {
10
10
  text
11
- } from "./chunk-T3EBWHG5.mjs";
11
+ } from "./chunk-X5W4BQUW.mjs";
12
12
  import {
13
13
  meta
14
- } from "./chunk-SGSBQTUR.mjs";
14
+ } from "./chunk-FA2L634X.mjs";
15
15
  import {
16
16
  toList
17
- } from "./chunk-OVKDKQKI.mjs";
17
+ } from "./chunk-VWTL2GWP.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-7WHBZLM5.mjs.map
76
+ //# sourceMappingURL=chunk-DIVCOWAG.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MDXL65W4.mjs";
4
4
  import {
5
5
  json
6
- } from "./chunk-OSMTZTEO.mjs";
6
+ } from "./chunk-EVB7GWVS.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-WPQSYMUU.mjs.map
53
+ //# sourceMappingURL=chunk-DYKHAHHH.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-SGSBQTUR.mjs";
3
+ } from "./chunk-FA2L634X.mjs";
4
4
  import {
5
5
  toList
6
- } from "./chunk-OVKDKQKI.mjs";
6
+ } from "./chunk-VWTL2GWP.mjs";
7
7
  import {
8
8
  ofGet
9
9
  } from "./chunk-SJGQU3OG.mjs";
@@ -61,4 +61,4 @@ export {
61
61
  Enum,
62
62
  isEnum
63
63
  };
64
- //# sourceMappingURL=chunk-UUB27VX2.mjs.map
64
+ //# sourceMappingURL=chunk-EQKPZNKV.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entries
3
- } from "./chunk-73V5LPS2.mjs";
3
+ } from "./chunk-BJ6YF5ZH.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-OSMTZTEO.mjs.map
55
+ //# sourceMappingURL=chunk-EVB7GWVS.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  entries,
3
3
  values
4
- } from "./chunk-73V5LPS2.mjs";
4
+ } from "./chunk-BJ6YF5ZH.mjs";
5
5
  import {
6
6
  toList
7
- } from "./chunk-OVKDKQKI.mjs";
7
+ } from "./chunk-VWTL2GWP.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-SGSBQTUR.mjs.map
58
+ //# sourceMappingURL=chunk-FA2L634X.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  seconds
3
- } from "./chunk-TCICYSL6.mjs";
3
+ } from "./chunk-YTAE5NRO.mjs";
4
4
  import {
5
5
  isDate
6
6
  } from "./chunk-ADJAEGCT.mjs";
7
7
  import {
8
8
  choose
9
- } from "./chunk-FT7I64SO.mjs";
9
+ } from "./chunk-SEMYSRYW.mjs";
10
10
  import {
11
11
  Value
12
12
  } from "./chunk-WSBULPUZ.mjs";
@@ -121,4 +121,4 @@ export {
121
121
  isDateTime,
122
122
  dt
123
123
  };
124
- //# sourceMappingURL=chunk-ACKOJ4XB.mjs.map
124
+ //# sourceMappingURL=chunk-GFJRYIPU.mjs.map
@@ -1,9 +1,9 @@
1
- import {
2
- reject
3
- } from "./chunk-ZYP5UGM7.mjs";
4
1
  import {
5
2
  Exception
6
- } from "./chunk-SFQXZDOM.mjs";
3
+ } from "./chunk-3RKVT7CA.mjs";
4
+ import {
5
+ reject
6
+ } from "./chunk-4V5GJC76.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-F62OESVK.mjs.map
45
+ //# sourceMappingURL=chunk-HNFUOMJP.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  choose
3
- } from "./chunk-FT7I64SO.mjs";
3
+ } from "./chunk-SEMYSRYW.mjs";
4
4
  import {
5
5
  List,
6
6
  isList
7
- } from "./chunk-OVKDKQKI.mjs";
7
+ } from "./chunk-VWTL2GWP.mjs";
8
8
  import {
9
9
  isA
10
10
  } from "./chunk-ZHXKBOK2.mjs";
@@ -166,4 +166,4 @@ export {
166
166
  toPageList,
167
167
  asPageList
168
168
  };
169
- //# sourceMappingURL=chunk-4KF3K32F.mjs.map
169
+ //# sourceMappingURL=chunk-JUDDV2H5.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  choose
3
- } from "./chunk-FT7I64SO.mjs";
3
+ } from "./chunk-SEMYSRYW.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-GBZISW66.mjs.map
23
+ //# sourceMappingURL=chunk-KJFC3DRU.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  text
3
- } from "./chunk-T3EBWHG5.mjs";
3
+ } from "./chunk-X5W4BQUW.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-GGNGYTHR.mjs.map
94
+ //# sourceMappingURL=chunk-L6QRIUO4.mjs.map
@@ -1,9 +1,9 @@
1
- import {
2
- reject
3
- } from "./chunk-ZYP5UGM7.mjs";
4
1
  import {
5
2
  Exception
6
- } from "./chunk-SFQXZDOM.mjs";
3
+ } from "./chunk-3RKVT7CA.mjs";
4
+ import {
5
+ reject
6
+ } from "./chunk-4V5GJC76.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-33HIHOKQ.mjs.map
51
+ //# sourceMappingURL=chunk-MXYKI6HR.mjs.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  required,
3
3
  valid
4
- } from "./chunk-7WHBZLM5.mjs";
4
+ } from "./chunk-DIVCOWAG.mjs";
5
5
  import {
6
6
  DateTime
7
- } from "./chunk-ACKOJ4XB.mjs";
7
+ } from "./chunk-GFJRYIPU.mjs";
8
8
  import {
9
9
  Struct
10
- } from "./chunk-XUQPFRR7.mjs";
10
+ } from "./chunk-7QSRWII4.mjs";
11
11
  import {
12
12
  choose
13
- } from "./chunk-FT7I64SO.mjs";
13
+ } from "./chunk-SEMYSRYW.mjs";
14
14
  import {
15
15
  ctx
16
- } from "./chunk-GGNGYTHR.mjs";
16
+ } from "./chunk-L6QRIUO4.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-ZAWHOX5H.mjs.map
50
+ //# sourceMappingURL=chunk-NJJY5OBB.mjs.map
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  toResponse
3
- } from "./chunk-EAQ2MYAX.mjs";
3
+ } from "./chunk-QQYH3LWF.mjs";
4
4
  import {
5
5
  isRestResult
6
- } from "./chunk-5MJFKHSN.mjs";
6
+ } from "./chunk-BGFD6HT2.mjs";
7
7
  import {
8
8
  HttpStatus
9
- } from "./chunk-HYIHPHGJ.mjs";
9
+ } from "./chunk-PYT4JZDZ.mjs";
10
10
  import {
11
11
  RequestOptions
12
- } from "./chunk-K5WFQH7X.mjs";
12
+ } from "./chunk-75D2275A.mjs";
13
13
  import {
14
14
  cacheAge
15
- } from "./chunk-EA6HSMJJ.mjs";
15
+ } from "./chunk-B44UOL2U.mjs";
16
16
  import {
17
17
  choose
18
- } from "./chunk-FT7I64SO.mjs";
18
+ } from "./chunk-SEMYSRYW.mjs";
19
19
  import {
20
20
  toResult
21
- } from "./chunk-PLS55V3F.mjs";
21
+ } from "./chunk-2ZX3KK44.mjs";
22
22
  import {
23
23
  ctx
24
- } from "./chunk-GGNGYTHR.mjs";
24
+ } from "./chunk-L6QRIUO4.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-UCTCPEZD.mjs.map
56
+ //# sourceMappingURL=chunk-O6SIDZ5X.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-UUB27VX2.mjs";
3
+ } from "./chunk-EQKPZNKV.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-HYIHPHGJ.mjs.map
94
+ //# sourceMappingURL=chunk-PYT4JZDZ.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Enum
3
- } from "./chunk-UUB27VX2.mjs";
3
+ } from "./chunk-EQKPZNKV.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-J762GOVN.mjs.map
25
+ //# sourceMappingURL=chunk-QKU7KTMF.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  rest
3
- } from "./chunk-5MJFKHSN.mjs";
3
+ } from "./chunk-BGFD6HT2.mjs";
4
4
  import {
5
5
  toHttpStatus
6
- } from "./chunk-HYIHPHGJ.mjs";
6
+ } from "./chunk-PYT4JZDZ.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-EAQ2MYAX.mjs.map
20
+ //# sourceMappingURL=chunk-QQYH3LWF.mjs.map
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-GCY5A63A.mjs";
7
7
  import {
8
8
  json
9
- } from "./chunk-OSMTZTEO.mjs";
9
+ } from "./chunk-EVB7GWVS.mjs";
10
10
  import {
11
11
  meta
12
- } from "./chunk-SGSBQTUR.mjs";
12
+ } from "./chunk-FA2L634X.mjs";
13
13
  import {
14
14
  toList
15
- } from "./chunk-OVKDKQKI.mjs";
15
+ } from "./chunk-VWTL2GWP.mjs";
16
16
  import {
17
17
  ifNotEmpty
18
18
  } from "./chunk-JSON7A4X.mjs";
@@ -59,7 +59,7 @@ var Mapper = class extends State {
59
59
  }
60
60
  // All names op properties (in target) that are NOT properties in source
61
61
  get droppedOut() {
62
- return this.get("droppedOut", () => this.properties.filter(([, p]) => !this.keys.some((k) => k === (p.property ?? ""))).map(([k]) => k));
62
+ return this.get("droppedOut", () => this.properties.filter(([, p]) => !this.keys.some((k) => k === p.property)).map(([k]) => k));
63
63
  }
64
64
  in(from = {}) {
65
65
  return json.omit(
@@ -133,4 +133,4 @@ export {
133
133
  Mapper,
134
134
  mappings
135
135
  };
136
- //# sourceMappingURL=chunk-GPSPH4NX.mjs.map
136
+ //# sourceMappingURL=chunk-RPXYLXNK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/Mapper.ts"],"sourcesContent":["import { Property, PropertyOptions } from './Property';\nimport { State } from './State';\nimport { ifNotEmpty } from './If';\nimport { json, Json, JsonValue } from '../types/Json';\nimport { Optional } from '../types/Types';\nimport { TypeGuard } from '../types/TypeGuard';\nimport { isA } from '../types/IsA';\nimport { List, toList } from '../types/List';\nimport { meta } from '../types/Meta';\nimport { isEmpty } from '../types/Is';\nimport { Get, ofGet } from '../types/Get';\nimport { Construct, ofConstruct } from '../types/Constructor';\n\nexport type Mapping = {\n property: string;\n in: (source?: Json, key?: string) => Optional<JsonValue>;\n out: (source?: Json, key?: string) => Optional<JsonValue>;\n};\nexport const isMapping: TypeGuard<Mapping> = (m?: unknown): m is Mapping => isA<Mapping>(m, 'in', 'out');\n\nexport type MapStartFrom = 'scratch' | 'source';\nexport type MapOptions = { startFrom: MapStartFrom };\n\nexport class Mapper extends State implements Mapping {\n protected readonly map = mappings;\n\n constructor(\n readonly options: MapOptions = { startFrom: 'scratch' },\n readonly property = ''\n ) {\n super();\n }\n\n // All properties that are a mapping\n get properties(): List<[string, Mapping]> {\n return this.get('props', () =>\n meta(this)\n .entries<Mapping>()\n .filter(([, v]) => isMapping(v))\n );\n }\n\n // All names of properties (in target) that have a Mapping\n get keys(): List<string> {\n return this.get('keys', () => this.properties.map(([k]) => k));\n }\n\n // All names of properties (in source) that are named in a Mapping\n get columns(): List<string> {\n return this.get('columns', () => this.properties.mapDefined(([, p]) => ifNotEmpty(p.property, p.property))).distinct();\n }\n\n // All names of properties (in source) that are NOT properties in target\n private get droppedIn(): List<string> {\n return this.get('droppedIn', () => this.columns.filter(c => !this.keys.some(k => k === c)));\n }\n\n // All names op properties (in target) that are NOT properties in source\n private get droppedOut(): List<string> {\n return this.get('droppedOut', () => this.properties.filter(([, p]) => !this.keys.some(k => k === p.property)).map(([k]) => k));\n }\n\n public in(from: Json = {}): Json {\n return json.omit(\n this.properties.reduce((a, [k, p]) => json.merge(a, { [k]: p.in({ ...a, ...from }) }), this.options.startFrom === 'source' ? from : {}),\n ...this.droppedIn\n );\n }\n\n public out(to: Json = {}): Json {\n return json.omit(\n this.properties.reduce(\n (a, [k, p]) => json.merge(a, isEmpty(p.property) ? p.out(to, k) : { [p.property ?? '']: p.out({ ...a, ...to }, k) }),\n this.options.startFrom === 'source' ? to : {}\n ),\n ...this.droppedOut\n );\n }\n\n toString(): string {\n return this.constructor.name;\n }\n}\n\nexport const mappings = {\n item: (property: string, options?: PropertyOptions): Property => new Property(property, options),\n ignore: (property = ''): Mapping => ({\n property,\n in: (): Optional<JsonValue> => undefined,\n out: (): Optional<JsonValue> => undefined,\n }),\n skipIn: (property: string): Mapping => ({\n property,\n in: (): Optional<JsonValue> => undefined,\n out: (source: Json = {}): JsonValue => source[property],\n }),\n skipOut: (property: string): Mapping => ({\n property,\n in: (source: Json = {}): JsonValue => source[property],\n out: (): Optional<JsonValue> => undefined,\n }),\n func: (property: string, funcIn: Get<Optional<JsonValue>, Json>, funcOut: Get<Optional<JsonValue>, Json>): Mapping => ({\n property,\n in: (source: Json = {}): Optional<JsonValue> => ofGet(funcIn, source),\n out: (source: Json = {}): Optional<JsonValue> => ofGet(funcOut, source),\n }),\n add: (funcIn: Get<JsonValue, Json>): Mapping => ({\n property: '',\n in: (source: Json = {}): JsonValue => ofGet(funcIn, source),\n out: (): Optional<JsonValue> => undefined,\n }),\n map: (mapper: Construct<Mapper>, property = ''): Mapping => ({\n property,\n in: (source: Json = {}): JsonValue => ofConstruct(mapper).in(isEmpty(property) ? source : (source[property] as Json)),\n out: (source: Json = {}, key = ''): JsonValue => ofConstruct(mapper).out(isEmpty(key) ? source : (source[key] as Json)),\n }),\n propsToList: (...maps: Mapping[]): Mapping => ({\n property: '',\n in: (source: Json = {}): JsonValue => toList(maps.map(m => ofConstruct(m).in(source))).toJSON(),\n out: (source: Json = {}, key = ''): JsonValue =>\n maps.reduce((a: Json, m, i) => {\n const res = toList(source[key])[i];\n const out = m.out(res as Json);\n return { ...a, [m.property]: out ?? {} };\n }, {}),\n }),\n list: (mapper: Mapping, property: string): Mapping => ({\n property,\n in: (source: Json = {}): JsonValue =>\n toList(source[property])\n .map((v: any) => mapper.in(v))\n .toJSON(),\n out: (source: Json = {}, key = ''): JsonValue =>\n toList(isEmpty(key) ? source : (source[key] as Json))\n .map((v: any) => mapper.out(v))\n .toJSON(),\n }),\n};\n"],"mappings":"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","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SqlQuery
3
- } from "./chunk-W4SWU2TX.mjs";
3
+ } from "./chunk-3AQKTTTC.mjs";
4
4
  import {
5
5
  toClause
6
6
  } from "./chunk-OKPGJD64.mjs";
@@ -23,4 +23,4 @@ var Update = class extends SqlQuery {
23
23
  export {
24
24
  Update
25
25
  };
26
- //# sourceMappingURL=chunk-RBTB5C4B.mjs.map
26
+ //# sourceMappingURL=chunk-SAOC5RCH.mjs.map