@elaraai/east 1.0.84 → 1.0.86

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 (247) hide show
  1. package/dist/src/analyze.d.ts.map +1 -1
  2. package/dist/src/analyze.js +48 -0
  3. package/dist/src/analyze.js.map +1 -1
  4. package/dist/src/ast_to_ir.coerce_to.spec.js +4 -4
  5. package/dist/src/ast_to_ir.coerce_to.spec.js.map +1 -1
  6. package/dist/src/ast_to_ir.d.ts +6 -1
  7. package/dist/src/ast_to_ir.d.ts.map +1 -1
  8. package/dist/src/ast_to_ir.js +20 -7
  9. package/dist/src/ast_to_ir.js.map +1 -1
  10. package/dist/src/builtins.d.ts +1 -1
  11. package/dist/src/builtins.d.ts.map +1 -1
  12. package/dist/src/builtins.js +52 -0
  13. package/dist/src/builtins.js.map +1 -1
  14. package/dist/src/codegen/canonical.d.ts +37 -0
  15. package/dist/src/codegen/canonical.d.ts.map +1 -0
  16. package/dist/src/codegen/canonical.js +208 -0
  17. package/dist/src/codegen/canonical.js.map +1 -0
  18. package/dist/src/codegen/codegen.spec.js +132 -201
  19. package/dist/src/codegen/codegen.spec.js.map +1 -1
  20. package/dist/src/codegen/printer.d.ts.map +1 -1
  21. package/dist/src/codegen/printer.js +142 -24
  22. package/dist/src/codegen/printer.js.map +1 -1
  23. package/dist/src/codegen/spellings.d.ts +4 -1
  24. package/dist/src/codegen/spellings.d.ts.map +1 -1
  25. package/dist/src/codegen/spellings.js +5 -1
  26. package/dist/src/codegen/spellings.js.map +1 -1
  27. package/dist/src/compile/builtins/index.d.ts.map +1 -1
  28. package/dist/src/compile/builtins/index.js +2 -0
  29. package/dist/src/compile/builtins/index.js.map +1 -1
  30. package/dist/src/compile/builtins/primitives.d.ts.map +1 -1
  31. package/dist/src/compile/builtins/primitives.js +2 -1
  32. package/dist/src/compile/builtins/primitives.js.map +1 -1
  33. package/dist/src/compile/builtins/query.d.ts +10 -0
  34. package/dist/src/compile/builtins/query.d.ts.map +1 -0
  35. package/dist/src/compile/builtins/query.js +5 -0
  36. package/dist/src/compile/builtins/query.js.map +1 -0
  37. package/dist/src/expr/block.d.ts.map +1 -1
  38. package/dist/src/expr/block.js +2 -1
  39. package/dist/src/expr/block.js.map +1 -1
  40. package/dist/src/expr/index.d.ts +75 -47
  41. package/dist/src/expr/index.d.ts.map +1 -1
  42. package/dist/src/expr/index.js +31 -0
  43. package/dist/src/expr/index.js.map +1 -1
  44. package/dist/src/expr/libs/datetime.d.ts +20 -20
  45. package/dist/src/expr/libs/datetime.d.ts.map +1 -1
  46. package/dist/src/expr/libs/datetime.js +208 -167
  47. package/dist/src/expr/libs/datetime.js.map +1 -1
  48. package/dist/src/expr/libs/float.d.ts +15 -15
  49. package/dist/src/expr/libs/float.d.ts.map +1 -1
  50. package/dist/src/expr/libs/float.js +298 -267
  51. package/dist/src/expr/libs/float.js.map +1 -1
  52. package/dist/src/expr/libs/integer.d.ts +12 -12
  53. package/dist/src/expr/libs/integer.d.ts.map +1 -1
  54. package/dist/src/expr/libs/integer.js +219 -194
  55. package/dist/src/expr/libs/integer.js.map +1 -1
  56. package/dist/src/expr/libs/lazy.d.ts +28 -0
  57. package/dist/src/expr/libs/lazy.d.ts.map +1 -0
  58. package/dist/src/expr/libs/lazy.js +55 -0
  59. package/dist/src/expr/libs/lazy.js.map +1 -0
  60. package/dist/src/expr/libs/lazy.spec.d.ts +6 -0
  61. package/dist/src/expr/libs/lazy.spec.d.ts.map +1 -0
  62. package/dist/src/expr/libs/lazy.spec.js +102 -0
  63. package/dist/src/expr/libs/lazy.spec.js.map +1 -0
  64. package/dist/src/expr/query.d.ts +60 -0
  65. package/dist/src/expr/query.d.ts.map +1 -0
  66. package/dist/src/expr/query.js +84 -0
  67. package/dist/src/expr/query.js.map +1 -0
  68. package/dist/src/functions.crossimport.spec.js +8 -0
  69. package/dist/src/functions.crossimport.spec.js.map +1 -1
  70. package/dist/src/functions.d.ts +45 -8
  71. package/dist/src/functions.d.ts.map +1 -1
  72. package/dist/src/functions.js +138 -28
  73. package/dist/src/functions.js.map +1 -1
  74. package/dist/src/functions.spec.js +60 -2
  75. package/dist/src/functions.spec.js.map +1 -1
  76. package/dist/src/index.d.ts +3 -0
  77. package/dist/src/index.d.ts.map +1 -1
  78. package/dist/src/index.js +3 -0
  79. package/dist/src/index.js.map +1 -1
  80. package/dist/src/internal.d.ts +4 -0
  81. package/dist/src/internal.d.ts.map +1 -1
  82. package/dist/src/internal.js +9 -0
  83. package/dist/src/internal.js.map +1 -1
  84. package/dist/src/location.d.ts +22 -0
  85. package/dist/src/location.d.ts.map +1 -1
  86. package/dist/src/location.js +31 -0
  87. package/dist/src/location.js.map +1 -1
  88. package/dist/src/naming.d.ts +5 -3
  89. package/dist/src/naming.d.ts.map +1 -1
  90. package/dist/src/naming.js.map +1 -1
  91. package/dist/src/portable.spec.d.ts +6 -0
  92. package/dist/src/portable.spec.d.ts.map +1 -0
  93. package/dist/src/portable.spec.js +181 -0
  94. package/dist/src/portable.spec.js.map +1 -0
  95. package/dist/src/query/evaluate.d.ts +98 -0
  96. package/dist/src/query/evaluate.d.ts.map +1 -0
  97. package/dist/src/query/evaluate.js +193 -0
  98. package/dist/src/query/evaluate.js.map +1 -0
  99. package/dist/src/query/index.d.ts +17 -0
  100. package/dist/src/query/index.d.ts.map +1 -0
  101. package/dist/src/query/index.js +17 -0
  102. package/dist/src/query/index.js.map +1 -0
  103. package/dist/src/query/jq/catalog.d.ts +174 -0
  104. package/dist/src/query/jq/catalog.d.ts.map +1 -0
  105. package/dist/src/query/jq/catalog.js +1740 -0
  106. package/dist/src/query/jq/catalog.js.map +1 -0
  107. package/dist/src/query/jq/check.d.ts +210 -0
  108. package/dist/src/query/jq/check.d.ts.map +1 -0
  109. package/dist/src/query/jq/check.js +2261 -0
  110. package/dist/src/query/jq/check.js.map +1 -0
  111. package/dist/src/query/jq/complete.d.ts +89 -0
  112. package/dist/src/query/jq/complete.d.ts.map +1 -0
  113. package/dist/src/query/jq/complete.js +320 -0
  114. package/dist/src/query/jq/complete.js.map +1 -0
  115. package/dist/src/query/jq/describe.d.ts +53 -0
  116. package/dist/src/query/jq/describe.d.ts.map +1 -0
  117. package/dist/src/query/jq/describe.js +149 -0
  118. package/dist/src/query/jq/describe.js.map +1 -0
  119. package/dist/src/query/jq/lex.d.ts +118 -0
  120. package/dist/src/query/jq/lex.d.ts.map +1 -0
  121. package/dist/src/query/jq/lex.js +371 -0
  122. package/dist/src/query/jq/lex.js.map +1 -0
  123. package/dist/src/query/jq/literals.d.ts +49 -0
  124. package/dist/src/query/jq/literals.d.ts.map +1 -0
  125. package/dist/src/query/jq/literals.js +78 -0
  126. package/dist/src/query/jq/literals.js.map +1 -0
  127. package/dist/src/query/jq/messages.d.ts +126 -0
  128. package/dist/src/query/jq/messages.d.ts.map +1 -0
  129. package/dist/src/query/jq/messages.js +172 -0
  130. package/dist/src/query/jq/messages.js.map +1 -0
  131. package/dist/src/query/jq/parse.d.ts +70 -0
  132. package/dist/src/query/jq/parse.d.ts.map +1 -0
  133. package/dist/src/query/jq/parse.js +1013 -0
  134. package/dist/src/query/jq/parse.js.map +1 -0
  135. package/dist/src/query/jq/print.d.ts +59 -0
  136. package/dist/src/query/jq/print.d.ts.map +1 -0
  137. package/dist/src/query/jq/print.js +587 -0
  138. package/dist/src/query/jq/print.js.map +1 -0
  139. package/dist/src/query/jq/shapes.d.ts +345 -0
  140. package/dist/src/query/jq/shapes.d.ts.map +1 -0
  141. package/dist/src/query/jq/shapes.js +584 -0
  142. package/dist/src/query/jq/shapes.js.map +1 -0
  143. package/dist/src/query/jq/spans.d.ts +133 -0
  144. package/dist/src/query/jq/spans.d.ts.map +1 -0
  145. package/dist/src/query/jq/spans.js +195 -0
  146. package/dist/src/query/jq/spans.js.map +1 -0
  147. package/dist/src/query/jq/split.d.ts +334 -0
  148. package/dist/src/query/jq/split.d.ts.map +1 -0
  149. package/dist/src/query/jq/split.js +2108 -0
  150. package/dist/src/query/jq/split.js.map +1 -0
  151. package/dist/src/query/jq/strftime.d.ts +20 -0
  152. package/dist/src/query/jq/strftime.d.ts.map +1 -0
  153. package/dist/src/query/jq/strftime.js +65 -0
  154. package/dist/src/query/jq/strftime.js.map +1 -0
  155. package/dist/src/query/jq/summary.d.ts +139 -0
  156. package/dist/src/query/jq/summary.d.ts.map +1 -0
  157. package/dist/src/query/jq/summary.js +222 -0
  158. package/dist/src/query/jq/summary.js.map +1 -0
  159. package/dist/src/query/jq/translate-builtins.d.ts +21 -0
  160. package/dist/src/query/jq/translate-builtins.d.ts.map +1 -0
  161. package/dist/src/query/jq/translate-builtins.js +1873 -0
  162. package/dist/src/query/jq/translate-builtins.js.map +1 -0
  163. package/dist/src/query/jq/translate.d.ts +627 -0
  164. package/dist/src/query/jq/translate.d.ts.map +1 -0
  165. package/dist/src/query/jq/translate.js +3364 -0
  166. package/dist/src/query/jq/translate.js.map +1 -0
  167. package/dist/src/query/types.d.ts +505 -0
  168. package/dist/src/query/types.d.ts.map +1 -0
  169. package/dist/src/query/types.js +231 -0
  170. package/dist/src/query/types.js.map +1 -0
  171. package/dist/src/runner_exec.d.ts +134 -0
  172. package/dist/src/runner_exec.d.ts.map +1 -0
  173. package/dist/src/runner_exec.js +371 -0
  174. package/dist/src/runner_exec.js.map +1 -0
  175. package/dist/src/runner_exec.spec.d.ts +6 -0
  176. package/dist/src/runner_exec.spec.d.ts.map +1 -0
  177. package/dist/src/runner_exec.spec.js +198 -0
  178. package/dist/src/runner_exec.spec.js.map +1 -0
  179. package/dist/src/runner_io.d.ts +370 -0
  180. package/dist/src/runner_io.d.ts.map +1 -0
  181. package/dist/src/runner_io.js +563 -0
  182. package/dist/src/runner_io.js.map +1 -0
  183. package/dist/src/runner_io.spec.d.ts +6 -0
  184. package/dist/src/runner_io.spec.d.ts.map +1 -0
  185. package/dist/src/runner_io.spec.js +224 -0
  186. package/dist/src/runner_io.spec.js.map +1 -0
  187. package/dist/src/runner_merge.d.ts +95 -0
  188. package/dist/src/runner_merge.d.ts.map +1 -0
  189. package/dist/src/runner_merge.js +238 -0
  190. package/dist/src/runner_merge.js.map +1 -0
  191. package/dist/src/runner_protocol.d.ts +11 -4
  192. package/dist/src/runner_protocol.d.ts.map +1 -1
  193. package/dist/src/runner_protocol.js +11 -4
  194. package/dist/src/runner_protocol.js.map +1 -1
  195. package/dist/src/serialization/beast2/index.d.ts +1 -1
  196. package/dist/src/serialization/beast2/index.d.ts.map +1 -1
  197. package/dist/src/serialization/beast2/index.js.map +1 -1
  198. package/dist/src/serialization/beast2/v5/frames.d.ts +10 -6
  199. package/dist/src/serialization/beast2/v5/frames.d.ts.map +1 -1
  200. package/dist/src/serialization/beast2/v5/frames.js +10 -6
  201. package/dist/src/serialization/beast2/v5/frames.js.map +1 -1
  202. package/dist/src/serialization/beast2/v5/frames.spec.d.ts +6 -0
  203. package/dist/src/serialization/beast2/v5/frames.spec.d.ts.map +1 -0
  204. package/dist/src/serialization/beast2/v5/frames.spec.js +42 -0
  205. package/dist/src/serialization/beast2/v5/frames.spec.js.map +1 -0
  206. package/dist/src/serialization/beast2/v5/index.spec.js +108 -0
  207. package/dist/src/serialization/beast2/v5/index.spec.js.map +1 -1
  208. package/dist/src/serialization/beast2/v5/lazy.d.ts +12 -7
  209. package/dist/src/serialization/beast2/v5/lazy.d.ts.map +1 -1
  210. package/dist/src/serialization/beast2/v5/lazy.js +16 -6
  211. package/dist/src/serialization/beast2/v5/lazy.js.map +1 -1
  212. package/dist/src/serialization/beast2/v5/lazy.spec.js +159 -18
  213. package/dist/src/serialization/beast2/v5/lazy.spec.js.map +1 -1
  214. package/dist/src/serialization/beast2/v5/stream.d.ts +110 -21
  215. package/dist/src/serialization/beast2/v5/stream.d.ts.map +1 -1
  216. package/dist/src/serialization/beast2/v5/stream.js +153 -42
  217. package/dist/src/serialization/beast2/v5/stream.js.map +1 -1
  218. package/dist/src/serialization/beast2/v5/weight.d.ts +36 -0
  219. package/dist/src/serialization/beast2/v5/weight.d.ts.map +1 -0
  220. package/dist/src/serialization/beast2/v5/weight.js +238 -0
  221. package/dist/src/serialization/beast2/v5/weight.js.map +1 -0
  222. package/dist/src/serialization/crc32.d.ts +38 -0
  223. package/dist/src/serialization/crc32.d.ts.map +1 -0
  224. package/dist/src/serialization/crc32.js +70 -0
  225. package/dist/src/serialization/crc32.js.map +1 -0
  226. package/dist/src/serialization/crc32.spec.d.ts +6 -0
  227. package/dist/src/serialization/crc32.spec.d.ts.map +1 -0
  228. package/dist/src/serialization/crc32.spec.js +92 -0
  229. package/dist/src/serialization/crc32.spec.js.map +1 -0
  230. package/dist/src/serialization/east-inferred.spec.js +4 -0
  231. package/dist/src/serialization/east-inferred.spec.js.map +1 -1
  232. package/dist/src/serialization/east.d.ts.map +1 -1
  233. package/dist/src/serialization/east.js +134 -110
  234. package/dist/src/serialization/east.js.map +1 -1
  235. package/dist/src/serialization/east.spec.js +185 -4
  236. package/dist/src/serialization/east.spec.js.map +1 -1
  237. package/dist/src/serialization/east_text.d.ts +25 -0
  238. package/dist/src/serialization/east_text.d.ts.map +1 -0
  239. package/dist/src/serialization/east_text.js +29 -0
  240. package/dist/src/serialization/east_text.js.map +1 -0
  241. package/dist/src/serialization/index.d.ts +1 -1
  242. package/dist/src/serialization/index.d.ts.map +1 -1
  243. package/dist/src/types.d.ts +1 -1
  244. package/dist/src/types.d.ts.map +1 -1
  245. package/dist/src/types.js +7 -6
  246. package/dist/src/types.js.map +1 -1
  247. package/package.json +6 -3
