@mongodb-js/compass-aggregations 9.3.0 → 9.5.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 (261) hide show
  1. package/.eslintrc.js +3 -3
  2. package/.prettierignore +3 -0
  3. package/.prettierrc.json +1 -0
  4. package/README.md +27 -21
  5. package/dist/browser.js +1 -1
  6. package/dist/browser.js.LICENSE.txt +2 -14
  7. package/dist/index.css +7 -595
  8. package/dist/index.js +1 -22
  9. package/dist/index.js.LICENSE.txt +2 -14
  10. package/dist/src/components/add-stage/add-stage.d.ts +7 -16
  11. package/dist/src/components/add-stage/add-stage.d.ts.map +1 -1
  12. package/dist/src/components/aggregations/aggregations.d.ts +12 -1
  13. package/dist/src/components/aggregations/aggregations.d.ts.map +1 -1
  14. package/dist/src/components/create-view-modal/create-view-modal.d.ts +21 -31
  15. package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -1
  16. package/dist/src/components/create-view-plugin.d.ts.map +1 -1
  17. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +19 -28
  18. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -1
  19. package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts +16 -0
  20. package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts.map +1 -0
  21. package/dist/src/components/focus-mode/focus-mode-stage-editor.d.ts +14 -0
  22. package/dist/src/components/focus-mode/focus-mode-stage-editor.d.ts.map +1 -0
  23. package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts +23 -0
  24. package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts.map +1 -0
  25. package/dist/src/components/focus-mode/focus-mode.d.ts +13 -0
  26. package/dist/src/components/focus-mode/focus-mode.d.ts.map +1 -0
  27. package/dist/src/components/loading-overlay/index.d.ts +1 -1
  28. package/dist/src/components/loading-overlay/loading-overlay.d.ts +6 -12
  29. package/dist/src/components/loading-overlay/loading-overlay.d.ts.map +1 -1
  30. package/dist/src/components/pipeline/pipeline.d.ts +4 -13
  31. package/dist/src/components/pipeline/pipeline.d.ts.map +1 -1
  32. package/dist/src/components/pipeline-builder-input-documents.d.ts +17 -0
  33. package/dist/src/components/pipeline-builder-input-documents.d.ts.map +1 -0
  34. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts +4 -1
  35. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -1
  36. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +5 -1
  37. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -1
  38. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts +9 -1
  39. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -1
  40. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts +17 -0
  41. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts.map +1 -0
  42. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts +12 -19
  43. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts.map +1 -1
  44. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts +4 -1
  45. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts.map +1 -1
  46. package/dist/src/components/pipeline-confirm-modal/pipeline-confirm-modal.d.ts +13 -0
  47. package/dist/src/components/pipeline-confirm-modal/pipeline-confirm-modal.d.ts.map +1 -0
  48. package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +1 -1
  49. package/dist/src/components/pipeline-explain/explain-results.d.ts.map +1 -1
  50. package/dist/src/components/pipeline-explain/index.d.ts +4 -1
  51. package/dist/src/components/pipeline-explain/index.d.ts.map +1 -1
  52. package/dist/src/components/pipeline-output-options-menu.d.ts +8 -0
  53. package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -0
  54. package/dist/src/components/pipeline-results-workspace/index.d.ts +6 -1
  55. package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -1
  56. package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts.map +1 -1
  57. package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts +5 -1
  58. package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts.map +1 -1
  59. package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts +4 -1
  60. package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts.map +1 -1
  61. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +9 -1
  62. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts.map +1 -1
  63. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts +1 -0
  64. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -1
  65. package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts.map +1 -1
  66. package/dist/src/components/pipeline-toolbar/index.d.ts +12 -2
  67. package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -1
  68. package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts +9 -6
  69. package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts.map +1 -1
  70. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts +10 -1
  71. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts.map +1 -1
  72. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts +4 -1
  73. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts.map +1 -1
  74. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts +4 -11
  75. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts.map +1 -1
  76. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +7 -3
  77. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts.map +1 -1
  78. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts +4 -1
  79. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -1
  80. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts +5 -7
  81. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts.map +1 -1
  82. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts +4 -1
  83. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts.map +1 -1
  84. package/dist/src/components/resize-handle.d.ts +4 -0
  85. package/dist/src/components/resize-handle.d.ts.map +1 -0
  86. package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts +4 -4
  87. package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts.map +1 -1
  88. package/dist/src/components/saved-pipelines/saved-pipeline-confirmation-modals.d.ts +12 -0
  89. package/dist/src/components/saved-pipelines/saved-pipeline-confirmation-modals.d.ts.map +1 -0
  90. package/dist/src/components/saved-pipelines/saved-pipelines.d.ts +10 -3
  91. package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -1
  92. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -1
  93. package/dist/src/components/settings/settings.d.ts.map +1 -1
  94. package/dist/src/components/stage-editor/stage-editor.d.ts +26 -46
  95. package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -1
  96. package/dist/src/components/stage-preview/atlas-stage-preview.d.ts +5 -0
  97. package/dist/src/components/stage-preview/atlas-stage-preview.d.ts.map +1 -0
  98. package/dist/src/components/stage-preview/index.d.ts +18 -2
  99. package/dist/src/components/stage-preview/index.d.ts.map +1 -1
  100. package/dist/src/components/stage-preview/output-stage-preview.d.ts +19 -0
  101. package/dist/src/components/stage-preview/output-stage-preview.d.ts.map +1 -0
  102. package/dist/src/components/stage-preview/stage-preview-header.d.ts +17 -0
  103. package/dist/src/components/stage-preview/stage-preview-header.d.ts.map +1 -0
  104. package/dist/src/components/stage-toolbar/index.d.ts +18 -0
  105. package/dist/src/components/stage-toolbar/index.d.ts.map +1 -0
  106. package/dist/src/components/stage-toolbar/option-menu.d.ts +17 -0
  107. package/dist/src/components/stage-toolbar/option-menu.d.ts.map +1 -0
  108. package/dist/src/components/stage-toolbar/stage-collapser.d.ts +12 -0
  109. package/dist/src/components/stage-toolbar/stage-collapser.d.ts.map +1 -0
  110. package/dist/src/components/stage-toolbar/stage-operator-select.d.ts +36 -0
  111. package/dist/src/components/stage-toolbar/stage-operator-select.d.ts.map +1 -0
  112. package/dist/src/components/stage-toolbar/toggle-stage.d.ts +12 -0
  113. package/dist/src/components/stage-toolbar/toggle-stage.d.ts.map +1 -0
  114. package/dist/src/components/stage.d.ts +18 -0
  115. package/dist/src/components/stage.d.ts.map +1 -0
  116. package/dist/src/index.d.ts.map +1 -1
  117. package/dist/src/modules/aggregation.d.ts.map +1 -1
  118. package/dist/src/modules/auto-preview.d.ts +2 -2
  119. package/dist/src/modules/auto-preview.d.ts.map +1 -1
  120. package/dist/src/modules/collation-string.d.ts.map +1 -1
  121. package/dist/src/modules/count-documents.d.ts.map +1 -1
  122. package/dist/src/modules/create-view/index.d.ts.map +1 -1
  123. package/dist/src/modules/create-view/is-duplicating.d.ts.map +1 -1
  124. package/dist/src/modules/create-view/is-running.d.ts.map +1 -1
  125. package/dist/src/modules/data-service.d.ts +2 -2
  126. package/dist/src/modules/data-service.d.ts.map +1 -1
  127. package/dist/src/modules/explain.d.ts.map +1 -1
  128. package/dist/src/modules/export-to-language.d.ts.map +1 -1
  129. package/dist/src/modules/focus-mode.d.ts +30 -0
  130. package/dist/src/modules/focus-mode.d.ts.map +1 -0
  131. package/dist/src/modules/id.d.ts.map +1 -1
  132. package/dist/src/modules/index.d.ts +26 -7
  133. package/dist/src/modules/index.d.ts.map +1 -1
  134. package/dist/src/modules/input-documents.d.ts +38 -14
  135. package/dist/src/modules/input-documents.d.ts.map +1 -1
  136. package/dist/src/modules/is-new-pipeline-confirm.d.ts +15 -4
  137. package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -1
  138. package/dist/src/modules/large-limit.d.ts.map +1 -1
  139. package/dist/src/modules/max-time-ms.d.ts.map +1 -1
  140. package/dist/src/modules/out-results-fn.d.ts +1 -0
  141. package/dist/src/modules/out-results-fn.d.ts.map +1 -1
  142. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +4 -1
  143. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -1
  144. package/dist/src/modules/pipeline-builder/index.d.ts +8 -1
  145. package/dist/src/modules/pipeline-builder/index.d.ts.map +1 -1
  146. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +22 -12
  147. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -1
  148. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -1
  149. package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts +3 -2
  150. package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts.map +1 -1
  151. package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts +12 -2
  152. package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts.map +1 -1
  153. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +7 -6
  154. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -1
  155. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +2 -0
  156. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -1
  157. package/dist/src/modules/pipeline-builder/stage-editor.d.ts +7 -1
  158. package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
  159. package/dist/src/modules/pipeline-builder/stage.d.ts +2 -2
  160. package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -1
  161. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +13 -0
  162. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -0
  163. package/dist/src/modules/pipeline-builder/{text-editor.d.ts → text-editor-pipeline.d.ts} +16 -10
  164. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -0
  165. package/dist/src/modules/saved-pipeline.d.ts +1 -1
  166. package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
  167. package/dist/src/modules/saving-pipeline.d.ts.map +1 -1
  168. package/dist/src/modules/settings.d.ts.map +1 -1
  169. package/dist/src/modules/update-view.d.ts.map +1 -1
  170. package/dist/src/modules/workspace.d.ts.map +1 -1
  171. package/dist/src/stores/duplicate-view.d.ts.map +1 -1
  172. package/dist/src/stores/store.d.ts.map +1 -1
  173. package/dist/src/utils/cancellable-aggregation.d.ts +1 -1
  174. package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -1
  175. package/dist/src/utils/pipeline-storage.d.ts.map +1 -1
  176. package/dist/src/utils/stage.d.ts +11 -2
  177. package/dist/src/utils/stage.d.ts.map +1 -1
  178. package/package.json +43 -42
  179. package/dist/src/components/input/index.d.ts +0 -3
  180. package/dist/src/components/input/index.d.ts.map +0 -1
  181. package/dist/src/components/input/input.d.ts +0 -25
  182. package/dist/src/components/input/input.d.ts.map +0 -1
  183. package/dist/src/components/input-builder/index.d.ts +0 -3
  184. package/dist/src/components/input-builder/index.d.ts.map +0 -1
  185. package/dist/src/components/input-builder/input-builder.d.ts +0 -9
  186. package/dist/src/components/input-builder/input-builder.d.ts.map +0 -1
  187. package/dist/src/components/input-builder-toolbar/index.d.ts +0 -3
  188. package/dist/src/components/input-builder-toolbar/index.d.ts.map +0 -1
  189. package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts +0 -16
  190. package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts.map +0 -1
  191. package/dist/src/components/input-collapser/index.d.ts +0 -3
  192. package/dist/src/components/input-collapser/index.d.ts.map +0 -1
  193. package/dist/src/components/input-collapser/input-collapser.d.ts +0 -14
  194. package/dist/src/components/input-collapser/input-collapser.d.ts.map +0 -1
  195. package/dist/src/components/input-documents-count/index.d.ts +0 -3
  196. package/dist/src/components/input-documents-count/index.d.ts.map +0 -1
  197. package/dist/src/components/input-documents-count/input-documents-count.d.ts +0 -13
  198. package/dist/src/components/input-documents-count/input-documents-count.d.ts.map +0 -1
  199. package/dist/src/components/input-preview/index.d.ts +0 -3
  200. package/dist/src/components/input-preview/index.d.ts.map +0 -1
  201. package/dist/src/components/input-preview/input-preview.d.ts +0 -15
  202. package/dist/src/components/input-preview/input-preview.d.ts.map +0 -1
  203. package/dist/src/components/input-preview-toolbar/index.d.ts +0 -3
  204. package/dist/src/components/input-preview-toolbar/index.d.ts.map +0 -1
  205. package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts +0 -7
  206. package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts.map +0 -1
  207. package/dist/src/components/input-refresh/index.d.ts +0 -3
  208. package/dist/src/components/input-refresh/index.d.ts.map +0 -1
  209. package/dist/src/components/input-refresh/input-refresh.d.ts +0 -13
  210. package/dist/src/components/input-refresh/input-refresh.d.ts.map +0 -1
  211. package/dist/src/components/input-toolbar/index.d.ts +0 -3
  212. package/dist/src/components/input-toolbar/index.d.ts.map +0 -1
  213. package/dist/src/components/input-toolbar/input-toolbar.d.ts +0 -16
  214. package/dist/src/components/input-toolbar/input-toolbar.d.ts.map +0 -1
  215. package/dist/src/components/input-workspace/index.d.ts +0 -3
  216. package/dist/src/components/input-workspace/index.d.ts.map +0 -1
  217. package/dist/src/components/input-workspace/input-workspace.d.ts +0 -16
  218. package/dist/src/components/input-workspace/input-workspace.d.ts.map +0 -1
  219. package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts +0 -17
  220. package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts.map +0 -1
  221. package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts +0 -17
  222. package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts.map +0 -1
  223. package/dist/src/components/pipeline/modals/import-pipeline.d.ts +0 -33
  224. package/dist/src/components/pipeline/modals/import-pipeline.d.ts.map +0 -1
  225. package/dist/src/components/resize-handle/resize-handle.d.ts +0 -7
  226. package/dist/src/components/resize-handle/resize-handle.d.ts.map +0 -1
  227. package/dist/src/components/stage/index.d.ts +0 -3
  228. package/dist/src/components/stage/index.d.ts.map +0 -1
  229. package/dist/src/components/stage/stage.d.ts +0 -29
  230. package/dist/src/components/stage/stage.d.ts.map +0 -1
  231. package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts +0 -18
  232. package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts.map +0 -1
  233. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts +0 -18
  234. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts.map +0 -1
  235. package/dist/src/components/stage-editor-toolbar/index.d.ts +0 -3
  236. package/dist/src/components/stage-editor-toolbar/index.d.ts.map +0 -1
  237. package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts +0 -14
  238. package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts.map +0 -1
  239. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts +0 -20
  240. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts.map +0 -1
  241. package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts +0 -21
  242. package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts.map +0 -1
  243. package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts +0 -9
  244. package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts.map +0 -1
  245. package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts +0 -24
  246. package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts.map +0 -1
  247. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts +0 -20
  248. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts.map +0 -1
  249. package/dist/src/components/stage-preview/stage-preview.d.ts +0 -49
  250. package/dist/src/components/stage-preview/stage-preview.d.ts.map +0 -1
  251. package/dist/src/components/stage-preview-toolbar/index.d.ts +0 -3
  252. package/dist/src/components/stage-preview-toolbar/index.d.ts.map +0 -1
  253. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts +0 -25
  254. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts.map +0 -1
  255. package/dist/src/modules/import-pipeline.d.ts +0 -20
  256. package/dist/src/modules/import-pipeline.d.ts.map +0 -1
  257. package/dist/src/modules/link.d.ts +0 -2
  258. package/dist/src/modules/link.d.ts.map +0 -1
  259. package/dist/src/modules/pipeline-builder/text-editor.d.ts.map +0 -1
  260. package/dist/src/utils/cancellable-promise.d.ts +0 -10
  261. package/dist/src/utils/cancellable-promise.d.ts.map +0 -1
