@mongodb-js/compass-aggregations 9.2.0 → 9.4.0

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/browser.js.LICENSE.txt +0 -6
  3. package/dist/index.css +54 -346
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.LICENSE.txt +0 -6
  6. package/dist/src/components/add-stage/add-stage.d.ts +17 -0
  7. package/dist/src/components/add-stage/add-stage.d.ts.map +1 -0
  8. package/dist/src/components/add-stage/index.d.ts +3 -0
  9. package/dist/src/components/add-stage/index.d.ts.map +1 -0
  10. package/dist/src/components/aggregations/aggregations.d.ts +11 -0
  11. package/dist/src/components/aggregations/aggregations.d.ts.map +1 -0
  12. package/dist/src/components/aggregations/index.d.ts +5 -0
  13. package/dist/src/components/aggregations/index.d.ts.map +1 -0
  14. package/dist/src/components/atlas-stage-preview.d.ts +5 -0
  15. package/dist/src/components/atlas-stage-preview.d.ts.map +1 -0
  16. package/dist/src/components/create-view-modal/create-view-modal.d.ts +63 -0
  17. package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -0
  18. package/dist/src/components/create-view-modal/index.d.ts +5 -0
  19. package/dist/src/components/create-view-modal/index.d.ts.map +1 -0
  20. package/dist/src/components/create-view-plugin.d.ts +14 -0
  21. package/dist/src/components/create-view-plugin.d.ts.map +1 -0
  22. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +57 -0
  23. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -0
  24. package/dist/src/components/duplicate-view-modal/index.d.ts +5 -0
  25. package/dist/src/components/duplicate-view-modal/index.d.ts.map +1 -0
  26. package/dist/src/components/duplicate-view-plugin.d.ts +10 -0
  27. package/dist/src/components/duplicate-view-plugin.d.ts.map +1 -0
  28. package/dist/src/components/input/index.d.ts +3 -0
  29. package/dist/src/components/input/index.d.ts.map +1 -0
  30. package/dist/src/components/input/input.d.ts +25 -0
  31. package/dist/src/components/input/input.d.ts.map +1 -0
  32. package/dist/src/components/input-builder/index.d.ts +3 -0
  33. package/dist/src/components/input-builder/index.d.ts.map +1 -0
  34. package/dist/src/components/input-builder/input-builder.d.ts +9 -0
  35. package/dist/src/components/input-builder/input-builder.d.ts.map +1 -0
  36. package/dist/src/components/input-builder-toolbar/index.d.ts +3 -0
  37. package/dist/src/components/input-builder-toolbar/index.d.ts.map +1 -0
  38. package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts +16 -0
  39. package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts.map +1 -0
  40. package/dist/src/components/input-collapser/index.d.ts +3 -0
  41. package/dist/src/components/input-collapser/index.d.ts.map +1 -0
  42. package/dist/src/components/input-collapser/input-collapser.d.ts +14 -0
  43. package/dist/src/components/input-collapser/input-collapser.d.ts.map +1 -0
  44. package/dist/src/components/input-documents-count/index.d.ts +3 -0
  45. package/dist/src/components/input-documents-count/index.d.ts.map +1 -0
  46. package/dist/src/components/input-documents-count/input-documents-count.d.ts +13 -0
  47. package/dist/src/components/input-documents-count/input-documents-count.d.ts.map +1 -0
  48. package/dist/src/components/input-preview/index.d.ts +3 -0
  49. package/dist/src/components/input-preview/index.d.ts.map +1 -0
  50. package/dist/src/components/input-preview/input-preview.d.ts +15 -0
  51. package/dist/src/components/input-preview/input-preview.d.ts.map +1 -0
  52. package/dist/src/components/input-preview-toolbar/index.d.ts +3 -0
  53. package/dist/src/components/input-preview-toolbar/index.d.ts.map +1 -0
  54. package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts +7 -0
  55. package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts.map +1 -0
  56. package/dist/src/components/input-refresh/index.d.ts +3 -0
  57. package/dist/src/components/input-refresh/index.d.ts.map +1 -0
  58. package/dist/src/components/input-refresh/input-refresh.d.ts +13 -0
  59. package/dist/src/components/input-refresh/input-refresh.d.ts.map +1 -0
  60. package/dist/src/components/input-toolbar/index.d.ts +3 -0
  61. package/dist/src/components/input-toolbar/index.d.ts.map +1 -0
  62. package/dist/src/components/input-toolbar/input-toolbar.d.ts +16 -0
  63. package/dist/src/components/input-toolbar/input-toolbar.d.ts.map +1 -0
  64. package/dist/src/components/input-workspace/index.d.ts +3 -0
  65. package/dist/src/components/input-workspace/index.d.ts.map +1 -0
  66. package/dist/src/components/input-workspace/input-workspace.d.ts +16 -0
  67. package/dist/src/components/input-workspace/input-workspace.d.ts.map +1 -0
  68. package/dist/src/components/loading-overlay/index.d.ts +3 -0
  69. package/dist/src/components/loading-overlay/index.d.ts.map +1 -0
  70. package/dist/src/components/loading-overlay/loading-overlay.d.ts +13 -0
  71. package/dist/src/components/loading-overlay/loading-overlay.d.ts.map +1 -0
  72. package/dist/src/components/modify-source-banner/index.d.ts +3 -0
  73. package/dist/src/components/modify-source-banner/index.d.ts.map +1 -0
  74. package/dist/src/components/modify-source-banner/modify-source-banner.d.ts +9 -0
  75. package/dist/src/components/modify-source-banner/modify-source-banner.d.ts.map +1 -0
  76. package/dist/src/components/pipeline/index.d.ts +3 -0
  77. package/dist/src/components/pipeline/index.d.ts.map +1 -0
  78. package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts +17 -0
  79. package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts.map +1 -0
  80. package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts +17 -0
  81. package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts.map +1 -0
  82. package/dist/src/components/pipeline/modals/import-pipeline.d.ts +33 -0
  83. package/dist/src/components/pipeline/modals/import-pipeline.d.ts.map +1 -0
  84. package/dist/src/components/pipeline/pipeline.d.ts +61 -0
  85. package/dist/src/components/pipeline/pipeline.d.ts.map +1 -0
  86. package/dist/src/components/pipeline-builder-workspace/index.d.ts +3 -0
  87. package/dist/src/components/pipeline-builder-workspace/index.d.ts.map +1 -0
  88. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts +8 -0
  89. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -0
  90. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +17 -0
  91. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -0
  92. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts +15 -0
  93. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -0
  94. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts +13 -0
  95. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts.map +1 -0
  96. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts +21 -0
  97. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts.map +1 -0
  98. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts +9 -0
  99. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts.map +1 -0
  100. package/dist/src/components/pipeline-explain/explain-indexes.d.ts +8 -0
  101. package/dist/src/components/pipeline-explain/explain-indexes.d.ts.map +1 -0
  102. package/dist/src/components/pipeline-explain/explain-query-performance.d.ts +10 -0
  103. package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +1 -0
  104. package/dist/src/components/pipeline-explain/explain-results.d.ts +9 -0
  105. package/dist/src/components/pipeline-explain/explain-results.d.ts.map +1 -0
  106. package/dist/src/components/pipeline-explain/index.d.ts +14 -0
  107. package/dist/src/components/pipeline-explain/index.d.ts.map +1 -0
  108. package/dist/src/components/pipeline-output-options-menu.d.ts +7 -0
  109. package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -0
  110. package/dist/src/components/pipeline-results-workspace/index.d.ts +20 -0
  111. package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -0
  112. package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts +4 -0
  113. package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts.map +1 -0
  114. package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts +10 -0
  115. package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts.map +1 -0
  116. package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts +19 -0
  117. package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts.map +1 -0
  118. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +14 -0
  119. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts.map +1 -0
  120. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts +10 -0
  121. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -0
  122. package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts +8 -0
  123. package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts.map +1 -0
  124. package/dist/src/components/pipeline-toolbar/index.d.ts +15 -0
  125. package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -0
  126. package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts +20 -0
  127. package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts.map +1 -0
  128. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts +21 -0
  129. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts.map +1 -0
  130. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts +13 -0
  131. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts.map +1 -0
  132. package/dist/src/components/pipeline-toolbar/pipeline-options/index.d.ts +4 -0
  133. package/dist/src/components/pipeline-toolbar/pipeline-options/index.d.ts.map +1 -0
  134. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts +24 -0
  135. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts.map +1 -0
  136. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +11 -0
  137. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts.map +1 -0
  138. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts +14 -0
  139. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -0
  140. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts +19 -0
  141. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts.map +1 -0
  142. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts +9 -0
  143. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts.map +1 -0
  144. package/dist/src/components/resize-handle.d.ts +4 -0
  145. package/dist/src/components/resize-handle.d.ts.map +1 -0
  146. package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts +12 -0
  147. package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts.map +1 -0
  148. package/dist/src/components/saved-pipelines/saved-pipelines.d.ts +12 -0
  149. package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -0
  150. package/dist/src/components/saving-pipeline-modal/index.d.ts +3 -0
  151. package/dist/src/components/saving-pipeline-modal/index.d.ts.map +1 -0
  152. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts +22 -0
  153. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -0
  154. package/dist/src/components/settings/index.d.ts +3 -0
  155. package/dist/src/components/settings/index.d.ts.map +1 -0
  156. package/dist/src/components/settings/settings.d.ts +23 -0
  157. package/dist/src/components/settings/settings.d.ts.map +1 -0
  158. package/dist/src/components/stage/index.d.ts +3 -0
  159. package/dist/src/components/stage/index.d.ts.map +1 -0
  160. package/dist/src/components/stage/stage.d.ts +29 -0
  161. package/dist/src/components/stage/stage.d.ts.map +1 -0
  162. package/dist/src/components/stage-editor/index.d.ts +3 -0
  163. package/dist/src/components/stage-editor/index.d.ts.map +1 -0
  164. package/dist/src/components/stage-editor/stage-editor.d.ts +54 -0
  165. package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -0
  166. package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts +18 -0
  167. package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts.map +1 -0
  168. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts +18 -0
  169. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts.map +1 -0
  170. package/dist/src/components/stage-editor-toolbar/index.d.ts +3 -0
  171. package/dist/src/components/stage-editor-toolbar/index.d.ts.map +1 -0
  172. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts +20 -0
  173. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts.map +1 -0
  174. package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts +21 -0
  175. package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts.map +1 -0
  176. package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts +9 -0
  177. package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts.map +1 -0
  178. package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts +20 -0
  179. package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts.map +1 -0
  180. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts +20 -0
  181. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts.map +1 -0
  182. package/dist/src/components/stage-preview/index.d.ts +3 -0
  183. package/dist/src/components/stage-preview/index.d.ts.map +1 -0
  184. package/dist/src/components/stage-preview/stage-preview.d.ts +49 -0
  185. package/dist/src/components/stage-preview/stage-preview.d.ts.map +1 -0
  186. package/dist/src/components/stage-preview-toolbar/index.d.ts +3 -0
  187. package/dist/src/components/stage-preview-toolbar/index.d.ts.map +1 -0
  188. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts +25 -0
  189. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts.map +1 -0
  190. package/dist/src/constants.d.ts +4 -0
  191. package/dist/src/constants.d.ts.map +1 -0
  192. package/dist/src/index.d.ts +16 -0
  193. package/dist/src/index.d.ts.map +1 -0
  194. package/dist/src/modules/aggregation-workspace-id.d.ts +4 -0
  195. package/dist/src/modules/aggregation-workspace-id.d.ts.map +1 -0
  196. package/dist/src/modules/aggregation.d.ts +74 -0
  197. package/dist/src/modules/aggregation.d.ts.map +1 -0
  198. package/dist/src/modules/auto-preview.d.ts +13 -0
  199. package/dist/src/modules/auto-preview.d.ts.map +1 -0
  200. package/dist/src/modules/clone-pipeline.d.ts +5 -0
  201. package/dist/src/modules/clone-pipeline.d.ts.map +1 -0
  202. package/dist/src/modules/collation-string.d.ts +17 -0
  203. package/dist/src/modules/collation-string.d.ts.map +1 -0
  204. package/dist/src/modules/comments.d.ts +3 -0
  205. package/dist/src/modules/comments.d.ts.map +1 -0
  206. package/dist/src/modules/count-documents.d.ts +30 -0
  207. package/dist/src/modules/count-documents.d.ts.map +1 -0
  208. package/dist/src/modules/create-view/error.d.ts +7 -0
  209. package/dist/src/modules/create-view/error.d.ts.map +1 -0
  210. package/dist/src/modules/create-view/index.d.ts +21 -0
  211. package/dist/src/modules/create-view/index.d.ts.map +1 -0
  212. package/dist/src/modules/create-view/is-duplicating.d.ts +5 -0
  213. package/dist/src/modules/create-view/is-duplicating.d.ts.map +1 -0
  214. package/dist/src/modules/create-view/is-running.d.ts +5 -0
  215. package/dist/src/modules/create-view/is-running.d.ts.map +1 -0
  216. package/dist/src/modules/create-view/is-visible.d.ts +8 -0
  217. package/dist/src/modules/create-view/is-visible.d.ts.map +1 -0
  218. package/dist/src/modules/create-view/name.d.ts +5 -0
  219. package/dist/src/modules/create-view/name.d.ts.map +1 -0
  220. package/dist/src/modules/create-view/pipeline.d.ts +5 -0
  221. package/dist/src/modules/create-view/pipeline.d.ts.map +1 -0
  222. package/dist/src/modules/create-view/reset.d.ts +3 -0
  223. package/dist/src/modules/create-view/reset.d.ts.map +1 -0
  224. package/dist/src/modules/create-view/source.d.ts +5 -0
  225. package/dist/src/modules/create-view/source.d.ts.map +1 -0
  226. package/dist/src/modules/data-service.d.ts +12 -0
  227. package/dist/src/modules/data-service.d.ts.map +1 -0
  228. package/dist/src/modules/edit-view-name.d.ts +3 -0
  229. package/dist/src/modules/edit-view-name.d.ts.map +1 -0
  230. package/dist/src/modules/env.d.ts +3 -0
  231. package/dist/src/modules/env.d.ts.map +1 -0
  232. package/dist/src/modules/explain.d.ts +57 -0
  233. package/dist/src/modules/explain.d.ts.map +1 -0
  234. package/dist/src/modules/export-to-language.d.ts +2 -0
  235. package/dist/src/modules/export-to-language.d.ts.map +1 -0
  236. package/dist/src/modules/fields.d.ts +5 -0
  237. package/dist/src/modules/fields.d.ts.map +1 -0
  238. package/dist/src/modules/id.d.ts +7 -0
  239. package/dist/src/modules/id.d.ts.map +1 -0
  240. package/dist/src/modules/import-pipeline.d.ts +20 -0
  241. package/dist/src/modules/import-pipeline.d.ts.map +1 -0
  242. package/dist/src/modules/index.d.ts +74 -0
  243. package/dist/src/modules/index.d.ts.map +1 -0
  244. package/dist/src/modules/indexes.d.ts +22 -0
  245. package/dist/src/modules/indexes.d.ts.map +1 -0
  246. package/dist/src/modules/input-documents.d.ts +17 -0
  247. package/dist/src/modules/input-documents.d.ts.map +1 -0
  248. package/dist/src/modules/is-atlas-deployed.d.ts +3 -0
  249. package/dist/src/modules/is-atlas-deployed.d.ts.map +1 -0
  250. package/dist/src/modules/is-datalake.d.ts +6 -0
  251. package/dist/src/modules/is-datalake.d.ts.map +1 -0
  252. package/dist/src/modules/is-modified.d.ts +2 -0
  253. package/dist/src/modules/is-modified.d.ts.map +1 -0
  254. package/dist/src/modules/is-new-pipeline-confirm.d.ts +5 -0
  255. package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -0
  256. package/dist/src/modules/is-readonly.d.ts +3 -0
  257. package/dist/src/modules/is-readonly.d.ts.map +1 -0
  258. package/dist/src/modules/is-time-series.d.ts +3 -0
  259. package/dist/src/modules/is-time-series.d.ts.map +1 -0
  260. package/dist/src/modules/large-limit.d.ts +3 -0
  261. package/dist/src/modules/large-limit.d.ts.map +1 -0
  262. package/dist/src/modules/limit.d.ts +3 -0
  263. package/dist/src/modules/limit.d.ts.map +1 -0
  264. package/dist/src/modules/link.d.ts +2 -0
  265. package/dist/src/modules/link.d.ts.map +1 -0
  266. package/dist/src/modules/max-time-ms.d.ts +11 -0
  267. package/dist/src/modules/max-time-ms.d.ts.map +1 -0
  268. package/dist/src/modules/name.d.ts +3 -0
  269. package/dist/src/modules/name.d.ts.map +1 -0
  270. package/dist/src/modules/namespace.d.ts +3 -0
  271. package/dist/src/modules/namespace.d.ts.map +1 -0
  272. package/dist/src/modules/out-results-fn.d.ts +6 -0
  273. package/dist/src/modules/out-results-fn.d.ts.map +1 -0
  274. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +12 -0
  275. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -0
  276. package/dist/src/modules/pipeline-builder/index.d.ts +14 -0
  277. package/dist/src/modules/pipeline-builder/index.d.ts.map +1 -0
  278. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +42 -0
  279. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -0
  280. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts +23 -0
  281. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -0
  282. package/dist/src/modules/pipeline-builder/pipeline-parser/index.d.ts +3 -0
  283. package/dist/src/modules/pipeline-builder/pipeline-parser/index.d.ts.map +1 -0
  284. package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts +20 -0
  285. package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts.map +1 -0
  286. package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts +29 -0
  287. package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts.map +1 -0
  288. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +16 -0
  289. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -0
  290. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +22 -0
  291. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -0
  292. package/dist/src/modules/pipeline-builder/stage-editor.d.ts +116 -0
  293. package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -0
  294. package/dist/src/modules/pipeline-builder/stage.d.ts +18 -0
  295. package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -0
  296. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +13 -0
  297. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -0
  298. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts +46 -0
  299. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -0
  300. package/dist/src/modules/projections.d.ts +4 -0
  301. package/dist/src/modules/projections.d.ts.map +1 -0
  302. package/dist/src/modules/saved-pipeline.d.ts +28 -0
  303. package/dist/src/modules/saved-pipeline.d.ts.map +1 -0
  304. package/dist/src/modules/saving-pipeline.d.ts +21 -0
  305. package/dist/src/modules/saving-pipeline.d.ts.map +1 -0
  306. package/dist/src/modules/server-version.d.ts +3 -0
  307. package/dist/src/modules/server-version.d.ts.map +1 -0
  308. package/dist/src/modules/settings.d.ts +33 -0
  309. package/dist/src/modules/settings.d.ts.map +1 -0
  310. package/dist/src/modules/source-name.d.ts +3 -0
  311. package/dist/src/modules/source-name.d.ts.map +1 -0
  312. package/dist/src/modules/update-view.d.ts +8 -0
  313. package/dist/src/modules/update-view.d.ts.map +1 -0
  314. package/dist/src/modules/workspace.d.ts +17 -0
  315. package/dist/src/modules/workspace.d.ts.map +1 -0
  316. package/dist/src/plugin.d.ts +24 -0
  317. package/dist/src/plugin.d.ts.map +1 -0
  318. package/dist/src/stores/create-view.d.ts +4 -0
  319. package/dist/src/stores/create-view.d.ts.map +1 -0
  320. package/dist/src/stores/duplicate-view.d.ts +3 -0
  321. package/dist/src/stores/duplicate-view.d.ts.map +1 -0
  322. package/dist/src/stores/index.d.ts +4 -0
  323. package/dist/src/stores/index.d.ts.map +1 -0
  324. package/dist/src/stores/store.d.ts +6 -0
  325. package/dist/src/stores/store.d.ts.map +1 -0
  326. package/dist/src/utils/cancellable-aggregation.d.ts +12 -0
  327. package/dist/src/utils/cancellable-aggregation.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 +17 -0
  337. package/dist/src/utils/stage.d.ts.map +1 -0
  338. package/package.json +38 -32
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-documents.d.ts","sourceRoot":"","sources":["../../../src/modules/input-documents.js"],"names":[],"mappings":"AAWA,4CAAyE;AAKzE,4CAAyE;AAKzE,6CAA2E;;;;;;;;;AA6CpE,iDAFM,MAAM,CAIjB;AAWK,6EAJI,KAAK,GAEH,MAAM,CAOjB;AAOK,yCAFM,MAAM,CAIjB;AAOK,kDAuCN;AAjGD,4DAJW,MAAM,GAEJ,GAAG,CAiBf"}
@@ -0,0 +1,3 @@
1
+ export default function reducer(state?: boolean): boolean;
2
+ export const INITIAL_STATE: false;
3
+ //# sourceMappingURL=is-atlas-deployed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-atlas-deployed.d.ts","sourceRoot":"","sources":["../../../src/modules/is-atlas-deployed.js"],"names":[],"mappings":"AAaA,0DAEC;AAZD,kCAAmC"}
@@ -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;AAGhD,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,12 @@
1
+ import type { PipelineBuilderThunkAction, RootState } from '..';
2
+ import type { PipelineBuilder } from './pipeline-builder';
3
+ import type { PipelineMode } from './pipeline-mode';
4
+ export declare const updatePipelinePreview: () => PipelineBuilderThunkAction<void>;
5
+ export declare function getStagesFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): import("bson").Document[] | (import("bson").Document[] | null)[];
6
+ export declare function getPipelineFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): import("bson").Document[];
7
+ export declare function getPipelineStringFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): string;
8
+ export declare function getPipelineStageOperatorsFromBuilderState(state: RootState): string[];
9
+ export declare function getIsPipelineInvalidFromBuilderState(state: RootState, includeServerErrors?: boolean): boolean;
10
+ export declare type EditorViewType = 'stage' | 'text';
11
+ export declare function mapPipelineModeToEditorViewType(mode: PipelineMode): EditorViewType;
12
+ //# 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;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,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,CAYV;AAED,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,SAAS,EAChB,mBAAmB,UAAO,GACzB,OAAO,CAWT;AAED,oBAAY,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAC9C,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAElF"}
@@ -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,42 @@
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 = "[]";
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 get nonEmptyStages();
20
+ private parseSourceToPipeline;
21
+ reset(source?: string): void;
22
+ changeSource(source: string): void;
23
+ sourceToStages(): void;
24
+ private validateSource;
25
+ getPipelineFromSource(): Document[];
26
+ stagesToSource(): void;
27
+ getStage(idx: number): Stage;
28
+ addStage(after?: number): Stage;
29
+ removeStage(at: number): Stage;
30
+ moveStage(from: number, to: number): Stage;
31
+ getPipelineStringFromStages(stages?: Stage[]): string;
32
+ getPipelineStringFromSource(): string;
33
+ getPipelineFromStages(stages?: Stage[]): Document[];
34
+ stopPreview(from?: number): void;
35
+ cancelPreviewForStage(id: number): void;
36
+ cancelPreviewForPipeline(): void;
37
+ getPreviewForStage(idx: number, namespace: string, options: PreviewOptions, force?: boolean): Promise<Document[]>;
38
+ isLastStagePreviewEqual(idx: number, pipeline?: Document[]): boolean;
39
+ getPreviewForPipeline(namespace: string, options: PreviewOptions, filterOutputStage?: boolean): Promise<Document[]>;
40
+ isLastPipelinePreviewEqual(pipeline?: Document[], filterOutputStage?: boolean): boolean;
41
+ }
42
+ //# 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,EAAkB,mBAAmB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M,EACX,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,EACvB,KAAK,UAAQ,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC;IActB,uBAAuB,CACrB,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,QAAQ,EAEjB;IAQH,qBAAqB,CACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,EACvB,iBAAiB,UAAQ,GACxB,OAAO,CAAC,QAAQ,EAAE,CAAC;IAkBtB,0BAA0B,CACxB,QAAQ,GAAE,QAAQ,EAAiC,EACnD,iBAAiB,UAAQ;CAY5B"}
@@ -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;AAMnE,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,CAiB3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,YAAY,KACpB,2BAA2B,IAAI,EAAE,yBAAyB,CAkC5D,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,20 @@
1
+ import type * as t from '@babel/types';
2
+ import type Stage from '../stage';
3
+ import { PipelineParserError } from './utils';
4
+ declare type ParseResponse = {
5
+ root: t.ArrayExpression;
6
+ stages: t.Expression[];
7
+ };
8
+ declare type ValidateResponse = {
9
+ root: t.ArrayExpression | null;
10
+ errors: PipelineParserError[];
11
+ };
12
+ export default class PipelineParser {
13
+ static parse(source: string): ParseResponse;
14
+ static _parseStringToRoot(source: string): t.ArrayExpression;
15
+ static validate(source: string): ValidateResponse;
16
+ static generate(root: t.ArrayExpression, stages: Stage[]): string;
17
+ static _getStageNodes(stages: Stage[]): t.Expression[];
18
+ }
19
+ export {};
20
+ //# 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;AACvC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAOlC,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;IAmBjD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM;IAiBjE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE;CA4DvD"}
@@ -0,0 +1,29 @@
1
+ import type * as t from '@babel/types';
2
+ import type Stage from '../stage';
3
+ export declare type StageLike = t.ObjectExpression & {
4
+ properties: [t.ObjectProperty & {
5
+ key: t.Identifier | t.StringLiteral;
6
+ }];
7
+ };
8
+ export declare function isNodeDisabled(node: t.Node): boolean;
9
+ export declare function setNodeDisabled(node: t.Node, value: boolean): void;
10
+ export declare function isValidStageNode(node?: t.ObjectExpression): boolean;
11
+ export declare function isStageLike(node?: t.Node | null, loose?: boolean): node is StageLike;
12
+ export declare const enum StageAssertionErrorCodes {
13
+ InvalidStage = 0,
14
+ NotObjectExpression = 1,
15
+ NoStageOperator = 2,
16
+ UnrecognizedStageName = 3,
17
+ NoStageValue = 4,
18
+ InvalidStageValue = 5
19
+ }
20
+ export declare function assertStageNode(node?: t.Node | null, loose?: boolean): asserts node is StageLike;
21
+ export declare function getStageOperatorFromNode(node: StageLike): string;
22
+ export declare function getStageValueFromNode(node: StageLike): string;
23
+ export declare function stageToAstComments(stage: Stage): t.CommentLine[];
24
+ export default class StageParser {
25
+ source: string;
26
+ private maybeObject;
27
+ push(str: string): false | StageLike;
28
+ }
29
+ //# 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;AACvC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAIlC,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,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,gBAAgB,GAAG,OAAO,CAanE;AAED,wBAAgB,WAAW,CACzB,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,EACpB,KAAK,UAAQ,GACZ,IAAI,IAAI,SAAS,CAOnB;AAUD,0BAAkB,wBAAwB;IACxC,YAAY,IAAA;IACZ,mBAAmB,IAAA;IACnB,eAAe,IAAA;IACf,qBAAqB,IAAA;IACrB,YAAY,IAAA;IACZ,iBAAiB,IAAA;CAClB;AAED,wBAAgB,eAAe,CAC7B,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,EACpB,KAAK,UAAQ,GACZ,OAAO,CAAC,IAAI,IAAI,SAAS,CAmC3B;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAIhE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAc7D;AAKD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,WAAW,EAAE,CAWhE;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,16 @@
1
+ import type { Node } from '@babel/types';
2
+ import type { Document } from 'mongodb';
3
+ import type { FormatOptions } from '@mongodb-js/compass-editor';
4
+ declare type ErrorLoc = {
5
+ line: number;
6
+ column: number;
7
+ };
8
+ export declare class PipelineParserError extends SyntaxError {
9
+ loc?: ErrorLoc | undefined;
10
+ code?: number | undefined;
11
+ constructor(message: string, loc?: ErrorLoc | undefined, code?: number | undefined);
12
+ }
13
+ export declare function generate(ast: Node, formatOptions?: FormatOptions): string;
14
+ export declare function parseShellBSON(source: string): Document[];
15
+ export { prettify } from '@mongodb-js/compass-editor';
16
+ //# 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;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,aAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AACD,qBAAa,mBAAoB,SAAQ,WAAW;IACd,GAAG,CAAC;IAAmB,IAAI,CAAC;gBAApD,OAAO,EAAE,MAAM,EAAS,GAAG,CAAC,sBAAU,EAAS,IAAI,CAAC,oBAAQ;CAGzE;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE,aAAa,UAMhE;AAMD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAQzD;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,22 @@
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
+ private lastPipeline;
16
+ constructor(dataService: DataService);
17
+ getPreviewForStage(idx: number, namespace: string, pipeline: Document[], { sampleSize, previewSize, totalDocumentCount, ...options }?: PreviewOptions, force?: boolean): Promise<Document[]>;
18
+ isLastPipelineEqual(idx: number, pipeline: Document[]): boolean;
19
+ cancelPreviewForStage(idx: number): boolean;
20
+ clearQueue(from?: number): void;
21
+ }
22
+ //# 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;AAU1D,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;IAGrB,OAAO,CAAC,WAAW;IAF/B,OAAO,CAAC,KAAK,CAAsC;IACnD,OAAO,CAAC,YAAY,CAAiC;gBACjC,WAAW,EAAE,WAAW;IAKtC,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;IAuBtB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO;IAO/D,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAS3C,UAAU,CAAC,IAAI,SAAI;CASpB"}
@@ -0,0 +1,116 @@
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
+ StagePreviewFetchSkipped = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSkipped",
9
+ StagePreviewFetchSuccess = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSuccess",
10
+ StagePreviewFetchError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
11
+ StageRun = "compass-aggregations/pipeline-builder/stage-editor/StageRun",
12
+ StageRunSuccess = "compass-aggregations/pipeline-builder/stage-editor/StageRunSuccess",
13
+ StageRunError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
14
+ StageValueChange = "compass-aggregations/pipeline-builder/stage-editor/StageValueChange",
15
+ StageOperatorChange = "compass-aggregations/pipeline-builder/stage-editor/StageOperatorChange",
16
+ StageCollapsedChange = "compass-aggregations/pipeline-builder/stage-editor/StageCollapsedChange",
17
+ StageDisabledChange = "compass-aggregations/pipeline-builder/stage-editor/StageDisabledChange",
18
+ StageAdded = "compass-aggregations/pipeline-builder/stage-editor/StageAdded",
19
+ StageRemoved = "compass-aggregations/pipeline-builder/stage-editor/StageRemoved",
20
+ StageMoved = "compass-aggregations/pipeline-builder/stage-editor/StageMoved"
21
+ }
22
+ export declare type StagePreviewFetchAction = {
23
+ type: StageEditorActionTypes.StagePreviewFetch;
24
+ id: number;
25
+ };
26
+ export declare type StagePreviewFetchSkippedAction = {
27
+ type: StageEditorActionTypes.StagePreviewFetchSkipped;
28
+ id: number;
29
+ };
30
+ export declare type StagePreviewFetchSuccessAction = {
31
+ type: StageEditorActionTypes.StagePreviewFetchSuccess;
32
+ id: number;
33
+ previewDocs: Document[];
34
+ };
35
+ export declare type StagePreviewFetchErrorAction = {
36
+ type: StageEditorActionTypes.StagePreviewFetchError;
37
+ id: number;
38
+ error: MongoServerError;
39
+ };
40
+ export declare type StageRunAction = {
41
+ type: StageEditorActionTypes.StageRun;
42
+ id: number;
43
+ };
44
+ export declare type StageRunSuccessAction = {
45
+ type: StageEditorActionTypes.StageRunSuccess;
46
+ id: number;
47
+ previewDocs: Document[];
48
+ };
49
+ export declare type StageRunErrorAction = {
50
+ type: StageEditorActionTypes.StageRunError;
51
+ id: number;
52
+ error: MongoServerError;
53
+ };
54
+ export declare type ChangeStageValueAction = {
55
+ type: StageEditorActionTypes.StageValueChange;
56
+ id: number;
57
+ stage: Stage;
58
+ };
59
+ export declare type ChangeStageOperatorAction = {
60
+ type: StageEditorActionTypes.StageOperatorChange;
61
+ id: number;
62
+ stage: Stage;
63
+ };
64
+ export declare type ChangeStageCollapsedAction = {
65
+ type: StageEditorActionTypes.StageCollapsedChange;
66
+ id: number;
67
+ collapsed: boolean;
68
+ };
69
+ export declare type ChangeStageDisabledAction = {
70
+ type: StageEditorActionTypes.StageDisabledChange;
71
+ id: number;
72
+ disabled: boolean;
73
+ };
74
+ export declare type StageAddAction = {
75
+ type: StageEditorActionTypes.StageAdded;
76
+ after?: number;
77
+ stage: Stage;
78
+ };
79
+ export declare type StageRemoveAction = {
80
+ type: StageEditorActionTypes.StageRemoved;
81
+ at: number;
82
+ };
83
+ export declare type StageMoveAction = {
84
+ type: StageEditorActionTypes.StageMoved;
85
+ from: number;
86
+ to: number;
87
+ };
88
+ export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction | StagePreviewFetchSkippedAction>;
89
+ export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
90
+ export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
91
+ export declare const changeStageValue: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageValueAction>;
92
+ export declare const changeStageOperator: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageOperatorAction>;
93
+ export declare const changeStageDisabled: (id: number, newVal: boolean) => PipelineBuilderThunkAction<void, ChangeStageDisabledAction>;
94
+ export declare const changeStageCollapsed: (id: number, newVal: boolean) => ChangeStageCollapsedAction;
95
+ export declare const addStage: (after?: number) => PipelineBuilderThunkAction<void, StageAddAction>;
96
+ export declare const removeStage: (at: number) => PipelineBuilderThunkAction<void, StageRemoveAction>;
97
+ export declare const moveStage: (from: number, to: number) => PipelineBuilderThunkAction<void, StageMoveAction>;
98
+ export declare type StageEditorState = {
99
+ stageIds: number[];
100
+ stages: {
101
+ id: number;
102
+ stageOperator: string | null;
103
+ value: string | null;
104
+ syntaxError: PipelineParserError | null;
105
+ serverError: MongoServerError | null;
106
+ loading: boolean;
107
+ previewDocs: Document[] | null;
108
+ collapsed: boolean;
109
+ disabled: boolean;
110
+ empty: boolean;
111
+ }[];
112
+ };
113
+ export declare function mapBuilderStageToStoreStage(stage: Stage): StageEditorState['stages'][number];
114
+ declare const reducer: Reducer<StageEditorState>;
115
+ export default reducer;
116
+ //# 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":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAoB,QAAQ,EAAE,gB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,CAAC;QACjB,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QAC/B,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,OAAO,CAAC;QAClB,KAAK,EAAE,OAAO,CAAC;KAChB,EAAE,CAAC;CACL,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,KAAK,GACX,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAapC;AAED,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAkOtC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,18 @@
1
+ import * as t from '@babel/types';
2
+ import type { PipelineParserError } from './pipeline-parser/utils';
3
+ export default class Stage {
4
+ id: number;
5
+ node: t.Expression;
6
+ disabled: boolean;
7
+ syntaxError: PipelineParserError | null;
8
+ operator: string | null;
9
+ value: string | null;
10
+ constructor(node?: t.Expression);
11
+ get isEmpty(): boolean;
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,CAAC,MAAM,cAAc,CAAC;AAUlC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAiCnE,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;IAiBnE,IAAI,OAAO,IAAI,OAAO,CAYrB;IAED,WAAW,CAAC,KAAK,EAAE,MAAM;IAgBzB,cAAc,CAAC,QAAQ,EAAE,MAAM;IAgB/B,cAAc,CAAC,KAAK,EAAE,OAAO;IAM7B,QAAQ;IAqDR,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;AA+BrD,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,CAyDtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QACpC,2BAA2B,QAAQ,IAAI,CAAC,CA8C1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,QACnC,2BAA2B,IAAI,CAajC,CAAC;AAGF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,46 @@
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
+ EditorPreviewFetchSkipped = "compass-aggregations/pipeline-builder/text-editor-pipeline/EditorPreviewFetchSkipped",
8
+ EditorPreviewFetchSuccess = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetchSuccess",
9
+ EditorPreviewFetchError = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetchError",
10
+ EditorValueChange = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorValueChange"
11
+ }
12
+ export declare type EditorValueChangeAction = {
13
+ type: EditorActionTypes.EditorValueChange;
14
+ pipelineText: string;
15
+ pipeline: Document[] | null;
16
+ syntaxErrors: PipelineParserError[];
17
+ };
18
+ declare type EditorPreviewFetchAction = {
19
+ type: EditorActionTypes.EditorPreviewFetch;
20
+ };
21
+ declare type EditorPreviewFetchSkippedAction = {
22
+ type: EditorActionTypes.EditorPreviewFetchSkipped;
23
+ };
24
+ declare type EditorPreviewFetchSuccessAction = {
25
+ type: EditorActionTypes.EditorPreviewFetchSuccess;
26
+ previewDocs: Document[];
27
+ };
28
+ declare type EditorPreviewFetchErrorAction = {
29
+ type: EditorActionTypes.EditorPreviewFetchError;
30
+ serverError: MongoServerError;
31
+ };
32
+ export declare type TextEditorState = {
33
+ pipelineText: string;
34
+ pipeline: Document[];
35
+ syntaxErrors: PipelineParserError[];
36
+ serverError: MongoServerError | null;
37
+ isLoading: boolean;
38
+ previewDocs: Document[] | null;
39
+ isPreviewStale: boolean;
40
+ };
41
+ declare const reducer: Reducer<TextEditorState>;
42
+ export declare function canRunPipeline(autoPreview: boolean, syntaxErrors: PipelineParserError[]): boolean;
43
+ export declare const loadPreviewForPipeline: () => PipelineBuilderThunkAction<Promise<void>, EditorPreviewFetchAction | EditorPreviewFetchSuccessAction | EditorPreviewFetchErrorAction | EditorPreviewFetchSkippedAction>;
44
+ export declare const changeEditorValue: (newValue: string) => PipelineBuilderThunkAction<void, EditorValueChangeAction>;
45
+ export default reducer;
46
+ //# 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,yFAAyF;IAClH,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;CACnD,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,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,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;IAC/B,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAYF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,eAAe,CAsGrC,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,GAC7B,+BAA+B,CAkEhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAClB,MAAM,KACf,2BAA2B,IAAI,EAAE,uBAAuB,CAyB1D,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"}