@@ -27,6 +27,7 @@ export { type CallableAsyncFunctionExpr, AsyncFunctionExpr } from './asyncfuncti
27
27
  import { from, equal, notEqual, less, lessEqual, print, is, greaterEqual, greater, func, str, platform, asyncFunction, asyncPlatform, genericPlatform, asyncGenericPlatform, compile, compileAsync, diff, applyPatch, composePatch, invertPatch, builtin, as, wrapRecursive, error } from './block.js';
28
28
  import { toSource } from '../codegen/index.js';
29
29
  import { importFunction, exportFunctions, encodeFunctionManifest, decodeFunctionManifest, linkImports, platformDependencies } from '../functions.js';
30
+ import { jq } from './query.js';
30
31
  export { BlockBuilder, type AsyncPlatformDefinition, type PlatformDefinition, type GenericPlatformDefinition, type AsyncGenericPlatformDefinition, type PlatformDeclaration, PLATFORM_DECLARATION, isPlatformDeclaration, equals, eq, notEquals, ne, lessThan, lt, lessThanOrEqual, lte, le, greaterThan, gt, greaterThanOrEqual, gte, ge, diff, applyPatch, composePatch, invertPatch } from './block.js';
31
32
  export type { ToExpr as ExprFactory } from './expr.js';
