@mongodb-js/compass-aggregations 0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246 → 0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba

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 (338) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/index.css +53 -164
  3. package/dist/index.js +22 -1
  4. package/dist/src/components/add-stage/add-stage.d.ts +17 -0
  5. package/dist/src/components/add-stage/add-stage.d.ts.map +1 -0
  6. package/dist/src/components/add-stage/index.d.ts +3 -0
  7. package/dist/src/components/add-stage/index.d.ts.map +1 -0
  8. package/dist/src/components/aggregations/aggregations.d.ts +11 -0
  9. package/dist/src/components/aggregations/aggregations.d.ts.map +1 -0
  10. package/dist/src/components/aggregations/index.d.ts +5 -0
  11. package/dist/src/components/aggregations/index.d.ts.map +1 -0
  12. package/dist/src/components/create-view-modal/create-view-modal.d.ts +63 -0
  13. package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -0
  14. package/dist/src/components/create-view-modal/index.d.ts +5 -0
  15. package/dist/src/components/create-view-modal/index.d.ts.map +1 -0
  16. package/dist/src/components/create-view-plugin.d.ts +14 -0
  17. package/dist/src/components/create-view-plugin.d.ts.map +1 -0
  18. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +57 -0
  19. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -0
  20. package/dist/src/components/duplicate-view-modal/index.d.ts +5 -0
  21. package/dist/src/components/duplicate-view-modal/index.d.ts.map +1 -0
  22. package/dist/src/components/duplicate-view-plugin.d.ts +10 -0
  23. package/dist/src/components/duplicate-view-plugin.d.ts.map +1 -0
  24. package/dist/src/components/input/index.d.ts +3 -0
  25. package/dist/src/components/input/index.d.ts.map +1 -0
  26. package/dist/src/components/input/input.d.ts +25 -0
  27. package/dist/src/components/input/input.d.ts.map +1 -0
  28. package/dist/src/components/input-builder/index.d.ts +3 -0
  29. package/dist/src/components/input-builder/index.d.ts.map +1 -0
  30. package/dist/src/components/input-builder/input-builder.d.ts +9 -0
  31. package/dist/src/components/input-builder/input-builder.d.ts.map +1 -0
  32. package/dist/src/components/input-builder-toolbar/index.d.ts +3 -0
  33. package/dist/src/components/input-builder-toolbar/index.d.ts.map +1 -0
  34. package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts +16 -0
  35. package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts.map +1 -0
  36. package/dist/src/components/input-collapser/index.d.ts +3 -0
  37. package/dist/src/components/input-collapser/index.d.ts.map +1 -0
  38. package/dist/src/components/input-collapser/input-collapser.d.ts +14 -0
  39. package/dist/src/components/input-collapser/input-collapser.d.ts.map +1 -0
  40. package/dist/src/components/input-documents-count/index.d.ts +3 -0
  41. package/dist/src/components/input-documents-count/index.d.ts.map +1 -0
  42. package/dist/src/components/input-documents-count/input-documents-count.d.ts +13 -0
  43. package/dist/src/components/input-documents-count/input-documents-count.d.ts.map +1 -0
  44. package/dist/src/components/input-preview/index.d.ts +3 -0
  45. package/dist/src/components/input-preview/index.d.ts.map +1 -0
  46. package/dist/src/components/input-preview/input-preview.d.ts +15 -0
  47. package/dist/src/components/input-preview/input-preview.d.ts.map +1 -0
  48. package/dist/src/components/input-preview-toolbar/index.d.ts +3 -0
  49. package/dist/src/components/input-preview-toolbar/index.d.ts.map +1 -0
  50. package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts +7 -0
  51. package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts.map +1 -0
  52. package/dist/src/components/input-refresh/index.d.ts +3 -0
  53. package/dist/src/components/input-refresh/index.d.ts.map +1 -0
  54. package/dist/src/components/input-refresh/input-refresh.d.ts +13 -0
  55. package/dist/src/components/input-refresh/input-refresh.d.ts.map +1 -0
  56. package/dist/src/components/input-toolbar/index.d.ts +3 -0
  57. package/dist/src/components/input-toolbar/index.d.ts.map +1 -0
  58. package/dist/src/components/input-toolbar/input-toolbar.d.ts +16 -0
  59. package/dist/src/components/input-toolbar/input-toolbar.d.ts.map +1 -0
  60. package/dist/src/components/input-workspace/index.d.ts +3 -0
  61. package/dist/src/components/input-workspace/index.d.ts.map +1 -0
  62. package/dist/src/components/input-workspace/input-workspace.d.ts +16 -0
  63. package/dist/src/components/input-workspace/input-workspace.d.ts.map +1 -0
  64. package/dist/src/components/loading-overlay/index.d.ts +3 -0
  65. package/dist/src/components/loading-overlay/index.d.ts.map +1 -0
  66. package/dist/src/components/loading-overlay/loading-overlay.d.ts +13 -0
  67. package/dist/src/components/loading-overlay/loading-overlay.d.ts.map +1 -0
  68. package/dist/src/components/modify-source-banner/index.d.ts +3 -0
  69. package/dist/src/components/modify-source-banner/index.d.ts.map +1 -0
  70. package/dist/src/components/modify-source-banner/modify-source-banner.d.ts +9 -0
  71. package/dist/src/components/modify-source-banner/modify-source-banner.d.ts.map +1 -0
  72. package/dist/src/components/pipeline/index.d.ts +3 -0
  73. package/dist/src/components/pipeline/index.d.ts.map +1 -0
  74. package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts +17 -0
  75. package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts.map +1 -0
  76. package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts +17 -0
  77. package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts.map +1 -0
  78. package/dist/src/components/pipeline/modals/import-pipeline.d.ts +33 -0
  79. package/dist/src/components/pipeline/modals/import-pipeline.d.ts.map +1 -0
  80. package/dist/src/components/pipeline/pipeline.d.ts +61 -0
  81. package/dist/src/components/pipeline/pipeline.d.ts.map +1 -0
  82. package/dist/src/components/pipeline-builder-workspace/index.d.ts +3 -0
  83. package/dist/src/components/pipeline-builder-workspace/index.d.ts.map +1 -0
  84. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts +8 -0
  85. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -0
  86. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +16 -0
  87. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -0
  88. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts +12 -0
  89. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -0
  90. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts +13 -0
  91. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts.map +1 -0
  92. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts +21 -0
  93. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts.map +1 -0
  94. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts +9 -0
  95. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts.map +1 -0
  96. package/dist/src/components/pipeline-explain/explain-indexes.d.ts +8 -0
  97. package/dist/src/components/pipeline-explain/explain-indexes.d.ts.map +1 -0
  98. package/dist/src/components/pipeline-explain/explain-query-performance.d.ts +10 -0
  99. package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +1 -0
  100. package/dist/src/components/pipeline-explain/explain-results.d.ts +9 -0
  101. package/dist/src/components/pipeline-explain/explain-results.d.ts.map +1 -0
  102. package/dist/src/components/pipeline-explain/index.d.ts +14 -0
  103. package/dist/src/components/pipeline-explain/index.d.ts.map +1 -0
  104. package/dist/src/components/pipeline-output-options-menu.d.ts +7 -0
  105. package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -0
  106. package/dist/src/components/pipeline-results-workspace/index.d.ts +20 -0
  107. package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -0
  108. package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts +4 -0
  109. package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts.map +1 -0
  110. package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts +10 -0
  111. package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts.map +1 -0
  112. package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts +19 -0
  113. package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts.map +1 -0
  114. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +14 -0
  115. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts.map +1 -0
  116. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts +10 -0
  117. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -0
  118. package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts +8 -0
  119. package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts.map +1 -0
  120. package/dist/src/components/pipeline-toolbar/index.d.ts +15 -0
  121. package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -0
  122. package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts +20 -0
  123. package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts.map +1 -0
  124. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts +21 -0
  125. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts.map +1 -0
  126. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts +13 -0
  127. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts.map +1 -0
  128. package/dist/src/components/pipeline-toolbar/pipeline-options/index.d.ts +4 -0
  129. package/dist/src/components/pipeline-toolbar/pipeline-options/index.d.ts.map +1 -0
  130. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts +24 -0
  131. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts.map +1 -0
  132. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +11 -0
  133. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts.map +1 -0
  134. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts +14 -0
  135. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -0
  136. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts +19 -0
  137. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts.map +1 -0
  138. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts +9 -0
  139. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts.map +1 -0
  140. package/dist/src/components/resize-handle/resize-handle.d.ts +7 -0
  141. package/dist/src/components/resize-handle/resize-handle.d.ts.map +1 -0
  142. package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts +10 -0
  143. package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts.map +1 -0
  144. package/dist/src/components/saved-pipelines/saved-pipelines.d.ts +12 -0
  145. package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -0
  146. package/dist/src/components/saving-pipeline-modal/index.d.ts +3 -0
  147. package/dist/src/components/saving-pipeline-modal/index.d.ts.map +1 -0
  148. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts +22 -0
  149. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -0
  150. package/dist/src/components/settings/index.d.ts +3 -0
  151. package/dist/src/components/settings/index.d.ts.map +1 -0
  152. package/dist/src/components/settings/settings.d.ts +23 -0
  153. package/dist/src/components/settings/settings.d.ts.map +1 -0
  154. package/dist/src/components/stage/index.d.ts +3 -0
  155. package/dist/src/components/stage/index.d.ts.map +1 -0
  156. package/dist/src/components/stage/stage.d.ts +29 -0
  157. package/dist/src/components/stage/stage.d.ts.map +1 -0
  158. package/dist/src/components/stage-editor/index.d.ts +3 -0
  159. package/dist/src/components/stage-editor/index.d.ts.map +1 -0
  160. package/dist/src/components/stage-editor/stage-editor.d.ts +49 -0
  161. package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -0
  162. package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts +18 -0
  163. package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts.map +1 -0
  164. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts +18 -0
  165. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts.map +1 -0
  166. package/dist/src/components/stage-editor-toolbar/index.d.ts +3 -0
  167. package/dist/src/components/stage-editor-toolbar/index.d.ts.map +1 -0
  168. package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts +14 -0
  169. package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts.map +1 -0
  170. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts +20 -0
  171. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts.map +1 -0
  172. package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts +21 -0
  173. package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts.map +1 -0
  174. package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts +9 -0
  175. package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts.map +1 -0
  176. package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts +24 -0
  177. package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts.map +1 -0
  178. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts +20 -0
  179. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts.map +1 -0
  180. package/dist/src/components/stage-preview/index.d.ts +3 -0
  181. package/dist/src/components/stage-preview/index.d.ts.map +1 -0
  182. package/dist/src/components/stage-preview/stage-preview.d.ts +49 -0
  183. package/dist/src/components/stage-preview/stage-preview.d.ts.map +1 -0
  184. package/dist/src/components/stage-preview-toolbar/index.d.ts +3 -0
  185. package/dist/src/components/stage-preview-toolbar/index.d.ts.map +1 -0
  186. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts +25 -0
  187. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts.map +1 -0
  188. package/dist/src/constants.d.ts +4 -0
  189. package/dist/src/constants.d.ts.map +1 -0
  190. package/dist/src/index.d.ts +16 -0
  191. package/dist/src/index.d.ts.map +1 -0
  192. package/dist/src/modules/aggregation-workspace-id.d.ts +4 -0
  193. package/dist/src/modules/aggregation-workspace-id.d.ts.map +1 -0
  194. package/dist/src/modules/aggregation.d.ts +74 -0
  195. package/dist/src/modules/aggregation.d.ts.map +1 -0
  196. package/dist/src/modules/auto-preview.d.ts +13 -0
  197. package/dist/src/modules/auto-preview.d.ts.map +1 -0
  198. package/dist/src/modules/clone-pipeline.d.ts +5 -0
  199. package/dist/src/modules/clone-pipeline.d.ts.map +1 -0
  200. package/dist/src/modules/collation-string.d.ts +17 -0
  201. package/dist/src/modules/collation-string.d.ts.map +1 -0
  202. package/dist/src/modules/comments.d.ts +3 -0
  203. package/dist/src/modules/comments.d.ts.map +1 -0
  204. package/dist/src/modules/count-documents.d.ts +30 -0
  205. package/dist/src/modules/count-documents.d.ts.map +1 -0
  206. package/dist/src/modules/create-view/error.d.ts +7 -0
  207. package/dist/src/modules/create-view/error.d.ts.map +1 -0
  208. package/dist/src/modules/create-view/index.d.ts +21 -0
  209. package/dist/src/modules/create-view/index.d.ts.map +1 -0
  210. package/dist/src/modules/create-view/is-duplicating.d.ts +5 -0
  211. package/dist/src/modules/create-view/is-duplicating.d.ts.map +1 -0
  212. package/dist/src/modules/create-view/is-running.d.ts +5 -0
  213. package/dist/src/modules/create-view/is-running.d.ts.map +1 -0
  214. package/dist/src/modules/create-view/is-visible.d.ts +8 -0
  215. package/dist/src/modules/create-view/is-visible.d.ts.map +1 -0
  216. package/dist/src/modules/create-view/name.d.ts +5 -0
  217. package/dist/src/modules/create-view/name.d.ts.map +1 -0
  218. package/dist/src/modules/create-view/pipeline.d.ts +5 -0
  219. package/dist/src/modules/create-view/pipeline.d.ts.map +1 -0
  220. package/dist/src/modules/create-view/reset.d.ts +3 -0
  221. package/dist/src/modules/create-view/reset.d.ts.map +1 -0
  222. package/dist/src/modules/create-view/source.d.ts +5 -0
  223. package/dist/src/modules/create-view/source.d.ts.map +1 -0
  224. package/dist/src/modules/data-service.d.ts +12 -0
  225. package/dist/src/modules/data-service.d.ts.map +1 -0
  226. package/dist/src/modules/edit-view-name.d.ts +3 -0
  227. package/dist/src/modules/edit-view-name.d.ts.map +1 -0
  228. package/dist/src/modules/env.d.ts +3 -0
  229. package/dist/src/modules/env.d.ts.map +1 -0
  230. package/dist/src/modules/explain.d.ts +57 -0
  231. package/dist/src/modules/explain.d.ts.map +1 -0
  232. package/dist/src/modules/export-to-language.d.ts +2 -0
  233. package/dist/src/modules/export-to-language.d.ts.map +1 -0
  234. package/dist/src/modules/fields.d.ts +5 -0
  235. package/dist/src/modules/fields.d.ts.map +1 -0
  236. package/dist/src/modules/id.d.ts +7 -0
  237. package/dist/src/modules/id.d.ts.map +1 -0
  238. package/dist/src/modules/import-pipeline.d.ts +20 -0
  239. package/dist/src/modules/import-pipeline.d.ts.map +1 -0
  240. package/dist/src/modules/index.d.ts +74 -0
  241. package/dist/src/modules/index.d.ts.map +1 -0
  242. package/dist/src/modules/indexes.d.ts +22 -0
  243. package/dist/src/modules/indexes.d.ts.map +1 -0
  244. package/dist/src/modules/input-documents.d.ts +17 -0
  245. package/dist/src/modules/input-documents.d.ts.map +1 -0
  246. package/dist/src/modules/is-atlas-deployed.d.ts +3 -0
  247. package/dist/src/modules/is-atlas-deployed.d.ts.map +1 -0
  248. package/dist/src/modules/is-datalake.d.ts +6 -0
  249. package/dist/src/modules/is-datalake.d.ts.map +1 -0
  250. package/dist/src/modules/is-modified.d.ts +2 -0
  251. package/dist/src/modules/is-modified.d.ts.map +1 -0
  252. package/dist/src/modules/is-new-pipeline-confirm.d.ts +5 -0
  253. package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -0
  254. package/dist/src/modules/is-readonly.d.ts +3 -0
  255. package/dist/src/modules/is-readonly.d.ts.map +1 -0
  256. package/dist/src/modules/is-time-series.d.ts +3 -0
  257. package/dist/src/modules/is-time-series.d.ts.map +1 -0
  258. package/dist/src/modules/large-limit.d.ts +3 -0
  259. package/dist/src/modules/large-limit.d.ts.map +1 -0
  260. package/dist/src/modules/limit.d.ts +3 -0
  261. package/dist/src/modules/limit.d.ts.map +1 -0
  262. package/dist/src/modules/link.d.ts +2 -0
  263. package/dist/src/modules/link.d.ts.map +1 -0
  264. package/dist/src/modules/max-time-ms.d.ts +11 -0
  265. package/dist/src/modules/max-time-ms.d.ts.map +1 -0
  266. package/dist/src/modules/name.d.ts +3 -0
  267. package/dist/src/modules/name.d.ts.map +1 -0
  268. package/dist/src/modules/namespace.d.ts +3 -0
  269. package/dist/src/modules/namespace.d.ts.map +1 -0
  270. package/dist/src/modules/out-results-fn.d.ts +6 -0
  271. package/dist/src/modules/out-results-fn.d.ts.map +1 -0
  272. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +9 -0
  273. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -0
  274. package/dist/src/modules/pipeline-builder/index.d.ts +14 -0
  275. package/dist/src/modules/pipeline-builder/index.d.ts.map +1 -0
  276. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +37 -0
  277. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -0
  278. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts +23 -0
  279. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -0
  280. package/dist/src/modules/pipeline-builder/pipeline-parser/index.d.ts +3 -0
  281. package/dist/src/modules/pipeline-builder/pipeline-parser/index.d.ts.map +1 -0
  282. package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts +19 -0
  283. package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts.map +1 -0
  284. package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts +19 -0
  285. package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts.map +1 -0
  286. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +15 -0
  287. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -0
  288. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +20 -0
  289. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -0
  290. package/dist/src/modules/pipeline-builder/stage-editor.d.ts +110 -0
  291. package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -0
  292. package/dist/src/modules/pipeline-builder/stage.d.ts +18 -0
  293. package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -0
  294. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +13 -0
  295. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -0
  296. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts +41 -0
  297. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -0
  298. package/dist/src/modules/projections.d.ts +4 -0
  299. package/dist/src/modules/projections.d.ts.map +1 -0
  300. package/dist/src/modules/saved-pipeline.d.ts +28 -0
  301. package/dist/src/modules/saved-pipeline.d.ts.map +1 -0
  302. package/dist/src/modules/saving-pipeline.d.ts +21 -0
  303. package/dist/src/modules/saving-pipeline.d.ts.map +1 -0
  304. package/dist/src/modules/server-version.d.ts +3 -0
  305. package/dist/src/modules/server-version.d.ts.map +1 -0
  306. package/dist/src/modules/settings.d.ts +33 -0
  307. package/dist/src/modules/settings.d.ts.map +1 -0
  308. package/dist/src/modules/source-name.d.ts +3 -0
  309. package/dist/src/modules/source-name.d.ts.map +1 -0
  310. package/dist/src/modules/update-view.d.ts +8 -0
  311. package/dist/src/modules/update-view.d.ts.map +1 -0
  312. package/dist/src/modules/workspace.d.ts +17 -0
  313. package/dist/src/modules/workspace.d.ts.map +1 -0
  314. package/dist/src/plugin.d.ts +24 -0
  315. package/dist/src/plugin.d.ts.map +1 -0
  316. package/dist/src/stores/create-view.d.ts +4 -0
  317. package/dist/src/stores/create-view.d.ts.map +1 -0
  318. package/dist/src/stores/duplicate-view.d.ts +3 -0
  319. package/dist/src/stores/duplicate-view.d.ts.map +1 -0
  320. package/dist/src/stores/index.d.ts +4 -0
  321. package/dist/src/stores/index.d.ts.map +1 -0
  322. package/dist/src/stores/store.d.ts +6 -0
  323. package/dist/src/stores/store.d.ts.map +1 -0
  324. package/dist/src/utils/cancellable-aggregation.d.ts +12 -0
  325. package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -0
  326. package/dist/src/utils/cancellable-promise.d.ts +10 -0
  327. package/dist/src/utils/cancellable-promise.d.ts.map +1 -0
  328. package/dist/src/utils/configure-store.d.ts +5 -0
  329. package/dist/src/utils/configure-store.d.ts.map +1 -0
  330. package/dist/src/utils/get-directory.d.ts +2 -0
  331. package/dist/src/utils/get-directory.d.ts.map +1 -0
  332. package/dist/src/utils/is-action.d.ts +3 -0
  333. package/dist/src/utils/is-action.d.ts.map +1 -0
  334. package/dist/src/utils/pipeline-storage.d.ts +40 -0
  335. package/dist/src/utils/pipeline-storage.d.ts.map +1 -0
  336. package/dist/src/utils/stage.d.ts +15 -0
  337. package/dist/src/utils/stage.d.ts.map +1 -0
  338. package/package.json +38 -35