@@ -1,7 +1,14 @@
1
1
  declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
2
2
  pipelineMode: import("./pipeline-mode").PipelineMode;
3
3
  stageEditor: import("./stage-editor").StageEditorState;
4
- textEditor: import("./text-editor").TextEditorState;
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
+ }>;
5
12
  }>, import("redux").AnyAction>;
6
13
  export default reducer;
7
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;8BAIX,CAAC;AAEH,eAAe,OAAO,CAAC"}
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"}
@@ -1,29 +1,33 @@
1
1
  import type { DataService } from 'mongodb-data-service';
2
- import type * as t from '@babel/types';
3
2
  import type { Document } from 'bson';
4
3
  import { PipelinePreviewManager } from './pipeline-preview-manager';
5
4
  import type { PreviewOptions } from './pipeline-preview-manager';
6
5
  import Stage from './stage';
7
- import { PipelineParserError } from './pipeline-parser/utils';
8
- export declare const DEFAULT_PIPELINE = "[\n{}\n]";
6
+ export declare const DEFAULT_PIPELINE = "[]";
9
7
  export declare class PipelineBuilder {
10
- private _source;
11
- pipeline: Document[] | null;
12
- node: t.ArrayExpression | null;
13
- stages: Stage[];
14
- syntaxError: PipelineParserError[];
8
+ source: string;
9
+ private _node;
10
+ private _pipeline;
11
+ private _syntaxError;
12
+ private _stages;
15
13
  previewManager: PipelinePreviewManager;
16
14
  constructor(dataService: DataService, source?: string);
17
- set source(source: string);
18
- get source(): string;
15
+ private isEmptySource;
16
+ get node(): typeof this._node;
17
+ set node(val: typeof this._node);
18
+ get pipeline(): typeof this._pipeline;
19
+ set pipeline(val: typeof this._pipeline);
20
+ get syntaxError(): typeof this._syntaxError;
21
+ set syntaxError(val: typeof this._syntaxError);
22
+ get stages(): typeof this._stages;
23
+ set stages(val: typeof this._stages);
24
+ private get nonEmptyStages();
19
25
  private parseSourceToPipeline;
20
26
  reset(source?: string): void;
21
- stopPreview(from?: number): void;
22
27
  changeSource(source: string): void;
23
28
  sourceToStages(): void;
24
29
  private validateSource;
25
30
  getPipelineFromSource(): Document[];
26
- getPreviewForPipeline(namespace: string, options: PreviewOptions): Promise<Document[]>;
27
31
  stagesToSource(): void;
28
32
  getStage(idx: number): Stage;
29
33
  addStage(after?: number): Stage;
@@ -32,6 +36,12 @@ export declare class PipelineBuilder {
32
36
  getPipelineStringFromStages(stages?: Stage[]): string;
33
37
  getPipelineStringFromSource(): string;
34
38
  getPipelineFromStages(stages?: Stage[]): Document[];
39
+ stopPreview(from?: number): void;
40
+ cancelPreviewForStage(id: number): void;
41
+ cancelPreviewForPipeline(): void;
35
42
  getPreviewForStage(idx: number, namespace: string, options: PreviewOptions, force?: boolean): Promise<Document[]>;
43
+ isLastStagePreviewEqual(idx: number, pipeline?: Document[]): boolean;
44
+ getPreviewForPipeline(namespace: string, options: PreviewOptions, filterOutputStage?: boolean): Promise<Document[]>;
45
+ isLastPipelinePreviewEqual(pipeline?: Document[], filterOutputStage?: boolean): boolean;
36
46
  }
37
47
  //# sourceMappingURL=pipeline-builder.d.ts.map
@@ -1 +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;AAG1E,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,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,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,CAa3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,YAAY,KACpB,2BAA2B,IAAI,EAAE,yBAAyB,CAkC5D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type * as t from '@babel/types';
2
+ import type Stage from '../stage';
2
3
  import { PipelineParserError } from './utils';
3
4
  declare type ParseResponse = {
4
5
  root: t.ArrayExpression;
@@ -12,8 +13,8 @@ export default class PipelineParser {
12
13
  static parse(source: string): ParseResponse;
13
14
  static _parseStringToRoot(source: string): t.ArrayExpression;
14
15
  static validate(source: string): ValidateResponse;
15
- static generate(root: t.ArrayExpression, stages: t.Expression[]): string;
16
- static _getStageNodes(stages: t.Expression[]): t.ArrayExpression['elements'];
16
+ static generate(root: t.ArrayExpression, stages: Stage[]): string;
17
+ static _getStageNodes(stages: Stage[]): t.Expression[];
17
18
  }
18
19
  export {};
19
20
  //# sourceMappingURL=pipeline-parser.d.ts.map
@@ -1 +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,MA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AAC,MAAM,EAAE,MAAM,GAAG,gBAAgB;IAmBjD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM;IAmBjE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE;CA4DvD"}
@@ -1,4 +1,5 @@
1
1
  import type * as t from '@babel/types';
2
+ import type Stage from '../stage';
2
3
  export declare type StageLike = t.ObjectExpression & {
3
4
  properties: [t.ObjectProperty & {
4
5
  key: t.Identifier | t.StringLiteral;
@@ -6,11 +7,20 @@ export declare type StageLike = t.ObjectExpression & {
6
7
  };
7
8
  export declare function isNodeDisabled(node: t.Node): boolean;
8
9
  export declare function setNodeDisabled(node: t.Node, value: boolean): void;
10
+ export declare function isValidStageNode(node?: t.ObjectExpression): boolean;
9
11
  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;
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;
11
21
  export declare function getStageOperatorFromNode(node: StageLike): string;
12
22
  export declare function getStageValueFromNode(node: StageLike): string;
13
- export declare function stageToAstComments(stage: t.Expression): t.CommentLine[];
23
+ export declare function stageToAstComments(stage: Stage): t.CommentLine[];
14
24
  export default class StageParser {
15
25
  source: string;
16
26
  private maybeObject;
@@ -1 +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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Ac,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"}
@@ -1,15 +1,16 @@
1
1
  import type { Node } from '@babel/types';
2
2
  import type { Document } from 'mongodb';
3
+ import type { FormatOptions } from '@mongodb-js/compass-editor';
3
4
  declare type ErrorLoc = {
4
5
  line: number;
5
6
  column: number;
6
7
  };
7
8
  export declare class PipelineParserError extends SyntaxError {
8
- loc: ErrorLoc | undefined;
9
- constructor(message: string, loc?: ErrorLoc);
9
+ loc?: ErrorLoc | undefined;
10
+ code?: number | undefined;
11
+ constructor(message: string, loc?: ErrorLoc | undefined, code?: number | undefined);
10
12
  }
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 {};
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';
15
16
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +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"}
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,CAAC;AACF,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"}
@@ -12,8 +12,10 @@ export declare function createPreviewAggregation(pipeline: Document[], options?:
12
12
  export declare class PipelinePreviewManager {
13
13
  private dataService;
14
14
  private queue;
15
+ private lastPipeline;
15
16
  constructor(dataService: DataService);
16
17
  getPreviewForStage(idx: number, namespace: string, pipeline: Document[], { sampleSize, previewSize, totalDocumentCount, ...options }?: PreviewOptions, force?: boolean): Promise<Document[]>;
18
+ isLastPipelineEqual(idx: number, pipeline: Document[]): boolean;
17
19
  cancelPreviewForStage(idx: number): boolean;
18
20
  clearQueue(from?: number): void;
19
21
  }
@@ -1 +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,cA0BP;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"}
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;AAc1D,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,cA4BP;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"}
@@ -5,6 +5,7 @@ import type Stage from './stage';
5
5
  import type { PipelineParserError } from './pipeline-parser/utils';
6
6
  export declare const enum StageEditorActionTypes {
7
7
  StagePreviewFetch = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetch",
8
+ StagePreviewFetchSkipped = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSkipped",
8
9
  StagePreviewFetchSuccess = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSuccess",
9
10
  StagePreviewFetchError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
10
11
  StageRun = "compass-aggregations/pipeline-builder/stage-editor/StageRun",
@@ -22,6 +23,10 @@ export declare type StagePreviewFetchAction = {
22
23
  type: StageEditorActionTypes.StagePreviewFetch;
23
24
  id: number;
24
25
  };
26
+ export declare type StagePreviewFetchSkippedAction = {
27
+ type: StageEditorActionTypes.StagePreviewFetchSkipped;
28
+ id: number;
29
+ };
25
30
  export declare type StagePreviewFetchSuccessAction = {
26
31
  type: StageEditorActionTypes.StagePreviewFetchSuccess;
27
32
  id: number;
@@ -80,7 +85,7 @@ export declare type StageMoveAction = {
80
85
  from: number;
81
86
  to: number;
82
87
  };
83
- export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction>;
88
+ export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction | StagePreviewFetchSkippedAction>;
84
89
  export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
85
90
  export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
86
91
  export declare const changeStageValue: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageValueAction>;
@@ -102,6 +107,7 @@ export declare type StageEditorState = {
102
107
  previewDocs: Document[] | null;
103
108
  collapsed: boolean;
104
109
  disabled: boolean;
110
+ empty: boolean;
105
111
  }[];
106
112
  };
107
113
  export declare function mapBuilderStageToStoreStage(stage: Stage): StageEditorState['stages'][number];
@@ -1 +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,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI5E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAWjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAInE,0BAAkB,sBAAsB;IACtC,i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,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;QACxC,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;QACrC,OAAO,EAAE,OAAO,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,CAoOtC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,6 +1,5 @@
1
- import type * as t from '@babel/types';
1
+ import * as t from '@babel/types';
2
2
  import type { PipelineParserError } from './pipeline-parser/utils';
3
- export declare function stageToString(operator: string, value: string, disabled: boolean): string;
4
3
  export default class Stage {
5
4
  id: number;
6
5
  node: t.Expression;
@@ -9,6 +8,7 @@ export default class Stage {
9
8
  operator: string | null;
10
9
  value: string | null;
11
10
  constructor(node?: t.Expression);
11
+ get isEmpty(): boolean;
12
12
  changeValue(value: string): this;
13
13
  changeOperator(operator: string): this;
14
14
  changeDisabled(value: boolean): this;
@@ -1 +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"}
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,CAwDtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,2BAC5C,QAAQ,IAAI,CAAC,CA8Cd,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAChC,2BAA2B,IAAI,CAalC,CAAC;AAEJ,eAAe,OAAO,CAAC"}
@@ -3,12 +3,13 @@ import type { Document, MongoServerError } from 'mongodb';
3
3
  import type { PipelineBuilderThunkAction } from '..';
4
4
  import type { PipelineParserError } from './pipeline-parser/utils';
5
5
  export declare const enum EditorActionTypes {
6
- EditorPreviewFetch = "compass-aggregations/pipeline-builder/text-editor/TextEditorPreviewFetch",
7
- EditorPreviewFetchSuccess = "compass-aggregations/pipeline-builder/text-editor/TextEditorPreviewFetchSuccess",
8
- EditorPreviewFetchError = "compass-aggregations/pipeline-builder/text-editor/TextEditorPreviewFetchError",
9
- EditorValueChange = "compass-aggregations/pipeline-builder/text-editor/TextEditorValueChange"
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"
10
11
  }
11
- declare type EditorValueChangeAction = {
12
+ export declare type EditorValueChangeAction = {
12
13
  type: EditorActionTypes.EditorValueChange;
13
14
  pipelineText: string;
14
15
  pipeline: Document[] | null;
@@ -17,6 +18,9 @@ declare type EditorValueChangeAction = {
17
18
  declare type EditorPreviewFetchAction = {
18
19
  type: EditorActionTypes.EditorPreviewFetch;
19
20
  };
21
+ declare type EditorPreviewFetchSkippedAction = {
22
+ type: EditorActionTypes.EditorPreviewFetchSkipped;
23
+ };
20
24
  declare type EditorPreviewFetchSuccessAction = {
21
25
  type: EditorActionTypes.EditorPreviewFetchSuccess;
22
26
  previewDocs: Document[];
@@ -27,14 +31,16 @@ declare type EditorPreviewFetchErrorAction = {
27
31
  };
28
32
  export declare type TextEditorState = {
29
33
  pipelineText: string;
30
- stageOperators: string[];
34
+ pipeline: Document[];
31
35
  syntaxErrors: PipelineParserError[];
32
36
  serverError: MongoServerError | null;
33
- loading: boolean;
37
+ isLoading: boolean;
34
38
  previewDocs: Document[] | null;
39
+ isPreviewStale: boolean;
35
40
  };
36
41
  declare const reducer: Reducer<TextEditorState>;
37
- export declare const loadPreviewForPipeline: () => PipelineBuilderThunkAction<Promise<void>, EditorPreviewFetchAction | EditorPreviewFetchSuccessAction | EditorPreviewFetchErrorAction>;
38
- export declare const changeEditorValue: (value: string) => PipelineBuilderThunkAction<void, EditorValueChangeAction>;
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>;
39
45
  export default reducer;
40
- //# sourceMappingURL=text-editor.d.ts.map
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;AAQrD,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,CAoGrC,CAAC;AAEF,wBAAgB,cAAc,CAC5B,WAAW,EAAE,OAAO,EACpB,YAAY,EAAE,mBAAmB,EAAE,WAGpC;AAED,eAAO,MAAM,sBAAsB,QAAO,2BACxC,QAAQ,IAAI,CAAC,EACX,wBAAwB,GACxB,+BAA+B,GAC/B,6BAA6B,GAC7B,+BAA+B,CAqElC,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAClB,MAAM,KACf,2BAA2B,IAAI,EAAE,uBAAuB,CAyB1D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -22,7 +22,7 @@ export declare const savedPipelineAdd: (pipelines: StoredPipeline[]) => {
22
22
  };
23
23
  export declare const getSavedPipelines: () => PipelineBuilderThunkAction<void>;
24
24
  export declare const updatePipelineList: () => PipelineBuilderThunkAction<void>;
25
- export declare const deletePipeline: (pipelineId: string) => PipelineBuilderThunkAction<Promise<void>>;
25
+ export declare const deletePipelineById: (pipelineId: string) => PipelineBuilderThunkAction<Promise<void>>;
26
26
  export declare const openPipelineById: (id: string) => PipelineBuilderThunkAction<Promise<void>>;
27
27
  export declare const saveCurrentPipeline: () => PipelineBuilderThunkAction<void>;
28
28
  //# sourceMappingURL=saved-pipeline.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"saved-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saved-pipeline.ts"],"names":[],"mappings":"AAGA,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;AAYhE,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,QACxB,2BAA2B,IAAI,CAIlC,CAAC;AAKJ,eAAO,MAAM,kBAAkB,QACzB,2BAA2B,IAAI,CAiBlC,CAAC;AAKJ,eAAO,MAAM,kBAAkB,eACjB,MAAM,KACjB,2BAA2B,QAAQ,IAAI,CAAC,CAK1C,CAAC;AAKF,eAAO,MAAM,gBAAgB,OACvB,MAAM,KACT,2BAA2B,QAAQ,IAAI,CAAC,CAiC1C,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAC1B,2BAA2B,IAAI,CAiDlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"saving-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saving-pipeline.js"],"names":[],"mappings":"AA6BA,mEAJW,MAAM,GAEJ,GAAG,CAgCf;AAvDD,uFAAwF;AAExF,yEAA0E;AAE1E,2EAA4E;AAE5E,uEAAwE;;;;;;AA0DjE,yDAFM,MAAM,CAKjB;AAQK,uCAFM,MAAM,CAYlB;AAMM,wCAFM,MAAM,CAIjB;AAOK;;;IAFM,OAAO,OAAO,EAAE,SAAS,CAQrC;AAQM;;WAgBN"}
1
+ {"version":3,"file":"saving-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saving-pipeline.js"],"names":[],"mappings":"AA8BA,mEAJW,MAAM,GAEJ,GAAG,CAmCf;AA3DD,uFAC8C;AAE9C,yEAA0E;AAE1E,2EAA4E;AAE5E,uEAAwE;;;;;;AA6DjE,yDAFM,MAAM,CAKjB;AAOK,uCAFM,MAAM,CAYlB;AAMM,wCAFM,MAAM,CAIjB;AAOK;;;IAFM,OAAO,OAAO,EAAE,SAAS,CAQrC;AAQM;;WAgBN"}
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/modules/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,eAAO,MAAM,kBAAkB,QAAiC,CAAC;AAEjE,eAAO,MAAM,mBAAmB,QAAkC,CAAC;AAEnE,eAAO,MAAM,eAAe,QAA8B,CAAC;AAE3D,eAAO,MAAM,SAAS,QAAwB,CAAC;AAE/C,eAAO,MAAM,cAAc,QAA6B,CAAC;AASzD,aAAK,KAAK,GAAG;IACX,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,K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;;CAG5C,CAAC;AAOH,eAAO,MAAM,aAAa,QAAO,2BAA2B,IAAI,CAW/D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.js"],"names":[],"mappings":"AAqBA,2EAWC;AAnBD,iCAAkC;AAGlC,iFAAkF;AAGlF,6FAA8F;AAsBvF,8CAJI,KAAK,GAEH,MAAM,CAKjB;AAOK,oCAFM,MAAM,CAIjB;AAOK,uCAkDN"}
1
+ {"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.js"],"names":[],"mappings":"AAwBA,2EAWC;AArBD,iCAAkC;AAGlC,iFACiD;AAGjD,6FACuD;AAsBhD,8CAJI,KAAK,GAEH,MAAM,CAKjB;AAOK,oCAFM,MAAM,CAIjB;AAOK,uCAoDN"}
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/modules/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,oBAAY,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,gBAAgB,0CAA0C;CAC3D;AAED,aAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,oBAAY,OAAO,GAAG,sBAAsB,CAAC;AAC7C,oBAAY,KAAK,GAAG,SAAS,CAAC;AAE9B,eAAO,MAAM,aAAa,EAAE,KAAiB,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAWtC,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,2BAA2B,IAAI,CAS9D,CAAC;AACF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/modules/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,oBAAY,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,gBAAgB,0CAA0C;CAC3D;AAED,aAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,oBAAY,OAAO,GAAG,sBAAsB,CAAC;AAC7C,oBAAY,KAAK,GAAG,SAAS,CAAC;AAE9B,eAAO,MAAM,aAAa,EAAE,KAAiB,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAWtC,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,2BAA2B,IAAI,CAS9D,CAAC;AACF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"duplicate-view.d.ts","sourceRoot":"","sources":["../../../src/stores/duplicate-view.js"],"names":[],"mappings":";AAQA,yBAA2D"}
1
+ {"version":3,"file":"duplicate-view.d.ts","sourceRoot":"","sources":["../../../src/stores/duplicate-view.js"],"names":[],"mappings":";AAMA,yBAA2D"}
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.js"],"names":[],"mappings":"AAmBO,iDAEN;AAQM,6DAEN;AAEM,2DAMN;;AASD,0DA4HC"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.js"],"names":[],"mappings":"AAmBO,iDAEN;AAQM,6DAEN;AAEM,2DAMN;;AASD,0DA8HC"}
@@ -1,6 +1,6 @@
1
1
  import type { AggregateOptions, Document } from 'mongodb';
2
2
  import type { DataService } from 'mongodb-data-service';
3
- export declare function aggregatePipeline({ dataService, signal, namespace, pipeline, options, skip, limit }: {
3
+ export declare function aggregatePipeline({ dataService, signal, namespace, pipeline, options, skip, limit, }: {
4
4
  dataService: DataService;
5
5
  signal: AbortSignal;
6
6
  namespace: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cancellable-aggregation.d.ts","sourceRoot":"","sources":["../../../src/utils/cancellable-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAYxD,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,EACN,EAAE;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAmCtB"}
1
+ {"version":3,"file":"cancellable-aggregation.d.ts","sourceRoot":"","sources":["../../../src/utils/cancellable-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AASxD,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,GACN,EAAE;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,WA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,EAAE,EAAE,MAAM;CAIxB"}
1
+ {"version":3,"file":"pipeline-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/pipeline-storage.ts"],"names":[],"mappings":"AAUA,oBAAY,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1E,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AA8CF,qBAAa,eAAe;IACpB,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAWpC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAIhD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAoB1D,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQhD,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;IAwBhE,MAAM,CAAC,EAAE,EAAE,MAAM;CAIxB"}
@@ -1,11 +1,20 @@
1
1
  export function isAtlasOnly(operatorEnv: any): any;
2
2
  export function getStageOperator(stage: unknown): string | undefined;
3
- export function getDestinationNamespaceFromStage(namespace: string, stage: unknown): string;
3
+ export function getDestinationNamespaceFromStage(namespace: string, stage: import('mongodb').Document): string;
4
4
  export function isOutputStage(stageOperator: string): boolean;
5
+ export function isAtlasOnlyStage(stageOperator: string): boolean;
5
6
  export function getStageInfo(namespace: string, stageOperator: string | undefined | null, stageValue: string | undefined | null): {
6
7
  description?: string;
7
8
  link?: string;
8
9
  destination?: string;
9
10
  };
10
- export function filterStageOperators({ serverVersion, env, isTimeSeries, sourceName }: Object): any[];
11
+ export function hasSyntaxError(stage: any): boolean;
12
+ export const OUT_STAGE_PREVIEW_TEXT: string;
13
+ export const MERGE_STAGE_PREVIEW_TEXT: string;
14
+ export function filterStageOperators({ serverVersion, env, isTimeSeries, sourceName, preferencesReadOnly, }: Object): any[];
15
+ export function getStageHelpLink(stageOperator: any): string | null;
16
+ export function getLastStageOperator(pipeline: import('mongodb').Document[]): string;
17
+ export function isLastStageOutputStage(pipeline: import('mongodb').Document[]): boolean;
18
+ export function isMissingAtlasStageSupport(env: string | null | undefined, operator: string | null | undefined, serverError: import('mongodb').MongoServerError | null | undefined): boolean;
19
+ export function findAtlasOperator(operators: string[]): string | undefined;
11
20
  //# sourceMappingURL=stage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/utils/stage.js"],"names":[],"mappings":"AAyBA,mDAEC;AAgDD,wCAHW,OAAO,GACL,MAAM,GAAG,SAAS,CAI9B;AAcA,4DAJU,MAAM,SACN,OAAO,GACL,MAAM,CAyBlB;AAQD,6CAHW,MAAM,GACJ,OAAO,CAInB;AAYD,wCALW,MAAM,iBACN,MAAM,GAAG,SAAS,GAAG,IAAI,cACzB,MAAM,GAAG,SAAS,GAAG,IAAI,GACvB;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAgCzE;AApHM,uFARI,MAAM,SA2BhB"}
1
+ {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/utils/stage.js"],"names":[],"mappings":"AAmCA,mDAE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