32
33
  /**
@@ -661,6 +662,33 @@ export declare const East: {
661
662
  * ```
662
663
  */
663
664
  invertPatch: typeof invertPatch;
665
+ /**
666
+ * A jq query over East values, as East code: parsed, checked against the
667
+ * inputs' types and translated to ordinary East IR when the program is
668
+ * built (`devdocs/QUERY.md` §15).
669
+ *
670
+ * @param input - an expression, or an object of named expressions the query
671
+ * reads as an e3 root
672
+ * @param program - the jq text
673
+ * @param resultType - the query's result type (its outputs' type for one
674
+ * output, an `Option` of it for at most one, an `Array` of it for any
675
+ * number), which the query must check to exactly
676
+ * @returns the query's result, an expression of `resultType`: typed by it,
677
+ * so its methods chain
678
+ * @throws {QueryError} When the query does not check, or does not check to
679
+ * `resultType`.
680
+ * @throws East runtime error if the query raises one as it runs.
681
+ *
682
+ * @example
683
+ * ```ts
684
+ * const Order = StructType({ id: IntegerType, total: FloatType });
685
+ * const bigOrders = East.function([ArrayType(Order)], ArrayType(IntegerType), ($, orders) =>
686
+ * East.jq(orders, "[.[] | select(.total > 1000) | .id]", ArrayType(IntegerType)));
687
+ * const compiled = East.compile(bigOrders, []);
688
+ * compiled([{ id: 1n, total: 250.0 }, { id: 2n, total: 1200.0 }]); // [2n]
689
+ * ```
690
+ */
691
+ jq: typeof jq;
664
692
  /**
665
693
  * Returns the minimum of two values using East's total ordering.
666
694
  *
@@ -718,18 +746,18 @@ export declare const East: {
718
746
  * ```
719
747
  */