@@ -0,0 +1,6 @@
1
+ import type { Reducer } from 'redux';
2
+ declare type State = boolean;
3
+ export declare const INITIAL_STATE: State;
4
+ declare const reducer: Reducer<State>;
5
+ export default reducer;
6
+ //# sourceMappingURL=is-datalake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-datalake.d.ts","sourceRoot":"","sources":["../../../src/modules/is-datalake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErC,aAAK,KAAK,GAAG,OAAO,CAAC;AAErB,eAAO,MAAM,aAAa,EAAE,KAAa,CAAC;AAE1C,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAE3B,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function reducer(state: boolean | undefined, action: Object): boolean;
2
+ //# sourceMappingURL=is-modified.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-modified.d.ts","sourceRoot":"","sources":["../../../src/modules/is-modified.js"],"names":[],"mappings":"AAcA,oEAJW,MAAM,WA0BhB"}
@@ -0,0 +1,5 @@
1
+ export default function reducer(state: boolean | undefined, action: Object): boolean;
2
+ export const SET_IS_NEW_PIPELINE_CONFIRM: string;
3
+ export const INITIAL_STATE: false;
4
+ export function setIsNewPipelineConfirm(isNewPipelineConfirm: boolean): import("redux").AnyAction;
5
+ //# sourceMappingURL=is-new-pipeline-confirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-new-pipeline-confirm.d.ts","sourceRoot":"","sources":["../../../src/modules/is-new-pipeline-confirm.js"],"names":[],"mappings":"AAyBA,oEAJW,MAAM,WAYhB;AAvBD,iDAAmF;AAKnF,kCAAmC;AA2B5B,wEAFM,OAAO,OAAO,EAAE,SAAS,CAKpC"}
@@ -0,0 +1,3 @@
1
+ export default function reducer(state?: boolean): boolean;
2
+ export const INITIAL_STATE: false;
3
+ //# sourceMappingURL=is-readonly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-readonly.d.ts","sourceRoot":"","sources":["../../../src/modules/is-readonly.js"],"names":[],"mappings":"AAaA,0DAEC;AAZD,kCAAmC"}
@@ -0,0 +1,3 @@
1
+ export default function reducer(state?: boolean): boolean;
2
+ export const INITIAL_STATE: false;
3
+ //# sourceMappingURL=is-time-series.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-time-series.d.ts","sourceRoot":"","sources":["../../../src/modules/is-time-series.js"],"names":[],"mappings":"AAaA,0DAEC;AAZD,kCAAmC"}
@@ -0,0 +1,3 @@
1
+ export default function reducer(state: number | undefined, action: any): any;
2
+ export const INITIAL_STATE: 100000;
3
+ //# sourceMappingURL=large-limit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"large-limit.d.ts","sourceRoot":"","sources":["../../../src/modules/large-limit.js"],"names":[],"mappings":"AAQA,6EAQC;AAVD,mCAAiD"}
@@ -0,0 +1,3 @@
1
+ export default function reducer(state: number | undefined, action: any): any;
2
+ export const INITIAL_STATE: 10;
3
+ //# sourceMappingURL=limit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limit.d.ts","sourceRoot":"","sources":["../../../src/modules/limit.js"],"names":[],"mappings":"AAMA,6EAQC;AAVD,+BAAiD"}
@@ -0,0 +1,2 @@
1
+ export function openLink(href: string): Function;
2
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/modules/link.js"],"names":[],"mappings":"AAOO,iDAQN"}
@@ -0,0 +1,11 @@
1
+ import type { AnyAction, Reducer } from 'redux';
2
+ export declare const MAX_TIME_MS_CHANGED = "aggregations/max-time-ms/MAX_TIME_MS_CHANGED";
3
+ declare type State = null | number;
4
+ export declare const INITIAL_STATE: State;
5
+ declare const reducer: Reducer<State, AnyAction>;
6
+ export declare const maxTimeMSChanged: (value: number) => {
7
+ type: string;
8
+ maxTimeMS: number | null;
9
+ };
10
+ export default reducer;
11
+ //# sourceMappingURL=max-time-ms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"max-time-ms.d.ts","sourceRoot":"","sources":["../../../src/modules/max-time-ms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhD,eAAO,MAAM,mBAAmB,iDACgB,CAAC;AAEjD,aAAK,KAAK,GAAG,IAAI,GAAG,MAAM,CAAC;AAE3B,eAAO,MAAM,aAAa,EAAE,KAAY,CAAC;AAEzC,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAQtC,CAAA;AAED,eAAO,MAAM,gBAAgB,UAAW,MAAM;;;CAG5C,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export default function reducer(state: string | undefined, action: Object): string;
2
+ export const INITIAL_STATE: "";
3
+ //# sourceMappingURL=name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../src/modules/name.js"],"names":[],"mappings":"AAiBA,mEAJW,MAAM,UAehB;AArBD,+BAAgC"}
@@ -0,0 +1,3 @@
1
+ export default function reducer(state?: string): string;
2
+ export const INITIAL_STATE: "";
3
+ //# sourceMappingURL=namespace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/modules/namespace.js"],"names":[],"mappings":"AAaA,wDAEC;AAZD,+BAAgC"}
@@ -0,0 +1,6 @@
1
+ export default function reducer(state?: any): any;
2
+ export const INITIAL_STATE: null;
3
+ export function gotoOutResults(index: any): (dispatch: any, getState: any, { pipelineBuilder }: {
4
+ pipelineBuilder: any;
5
+ }) => void;
6
+ //# sourceMappingURL=out-results-fn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"out-results-fn.d.ts","sourceRoot":"","sources":["../../../src/modules/out-results-fn.js"],"names":[],"mappings":"AAiBA,wCALW,GAAG,GAGD,GAAG,CAIf;AAZD,iCAAkC;AAiB3B;;WAaN"}
@@ -0,0 +1,9 @@
1
+ import type { PipelineBuilderThunkAction, RootState } from '..';
2
+ import type { PipelineBuilder } from './pipeline-builder';
3
+ export declare const updatePipelinePreview: () => PipelineBuilderThunkAction<void>;
4
+ export declare function getStagesFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): import("bson").Document[] | (import("bson").Document[] | null)[];
5
+ export declare function getPipelineFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): import("bson").Document[];
6
+ export declare function getPipelineStringFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): string;
7
+ export declare function getPipelineStageOperatorsFromBuilderState(state: RootState): string[];
8
+ export declare function getIsPipelineInvalidFromBuilderState(state: RootState, includeServerErrors?: boolean): boolean;
9
+ //# sourceMappingURL=builder-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder-helpers.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/builder-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,eAAO,MAAM,qBAAqB,QAC5B,2BAA2B,IAAI,CAWhC,CAAC;AAEN,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,eAAe,oEAOjC;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,eAAe,6BAOjC;AAED,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,eAAe,GAC/B,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,KAAK,EAAE,SAAS,GACf,MAAM,EAAE,CAQV;AAED,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,SAAS,EAChB,mBAAmB,UAAO,GACzB,OAAO,CAQT"}
@@ -0,0 +1,14 @@
1
+ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
2
+ pipelineMode: import("./pipeline-mode").PipelineMode;
3
+ stageEditor: import("./stage-editor").StageEditorState;
4
+ textEditor: import("redux").CombinedState<{
5
+ pipeline: import("./text-editor-pipeline").TextEditorState;
6
+ outputStage: {
7
+ isLoading: boolean;
8
+ serverError: import("mongodb").MongoServerError | null;
9
+ isComplete: boolean;
10
+ };
11
+ }>;
12
+ }>, import("redux").AnyAction>;
13
+ export default reducer;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;8BAOX,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -0,0 +1,37 @@
1
+ import type { DataService } from 'mongodb-data-service';
2
+ import type * as t from '@babel/types';
3
+ import type { Document } from 'bson';
4
+ import { PipelinePreviewManager } from './pipeline-preview-manager';
5
+ import type { PreviewOptions } from './pipeline-preview-manager';
6
+ import Stage from './stage';
7
+ import { PipelineParserError } from './pipeline-parser/utils';
8
+ export declare const DEFAULT_PIPELINE = "[\n{}\n]";
9
+ export declare class PipelineBuilder {
10
+ private _source;
11
+ pipeline: Document[] | null;
12
+ node: t.ArrayExpression | null;
13
+ stages: Stage[];
14
+ syntaxError: PipelineParserError[];
15
+ previewManager: PipelinePreviewManager;
16
+ constructor(dataService: DataService, source?: string);
17
+ set source(source: string);
18
+ get source(): string;
19
+ private parseSourceToPipeline;
20
+ reset(source?: string): void;
21
+ stopPreview(from?: number): void;
22
+ changeSource(source: string): void;
23
+ sourceToStages(): void;
24
+ private validateSource;
25
+ getPipelineFromSource(): Document[];
26
+ getPreviewForPipeline(namespace: string, options: PreviewOptions, filterOutputStage?: boolean): Promise<Document[]>;
27
+ stagesToSource(): void;
28
+ getStage(idx: number): Stage;
29
+ addStage(after?: number): Stage;
30
+ removeStage(at: number): Stage;
31
+ moveStage(from: number, to: number): Stage;
32
+ getPipelineStringFromStages(stages?: Stage[]): string;
33
+ getPipelineStringFromSource(): string;
34
+ getPipelineFromStages(stages?: Stage[]): Document[];
35
+ getPreviewForStage(idx: number, namespace: string, options: PreviewOptions, force?: boolean): Promise<Document[]>;
36
+ }
37
+ //# sourceMappingURL=pipeline-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-builder.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAc,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI1E,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAA4B;IAE3C,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAQ;IACnC,IAAI,EAAE,CAAC,CAAC,eAAe,GAAG,IAAI,CAAQ;IACtC,MAAM,EAAE,KAAK,EAAE,CAAM;IACrB,WAAW,EAAE,mBAAmB,EAAE,CAAM;IAExC,cAAc,EAAE,sBAAsB,CAAC;gBAE3B,WAAW,EAAE,WAAW,EAAE,MAAM,SAAmB;IAM/D,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAGxB;IAED,IAAI,MAAM,IALS,MAAM,CAOxB;IAED,OAAO,CAAC,qBAAqB;IAW7B,KAAK,CAAC,MAAM,SAAmB;IAW/B,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;IAOhC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQlC,cAAc,IAAI,IAAI;IAmBtB,OAAO,CAAC,cAAc;IAUtB,qBAAqB,IAAI,QAAQ,EAAE;IAanC,qBAAqB,CACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,EACvB,iBAAiB,UAAQ,GACxB,OAAO,CAAC,QAAQ,EAAE,CAAC;IAiBtB,cAAc,IAAI,IAAI;IAgBtB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK;IAQ5B,QAAQ,CAAC,KAAK,GAAE,MAA+B,GAAG,KAAK;IASvD,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK;IAQ9B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,KAAK;IAU1C,2BAA2B,CAAC,MAAM,UAAc,GAAG,MAAM;IAYzD,2BAA2B,IAAI,MAAM;IAQrC,qBAAqB,CAAC,MAAM,UAAc,GAAG,QAAQ,EAAE;IAOvD,kBAAkB,CAChB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,EACvB,KAAK,UAAQ,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC;CASvB"}
@@ -0,0 +1,23 @@
1
+ import type { Reducer } from 'redux';
2
+ import type { Document } from 'mongodb';
3
+ import type { PipelineBuilderThunkAction } from '..';
4
+ import type Stage from './stage';
5
+ import type { PipelineParserError } from './pipeline-parser/utils';
6
+ export declare type PipelineMode = 'builder-ui' | 'as-text';
7
+ export declare enum ActionTypes {
8
+ PipelineModeToggled = "compass-aggregations/pipelineModeToggled"
9
+ }
10
+ export declare type PipelineModeToggledAction = {
11
+ type: ActionTypes.PipelineModeToggled;
12
+ mode: PipelineMode;
13
+ pipelineText: string;
14
+ pipeline: Document[] | null;
15
+ syntaxErrors: PipelineParserError[];
16
+ stages: Stage[];
17
+ };
18
+ declare type State = PipelineMode;
19
+ export declare const INITIAL_STATE: State;
20
+ declare const reducer: Reducer<State>;
21
+ export declare const changePipelineMode: (newMode: PipelineMode) => PipelineBuilderThunkAction<void, PipelineModeToggledAction>;
22
+ export default reducer;
23
+ //# sourceMappingURL=pipeline-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-mode.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AAGrD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,oBAAY,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC;AAEpD,oBAAY,WAAW;IACrB,mBAAmB,6CAA6C;CACjE;AAED,oBAAY,yBAAyB,GAAG;IACtC,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAAC;IACtC,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,aAAK,KAAK,GAAG,YAAY,CAAC;AAE1B,eAAO,MAAM,aAAa,EAAE,KAAoB,CAAC;AAEjD,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAQ3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,YAAY,KACpB,2BAA2B,IAAI,EAAE,yBAAyB,CAoB5D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import PipelineParser from './pipeline-parser';
2
+ export { PipelineParser };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type * as t from '@babel/types';
2
+ import { PipelineParserError } from './utils';
3
+ declare type ParseResponse = {
4
+ root: t.ArrayExpression;
5
+ stages: t.Expression[];
6
+ };
7
+ declare type ValidateResponse = {
8
+ root: t.ArrayExpression | null;
9
+ errors: PipelineParserError[];
10
+ };
11
+ export default class PipelineParser {
12
+ static parse(source: string): ParseResponse;
13
+ static _parseStringToRoot(source: string): t.ArrayExpression;
14
+ static validate(source: string): ValidateResponse;
15
+ static generate(root: t.ArrayExpression, stages: t.Expression[]): string;
16
+ static _getStageNodes(stages: t.Expression[]): t.ArrayExpression['elements'];
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=pipeline-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/pipeline-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkF9C,aAAK,aAAa,GAAG;IACnB,IAAI,EAAE,CAAC,CAAC,eAAe,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC;CACxB,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,CAAC,CAAC,eAAe,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa;IAkB3C,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,eAAe;IAU5D,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB;IAkBjD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,GAAG,MAAM;IAiBxE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC;CA0D7E"}
@@ -0,0 +1,19 @@
1
+ import type * as t from '@babel/types';
2
+ export declare type StageLike = t.ObjectExpression & {
3
+ properties: [t.ObjectProperty & {
4
+ key: t.Identifier | t.StringLiteral;
5
+ }];
6
+ };
7
+ export declare function isNodeDisabled(node: t.Node): boolean;
8
+ export declare function setNodeDisabled(node: t.Node, value: boolean): void;
9
+ export declare function isStageLike(node?: t.Node | null, loose?: boolean): node is StageLike;
10
+ export declare function assertStageNode(node: t.Node): asserts node is StageLike;
11
+ export declare function getStageOperatorFromNode(node: StageLike): string;
12
+ export declare function getStageValueFromNode(node: StageLike): string;
13
+ export declare function stageToAstComments(stage: t.Expression): t.CommentLine[];
14
+ export default class StageParser {
15
+ source: string;
16
+ private maybeObject;
17
+ push(str: string): false | StageLike;
18
+ }
19
+ //# sourceMappingURL=stage-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/stage-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAIvC,oBAAY,SAAS,GAAG,CAAC,CAAC,gBAAgB,GAAG;IAC3C,UAAU,EAAE,CAAC,CAAC,CAAC,cAAc,GAAG;QAAE,GAAG,EAAE,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,aAAa,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAC;AAIF,wBAAgB,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,OAAO,CAEpD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,QAE3D;AAED,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,EAAE,KAAK,UAAQ,GAAG,IAAI,IAAI,SAAS,CAalF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,SAAS,CAWvE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAIhE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAQ7D;AAKD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,WAAW,EAAE,CAOvE;AAMD,MAAM,CAAC,OAAO,OAAO,WAAW;IACvB,MAAM,SAAM;IACnB,OAAO,CAAC,WAAW,CAAS;IAE5B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS;CA0CrC"}
@@ -0,0 +1,15 @@
1
+ import type { Node } from '@babel/types';
2
+ import type { Document } from 'mongodb';
3
+ declare type ErrorLoc = {
4
+ line: number;
5
+ column: number;
6
+ };
7
+ export declare class PipelineParserError extends SyntaxError {
8
+ loc: ErrorLoc | undefined;
9
+ constructor(message: string, loc?: ErrorLoc);
10
+ }
11
+ export declare function generate(ast: Node): string;
12
+ export declare function prettify(code: string): string;
13
+ export declare function parseEJSON(source: string): Document[];
14
+ export {};
15
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,aAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AACD,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,GAAG,EAAE,QAAQ,GAAG,SAAS,CAAC;gBACd,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ;CAI5C;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,IAAI,UAEjC;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,UAcpC;AAMD,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAQrD"}
@@ -0,0 +1,20 @@
1
+ import type { DataService } from 'mongodb-data-service';
2
+ import type { AggregateOptions, Document } from 'mongodb';
3
+ export declare const DEFAULT_SAMPLE_SIZE = 100000;
4
+ export declare const DEFAULT_PREVIEW_LIMIT = 10;
5
+ export interface PreviewOptions extends AggregateOptions {
6
+ debounceMs?: number;
7
+ totalDocumentCount?: number;
8
+ sampleSize?: number;
9
+ previewSize?: number;
10
+ }
11
+ export declare function createPreviewAggregation(pipeline: Document[], options?: Pick<PreviewOptions, 'sampleSize' | 'previewSize' | 'totalDocumentCount'>): Document[];
12
+ export declare class PipelinePreviewManager {
13
+ private dataService;
14
+ private queue;
15
+ constructor(dataService: DataService);
16
+ getPreviewForStage(idx: number, namespace: string, pipeline: Document[], { sampleSize, previewSize, totalDocumentCount, ...options }?: PreviewOptions, force?: boolean): Promise<Document[]>;
17
+ cancelPreviewForStage(idx: number): boolean;
18
+ clearQueue(from?: number): void;
19
+ }
20
+ //# sourceMappingURL=pipeline-preview-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-preview-manager.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-preview-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAS1D,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAexC,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,QAAQ,EAAE,EACpB,OAAO,GAAE,IAAI,CACX,cAAc,EACd,YAAY,GAAG,aAAa,GAAG,oBAAoB,CAC/C,cA8BP;AAED,qBAAa,sBAAsB;IAErB,OAAO,CAAC,WAAW;IAD/B,OAAO,CAAC,KAAK,CAAsC;gBAC/B,WAAW,EAAE,WAAW;IAItC,kBAAkB,CACtB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAAE,EACpB,EACE,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,GAAG,OAAO,EACX,GAAE,cAAmB,EACtB,KAAK,UAAQ,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC;IAyBtB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAQ3C,UAAU,CAAC,IAAI,SAAI;CAQpB"}
@@ -0,0 +1,110 @@
1
+ import type { Reducer } from 'redux';
2
+ import type { Document, MongoServerError } from 'mongodb';
3
+ import type { PipelineBuilderThunkAction } from '../';
4
+ import type Stage from './stage';
5
+ import type { PipelineParserError } from './pipeline-parser/utils';
6
+ export declare const enum StageEditorActionTypes {
7
+ StagePreviewFetch = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetch",
8
+ StagePreviewFetchSuccess = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSuccess",
9
+ StagePreviewFetchError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
10
+ StageRun = "compass-aggregations/pipeline-builder/stage-editor/StageRun",
11
+ StageRunSuccess = "compass-aggregations/pipeline-builder/stage-editor/StageRunSuccess",
12
+ StageRunError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
13
+ StageValueChange = "compass-aggregations/pipeline-builder/stage-editor/StageValueChange",
14
+ StageOperatorChange = "compass-aggregations/pipeline-builder/stage-editor/StageOperatorChange",
15
+ StageCollapsedChange = "compass-aggregations/pipeline-builder/stage-editor/StageCollapsedChange",
16
+ StageDisabledChange = "compass-aggregations/pipeline-builder/stage-editor/StageDisabledChange",
17
+ StageAdded = "compass-aggregations/pipeline-builder/stage-editor/StageAdded",
18
+ StageRemoved = "compass-aggregations/pipeline-builder/stage-editor/StageRemoved",
19
+ StageMoved = "compass-aggregations/pipeline-builder/stage-editor/StageMoved"
20
+ }
21
+ export declare type StagePreviewFetchAction = {
22
+ type: StageEditorActionTypes.StagePreviewFetch;
23
+ id: number;
24
+ };
25
+ export declare type StagePreviewFetchSuccessAction = {
26
+ type: StageEditorActionTypes.StagePreviewFetchSuccess;
27
+ id: number;
28
+ previewDocs: Document[];
29
+ };
30
+ export declare type StagePreviewFetchErrorAction = {
31
+ type: StageEditorActionTypes.StagePreviewFetchError;
32
+ id: number;
33
+ error: MongoServerError;
34
+ };
35
+ export declare type StageRunAction = {
36
+ type: StageEditorActionTypes.StageRun;
37
+ id: number;
38
+ };
39
+ export declare type StageRunSuccessAction = {
40
+ type: StageEditorActionTypes.StageRunSuccess;
41
+ id: number;
42
+ previewDocs: Document[];
43
+ };
44
+ export declare type StageRunErrorAction = {
45
+ type: StageEditorActionTypes.StageRunError;
46
+ id: number;
47
+ error: MongoServerError;
48
+ };
49
+ export declare type ChangeStageValueAction = {
50
+ type: StageEditorActionTypes.StageValueChange;
51
+ id: number;
52
+ stage: Stage;
53
+ };
54
+ export declare type ChangeStageOperatorAction = {
55
+ type: StageEditorActionTypes.StageOperatorChange;
56
+ id: number;
57
+ stage: Stage;
58
+ };
59
+ export declare type ChangeStageCollapsedAction = {
60
+ type: StageEditorActionTypes.StageCollapsedChange;
61
+ id: number;
62
+ collapsed: boolean;
63
+ };
64
+ export declare type ChangeStageDisabledAction = {
65
+ type: StageEditorActionTypes.StageDisabledChange;
66
+ id: number;
67
+ disabled: boolean;
68
+ };
69
+ export declare type StageAddAction = {
70
+ type: StageEditorActionTypes.StageAdded;
71
+ after?: number;
72
+ stage: Stage;
73
+ };
74
+ export declare type StageRemoveAction = {
75
+ type: StageEditorActionTypes.StageRemoved;
76
+ at: number;
77
+ };
78
+ export declare type StageMoveAction = {
79
+ type: StageEditorActionTypes.StageMoved;
80
+ from: number;
81
+ to: number;
82
+ };
83
+ export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction>;
84
+ export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
85
+ export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
86
+ export declare const changeStageValue: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageValueAction>;
87
+ export declare const changeStageOperator: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageOperatorAction>;
88
+ export declare const changeStageDisabled: (id: number, newVal: boolean) => PipelineBuilderThunkAction<void, ChangeStageDisabledAction>;
89
+ export declare const changeStageCollapsed: (id: number, newVal: boolean) => ChangeStageCollapsedAction;
90
+ export declare const addStage: (after?: number) => PipelineBuilderThunkAction<void, StageAddAction>;
91
+ export declare const removeStage: (at: number) => PipelineBuilderThunkAction<void, StageRemoveAction>;
92
+ export declare const moveStage: (from: number, to: number) => PipelineBuilderThunkAction<void, StageMoveAction>;
93
+ export declare type StageEditorState = {
94
+ stageIds: number[];
95
+ stages: {
96
+ id: number;
97
+ stageOperator: string | null;
98
+ value: string | null;
99
+ syntaxError: PipelineParserError | null;
100
+ serverError: MongoServerError | null;
101
+ loading: boolean;
102
+ previewDocs: Document[] | null;
103
+ collapsed: boolean;
104
+ disabled: boolean;
105
+ }[];
106
+ };
107
+ export declare function mapBuilderStageToStoreStage(stage: Stage): StageEditorState['stages'][number];
108
+ declare const reducer: Reducer<StageEditorState>;
109
+ export default reducer;
110
+ //# sourceMappingURL=stage-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage-editor.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ import type * as t from '@babel/types';
2
+ import type { PipelineParserError } from './pipeline-parser/utils';
3
+ export declare function stageToString(operator: string, value: string, disabled: boolean): string;
4
+ export default class Stage {
5
+ id: number;
6
+ node: t.Expression;
7
+ disabled: boolean;
8
+ syntaxError: PipelineParserError | null;
9
+ operator: string | null;
10
+ value: string | null;
11
+ constructor(node?: t.Expression);
12
+ changeValue(value: string): this;
13
+ changeOperator(operator: string): this;
14
+ changeDisabled(value: boolean): this;
15
+ toString(): string;
16
+ toBSON(): import("bson").Document[] | null;
17
+ }
18
+ //# sourceMappingURL=stage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AASvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AA0BnE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAYxF;AAQD,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,EAAE,SAAW;IACb,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC;IACnB,QAAQ,UAAS;IACjB,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAQ;IAC/C,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC/B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAE1B,IAAI,GAAE,CAAC,CAAC,UAAyD;IAanE,WAAW,CAAC,KAAK,EAAE,MAAM;IAgBzB,cAAc,CAAC,QAAQ,EAAE,MAAM;IAgB/B,cAAc,CAAC,KAAK,EAAE,OAAO;IAM7B,QAAQ;IAQR,MAAM;CAMP"}
@@ -0,0 +1,13 @@
1
+ import type { Reducer } from 'redux';
2
+ import type { MongoServerError } from 'mongodb';
3
+ import type { PipelineBuilderThunkAction } from '..';
4
+ declare type OutputStageState = {
5
+ isLoading: boolean;
6
+ serverError: MongoServerError | null;
7
+ isComplete: boolean;
8
+ };
9
+ declare const reducer: Reducer<OutputStageState>;
10
+ export declare const runPipelineWithOutputStage: () => PipelineBuilderThunkAction<Promise<void>>;
11
+ export declare const gotoOutputStageCollection: () => PipelineBuilderThunkAction<void>;
12
+ export default reducer;
13
+ //# sourceMappingURL=text-editor-output-stage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor-output-stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-output-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AA8BrD,aAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAQF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAqDtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QACpC,2BAA2B,QAAQ,IAAI,CAAC,CA8C1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,QACnC,2BAA2B,IAAI,CAejC,CAAC;AAGF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { Reducer } from 'redux';
2
+ import type { Document, MongoServerError } from 'mongodb';
3
+ import type { PipelineBuilderThunkAction } from '..';
4
+ import type { PipelineParserError } from './pipeline-parser/utils';
5
+ export declare const enum EditorActionTypes {
6
+ EditorPreviewFetch = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetch",
7
+ EditorPreviewFetchSuccess = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetchSuccess",
8
+ EditorPreviewFetchError = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetchError",
9
+ EditorValueChange = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorValueChange"
10
+ }
11
+ export declare type EditorValueChangeAction = {
12
+ type: EditorActionTypes.EditorValueChange;
13
+ pipelineText: string;
14
+ pipeline: Document[] | null;
15
+ syntaxErrors: PipelineParserError[];
16
+ };
17
+ declare type EditorPreviewFetchAction = {
18
+ type: EditorActionTypes.EditorPreviewFetch;
19
+ };
20
+ declare type EditorPreviewFetchSuccessAction = {
21
+ type: EditorActionTypes.EditorPreviewFetchSuccess;
22
+ previewDocs: Document[];
23
+ };
24
+ declare type EditorPreviewFetchErrorAction = {
25
+ type: EditorActionTypes.EditorPreviewFetchError;
26
+ serverError: MongoServerError;
27
+ };
28
+ export declare type TextEditorState = {
29
+ pipelineText: string;
30
+ stageOperators: string[];
31
+ syntaxErrors: PipelineParserError[];
32
+ serverError: MongoServerError | null;
33
+ isLoading: boolean;
34
+ previewDocs: Document[] | null;
35
+ };
36
+ declare const reducer: Reducer<TextEditorState>;
37
+ export declare function canRunPipeline(autoPreview: boolean, syntaxErrors: PipelineParserError[]): boolean;
38
+ export declare const loadPreviewForPipeline: () => PipelineBuilderThunkAction<Promise<void>, EditorPreviewFetchAction | EditorPreviewFetchSuccessAction | EditorPreviewFetchErrorAction>;
39
+ export declare const changeEditorValue: (value: string) => PipelineBuilderThunkAction<void, EditorValueChangeAction>;
40
+ export default reducer;
41
+ //# sourceMappingURL=text-editor-pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AASrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,0BAAkB,iBAAiB;IACjC,kBAAkB,sFAAsF;IACxG,yBAAyB,6FAA6F;IACtH,uBAAuB,2FAA2F;IAClH,iBAAiB,qFAAqF;CACvG;AAED,oBAAY,uBAAuB,GAAG;IACpC,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,mBAAmB,EAAE,CAAC;CACrC,CAAC;AAEF,aAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;CAC5C,CAAC;AAEF,aAAK,+BAA+B,GAAG;IACrC,IAAI,EAAE,iBAAiB,CAAC,yBAAyB,CAAC;IAClD,WAAW,EAAE,QAAQ,EAAE,CAAC;CACzB,CAAC;AAEF,aAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,iBAAiB,CAAC,uBAAuB,CAAC;IAChD,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC;AAWF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,eAAe,CAwErC,CAAC;AAEF,wBAAgB,cAAc,CAC5B,WAAW,EAAE,OAAO,EACpB,YAAY,EAAE,mBAAmB,EAAE,WAGpC;AAED,eAAO,MAAM,sBAAsB,QAChC,2BACD,QAAQ,IAAI,CAAC,EACb,wBAAwB,GACxB,+BAA+B,GAC/B,6BAA6B,CAkD9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UACrB,MAAM,KACZ,2BAA2B,IAAI,EAAE,uBAAuB,CAW1D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ export default function reducer(state: any[] | undefined, action: any): any;
2
+ export const PROJECTIONS_CHANGED: "aggregations/projections/PROJECTIONS_CHANGED";
3
+ export const INITIAL_STATE: any[];
4
+ //# sourceMappingURL=projections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../../src/modules/projections.js"],"names":[],"mappings":"AAWA,4EAQC;AAbD,iFACiD;AAEjD,kCAAgC"}
@@ -0,0 +1,28 @@
1
+ import type { AnyAction } from 'redux';
2
+ import type { PipelineBuilderThunkAction } from '.';
3
+ import type { StoredPipeline } from '../utils/pipeline-storage';
4
+ export declare const SET_SHOW_SAVED_PIPELINES: string;
5
+ export declare const SAVED_PIPELINE_ADD: string;
6
+ export declare const RESTORE_PIPELINE: string;
7
+ export declare type SavedPipelineState = {
8
+ pipelines: StoredPipeline[];
9
+ isLoaded: boolean;
10
+ isListVisible: boolean;
11
+ };
12
+ export declare const INITIAL_STATE: SavedPipelineState;
13
+ export default function reducer(state: SavedPipelineState | undefined, action: AnyAction): {
14
+ pipelines: any;
15
+ isLoaded: boolean;
16
+ isListVisible: boolean;
17
+ };
18
+ export declare const setShowSavedPipelines: (show: boolean) => PipelineBuilderThunkAction<void>;
19
+ export declare const savedPipelineAdd: (pipelines: StoredPipeline[]) => {
20
+ type: string;
21
+ pipelines: StoredPipeline[];
22
+ };
23
+ export declare const getSavedPipelines: () => PipelineBuilderThunkAction<void>;
24
+ export declare const updatePipelineList: () => PipelineBuilderThunkAction<void>;
25
+ export declare const deletePipeline: (pipelineId: string) => PipelineBuilderThunkAction<Promise<void>>;
26
+ export declare const openPipelineById: (id: string) => PipelineBuilderThunkAction<Promise<void>>;
27
+ export declare const saveCurrentPipeline: () => PipelineBuilderThunkAction<void>;
28
+ //# sourceMappingURL=saved-pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saved-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saved-pipeline.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQhE,eAAO,MAAM,wBAAwB,QAAuB,CAAC;AAC7D,eAAO,MAAM,kBAAkB,QAAkB,CAAC;AAClD,eAAO,MAAM,gBAAgB,QAA+B,CAAC;AAE7D,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAI3B,CAAC;AAuBF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,gCAAgB,EAAE,MAAM,EAAE,SAAS;;;;EAGvE;AAED,eAAO,MAAM,qBAAqB,SACzB,OAAO,KAAG,2BAA2B,IAAI,CAS/C,CAAC;AAEJ,eAAO,MAAM,gBAAgB,cAAe,cAAc,EAAE;;;CAG1D,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAAO,2BAA2B,IAAI,CAKjE,CAAC;AAKJ,eAAO,MAAM,kBAAkB,QAAO,2BAA2B,IAAI,CAclE,CAAC;AAKJ,eAAO,MAAM,cAAc,eACb,MAAM,KACjB,2BAA2B,QAAQ,IAAI,CAAC,CAK1C,CAAC;AAKF,eAAO,MAAM,gBAAgB,OACvB,MAAM,KACT,2BAA2B,QAAQ,IAAI,CAAC,CAqB1C,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAAO,2BAA2B,IAAI,CAwCrE,CAAC"}
@@ -0,0 +1,21 @@
1
+ export default function reducer(state: Object | undefined, action: Object): any;
2
+ export const SAVING_PIPELINE_NAME_CHANGED: "aggregations/saving-pipeline/NAME_CHANGED";
3
+ export const SAVING_PIPELINE_APPLY: "aggregations/saving-pipeline/APPLY";
4
+ export const SAVING_PIPELINE_CANCEL: "aggregations/saving-pipeline/CANCEL";
5
+ export const SAVING_PIPELINE_OPEN: "aggregations/saving-pipeline/OPEN";
6
+ export namespace INITIAL_STATE {
7
+ const isOpen: boolean;
8
+ const name: string;
9
+ const isSaveAs: boolean;
10
+ }
11
+ export function savingPipelineNameChanged(name: string): Object;
12
+ export function savingPipelineApply(): Object;
13
+ export function savingPipelineCancel(): Object;
14
+ export function savingPipelineOpen({ name, isSaveAs }?: {
15
+ name?: string | undefined;
16
+ isSaveAs?: boolean | undefined;
17
+ }): import("redux").AnyAction;
18
+ export function openCreateView(): (dispatch: any, getState: any, { pipelineBuilder }: {
19
+ pipelineBuilder: any;
20
+ }) => void;
21
+ //# sourceMappingURL=saving-pipeline.d.ts.map