@mongodb-js/compass-aggregations 0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321 → 0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973
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.
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/add-stage/add-stage.d.ts +1 -1
- package/dist/src/components/add-stage/add-stage.d.ts.map +1 -1
- package/dist/src/components/add-stage/index.d.ts +1 -1
- package/dist/src/components/add-stage/index.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/feedback-link.d.ts +3 -0
- package/dist/src/components/aggregation-side-panel/feedback-link.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/index.d.ts +12 -0
- package/dist/src/components/aggregation-side-panel/index.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/index.d.ts +15 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/index.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/sort/sort.d.ts +7 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/sort/sort.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.d.ts +6 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.d.ts.map +1 -0
- package/dist/src/components/aggregations/aggregations.d.ts +2 -2
- package/dist/src/components/aggregations/aggregations.d.ts.map +1 -1
- package/dist/src/components/aggregations/index.d.ts +2 -2
- package/dist/src/components/aggregations/index.d.ts.map +1 -1
- package/dist/src/components/create-view-modal/create-view-modal.d.ts +2 -2
- package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -1
- package/dist/src/components/create-view-modal/index.d.ts +2 -2
- package/dist/src/components/create-view-modal/index.d.ts.map +1 -1
- package/dist/src/components/create-view-plugin.d.ts +3 -3
- package/dist/src/components/create-view-plugin.d.ts.map +1 -1
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +2 -2
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -1
- package/dist/src/components/duplicate-view-modal/index.d.ts +2 -2
- package/dist/src/components/duplicate-view-modal/index.d.ts.map +1 -1
- package/dist/src/components/duplicate-view-plugin.d.ts +2 -2
- package/dist/src/components/duplicate-view-plugin.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts +6 -2
- package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode-stage-editor.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts +1 -1
- package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode.d.ts +1 -1
- package/dist/src/components/focus-mode/focus-mode.d.ts.map +1 -1
- package/dist/src/components/loading-overlay/index.d.ts +1 -1
- package/dist/src/components/loading-overlay/index.d.ts.map +1 -1
- package/dist/src/components/loading-overlay/loading-overlay.d.ts +1 -1
- package/dist/src/components/loading-overlay/loading-overlay.d.ts.map +1 -1
- package/dist/src/components/modify-source-banner/index.d.ts +1 -1
- package/dist/src/components/modify-source-banner/index.d.ts.map +1 -1
- package/dist/src/components/modify-source-banner/modify-source-banner.d.ts +1 -1
- package/dist/src/components/modify-source-banner/modify-source-banner.d.ts.map +1 -1
- package/dist/src/components/pipeline/index.d.ts +1 -1
- package/dist/src/components/pipeline/index.d.ts.map +1 -1
- package/dist/src/components/pipeline/pipeline.d.ts +2 -2
- package/dist/src/components/pipeline/pipeline.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-input-documents.d.ts +1 -1
- package/dist/src/components/pipeline-builder-input-documents.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/index.d.ts +12 -2
- package/dist/src/components/pipeline-builder-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/{pipeline-builder-ui-workspace.d.ts → pipeline-builder-ui-workspace/index.d.ts} +4 -3
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/sortable-list.d.ts +16 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/sortable-list.d.ts.map +1 -0
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts +1 -1
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts.map +1 -1
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts +1 -1
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +1 -1
- package/dist/src/components/pipeline-explain/explain-results.d.ts +1 -1
- package/dist/src/components/pipeline-explain/explain-results.d.ts.map +1 -1
- package/dist/src/components/pipeline-explain/index.d.ts +1 -1
- package/dist/src/components/pipeline-explain/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-output-options-menu.d.ts +1 -1
- package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/index.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/index.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts +3 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts.map +1 -1
- package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts +1 -1
- package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts.map +1 -1
- package/dist/src/components/saved-pipelines/saved-pipelines.d.ts +1 -1
- package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -1
- package/dist/src/components/saving-pipeline-modal/index.d.ts +1 -1
- package/dist/src/components/saving-pipeline-modal/index.d.ts.map +1 -1
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts +2 -2
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -1
- package/dist/src/components/settings/settings.d.ts +1 -1
- package/dist/src/components/settings/settings.d.ts.map +1 -1
- package/dist/src/components/stage-editor/index.d.ts +1 -1
- package/dist/src/components/stage-editor/index.d.ts.map +1 -1
- package/dist/src/components/stage-editor/stage-editor.d.ts +1 -1
- package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -1
- package/dist/src/components/stage-preview/index.d.ts +1 -1
- package/dist/src/components/stage-preview/index.d.ts.map +1 -1
- package/dist/src/components/stage-preview/output-stage-preview.d.ts +1 -1
- package/dist/src/components/stage-preview/output-stage-preview.d.ts.map +1 -1
- package/dist/src/components/stage-preview/stage-preview-header.d.ts +1 -1
- package/dist/src/components/stage-preview/stage-preview-header.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/index.d.ts +3 -2
- package/dist/src/components/stage-toolbar/index.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/option-menu.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/stage-collapser.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts +1 -1
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/toggle-stage.d.ts.map +1 -1
- package/dist/src/components/stage-wizard/index.d.ts +23 -0
- package/dist/src/components/stage-wizard/index.d.ts.map +1 -0
- package/dist/src/components/stage.d.ts +6 -3
- package/dist/src/components/stage.d.ts.map +1 -1
- package/dist/src/modules/aggregation.d.ts +10 -10
- package/dist/src/modules/aggregation.d.ts.map +1 -1
- package/dist/src/modules/auto-preview.d.ts +1 -1
- package/dist/src/modules/auto-preview.d.ts.map +1 -1
- package/dist/src/modules/collation-string.d.ts +2 -2
- package/dist/src/modules/collation-string.d.ts.map +1 -1
- package/dist/src/modules/count-documents.d.ts +5 -5
- package/dist/src/modules/count-documents.d.ts.map +1 -1
- package/dist/src/modules/create-view/index.d.ts +7 -7
- package/dist/src/modules/create-view/index.d.ts.map +1 -1
- package/dist/src/modules/data-service.d.ts +1 -1
- package/dist/src/modules/data-service.d.ts.map +1 -1
- package/dist/src/modules/explain.d.ts +8 -8
- package/dist/src/modules/explain.d.ts.map +1 -1
- package/dist/src/modules/focus-mode.d.ts +3 -3
- package/dist/src/modules/focus-mode.d.ts.map +1 -1
- package/dist/src/modules/index.d.ts +7 -4
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/indexes.d.ts +4 -4
- package/dist/src/modules/indexes.d.ts.map +1 -1
- package/dist/src/modules/input-documents.d.ts +4 -4
- package/dist/src/modules/input-documents.d.ts.map +1 -1
- package/dist/src/modules/is-datalake.d.ts +1 -1
- package/dist/src/modules/is-datalake.d.ts.map +1 -1
- package/dist/src/modules/max-time-ms.d.ts +1 -1
- package/dist/src/modules/max-time-ms.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts +3 -3
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts +2 -2
- package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +3 -1
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts +90 -33
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage-ids.d.ts +2 -0
- package/dist/src/modules/pipeline-builder/stage-ids.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts +6 -6
- package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -1
- package/dist/src/modules/saved-pipeline.d.ts +1 -1
- package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
- package/dist/src/modules/settings.d.ts +1 -1
- package/dist/src/modules/settings.d.ts.map +1 -1
- package/dist/src/modules/side-panel.d.ts +15 -0
- package/dist/src/modules/side-panel.d.ts.map +1 -0
- package/dist/src/modules/update-view.d.ts.map +1 -1
- package/dist/src/modules/workspace.d.ts +4 -4
- package/dist/src/modules/workspace.d.ts.map +1 -1
- package/dist/src/plugin.d.ts +3 -3
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +4 -1
- package/dist/src/stores/store.d.ts.map +1 -1
- package/dist/src/utils/get-schema.d.ts +3 -0
- package/dist/src/utils/get-schema.d.ts.map +1 -0
- package/dist/src/utils/pipeline-storage.d.ts +1 -1
- package/dist/src/utils/pipeline-storage.d.ts.map +1 -1
- package/package.json +18 -18
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts.map +0 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts +0 -12
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts.map +0 -1
@@ -5,19 +5,19 @@ export declare enum ActionTypes {
|
|
5
5
|
CountFinished = "compass-aggregations/countFinished",
|
6
6
|
CountFailed = "compass-aggregations/countFailed"
|
7
7
|
}
|
8
|
-
|
8
|
+
type CountStartedAction = {
|
9
9
|
type: ActionTypes.CountStarted;
|
10
10
|
abortController: AbortController;
|
11
11
|
};
|
12
|
-
|
12
|
+
type CountFinishedAction = {
|
13
13
|
type: ActionTypes.CountFinished;
|
14
14
|
count: number;
|
15
15
|
};
|
16
|
-
|
16
|
+
type CountFailedAction = {
|
17
17
|
type: ActionTypes.CountFailed;
|
18
18
|
};
|
19
|
-
export
|
20
|
-
export
|
19
|
+
export type Actions = CountStartedAction | CountFinishedAction | CountFailedAction;
|
20
|
+
export type State = {
|
21
21
|
count?: number;
|
22
22
|
loading: boolean;
|
23
23
|
abortController?: AbortController;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"count-documents.d.ts","sourceRoot":"","sources":["../../../src/modules/count-documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAOpD,oBAAY,WAAW;IACrB,YAAY,sCAAsC;IAClD,aAAa,uCAAuC;IACpD,WAAW,qCAAqC;CACjD;AAED,
|
1
|
+
{"version":3,"file":"count-documents.d.ts","sourceRoot":"","sources":["../../../src/modules/count-documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAOpD,oBAAY,WAAW;IACrB,YAAY,sCAAsC;IAClD,aAAa,uCAAuC;IACpD,WAAW,qCAAqC;CACjD;AAED,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC;IAC/B,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,OAAO,GACf,kBAAkB,GAClB,mBAAmB,GACnB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CA0BtC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAO,2BAA2B,IAAI,CAO7D,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,2BAA2B,QAAQ,IAAI,CAAC,CA8CzE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -10,12 +10,12 @@ export namespace INITIAL_STATE {
|
|
10
10
|
export default rootReducer;
|
11
11
|
export function open(sourceNs: string, sourcePipeline: any[], duplicate: any): Object;
|
12
12
|
export function createView(): Function;
|
13
|
-
import { INITIAL_STATE as IS_RUNNING_INITIAL_STATE } from
|
14
|
-
import { INITIAL_STATE as IS_VISIBLE_INITIAL_STATE } from
|
15
|
-
import { INITIAL_STATE as IS_DUPLICATING_INITIAL_STATE } from
|
16
|
-
import { INITIAL_STATE as NAME_INITIAL_STATE } from
|
17
|
-
import { INITIAL_STATE as ERROR_INITIAL_STATE } from
|
18
|
-
import { INITIAL_STATE as SOURCE_INITIAL_STATE } from
|
19
|
-
import { INITIAL_STATE as PIPELINE_INITIAL_STATE } from
|
13
|
+
import { INITIAL_STATE as IS_RUNNING_INITIAL_STATE } from '../create-view/is-running';
|
14
|
+
import { INITIAL_STATE as IS_VISIBLE_INITIAL_STATE } from '../create-view/is-visible';
|
15
|
+
import { INITIAL_STATE as IS_DUPLICATING_INITIAL_STATE } from '../create-view/is-duplicating';
|
16
|
+
import { INITIAL_STATE as NAME_INITIAL_STATE } from '../create-view/name';
|
17
|
+
import { INITIAL_STATE as ERROR_INITIAL_STATE } from '../create-view/error';
|
18
|
+
import { INITIAL_STATE as SOURCE_INITIAL_STATE } from '../create-view/source';
|
19
|
+
import { INITIAL_STATE as PIPELINE_INITIAL_STATE } from '../create-view/pipeline';
|
20
20
|
declare function rootReducer(state: Object, action: Object): Object;
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-view/index.js"],"names":[],"mappings":";;;;;;;;;;AA0HO,+EAFM,MAAM,CAOjB;AAOK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-view/index.js"],"names":[],"mappings":";;;;;;;;;;AA0HO,+EAFM,MAAM,CAOjB;AAOK,uCA2CN;0DAhKM,2BAA2B;0DAG3B,2BAA2B;8DAG3B,+BAA+B;oDACoB,qBAAqB;qDAMxE,sBAAsB;sDAtBtB,uBAAuB;wDAIvB,yBAAyB;AAiEhC,oCALW,MAAM,UACN,MAAM,GAEJ,MAAM,CAuBlB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-service.d.ts","sourceRoot":"","sources":["../../../src/modules/data-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,sBAAsB,QAAqC,CAAC;AAEzE,
|
1
|
+
{"version":3,"file":"data-service.d.ts","sourceRoot":"","sources":["../../../src/modules/data-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,sBAAsB,QAAqC,CAAC;AAEzE,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;CACjC,CAAC;AAKF,eAAO,MAAM,aAAa,EAAE,KAG3B,CAAC;AAKF,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,mBAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,KAAK,CAQP;AAMD,eAAO,MAAM,oBAAoB,UACxB,KAAK,eACC,WAAW,KACvB,SAID,CAAC"}
|
@@ -10,28 +10,28 @@ export declare enum ActionTypes {
|
|
10
10
|
ExplainFailed = "compass-aggregations/explainFailed",
|
11
11
|
ExplainCancelled = "compass-aggregations/explainCancelled"
|
12
12
|
}
|
13
|
-
|
13
|
+
type ExplainStartedAction = {
|
14
14
|
type: ActionTypes.ExplainStarted;
|
15
15
|
abortController: AbortController;
|
16
16
|
};
|
17
|
-
|
17
|
+
type ExplainFinishedAction = {
|
18
18
|
type: ActionTypes.ExplainFinished;
|
19
19
|
explain: ExplainData;
|
20
20
|
};
|
21
|
-
|
21
|
+
type ExplainFailedAction = {
|
22
22
|
type: ActionTypes.ExplainFailed;
|
23
23
|
error: string;
|
24
24
|
};
|
25
|
-
|
25
|
+
type ExplainCancelledAction = {
|
26
26
|
type: ActionTypes.ExplainCancelled;
|
27
27
|
};
|
28
|
-
export
|
29
|
-
export
|
28
|
+
export type Actions = ExplainStartedAction | ExplainFinishedAction | ExplainFailedAction | ExplainCancelledAction;
|
29
|
+
export type ExplainIndex = {
|
30
30
|
name: string;
|
31
31
|
shard?: string;
|
32
32
|
key: IndexInfo['key'];
|
33
33
|
};
|
34
|
-
export
|
34
|
+
export type ExplainData = {
|
35
35
|
plan: Document;
|
36
36
|
stats?: {
|
37
37
|
executionTimeMillis: number;
|
@@ -39,7 +39,7 @@ export declare type ExplainData = {
|
|
39
39
|
indexes: ExplainIndex[];
|
40
40
|
};
|
41
41
|
};
|
42
|
-
export
|
42
|
+
export type State = {
|
43
43
|
isLoading: boolean;
|
44
44
|
isModalOpen: boolean;
|
45
45
|
explain?: ExplainData;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"explain.d.ts","sourceRoot":"","sources":["../../../src/modules/explain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAoB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAW3C,oBAAY,WAAW;IACrB,cAAc,wCAAwC;IACtD,eAAe,yCAAyC;IACxD,aAAa,uCAAuC;IACpD,gBAAgB,0CAA0C;CAC3D;AAED,
|
1
|
+
{"version":3,"file":"explain.d.ts","sourceRoot":"","sources":["../../../src/modules/explain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAoB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAW3C,oBAAY,WAAW;IACrB,cAAc,wCAAwC;IACtD,eAAe,yCAAyC;IACxD,aAAa,uCAAuC;IACpD,gBAAgB,0CAA0C;CAC3D;AAED,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC;IACjC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC;IAClC,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,OAAO,GACf,oBAAoB,GACpB,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE;QACN,mBAAmB,EAAE,MAAM,CAAC;QAC5B,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,YAAY,EAAE,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAG3B,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAgCtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,2BAA2B,IAAI,CAInE,CAAC;AAEF,eAAO,MAAM,aAAa,QAAO,2BAA2B,IAAI,CAU/D,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAO,2BACpC,QAAQ,IAAI,CAAC,CA6Fd,CAAC;AAEF,eAAO,MAAM,oBAAoB,aACrB,QAAQ,EAAE,cACR,OAAO,KAClB,qBAAqB,CAAC,kBAAkB,CAY1C,CAAC;AAEF,eAAO,MAAM,sBAAsB,sBACd,SAAS,EAAE,kBACd,gBAAgB,EAAE,KACjC,YAAY,EAcd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -5,14 +5,14 @@ declare enum ActionTypes {
|
|
5
5
|
FocusModeDisabled = "compass-aggregations/focusModeDisabled",
|
6
6
|
SelectFocusModeStage = "compass-aggregations/selectFocusModeStage"
|
7
7
|
}
|
8
|
-
|
8
|
+
type FocusModeEnabledAction = {
|
9
9
|
type: ActionTypes.FocusModeEnabled;
|
10
10
|
stageIndex: number;
|
11
11
|
};
|
12
|
-
|
12
|
+
type FocusModeDisabledAction = {
|
13
13
|
type: ActionTypes.FocusModeDisabled;
|
14
14
|
};
|
15
|
-
|
15
|
+
type State = {
|
16
16
|
isEnabled: boolean;
|
17
17
|
stageIndex: number;
|
18
18
|
openedAt: number | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"focus-mode.d.ts","sourceRoot":"","sources":["../../../src/modules/focus-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAOpD,aAAK,WAAW;IACd,gBAAgB,0CAA0C;IAC1D,iBAAiB,2CAA2C;IAC5D,oBAAoB,8CAA8C;CACnE;AAED,
|
1
|
+
{"version":3,"file":"focus-mode.d.ts","sourceRoot":"","sources":["../../../src/modules/focus-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAOpD,aAAK,WAAW;IACd,gBAAgB,0CAA0C;IAC1D,iBAAiB,2CAA2C;IAC5D,oBAAoB,8CAA8C;CACnE;AAED,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC;CACrC,CAAC;AAOF,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,mBAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,KAAK,CA2BP;AAED,eAAO,MAAM,eAAe,eACd,MAAM,KACjB,2BAA2B,IAAI,EAAE,sBAAsB,CAYzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,2BAClC,IAAI,EACJ,uBAAuB,CAaxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,MAAM;;;CAKjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,UACvB,MAAM,KACZ,2BAA2B,IAAI,CAKjC,CAAC"}
|
@@ -72,13 +72,16 @@ declare const rootReducer: import("redux").Reducer<import("redux").CombinedState
|
|
72
72
|
stageIndex: number;
|
73
73
|
openedAt: number | null;
|
74
74
|
};
|
75
|
+
sidePanel: {
|
76
|
+
isPanelOpen: boolean;
|
77
|
+
};
|
75
78
|
}>, Action<any>>;
|
76
|
-
export
|
77
|
-
export
|
79
|
+
export type RootState = ReturnType<typeof rootReducer>;
|
80
|
+
export type PipelineBuilderExtraArgs = {
|
78
81
|
pipelineBuilder: PipelineBuilder;
|
79
82
|
pipelineStorage: PipelineStorage;
|
80
83
|
};
|
81
|
-
export
|
82
|
-
export
|
84
|
+
export type PipelineBuilderThunkDispatch<A extends Action = AnyAction> = ThunkDispatch<RootState, PipelineBuilderExtraArgs, A>;
|
85
|
+
export type PipelineBuilderThunkAction<R, A extends Action = AnyAction> = ThunkAction<R, RootState, PipelineBuilderExtraArgs, A>;
|
83
86
|
export default rootReducer;
|
84
87
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAoC/C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAoC/C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAUjE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAqCf,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,IACnE,aAAa,CAAC,SAAS,EAAE,wBAAwB,EAAE,CAAC,CAAC,CAAC;AAExD,MAAM,MAAM,0BAA0B,CACpC,CAAC,EACD,CAAC,SAAS,MAAM,GAAG,SAAS,IAC1B,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC,CAAC,CAAC;AAE3D,eAAe,WAAW,CAAC"}
|
@@ -3,18 +3,18 @@ import type { IndexDirection } from 'mongodb';
|
|
3
3
|
export declare enum ActionTypes {
|
4
4
|
IndexesFetched = "compass-aggregations/indexesFetched"
|
5
5
|
}
|
6
|
-
export
|
6
|
+
export type IndexInfo = {
|
7
7
|
ns: string;
|
8
8
|
name: string;
|
9
9
|
key: Record<string, IndexDirection>;
|
10
10
|
extra: Record<string, any>;
|
11
11
|
};
|
12
|
-
|
12
|
+
type IndexesFetchedAction = {
|
13
13
|
type: ActionTypes.IndexesFetched;
|
14
14
|
indexes: IndexInfo[];
|
15
15
|
};
|
16
|
-
export
|
17
|
-
export
|
16
|
+
export type Actions = IndexesFetchedAction;
|
17
|
+
export type State = IndexInfo[];
|
18
18
|
export declare const INITIAL_STATE: State;
|
19
19
|
declare const reducer: Reducer<State, Actions>;
|
20
20
|
export declare const indexesFetched: (indexes: IndexInfo[]) => IndexesFetchedAction;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,cAAc,wCAAwC;CACvD;AAED,
|
1
|
+
{"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,cAAc,wCAAwC;CACvD;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC;IACjC,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,oBAAoB,CAAC;AAE3C,MAAM,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC;AAEhC,eAAO,MAAM,aAAa,EAAE,KAAU,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAOpC,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,SAAS,EAAE,KAAG,oBAGpD,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
@@ -6,19 +6,19 @@ export declare enum ActionTypes {
|
|
6
6
|
DocumentsFetchStarted = "aggregations/input-documents/DocumentsFetchStarted",
|
7
7
|
DocumentsFetchFinished = "aggregations/input-documents/DocumentsFetchFinished"
|
8
8
|
}
|
9
|
-
|
9
|
+
type CollapseToggledAction = {
|
10
10
|
type: ActionTypes.CollapseToggled;
|
11
11
|
};
|
12
|
-
|
12
|
+
type DocumentsFetchStartedAction = {
|
13
13
|
type: ActionTypes.DocumentsFetchStarted;
|
14
14
|
};
|
15
|
-
|
15
|
+
type DocumentsFetchFinishedAction = {
|
16
16
|
type: ActionTypes.DocumentsFetchFinished;
|
17
17
|
count: number | null;
|
18
18
|
documents: Document[];
|
19
19
|
error: Error | null;
|
20
20
|
};
|
21
|
-
|
21
|
+
type State = {
|
22
22
|
count: number | null;
|
23
23
|
documents: Document[];
|
24
24
|
error: Error | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input-documents.d.ts","sourceRoot":"","sources":["../../../src/modules/input-documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,oBAAY,WAAW;IACrB,eAAe,iDAAiD;IAChE,qBAAqB,uDAAuD;IAC5E,sBAAsB,wDAAwD;CAC/E;AAED,
|
1
|
+
{"version":3,"file":"input-documents.d.ts","sourceRoot":"","sources":["../../../src/modules/input-documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,oBAAY,WAAW;IACrB,eAAe,iDAAiD;IAChE,qBAAqB,uDAAuD;IAC5E,sBAAsB,wDAAwD;CAC/E;AAED,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC;CACnC,CAAC;AAEF,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,WAAW,CAAC,qBAAqB,CAAC;CACzC,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,WAAW,CAAC,sBAAsB,CAAC;IACzC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF,QAAA,MAAM,OAAO,qCAAmC,SAAS;;;;;gBAZ3C,OAAO;CA+BpB,CAAC;AAEF,eAAe,OAAO,CAAC;AAEvB,eAAO,MAAM,6BAA6B,QAAO,qBAE/C,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAAO,2BAEvC,CAAC;AAEH,eAAO,MAAM,oBAAoB,UACxB,MAAM,GAAG,IAAI,aACT,QAAQ,EAAE,SACd,KAAK,GAAG,IAAI,KAClB,4BAKD,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAAO,2BACvC,QAAQ,IAAI,CAAC,CA0Cd,CAAC"}
|
@@ -1 +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,
|
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,KAAK,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"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { AnyAction, Reducer } from 'redux';
|
2
2
|
export declare const MAX_TIME_MS_CHANGED = "aggregations/max-time-ms/MAX_TIME_MS_CHANGED";
|
3
|
-
|
3
|
+
type State = null | number;
|
4
4
|
export declare const INITIAL_STATE: State;
|
5
5
|
declare const reducer: Reducer<State, AnyAction>;
|
6
6
|
export declare const maxTimeMSChanged: (value: number) => {
|
@@ -1 +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,
|
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,KAAK,KAAK,GAAG,IAAI,GAAG,MAAM,CAAC;AAE3B,eAAO,MAAM,aAAa,EAAE,KAAY,CAAC;AAEzC,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAQtC,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,MAAM;;;CAG5C,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
@@ -7,6 +7,6 @@ export declare function getPipelineStringFromBuilderState(state: RootState, pipe
|
|
7
7
|
export declare function getPipelineStageOperatorsFromBuilderState(state: RootState, filterEmptyStageOperators?: true): string[];
|
8
8
|
export declare function getPipelineStageOperatorsFromBuilderState(state: RootState, filterEmptyStageOperators?: false): (string | null)[];
|
9
9
|
export declare function getIsPipelineInvalidFromBuilderState(state: RootState, includeServerErrors?: boolean): boolean;
|
10
|
-
export
|
10
|
+
export type EditorViewType = 'stage' | 'text' | 'focus';
|
11
11
|
export declare function mapPipelineModeToEditorViewType(state: RootState): EditorViewType;
|
12
12
|
//# sourceMappingURL=builder-helpers.d.ts.map
|
@@ -1 +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;
|
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;AAK1D,eAAO,MAAM,qBAAqB,QAC5B,2BAA2B,IAAI,CAWlC,CAAC;AAEJ,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,EAChB,yBAAyB,CAAC,EAAE,IAAI,GAC/B,MAAM,EAAE,CAAC;AACZ,wBAAgB,yCAAyC,CACvD,KAAK,EAAE,SAAS,EAChB,yBAAyB,CAAC,EAAE,KAAK,GAChC,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;AAoBrB,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,SAAS,EAChB,mBAAmB,UAAO,GACzB,OAAO,CAcT;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAExD,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,SAAS,GACf,cAAc,CAMhB"}
|
@@ -3,11 +3,11 @@ import type { Document } from 'mongodb';
|
|
3
3
|
import type { PipelineBuilderThunkAction } from '..';
|
4
4
|
import type Stage from './stage';
|
5
5
|
import type { PipelineParserError } from './pipeline-parser/utils';
|
6
|
-
export
|
6
|
+
export type PipelineMode = 'builder-ui' | 'as-text';
|
7
7
|
export declare enum ActionTypes {
|
8
8
|
PipelineModeToggled = "compass-aggregations/pipelineModeToggled"
|
9
9
|
}
|
10
|
-
export
|
10
|
+
export type PipelineModeToggledAction = {
|
11
11
|
type: ActionTypes.PipelineModeToggled;
|
12
12
|
mode: PipelineMode;
|
13
13
|
pipelineText: string;
|
@@ -15,7 +15,7 @@ export declare type PipelineModeToggledAction = {
|
|
15
15
|
syntaxErrors: PipelineParserError[];
|
16
16
|
stages: Stage[];
|
17
17
|
};
|
18
|
-
|
18
|
+
type State = PipelineMode;
|
19
19
|
export declare const INITIAL_STATE: State;
|
20
20
|
declare const reducer: Reducer<State>;
|
21
21
|
export declare const changePipelineMode: (newMode: PipelineMode) => PipelineBuilderThunkAction<void, PipelineModeToggledAction>;
|
@@ -1 +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;AAOrD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAMnE,
|
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;AAOrD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAMnE,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC;AAEpD,oBAAY,WAAW;IACrB,mBAAmB,6CAA6C;CACjE;AAED,MAAM,MAAM,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,KAAK,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,11 +1,11 @@
|
|
1
1
|
import type * as t from '@babel/types';
|
2
2
|
import type Stage from '../stage';
|
3
3
|
import { PipelineParserError } from './utils';
|
4
|
-
|
4
|
+
type ParseResponse = {
|
5
5
|
root: t.ArrayExpression;
|
6
6
|
stages: t.Expression[];
|
7
7
|
};
|
8
|
-
|
8
|
+
type ValidateResponse = {
|
9
9
|
root: t.ArrayExpression | null;
|
10
10
|
errors: PipelineParserError[];
|
11
11
|
};
|
@@ -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;AACvC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAOlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkF9C,
|
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,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,CAAC,CAAC,eAAe,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC;CACxB,CAAC;AAEF,KAAK,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;IA0B3C,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,eAAe;IAY5D,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;IAmBjE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE;CA4DvD"}
|
@@ -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;AACvC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAIlC,
|
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,MAAM,MAAM,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"}
|
@@ -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;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,
|
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,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,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"}
|
@@ -8,7 +8,9 @@ export interface PreviewOptions extends AggregateOptions {
|
|
8
8
|
sampleSize?: number;
|
9
9
|
previewSize?: number;
|
10
10
|
}
|
11
|
-
export declare function createPreviewAggregation(pipeline: Document[], options?: Pick<PreviewOptions, 'sampleSize' | 'previewSize' | 'totalDocumentCount'>): Document
|
11
|
+
export declare function createPreviewAggregation(pipeline: Document[], options?: Pick<PreviewOptions, 'sampleSize' | 'previewSize' | 'totalDocumentCount'>): (Document | {
|
12
|
+
$limit: number;
|
13
|
+
})[];
|
12
14
|
export declare class PipelinePreviewManager {
|
13
15
|
private dataService;
|
14
16
|
private queue;
|
@@ -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;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
|
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;;KA4BP;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"}
|
@@ -17,74 +17,103 @@ export declare const enum StageEditorActionTypes {
|
|
17
17
|
StageDisabledChange = "compass-aggregations/pipeline-builder/stage-editor/StageDisabledChange",
|
18
18
|
StageAdded = "compass-aggregations/pipeline-builder/stage-editor/StageAdded",
|
19
19
|
StageRemoved = "compass-aggregations/pipeline-builder/stage-editor/StageRemoved",
|
20
|
-
StageMoved = "compass-aggregations/pipeline-builder/stage-editor/StageMoved"
|
20
|
+
StageMoved = "compass-aggregations/pipeline-builder/stage-editor/StageMoved",
|
21
|
+
WizardAdded = "compass-aggregations/pipeline-builder/stage-wizard/WizardAdded",
|
22
|
+
WizardRemoved = "compass-aggregations/pipeline-builder/stage-wizard/WizardRemoved",
|
23
|
+
WizardChanged = "compass-aggregations/pipeline-builder/stage-wizard/WizardChanged",
|
24
|
+
WizardToStageClicked = "compass-aggregations/pipeline-builder/stage-wizard/wizardToStageClicked"
|
21
25
|
}
|
22
|
-
export
|
26
|
+
export type StagePreviewFetchAction = {
|
23
27
|
type: StageEditorActionTypes.StagePreviewFetch;
|
24
28
|
id: number;
|
25
29
|
};
|
26
|
-
export
|
30
|
+
export type StagePreviewFetchSkippedAction = {
|
27
31
|
type: StageEditorActionTypes.StagePreviewFetchSkipped;
|
28
32
|
id: number;
|
29
33
|
};
|
30
|
-
export
|
34
|
+
export type StagePreviewFetchSuccessAction = {
|
31
35
|
type: StageEditorActionTypes.StagePreviewFetchSuccess;
|
32
36
|
id: number;
|
33
37
|
previewDocs: Document[];
|
34
38
|
};
|
35
|
-
export
|
39
|
+
export type StagePreviewFetchErrorAction = {
|
36
40
|
type: StageEditorActionTypes.StagePreviewFetchError;
|
37
41
|
id: number;
|
38
42
|
error: MongoServerError;
|
39
43
|
};
|
40
|
-
export
|
44
|
+
export type StageRunAction = {
|
41
45
|
type: StageEditorActionTypes.StageRun;
|
42
46
|
id: number;
|
43
47
|
};
|
44
|
-
export
|
48
|
+
export type StageRunSuccessAction = {
|
45
49
|
type: StageEditorActionTypes.StageRunSuccess;
|
46
50
|
id: number;
|
47
51
|
previewDocs: Document[];
|
48
52
|
};
|
49
|
-
export
|
53
|
+
export type StageRunErrorAction = {
|
50
54
|
type: StageEditorActionTypes.StageRunError;
|
51
55
|
id: number;
|
52
56
|
error: MongoServerError;
|
53
57
|
};
|
54
|
-
export
|
58
|
+
export type ChangeStageValueAction = {
|
55
59
|
type: StageEditorActionTypes.StageValueChange;
|
56
60
|
id: number;
|
57
61
|
stage: Stage;
|
58
62
|
};
|
59
|
-
export
|
63
|
+
export type ChangeStageOperatorAction = {
|
60
64
|
type: StageEditorActionTypes.StageOperatorChange;
|
61
65
|
id: number;
|
62
66
|
stage: Stage;
|
63
67
|
};
|
64
|
-
export
|
68
|
+
export type ChangeStageCollapsedAction = {
|
65
69
|
type: StageEditorActionTypes.StageCollapsedChange;
|
66
70
|
id: number;
|
67
71
|
collapsed: boolean;
|
68
72
|
};
|
69
|
-
export
|
73
|
+
export type ChangeStageDisabledAction = {
|
70
74
|
type: StageEditorActionTypes.StageDisabledChange;
|
71
75
|
id: number;
|
72
76
|
disabled: boolean;
|
73
77
|
};
|
74
|
-
export
|
78
|
+
export type StageAddAction = {
|
75
79
|
type: StageEditorActionTypes.StageAdded;
|
76
|
-
after
|
77
|
-
stage:
|
80
|
+
after: number;
|
81
|
+
stage: StoreStage;
|
78
82
|
};
|
79
|
-
export
|
83
|
+
export type StageRemoveAction = {
|
80
84
|
type: StageEditorActionTypes.StageRemoved;
|
81
85
|
at: number;
|
82
86
|
};
|
83
|
-
export
|
87
|
+
export type StageMoveAction = {
|
84
88
|
type: StageEditorActionTypes.StageMoved;
|
85
89
|
from: number;
|
86
90
|
to: number;
|
87
91
|
};
|
92
|
+
type WizardAddAction = {
|
93
|
+
type: StageEditorActionTypes.WizardAdded;
|
94
|
+
wizard: Wizard;
|
95
|
+
after: number;
|
96
|
+
};
|
97
|
+
type WizardRemoveAction = {
|
98
|
+
type: StageEditorActionTypes.WizardRemoved;
|
99
|
+
at: number;
|
100
|
+
};
|
101
|
+
type WizardChangeAction = {
|
102
|
+
type: StageEditorActionTypes.WizardChanged;
|
103
|
+
at: number;
|
104
|
+
value: string | null;
|
105
|
+
syntaxError: SyntaxError | null;
|
106
|
+
};
|
107
|
+
type WizardToStageAction = {
|
108
|
+
type: StageEditorActionTypes.WizardToStageClicked;
|
109
|
+
at: number;
|
110
|
+
stage: StoreStage;
|
111
|
+
};
|
112
|
+
export declare function storeIndexToPipelineIndex(stages: StageEditorState['stages'], indexInStore: number, { includeIndex }?: {
|
113
|
+
includeIndex: boolean;
|
114
|
+
}): number;
|
115
|
+
export declare function pipelineFromStore(stages: StageEditorState['stages']): StoreStage[];
|
116
|
+
export declare function wizardsFromStore(stages: StageEditorState['stages']): Wizard[];
|
88
117
|
export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction | StagePreviewFetchSkippedAction>;
|
89
118
|
export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
|
90
119
|
export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
|
@@ -95,22 +124,50 @@ export declare const changeStageCollapsed: (id: number, newVal: boolean) => Chan
|
|
95
124
|
export declare const addStage: (after?: number) => PipelineBuilderThunkAction<void, StageAddAction>;
|
96
125
|
export declare const removeStage: (at: number) => PipelineBuilderThunkAction<void, StageRemoveAction>;
|
97
126
|
export declare const moveStage: (from: number, to: number) => PipelineBuilderThunkAction<void, StageMoveAction>;
|
98
|
-
export
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
127
|
+
export type AddWizardParams = {
|
128
|
+
usecaseId: number;
|
129
|
+
formValues: unknown;
|
130
|
+
after?: number;
|
131
|
+
};
|
132
|
+
export declare const addWizard: (useCaseId: string, stageOperator: string, after?: number) => PipelineBuilderThunkAction<void, WizardAddAction>;
|
133
|
+
export declare const removeWizard: (at: number) => WizardRemoveAction;
|
134
|
+
export declare const updateWizardValue: (at: number, value: string) => PipelineBuilderThunkAction<void, WizardChangeAction>;
|
135
|
+
export declare const convertWizardToStage: (at: number) => PipelineBuilderThunkAction<void, WizardChangeAction | WizardToStageAction>;
|
136
|
+
export type StoreStage = {
|
137
|
+
id: number;
|
138
|
+
idxInPipeline: number;
|
139
|
+
type: 'stage';
|
140
|
+
stageOperator: string | null;
|
141
|
+
value: string | null;
|
142
|
+
syntaxError: PipelineParserError | null;
|
143
|
+
serverError: MongoServerError | null;
|
144
|
+
loading: boolean;
|
145
|
+
previewDocs: Document[] | null;
|
146
|
+
collapsed: boolean;
|
147
|
+
disabled: boolean;
|
148
|
+
empty: boolean;
|
149
|
+
};
|
150
|
+
export type Wizard = {
|
151
|
+
id: number;
|
152
|
+
type: 'wizard';
|
153
|
+
useCaseId: string;
|
154
|
+
stageOperator: string;
|
155
|
+
value: string | null;
|
156
|
+
syntaxError: SyntaxError | null;
|
157
|
+
};
|
158
|
+
export type StageIdAndType = {
|
159
|
+
id: number;
|
160
|
+
type: 'stage' | 'wizard';
|
161
|
+
};
|
162
|
+
export type StageEditorState = {
|
163
|
+
stagesIdAndType: StageIdAndType[];
|
164
|
+
stages: (StoreStage | Wizard)[];
|
165
|
+
};
|
166
|
+
export declare function mapBuilderStageToStoreStage(stage: Stage, idxInPipeline: number): StoreStage;
|
167
|
+
export declare function mapStoreStagesToStageIdAndType(stages: Pick<StageEditorState['stages'][number], 'id' | 'type'>[]): Array<{
|
168
|
+
id: number;
|
169
|
+
type: 'stage' | 'wizard';
|
170
|
+
}>;
|
114
171
|
declare const reducer: Reducer<StageEditorState>;
|
115
172
|
export default reducer;
|
116
173
|
//# sourceMappingURL=stage-editor.d.ts.map
|