720
748
  Integer: {
721
- printCommaSeperated: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
722
- printCurrency: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
723
- printCompact: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
724
- printCompactSI: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
725
- printCompactComputing: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
726
- printOrdinal: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
727
- digitCount: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").IntegerType>;
728
- roundNearest: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
729
- roundUp: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
730
- roundDown: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
731
- roundTruncate: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
732
- printPercentage: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
749
+ readonly printCommaSeperated: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
750
+ readonly printCurrency: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
751
+ readonly printCompact: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
752
+ readonly printCompactSI: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
753
+ readonly printCompactComputing: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
754
+ readonly printOrdinal: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
755
+ readonly digitCount: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").IntegerType>;
756
+ readonly roundNearest: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
757
+ readonly roundUp: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
758
+ readonly roundDown: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
759
+ readonly roundTruncate: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType, import("../types.js").IntegerType], import("../types.js").IntegerType>;
760
+ readonly printPercentage: import("./function.js").CallableFunctionExpr<[import("../types.js").IntegerType], import("../types.js").StringType>;
733
761
  };
734
762
  /**
735
763
  * Standard library functions for Float operations.
@@ -744,21 +772,21 @@ export declare const East: {
744
772
  * ```
745
773
  */
746
774
  Float: {
747
- approxEqual: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").BooleanType>;
748
- roundFloor: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
749
- roundCeil: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
750
- roundHalf: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
751
- roundTrunc: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
752
- roundNearest: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
753
- roundUp: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
754
- roundDown: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
755
- roundTruncate: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
756
- roundToDecimals: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").FloatType>;
757
- printCommaSeperated: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").StringType>;
758
- printCurrency: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").StringType>;
759
- printFixed: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").StringType>;
760
- printCompact: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").StringType>;
761
- printPercentage: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").StringType>;
775
+ readonly approxEqual: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").BooleanType>;
776
+ readonly roundFloor: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
777
+ readonly roundCeil: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
778
+ readonly roundHalf: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
779
+ readonly roundTrunc: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").IntegerType>;
780
+ readonly roundNearest: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
781
+ readonly roundUp: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
782
+ readonly roundDown: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
783
+ readonly roundTruncate: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").FloatType], import("../types.js").FloatType>;
784
+ readonly roundToDecimals: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").FloatType>;
785
+ readonly printCommaSeperated: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").StringType>;
786
+ readonly printCurrency: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").StringType>;
787
+ readonly printFixed: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").StringType>;
788
+ readonly printCompact: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType], import("../types.js").StringType>;
789
+ readonly printPercentage: import("./function.js").CallableFunctionExpr<[import("../types.js").FloatType, import("../types.js").IntegerType], import("../types.js").StringType>;
762
790
  };
763
791
  /**
764
792
  * Standard library functions for DateTime operations.
@@ -776,26 +804,26 @@ export declare const East: {
776
804
  fromEpochMilliseconds: typeof import("./datetime.js").fromEpochMilliseconds;
777
805
  fromComponents: typeof import("./datetime.js").fromComponents;
778
806
  parseFormatted: typeof import("./datetime.js").parseFormatted;
779
- roundDownMillisecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
780
- roundDownSecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
781
- roundDownMinute: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
782
- roundDownHour: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
783
- roundUpMillisecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
784
- roundNearestMillisecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
785
- roundUpSecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
786
- roundNearestSecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
787
- roundUpMinute: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
788
- roundNearestMinute: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
789
- roundUpHour: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
790
- roundNearestHour: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
791
- roundDownDay: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
792
- roundUpDay: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
793
- roundNearestDay: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
794
- roundDownWeek: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
795
- roundUpWeek: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
796
- roundNearestWeek: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
797
- roundDownMonth: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
798
- roundDownYear: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
807
+ readonly roundDownMillisecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
808
+ readonly roundDownSecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
809
+ readonly roundDownMinute: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
810
+ readonly roundDownHour: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
811
+ readonly roundUpMillisecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
812
+ readonly roundNearestMillisecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
813
+ readonly roundUpSecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
814
+ readonly roundNearestSecond: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
815
+ readonly roundUpMinute: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
816
+ readonly roundNearestMinute: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
817
+ readonly roundUpHour: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
818
+ readonly roundNearestHour: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
819
+ readonly roundDownDay: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
820
+ readonly roundUpDay: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
821
+ readonly roundNearestDay: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
822
+ readonly roundDownWeek: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
823
+ readonly roundUpWeek: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
824
+ readonly roundNearestWeek: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
825
+ readonly roundDownMonth: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
826
+ readonly roundDownYear: import("./function.js").CallableFunctionExpr<[import("../types.js").DateTimeType, import("../types.js").IntegerType], import("../types.js").DateTimeType>;
799
827
  };
800
828
  /**
801
829
  * Standard library functions for String operations.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/expr/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,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
30
30
  import { from, equal, notEqual, less, lessEqual, print, is, greaterEqual, greater, func, str, platform, asyncFunction, asyncPlatform, genericPlatform, asyncGenericPlatform, compile, compileAsync, equals, eq, notEquals, ne, lessThan, lt, lessThanOrEqual, lte, le, greaterThan, gt, greaterThanOrEqual, gte, ge, diff, applyPatch, composePatch, invertPatch, builtin, as, wrapRecursive, error } from './block.js';
31
31
  import { toSource } from '../codegen/index.js';
32
32
  import { importFunction, exportFunctions, encodeFunctionManifest, decodeFunctionManifest, linkImports, platformDependencies } from '../functions.js';
33
+ import { jq } from './query.js';
33
34
  export { BlockBuilder, PLATFORM_DECLARATION, isPlatformDeclaration, equals, eq, notEquals, ne, lessThan, lt, lessThanOrEqual, lte, le, greaterThan, gt, greaterThanOrEqual, gte, ge, diff, applyPatch, composePatch, invertPatch } from './block.js';
34
35
  // Import standard libraries
35
36
  import IntegerLib from './libs/integer.js';
@@ -702,6 +703,36 @@ export const East = {
702
703
  * ```
703
704
  */
704
705
  invertPatch,
706
+ // ============================================================================
707
+ // Queries
708
+ // ============================================================================
709
+ /**
710
+ * A jq query over East values, as East code: parsed, checked against the
711
+ * inputs' types and translated to ordinary East IR when the program is
712
+ * built (`devdocs/QUERY.md` §15).
713
+ *
714
+ * @param input - an expression, or an object of named expressions the query
715
+ * reads as an e3 root
716
+ * @param program - the jq text
717
+ * @param resultType - the query's result type (its outputs' type for one
718
+ * output, an `Option` of it for at most one, an `Array` of it for any
719
+ * number), which the query must check to exactly
720
+ * @returns the query's result, an expression of `resultType`: typed by it,
721
+ * so its methods chain
722
+ * @throws {QueryError} When the query does not check, or does not check to
723
+ * `resultType`.
724
+ * @throws East runtime error if the query raises one as it runs.
725
+ *
726
+ * @example
727
+ * ```ts
728
+ * const Order = StructType({ id: IntegerType, total: FloatType });
729
+ * const bigOrders = East.function([ArrayType(Order)], ArrayType(IntegerType), ($, orders) =>
730
+ * East.jq(orders, "[.[] | select(.total > 1000) | .id]", ArrayType(IntegerType)));
731
+ * const compiled = East.compile(bigOrders, []);
732
+ * compiled([{ id: 1n, total: 250.0 }, { id: 2n, total: 1200.0 }]); // [2n]
733
+ * ```
734
+ */
735
+ jq,
705
736
  // Root stdlib
706
737
  /**
707
738
  * Returns the minimum of two values using East's total ordering.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/expr/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sBAAsB;AACtB,cAAc,YAAY,CAAC;AAE3B,+CAA+C;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC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AEjB;;;;;;;;OAQG;IACH,IAAI,EAAE,OAAO;IAEb;;;;;;;;;;OAUG;IACH,KAAK,EAAE,QAAQ;IAEf;;;OAGG;IACH,MAAM,EAAE,SAAS;IAEjB;;;OAGG;IACH,MAAM,EAAE,SAAS;IAEjB;;;;;;;;OAQG;IACH,GAAG,EAAE,MAAM;IAEX;;;;;;;;;;;;;;OAcG;IACH,IAAI,EAAE,OAAO;CACd,CAAC"}
@@ -133,7 +133,7 @@ declare const _default: {
133
133
  * compiled(East.DateTime.fromEpochMilliseconds(1234n), 100n); // Rounded to 1200ms
134
134
  * ```
135
135
  */
136
- roundDownMillisecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
136
+ readonly roundDownMillisecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
137
137
  /**
138
138
  * Rounds a DateTime down to the nearest multiple of seconds.
139
139
  *
@@ -151,7 +151,7 @@ declare const _default: {
151
151
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 0n, 0n, 45n), 30n); // Rounds to 30s
152
152
  * ```
153
153
  */
154
- roundDownSecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
154
+ readonly roundDownSecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
155
155
  /**
156
156
  * Rounds a DateTime down to the nearest multiple of minutes.
157
157
  *
@@ -169,7 +169,7 @@ declare const _default: {
169
169
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 0n, 22n), 15n); // Rounds to 15 min
170
170
  * ```
171
171
  */
172
- roundDownMinute: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
172
+ readonly roundDownMinute: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
173
173
  /**
174
174
  * Rounds a DateTime down to the nearest multiple of hours.
175
175
  *
@@ -187,7 +187,7 @@ declare const _default: {
187
187
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 8n), 6n); // Rounds to 6:00
188
188
  * ```
189
189
  */
190
- roundDownHour: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
190
+ readonly roundDownHour: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
191
191
  /**
192
192
  * Rounds a DateTime up to the nearest multiple of milliseconds.
193
193
  *
@@ -205,7 +205,7 @@ declare const _default: {
205
205
  * compiled(East.DateTime.fromEpochMilliseconds(1234n), 100n); // Rounds to 1300ms
206
206
  * ```
207
207
  */
208
- roundUpMillisecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
208
+ readonly roundUpMillisecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
209
209
  /**
210
210
  * Rounds a DateTime to the nearest multiple of milliseconds.
211
211
  *
@@ -224,7 +224,7 @@ declare const _default: {
224
224
  * compiled(East.DateTime.fromEpochMilliseconds(1289n), 100n); // Rounds to 1300ms
225
225
  * ```
226
226
  */
227
- roundNearestMillisecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
227
+ readonly roundNearestMillisecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
228
228
  /**
229
229
  * Rounds a DateTime up to the nearest multiple of seconds.
230
230
  *
@@ -242,7 +242,7 @@ declare const _default: {
242
242
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 0n, 0n, 15n), 30n); // Rounds to 30s
243
243
  * ```
244
244
  */
245
- roundUpSecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
245
+ readonly roundUpSecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
246
246
  /**
247
247
  * Rounds a DateTime to the nearest multiple of seconds.
248
248
  *
@@ -261,7 +261,7 @@ declare const _default: {
261
261
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 0n, 0n, 38n), 30n); // Rounds to 30s
262
262
  * ```
263
263
  */
264
- roundNearestSecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
264
+ readonly roundNearestSecond: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
265
265
  /**
266
266
  * Rounds a DateTime up to the nearest multiple of minutes.
267
267
  *
@@ -279,7 +279,7 @@ declare const _default: {
279
279
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 0n, 22n), 15n); // Rounds to 30 min
280
280
  * ```
281
281
  */
282
- roundUpMinute: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
282
+ readonly roundUpMinute: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
283
283
  /**
284
284
  * Rounds a DateTime to the nearest multiple of minutes.
285
285
  *
@@ -298,7 +298,7 @@ declare const _default: {
298
298
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 0n, 38n), 15n); // Rounds to 45 min
299
299
  * ```
300
300
  */
301
- roundNearestMinute: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
301
+ readonly roundNearestMinute: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
302
302
  /**
303
303
  * Rounds a DateTime up to the nearest multiple of hours.
304
304
  *
@@ -316,7 +316,7 @@ declare const _default: {
316
316
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 8n), 6n); // Rounds to 12:00
317
317
  * ```
318
318
  */
319
- roundUpHour: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
319
+ readonly roundUpHour: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
320
320
  /**
321
321
  * Rounds a DateTime to the nearest multiple of hours.
322
322
  *
@@ -335,7 +335,7 @@ declare const _default: {
335
335
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 10n), 6n); // Rounds to 12:00
336
336
  * ```
337
337
  */
338
- roundNearestHour: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
338
+ readonly roundNearestHour: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
339
339
  /**
340
340
  * Rounds a DateTime down to the nearest multiple of days.
341
341
  *
@@ -353,7 +353,7 @@ declare const _default: {
353
353
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 12n, 30n), 1n); // Rounds to start of day
354
354
  * ```
355
355
  */
356
- roundDownDay: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
356
+ readonly roundDownDay: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
357
357
  /**
358
358
  * Rounds a DateTime up to the nearest multiple of days.
359
359
  *
@@ -371,7 +371,7 @@ declare const _default: {
371
371
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 12n, 30n), 1n); // Rounds to next day start
372
372
  * ```
373
373
  */
374
- roundUpDay: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
374
+ readonly roundUpDay: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
375
375
  /**
376
376
  * Rounds a DateTime to the nearest multiple of days.
377
377
  *
@@ -390,7 +390,7 @@ declare const _default: {
390
390
  * compiled(East.DateTime.fromComponents(2025n, 1n, 1n, 16n), 1n); // Rounds to next day start
391
391
  * ```
392
392
  */
393
- roundNearestDay: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
393
+ readonly roundNearestDay: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
394
394
  /**
395
395
  * Rounds a DateTime down to the nearest Monday (ISO week start).
396
396
  *
@@ -408,7 +408,7 @@ declare const _default: {
408
408
  * compiled(East.DateTime.fromComponents(2025n, 1n, 3n), 1n); // Rounds to previous Monday
409
409
  * ```
410
410
  */
411
- roundDownWeek: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
411
+ readonly roundDownWeek: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
412
412
  /**
413
413
  * Rounds a DateTime up to the nearest Monday (ISO week start).
414
414
  *
@@ -426,7 +426,7 @@ declare const _default: {
426
426
  * compiled(East.DateTime.fromComponents(2025n, 1n, 3n), 1n); // Rounds to next Monday
427
427
  * ```
428
428
  */
429
- roundUpWeek: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
429
+ readonly roundUpWeek: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
430
430
  /**
431
431
  * Rounds a DateTime to the nearest Monday (ISO week start).
432
432
  *
@@ -444,7 +444,7 @@ declare const _default: {
444
444
  * compiled(East.DateTime.fromComponents(2025n, 1n, 3n), 1n); // Rounds to closest Monday
445
445
  * ```
446
446
  */
447
- roundNearestWeek: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
447
+ readonly roundNearestWeek: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
448
448
  /**
449
449
  * Rounds a DateTime down to the nearest month boundary.
450
450
  *
@@ -464,7 +464,7 @@ declare const _default: {
464
464
  * compiled(East.DateTime.fromComponents(2025n, 5n, 15n), 3n); // Rounds to Apr 1, 2025
465
465
  * ```
466
466
  */
467
- roundDownMonth: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
467
+ readonly roundDownMonth: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
468
468
  /**
469
469
  * Rounds a DateTime down to the nearest year boundary.
470
470
  *
@@ -484,7 +484,7 @@ declare const _default: {
484
484
  * compiled(East.DateTime.fromComponents(2025n, 6n, 15n), 10n); // Rounds to Jan 1, 2020
485
485
  * ```
486
486
  */
487
- roundDownYear: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
487
+ readonly roundDownYear: import("../function.js").CallableFunctionExpr<[DateTimeType, IntegerType], DateTimeType>;
488
488
  };
489
489
  export default _default;
490
490
  //# sourceMappingURL=datetime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../../src/expr/libs/datetime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGvF,+CAA+C;;IAE7C;;;;;;;;;;;;;;;;;;;OAmBG;;IAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;;IAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;;IAGH;;;;;;;;;;;;;;;;OAgBG;;IAUH;;;;;;;;;;;;;;;;OAgBG;;IAWH;;;;;;;;;;;;;;;;OAgBG;;IAWH;;;;;;;;;;;;;;;;OAgBG;;IAWH;;;;;;;;;;;;;;;;OAgBG;;IAeH;;;;;;;;;;;;;;;;;OAiBG;;IAmBH;;;;;;;;;;;;;;;;OAgBG;;IAgBH;;;;;;;;;;;;;;;;;OAiBG;;IAoBH;;;;;;;;;;;;;;;;OAgBG;;IAgBH;;;;;;;;;;;;;;;;;OAiBG;;IAoBH;;;;;;;;;;;;;;;;OAgBG;;IAgBH;;;;;;;;;;;;;;;;;OAiBG;;IAoBH;;;;;;;;;;;;;;;;OAgBG;;IAYH;;;;;;;;;;;;;;;;OAgBG;;IAgBH;;;;;;;;;;;;;;;;;OAiBG;;IAoBH;;;;;;;;;;;;;;;;OAgBG;;IAmBH;;;;;;;;;;;;;;;;OAgBG;;IAwBH;;;;;;;;;;;;;;;;OAgBG;;IA4BH;;;;;;;;;;;;;;;;;;OAkBG;;IAkBH;;;;;;;;;;;;;;;;;;OAkBG;;;AA7vBL,wBAywBC"}
1
+ {"version":3,"file":"datetime.d.ts","sour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