@mongodb-js/compass-aggregations 9.21.0 → 9.22.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.
- package/README.md +0 -18
- package/dist/browser.js +1 -1
- package/dist/index.js +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/index.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/group-with-statistics.d.ts.map +1 -1
- package/dist/src/components/aggregations/aggregations.d.ts +13 -17
- package/dist/src/components/aggregations/aggregations.d.ts.map +1 -1
- package/dist/src/components/aggregations/index.d.ts +1 -2
- package/dist/src/components/aggregations/index.d.ts.map +1 -1
- package/dist/src/components/create-view-modal/create-view-modal.d.ts +31 -43
- 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 +1 -2
- package/dist/src/components/create-view-modal/index.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts +5 -3
- 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/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 +9 -7
- 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 +24 -12
- package/dist/src/components/pipeline/pipeline.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +4 -3
- 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 +4 -2
- 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-builder-ui-workspace/index.d.ts +0 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-output-options-menu.d.ts +0 -1
- package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/index.d.ts +2 -4
- package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +2 -5
- 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 +2 -3
- 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 -6
- package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts +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 +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-toolbar-container.d.ts +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-toolbar-container.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 +18 -9
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -1
- package/dist/src/components/settings/settings.d.ts +2 -3
- 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-preview/stage-preview-header.d.ts +3 -3
- package/dist/src/components/stage-preview/stage-preview-header.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/option-menu.d.ts +6 -2
- package/dist/src/components/stage-toolbar/option-menu.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts +2 -1
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts.map +1 -1
- package/dist/src/components/stage.d.ts +1 -1
- package/dist/src/components/stage.d.ts.map +1 -1
- package/dist/src/constants.d.ts +7 -7
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/index.d.ts +64 -9
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/modules/aggregation-workspace-id.d.ts +2 -2
- package/dist/src/modules/aggregation-workspace-id.d.ts.map +1 -1
- package/dist/src/modules/aggregation.d.ts +15 -12
- package/dist/src/modules/aggregation.d.ts.map +1 -1
- package/dist/src/modules/auto-preview.d.ts +4 -2
- package/dist/src/modules/auto-preview.d.ts.map +1 -1
- package/dist/src/modules/clone-pipeline.d.ts +5 -4
- package/dist/src/modules/clone-pipeline.d.ts.map +1 -1
- package/dist/src/modules/collation-string.d.ts +2 -1
- package/dist/src/modules/collation-string.d.ts.map +1 -1
- package/dist/src/modules/collections-fields.d.ts +2 -1
- package/dist/src/modules/collections-fields.d.ts.map +1 -1
- package/dist/src/modules/comments.d.ts +4 -2
- package/dist/src/modules/comments.d.ts.map +1 -1
- package/dist/src/modules/count-documents.d.ts.map +1 -1
- package/dist/src/modules/create-view/index.d.ts +57 -19
- package/dist/src/modules/create-view/index.d.ts.map +1 -1
- package/dist/src/modules/data-service.d.ts +7 -9
- package/dist/src/modules/data-service.d.ts.map +1 -1
- package/dist/src/modules/edit-view-name.d.ts +2 -2
- package/dist/src/modules/edit-view-name.d.ts.map +1 -1
- package/dist/src/modules/env.d.ts +1 -1
- package/dist/src/modules/export-to-language.d.ts +2 -1
- package/dist/src/modules/export-to-language.d.ts.map +1 -1
- package/dist/src/modules/fields.d.ts +13 -11
- package/dist/src/modules/fields.d.ts.map +1 -1
- package/dist/src/modules/focus-mode.d.ts +9 -7
- package/dist/src/modules/focus-mode.d.ts.map +1 -1
- package/dist/src/modules/id.d.ts +12 -5
- package/dist/src/modules/id.d.ts.map +1 -1
- package/dist/src/modules/index.d.ts +17 -46
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/input-documents.d.ts +9 -14
- package/dist/src/modules/input-documents.d.ts.map +1 -1
- package/dist/src/modules/insights.d.ts +7 -0
- package/dist/src/modules/insights.d.ts.map +1 -1
- package/dist/src/modules/is-modified.d.ts +2 -1
- package/dist/src/modules/is-modified.d.ts.map +1 -1
- package/dist/src/modules/is-new-pipeline-confirm.d.ts +10 -0
- package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -1
- package/dist/src/modules/is-time-series.d.ts +1 -1
- package/dist/src/modules/is-time-series.d.ts.map +1 -1
- package/dist/src/modules/large-limit.d.ts +4 -2
- package/dist/src/modules/large-limit.d.ts.map +1 -1
- package/dist/src/modules/limit.d.ts +4 -2
- package/dist/src/modules/limit.d.ts.map +1 -1
- package/dist/src/modules/max-time-ms.d.ts +8 -4
- package/dist/src/modules/max-time-ms.d.ts.map +1 -1
- package/dist/src/modules/name.d.ts +4 -4
- package/dist/src/modules/name.d.ts.map +1 -1
- package/dist/src/modules/namespace.d.ts.map +1 -1
- package/dist/src/modules/out-results-fn.d.ts +6 -6
- package/dist/src/modules/out-results-fn.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/index.d.ts +1 -5
- package/dist/src/modules/pipeline-builder/index.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-ai.d.ts +12 -1
- package/dist/src/modules/pipeline-builder/pipeline-ai.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts +4 -3
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +1 -2
- 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 +1 -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 +8 -4
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage.d.ts +2 -1
- package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +17 -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 +7 -3
- package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -1
- package/dist/src/modules/saved-pipeline.d.ts +26 -20
- package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
- package/dist/src/modules/saving-pipeline.d.ts +35 -17
- package/dist/src/modules/saving-pipeline.d.ts.map +1 -1
- package/dist/src/modules/search-indexes.d.ts +11 -0
- package/dist/src/modules/search-indexes.d.ts.map +1 -1
- package/dist/src/modules/server-version.d.ts +1 -1
- package/dist/src/modules/server-version.d.ts.map +1 -1
- package/dist/src/modules/settings.d.ts +32 -23
- package/dist/src/modules/settings.d.ts.map +1 -1
- package/dist/src/modules/side-panel.d.ts +5 -4
- package/dist/src/modules/side-panel.d.ts.map +1 -1
- package/dist/src/modules/source-name.d.ts +2 -2
- package/dist/src/modules/source-name.d.ts.map +1 -1
- package/dist/src/modules/update-view.d.ts +19 -7
- package/dist/src/modules/update-view.d.ts.map +1 -1
- package/dist/src/modules/workspace.d.ts +3 -3
- package/dist/src/modules/workspace.d.ts.map +1 -1
- package/dist/src/plugin.d.ts +1 -5
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/stores/create-view.d.ts +23 -3
- package/dist/src/stores/create-view.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +62 -95
- package/dist/src/stores/store.d.ts.map +1 -1
- package/dist/src/utils/cancellable-aggregation.d.ts +1 -1
- package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -1
- package/dist/src/utils/stage.d.ts +30 -15
- package/dist/src/utils/stage.d.ts.map +1 -1
- package/package.json +42 -40
- package/dist/index.css +0 -43
- package/dist/src/components/create-view-plugin.d.ts +0 -14
- package/dist/src/components/create-view-plugin.d.ts.map +0 -1
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +0 -49
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +0 -1
- package/dist/src/components/duplicate-view-modal/index.d.ts +0 -5
- package/dist/src/components/duplicate-view-modal/index.d.ts.map +0 -1
- package/dist/src/components/duplicate-view-plugin.d.ts +0 -10
- package/dist/src/components/duplicate-view-plugin.d.ts.map +0 -1
- package/dist/src/modules/create-view/error.d.ts +0 -7
- package/dist/src/modules/create-view/error.d.ts.map +0 -1
- package/dist/src/modules/create-view/is-duplicating.d.ts +0 -5
- package/dist/src/modules/create-view/is-duplicating.d.ts.map +0 -1
- package/dist/src/modules/create-view/is-running.d.ts +0 -5
- package/dist/src/modules/create-view/is-running.d.ts.map +0 -1
- package/dist/src/modules/create-view/is-visible.d.ts +0 -8
- package/dist/src/modules/create-view/is-visible.d.ts.map +0 -1
- package/dist/src/modules/create-view/name.d.ts +0 -5
- package/dist/src/modules/create-view/name.d.ts.map +0 -1
- package/dist/src/modules/create-view/pipeline.d.ts +0 -5
- package/dist/src/modules/create-view/pipeline.d.ts.map +0 -1
- package/dist/src/modules/create-view/reset.d.ts +0 -3
- package/dist/src/modules/create-view/reset.d.ts.map +0 -1
- package/dist/src/modules/create-view/source.d.ts +0 -5
- package/dist/src/modules/create-view/source.d.ts.map +0 -1
- package/dist/src/modules/projections.d.ts +0 -4
- package/dist/src/modules/projections.d.ts.map +0 -1
- package/dist/src/stores/duplicate-view.d.ts +0 -3
- package/dist/src/stores/duplicate-view.d.ts.map +0 -1
@@ -15,9 +15,10 @@ export type PipelineModeToggledAction = {
|
|
15
15
|
syntaxErrors: PipelineParserError[];
|
16
16
|
stages: Stage[];
|
17
17
|
};
|
18
|
-
type
|
19
|
-
export
|
20
|
-
declare const
|
18
|
+
export type PipelineModeState = PipelineMode;
|
19
|
+
export type PipelineModeAction = PipelineModeToggledAction;
|
20
|
+
export declare const INITIAL_STATE: PipelineModeState;
|
21
|
+
declare const reducer: Reducer<PipelineModeState>;
|
21
22
|
export declare const changePipelineMode: (newMode: PipelineMode) => PipelineBuilderThunkAction<void, PipelineModeToggledAction>;
|
22
23
|
export default reducer;
|
23
24
|
//# sourceMappingURL=pipeline-mode.d.ts.map
|
@@ -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;
|
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;AAYnE,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,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC7C,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,iBAAgC,CAAC;AAE7D,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAuBvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,YAAY,KACpB,2BAA2B,IAAI,EAAE,yBAAyB,CAkC5D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { Node } from '@babel/types';
|
2
|
-
import type { Document } from 'mongodb';
|
3
2
|
import type { FormatOptions } from '@mongodb-js/compass-editor';
|
4
3
|
type ErrorLoc = {
|
5
4
|
line: number;
|
@@ -12,6 +11,6 @@ export declare class PipelineParserError extends SyntaxError {
|
|
12
11
|
constructor(message: string, loc?: ErrorLoc | undefined, code?: number | undefined);
|
13
12
|
}
|
14
13
|
export declare function generate(ast: Node, formatOptions?: FormatOptions): string;
|
15
|
-
export declare function parseShellBSON(source: string):
|
14
|
+
export declare function parseShellBSON<T = unknown>(source: string): T;
|
16
15
|
export { prettify } from '@mongodb-js/compass-editor';
|
17
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;
|
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,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,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAQ7D;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { DataService } from 'mongodb-data-service';
|
2
1
|
import type { AggregateOptions, Document } from 'mongodb';
|
2
|
+
import type { DataService } from '../data-service';
|
3
3
|
export declare const DEFAULT_SAMPLE_SIZE = 100000;
|
4
4
|
export declare const DEFAULT_PREVIEW_LIMIT = 10;
|
5
5
|
export interface PreviewOptions extends AggregateOptions {
|
@@ -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,
|
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,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAa1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,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"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { Reducer } from 'redux';
|
2
|
-
import
|
2
|
+
import HadronDocument from 'hadron-document';
|
3
|
+
import type { MongoServerError } from 'mongodb';
|
3
4
|
import type { PipelineBuilderThunkAction } from '../';
|
4
5
|
import type Stage from './stage';
|
5
6
|
import type { PipelineParserError } from './pipeline-parser/utils';
|
@@ -34,7 +35,7 @@ export type StagePreviewFetchSkippedAction = {
|
|
34
35
|
export type StagePreviewFetchSuccessAction = {
|
35
36
|
type: StageEditorActionTypes.StagePreviewFetchSuccess;
|
36
37
|
id: number;
|
37
|
-
previewDocs:
|
38
|
+
previewDocs: HadronDocument[];
|
38
39
|
};
|
39
40
|
export type StagePreviewFetchErrorAction = {
|
40
41
|
type: StageEditorActionTypes.StagePreviewFetchError;
|
@@ -48,7 +49,7 @@ export type StageRunAction = {
|
|
48
49
|
export type StageRunSuccessAction = {
|
49
50
|
type: StageEditorActionTypes.StageRunSuccess;
|
50
51
|
id: number;
|
51
|
-
previewDocs:
|
52
|
+
previewDocs: HadronDocument[];
|
52
53
|
};
|
53
54
|
export type StageRunErrorAction = {
|
54
55
|
type: StageEditorActionTypes.StageRunError;
|
@@ -109,12 +110,15 @@ type WizardToStageAction = {
|
|
109
110
|
at: number;
|
110
111
|
stage: StoreStage;
|
111
112
|
};
|
113
|
+
export type StageEditorAction = StagePreviewFetchAction | StagePreviewFetchSkippedAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction | StageRunAction | StageRunSuccessAction | StageRunErrorAction | ChangeStageValueAction | ChangeStageOperatorAction | ChangeStageCollapsedAction | ChangeStageOperatorAction | ChangeStageDisabledAction | StageAddAction | StageRemoveAction | StageMoveAction | WizardAddAction | WizardRemoveAction | WizardChangeAction | WizardToStageAction;
|
112
114
|
export declare function storeIndexToPipelineIndex(stages: StageEditorState['stages'], indexInStore: number, { includeIndex }?: {
|
113
115
|
includeIndex: boolean;
|
114
116
|
}): number;
|
115
117
|
export declare function pipelineFromStore(stages: StageEditorState['stages']): StoreStage[];
|
116
118
|
export declare function wizardsFromStore(stages: StageEditorState['stages']): Wizard[];
|
117
119
|
export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction | StagePreviewFetchSkippedAction>;
|
120
|
+
export declare const expandPreviewDocsForStage: (stageIdx: number) => PipelineBuilderThunkAction<void>;
|
121
|
+
export declare const collapsePreviewDocsForStage: (stageIdx: number) => PipelineBuilderThunkAction<void>;
|
118
122
|
export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
|
119
123
|
export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
|
120
124
|
export declare const changeStageValue: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageValueAction>;
|
@@ -142,7 +146,7 @@ export type StoreStage = {
|
|
142
146
|
syntaxError: PipelineParserError | null;
|
143
147
|
serverError: MongoServerError | null;
|
144
148
|
loading: boolean;
|
145
|
-
previewDocs:
|
149
|
+
previewDocs: HadronDocument[] | null;
|
146
150
|
collapsed: boolean;
|
147
151
|
disabled: boolean;
|
148
152
|
empty: boolean;
|
@@ -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,OA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AAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,CAAC;CACjC,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,MAAM,GACpB,UAAU,CAeZ;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,GAChE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,CAAC,CAEjD;AAED,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAkStC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
2
|
import type { PipelineParserError } from './pipeline-parser/utils';
|
3
|
+
import type { Document } from 'bson';
|
3
4
|
export default class Stage {
|
4
5
|
id: number;
|
5
6
|
node: t.Expression;
|
@@ -13,6 +14,6 @@ export default class Stage {
|
|
13
14
|
changeOperator(operator: string): this;
|
14
15
|
changeDisabled(value: boolean): this;
|
15
16
|
toString(): string;
|
16
|
-
toBSON():
|
17
|
+
toBSON(): Document | null;
|
17
18
|
}
|
18
19
|
//# sourceMappingURL=stage.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
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;AAInE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAyBrC,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"}
|
@@ -1,7 +1,23 @@
|
|
1
1
|
import type { Reducer } from 'redux';
|
2
2
|
import type { MongoServerError } from 'mongodb';
|
3
3
|
import type { PipelineBuilderThunkAction } from '..';
|
4
|
-
|
4
|
+
declare const enum OutputStageActionTypes {
|
5
|
+
FetchStarted = "compass-aggregations/pipeline-builder/text-editor-output-stage/FetchStarted",
|
6
|
+
FetchSucceded = "compass-aggregations/pipeline-builder/text-editor-output-stage/FetchSucceded",
|
7
|
+
FetchFailed = "compass-aggregations/pipeline-builder/text-editor-output-stage/FetchFailed"
|
8
|
+
}
|
9
|
+
type OutputStageFetchStartedAction = {
|
10
|
+
type: OutputStageActionTypes.FetchStarted;
|
11
|
+
};
|
12
|
+
type OutputStageFetchSuccededAction = {
|
13
|
+
type: OutputStageActionTypes.FetchSucceded;
|
14
|
+
};
|
15
|
+
type OutputStageFetchFailedAction = {
|
16
|
+
type: OutputStageActionTypes.FetchFailed;
|
17
|
+
serverError: MongoServerError;
|
18
|
+
};
|
19
|
+
export type OutputStageAction = OutputStageFetchStartedAction | OutputStageFetchSuccededAction | OutputStageFetchFailedAction;
|
20
|
+
export type OutputStageState = {
|
5
21
|
isLoading: boolean;
|
6
22
|
serverError: MongoServerError | null;
|
7
23
|
isComplete: boolean;
|
@@ -1 +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;
|
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;AAoBrD,mBAAW,sBAAsB;IAC/B,YAAY,gFAAgF;IAC5F,aAAa,iFAAiF;IAC9F,WAAW,+EAA+E;CAC3F;AAED,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,sBAAsB,CAAC,YAAY,CAAC;CAC3C,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACpC,IAAI,EAAE,sBAAsB,CAAC,aAAa,CAAC;CAC5C,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,sBAAsB,CAAC,WAAW,CAAC;IACzC,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GACzB,6BAA6B,GAC7B,8BAA8B,GAC9B,4BAA4B,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,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,CAmEtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,2BAC5C,QAAQ,IAAI,CAAC,CAkDd,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAChC,2BAA2B,IAAI,CAalC,CAAC;AAEJ,eAAe,OAAO,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { Reducer } from 'redux';
|
2
|
+
import HadronDocument from 'hadron-document';
|
2
3
|
import type { Document, MongoServerError } from 'mongodb';
|
3
4
|
import type { PipelineBuilderThunkAction } from '..';
|
4
5
|
import type { PipelineParserError } from './pipeline-parser/utils';
|
@@ -23,24 +24,27 @@ type EditorPreviewFetchSkippedAction = {
|
|
23
24
|
};
|
24
25
|
type EditorPreviewFetchSuccessAction = {
|
25
26
|
type: EditorActionTypes.EditorPreviewFetchSuccess;
|
26
|
-
previewDocs:
|
27
|
+
previewDocs: HadronDocument[];
|
27
28
|
};
|
28
29
|
type EditorPreviewFetchErrorAction = {
|
29
30
|
type: EditorActionTypes.EditorPreviewFetchError;
|
30
31
|
serverError: MongoServerError;
|
31
32
|
};
|
33
|
+
export type TextEditorAction = EditorPreviewFetchAction | EditorPreviewFetchErrorAction | EditorPreviewFetchSuccessAction | EditorPreviewFetchSkippedAction | EditorValueChangeAction;
|
32
34
|
export type TextEditorState = {
|
33
35
|
pipelineText: string;
|
34
36
|
pipeline: Document[];
|
35
37
|
syntaxErrors: PipelineParserError[];
|
36
38
|
serverError: MongoServerError | null;
|
37
39
|
isLoading: boolean;
|
38
|
-
previewDocs:
|
40
|
+
previewDocs: HadronDocument[] | null;
|
39
41
|
isPreviewStale: boolean;
|
40
42
|
};
|
41
43
|
declare const reducer: Reducer<TextEditorState>;
|
42
|
-
export declare function canRunPipeline(autoPreview: boolean, syntaxErrors: PipelineParserError[]): boolean;
|
44
|
+
export declare function canRunPipeline(autoPreview: boolean | undefined, syntaxErrors: PipelineParserError[]): boolean | undefined;
|
43
45
|
export declare const loadPreviewForPipeline: () => PipelineBuilderThunkAction<Promise<void>, EditorPreviewFetchAction | EditorPreviewFetchSuccessAction | EditorPreviewFetchErrorAction | EditorPreviewFetchSkippedAction>;
|
44
46
|
export declare const changeEditorValue: (newValue: string) => PipelineBuilderThunkAction<void, EditorValueChangeAction>;
|
47
|
+
export declare const expandPreviewDocs: () => PipelineBuilderThunkAction<void>;
|
48
|
+
export declare const collapsePreviewDocs: () => PipelineBuilderThunkAction<void>;
|
45
49
|
export default reducer;
|
46
50
|
//# sourceMappingURL=text-editor-pipeline.d.ts.map
|
@@ -1 +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;
|
1
|
+
{"version":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C/B,uBAAuB,CAAC;AAE5B,MAAM,MAAM,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,cAAc,EAAE,GAAG,IAAI,CAAC;IACrC,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAYF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,eAAe,CA+GrC,CAAC;AAEF,wBAAgB,cAAc,CAC5B,WAAW,EAAE,OAAO,GAAG,SAAS,EAChC,YAAY,EAAE,mBAAmB,EAAE,uBAGpC;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,CA0B1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,2BAA2B,IAAI,CAYnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,2BAA2B,IAAI,CAYrE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,35 +1,41 @@
|
|
1
|
-
import type { AnyAction } from 'redux';
|
2
1
|
import type { PipelineBuilderThunkAction } from '.';
|
3
2
|
import type { SavedPipeline } from '@mongodb-js/my-queries-storage';
|
4
|
-
|
5
|
-
|
3
|
+
import type { PipelineBuilder } from './pipeline-builder/pipeline-builder';
|
4
|
+
import type { AnyAction } from 'redux';
|
5
|
+
export declare const SAVED_PIPELINE_ADD: "aggregations/saved-pipeline/ADD";
|
6
|
+
export declare const RESTORE_PIPELINE: "aggregations/saved-pipeline/RESTORE_PIPELINE";
|
7
|
+
export interface SavedPipelineAddAction {
|
8
|
+
type: typeof SAVED_PIPELINE_ADD;
|
9
|
+
pipelines: SavedPipeline[];
|
10
|
+
}
|
11
|
+
export type RestorePipelineAction = ReturnType<typeof restorePipeline>;
|
12
|
+
export type SavedPipelineAction = SavedPipelineAddAction | RestorePipelineAction;
|
6
13
|
export type SavedPipelineState = {
|
7
14
|
pipelines: SavedPipeline[];
|
8
15
|
isLoaded: boolean;
|
9
16
|
};
|
10
17
|
export declare const INITIAL_STATE: SavedPipelineState;
|
11
|
-
export default function reducer(state: SavedPipelineState | undefined, action: AnyAction):
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
type:
|
17
|
-
|
18
|
+
export default function reducer(state: SavedPipelineState | undefined, action: AnyAction): SavedPipelineState;
|
19
|
+
export declare const savedPipelineAdd: (pipelines: SavedPipeline[]) => SavedPipelineAddAction;
|
20
|
+
export declare const getSavedPipelines: () => PipelineBuilderThunkAction<void>;
|
21
|
+
export declare const updatePipelineList: () => PipelineBuilderThunkAction<void>;
|
22
|
+
declare function restorePipeline(pipelineData: SavedPipeline, pipelineBuilder: PipelineBuilder): {
|
23
|
+
type: "aggregations/saved-pipeline/RESTORE_PIPELINE";
|
24
|
+
stages: import("./pipeline-builder/stage").default[];
|
25
|
+
pipelineText: string;
|
26
|
+
pipeline: import("bson").Document[] | null;
|
27
|
+
syntaxErrors: import("./pipeline-builder/pipeline-parser/utils").PipelineParserError[];
|
28
|
+
storedOptions: {
|
18
29
|
id: string;
|
19
30
|
name: string;
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
collationString?: string | undefined;
|
25
|
-
host?: string | null | undefined;
|
26
|
-
lastModified?: Date | undefined;
|
27
|
-
}[];
|
31
|
+
collationString: string | undefined;
|
32
|
+
comments: boolean | undefined;
|
33
|
+
autoPreview: boolean | undefined;
|
34
|
+
};
|
28
35
|
};
|
29
|
-
export declare const getSavedPipelines: () => PipelineBuilderThunkAction<void>;
|
30
|
-
export declare const updatePipelineList: () => PipelineBuilderThunkAction<void>;
|
31
36
|
export declare const openStoredPipeline: (pipelineData: SavedPipeline, updatePreview?: boolean) => PipelineBuilderThunkAction<void>;
|
32
37
|
export declare const saveCurrentPipeline: () => PipelineBuilderThunkAction<void>;
|
33
38
|
export declare const confirmOpenPipeline: (pipelineData: SavedPipeline) => PipelineBuilderThunkAction<void>;
|
34
39
|
export declare const confirmDeletePipeline: (pipelineId: string) => PipelineBuilderThunkAction<void>;
|
40
|
+
export {};
|
35
41
|
//# 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":"
|
1
|
+
{"version":3,"file":"saved-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saved-pipeline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAWpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,eAAO,MAAM,kBAAkB,mCAA2B,CAAC;AAC3D,eAAO,MAAM,gBAAgB,gDAAwC,CAAC;AAEtE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,kBAAkB,CAAC;IAChC,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AACD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAC3B,sBAAsB,GACtB,qBAAqB,CAAC;AAE1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAuBF,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,gCAAoC,EACzC,MAAM,EAAE,SAAS,sBAIlB;AAED,eAAO,MAAM,gBAAgB,cAChB,aAAa,EAAE,KACzB,sBAGD,CAAC;AAEH,eAAO,MAAM,iBAAiB,QACxB,2BAA2B,IAAI,CAIlC,CAAC;AAKJ,eAAO,MAAM,kBAAkB,QACzB,2BAA2B,IAAI,CAiBlC,CAAC;AAEJ,iBAAS,eAAe,CACtB,YAAY,EAAE,aAAa,EAC3B,eAAe,EAAE,eAAe;;;;;;;;;;;;;EAgBjC;AAKD,eAAO,MAAM,kBAAkB,iBACf,aAAa,8BAE1B,2BAA2B,IAAI,CAwBjC,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAC1B,2BAA2B,IAAI,CAiDlC,CAAC;AAEJ,eAAO,MAAM,mBAAmB,iBACf,aAAa,KAAG,2BAA2B,IAAI,CAqB7D,CAAC;AAEJ,eAAO,MAAM,qBAAqB,eACnB,MAAM,KAAG,2BAA2B,IAAI,CAoBpD,CAAC"}
|
@@ -1,21 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export const
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
const isOpen: boolean;
|
8
|
-
const name: string;
|
9
|
-
const isSaveAs: boolean;
|
1
|
+
import type { PipelineBuilderThunkAction } from '.';
|
2
|
+
import type { AnyAction } from 'redux';
|
3
|
+
export declare const SAVING_PIPELINE_NAME_CHANGED: "aggregations/saving-pipeline/NAME_CHANGED";
|
4
|
+
export interface SavingPipelineNameChangedAction {
|
5
|
+
type: typeof SAVING_PIPELINE_NAME_CHANGED;
|
6
|
+
name: string;
|
10
7
|
}
|
11
|
-
export
|
12
|
-
export
|
13
|
-
|
14
|
-
|
8
|
+
export declare const SAVING_PIPELINE_APPLY: "aggregations/saving-pipeline/APPLY";
|
9
|
+
export interface SavingPipelineApplyAction {
|
10
|
+
type: typeof SAVING_PIPELINE_APPLY;
|
11
|
+
name: string;
|
12
|
+
}
|
13
|
+
export declare const SAVING_PIPELINE_CANCEL: "aggregations/saving-pipeline/CANCEL";
|
14
|
+
export interface SavingPipelineCancelAction {
|
15
|
+
type: typeof SAVING_PIPELINE_CANCEL;
|
16
|
+
}
|
17
|
+
export declare const SAVING_PIPELINE_OPEN: "aggregations/saving-pipeline/OPEN";
|
18
|
+
export interface SavingPipelineOpenAction {
|
19
|
+
type: typeof SAVING_PIPELINE_OPEN;
|
20
|
+
name: string;
|
21
|
+
isSaveAs: boolean;
|
22
|
+
}
|
23
|
+
export type SavingPipelineAction = SavingPipelineNameChangedAction | SavingPipelineApplyAction | SavingPipelineCancelAction | SavingPipelineOpenAction;
|
24
|
+
export interface SavingPipelineState {
|
25
|
+
isOpen: boolean;
|
26
|
+
name: string;
|
27
|
+
isSaveAs: boolean;
|
28
|
+
}
|
29
|
+
export declare const INITIAL_STATE: SavingPipelineState;
|
30
|
+
export default function reducer(state: SavingPipelineState | undefined, action: AnyAction): SavingPipelineState;
|
31
|
+
export declare const savingPipelineNameChanged: (name: string) => SavingPipelineNameChangedAction;
|
32
|
+
export declare const savingPipelineApply: () => PipelineBuilderThunkAction<void, SavingPipelineApplyAction>;
|
33
|
+
export declare const savingPipelineCancel: () => SavingPipelineCancelAction;
|
34
|
+
export declare const savingPipelineOpen: ({ name, isSaveAs, }?: {
|
15
35
|
name?: string | undefined;
|
16
36
|
isSaveAs?: boolean | undefined;
|
17
|
-
})
|
18
|
-
export
|
19
|
-
pipelineBuilder: any;
|
20
|
-
}) => void;
|
37
|
+
}) => SavingPipelineOpenAction;
|
38
|
+
export declare const openCreateView: () => PipelineBuilderThunkAction<void>;
|
21
39
|
//# sourceMappingURL=saving-pipeline.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"saving-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saving-pipeline.
|
1
|
+
{"version":3,"file":"saving-pipeline.d.ts","sourceRoot":"","sources":["../../../src/mod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0BAEtC,CAAC;AAKH,eAAO,MAAM,kBAAkB;;;MAGtB,wBAMR,CAAC;AAQF,eAAO,MAAM,cAAc,QAAO,2BAA2B,IAAI,CAgBhE,CAAC"}
|
@@ -13,6 +13,17 @@ export declare enum ActionTypes {
|
|
13
13
|
FetchIndexesFinished = "compass-aggregations/search-indexes/FetchIndexesFinished",
|
14
14
|
FetchIndexesFailed = "compass-aggregations/search-indexes/FetchIndexesFailed"
|
15
15
|
}
|
16
|
+
type FetchIndexesStartedAction = {
|
17
|
+
type: ActionTypes.FetchIndexesStarted;
|
18
|
+
};
|
19
|
+
type FetchIndexesFinishedAction = {
|
20
|
+
type: ActionTypes.FetchIndexesFinished;
|
21
|
+
indexes: SearchIndex[];
|
22
|
+
};
|
23
|
+
type FetchIndexesFailedAction = {
|
24
|
+
type: ActionTypes.FetchIndexesFailed;
|
25
|
+
};
|
26
|
+
export type SearchIndexesAction = FetchIndexesFailedAction | FetchIndexesStartedAction | FetchIndexesFinishedAction;
|
16
27
|
type State = {
|
17
28
|
isSearchIndexesSupported: boolean;
|
18
29
|
indexes: SearchIndex[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"search-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/search-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"search-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/search-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,aAAK,qBAAqB;IACxB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAErE,oBAAY,WAAW;IACrB,mBAAmB,4DAA4D;IAC/E,oBAAoB,6DAA6D;IACjF,kBAAkB,2DAA2D;CAC9E;AAED,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAAC;CACvC,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,WAAW,CAAC,oBAAoB,CAAC;IACvC,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAC,kBAAkB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAC3B,wBAAwB,GACxB,yBAAyB,GACzB,0BAA0B,CAAC;AAE/B,KAAK,KAAK,GAAG;IACX,wBAAwB,EAAE,OAAO,CAAC;IAClC,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CA8B3B,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,2BAA2B,QAAQ,IAAI,CAAC,CAmCvE,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,2BAA2B,IAAI,CAInE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server-version.d.ts","sourceRoot":"","sources":["../../../src/modules/server-version.
|
1
|
+
{"version":3,"file":"server-version.d.ts","sourceRoot":"","sources":["../../../src/modules/server-version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,UAAU,CAAC;AAUrC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,SAAgB,UAEpD"}
|
@@ -1,33 +1,42 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Reducer } from 'redux';
|
2
2
|
import type { PipelineBuilderThunkAction } from '.';
|
3
|
-
export declare const TOGGLE_IS_EXPANDED:
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
export declare const
|
8
|
-
|
3
|
+
export declare const TOGGLE_IS_EXPANDED: "aggregations/settings/TOGGLE_IS_EXPANDED";
|
4
|
+
export interface ToggleIsExpandedAction {
|
5
|
+
type: typeof TOGGLE_IS_EXPANDED;
|
6
|
+
}
|
7
|
+
export declare const TOGGLE_COMMENT_MODE: "aggregations/settings/TOGGLE_COMMENT_MODE";
|
8
|
+
export interface ToggleCommentModeAction {
|
9
|
+
type: typeof TOGGLE_COMMENT_MODE;
|
10
|
+
}
|
11
|
+
export declare const SET_SAMPLE_SIZE: "aggregations/settings/SET_SAMPLE_SIZE";
|
12
|
+
export interface SetSampleSizeAction {
|
13
|
+
type: typeof SET_SAMPLE_SIZE;
|
14
|
+
value: number;
|
15
|
+
}
|
16
|
+
export declare const SET_LIMIT: "aggregations/settings/SET_LIMIT";
|
17
|
+
export interface SetLimitAction {
|
18
|
+
type: typeof SET_LIMIT;
|
19
|
+
value: number;
|
20
|
+
}
|
21
|
+
export declare const APPLY_SETTINGS: "aggregations/settings/APPLY_SETTINGS";
|
22
|
+
export interface ApplySettingsAction {
|
23
|
+
type: typeof APPLY_SETTINGS;
|
24
|
+
settings: SettingsState;
|
25
|
+
}
|
26
|
+
export type SettingsAction = ToggleIsExpandedAction | ToggleCommentModeAction | SetSampleSizeAction | SetLimitAction | ApplySettingsAction;
|
27
|
+
export type SettingsState = {
|
9
28
|
isExpanded: boolean;
|
10
29
|
isCommentMode: boolean;
|
11
30
|
isDirty: boolean;
|
12
31
|
sampleSize: number;
|
13
32
|
limit: number;
|
14
33
|
};
|
15
|
-
export declare const INITIAL_STATE:
|
16
|
-
declare const reducer: Reducer<
|
17
|
-
export declare const toggleSettingsIsExpanded: () =>
|
18
|
-
|
19
|
-
|
20
|
-
export declare const
|
21
|
-
type: string;
|
22
|
-
};
|
23
|
-
export declare const setSettingsSampleSize: (value: number) => {
|
24
|
-
type: string;
|
25
|
-
value: number;
|
26
|
-
};
|
27
|
-
export declare const setSettingsLimit: (value: number) => {
|
28
|
-
type: string;
|
29
|
-
value: number;
|
30
|
-
};
|
34
|
+
export declare const INITIAL_STATE: SettingsState;
|
35
|
+
declare const reducer: Reducer<SettingsState>;
|
36
|
+
export declare const toggleSettingsIsExpanded: () => ToggleIsExpandedAction;
|
37
|
+
export declare const toggleSettingsIsCommentMode: () => ToggleCommentModeAction;
|
38
|
+
export declare const setSettingsSampleSize: (value: number) => SetSampleSizeAction;
|
39
|
+
export declare const setSettingsLimit: (value: number) => SetLimitAction;
|
31
40
|
export declare const applySettings: () => PipelineBuilderThunkAction<void>;
|
32
41
|
export default reducer;
|
33
42
|
//# sourceMappingURL=settings.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/modules/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/modules/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAUpD,eAAO,MAAM,kBAAkB,4CAA0C,CAAC;AAC1E,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,kBAAkB,CAAC;CACjC;AAED,eAAO,MAAM,mBAAmB,6CAA2C,CAAC;AAC5E,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,mBAAmB,CAAC;CAClC;AAED,eAAO,MAAM,eAAe,yCAAuC,CAAC;AACpE,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,SAAS,mCAAiC,CAAC;AACxD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,cAAc,wCAAsC,CAAC;AAClE,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC;CACzB;AACD,MAAM,MAAM,cAAc,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,mBAAmB,GACnB,cAAc,GACd,mBAAmB,CAAC;AAExB,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAM3B,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,aAAa,CAkDnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAO,sBAE1C,CAAC;AAEH,eAAO,MAAM,2BAA2B,QAAO,uBAE7C,CAAC;AAEH,eAAO,MAAM,qBAAqB,UAAW,MAAM,KAAG,mBAGpD,CAAC;AAEH,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,cAG/C,CAAC;AAOH,eAAO,MAAM,aAAa,QAAO,2BAA2B,IAAI,CAM/D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,16 +1,17 @@
|
|
1
|
-
import type { AnyAction } from 'redux';
|
2
1
|
import { type PipelineBuilderThunkAction } from '.';
|
2
|
+
import type { AnyAction } from 'redux';
|
3
3
|
declare enum ActionTypes {
|
4
4
|
SidePanelToggled = "compass-aggregations/sidePanelToggled"
|
5
5
|
}
|
6
6
|
type SidePanelToggledAction = {
|
7
7
|
type: ActionTypes.SidePanelToggled;
|
8
8
|
};
|
9
|
-
type
|
9
|
+
export type SidePanelAction = SidePanelToggledAction;
|
10
|
+
export type SidePanelState = {
|
10
11
|
isPanelOpen: boolean;
|
11
12
|
};
|
12
|
-
export declare const INITIAL_PANEL_OPEN_LOCAL_STORAGE_KEY
|
13
|
-
export default function reducer(state:
|
13
|
+
export declare const INITIAL_PANEL_OPEN_LOCAL_STORAGE_KEY: "is_aggregation_side_panel_open";
|
14
|
+
export default function reducer(state: SidePanelState | undefined, action: AnyAction): SidePanelState;
|
14
15
|
export declare const toggleSidePanel: () => PipelineBuilderThunkAction<void, SidePanelToggledAction>;
|
15
16
|
export {};
|
16
17
|
//# sourceMappingURL=side-panel.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"side-panel.d.ts","sourceRoot":"","sources":["../../../src/modules/side-panel.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"side-panel.d.ts","sourceRoot":"","sources":["../../../src/modules/side-panel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAGpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,aAAK,WAAW;IACd,gBAAgB,0CAA0C;CAC3D;AAED,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,oCAAoC,kCACN,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,4BAAyC,EAC9C,MAAM,EAAE,SAAS,GAChB,cAAc,CAShB;AAED,eAAO,MAAM,eAAe,QAAO,2BACjC,IAAI,EACJ,sBAAsB,CA4BvB,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export
|
2
|
-
export
|
1
|
+
export declare const INITIAL_STATE: string | null;
|
2
|
+
export default function reducer(state?: string | null): string | null;
|
3
3
|
//# sourceMappingURL=source-name.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"source-name.d.ts","sourceRoot":"","sources":["../../../src/modules/source-name.
|
1
|
+
{"version":3,"file":"source-name.d.ts","sourceRoot":"","sources":["../../../src/modules/source-name.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,IAAW,CAAC;AAKjD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,gBAAgB,iBAEpD"}
|
@@ -1,8 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export
|
4
|
-
export const
|
5
|
-
export
|
6
|
-
|
7
|
-
|
1
|
+
import type { PipelineBuilderThunkAction } from '.';
|
2
|
+
import type { AnyAction } from 'redux';
|
3
|
+
export type UpdateViewState = null | string;
|
4
|
+
export declare const INITIAL_STATE: UpdateViewState;
|
5
|
+
export declare const ERROR_UPDATING_VIEW: "aggregations/update-view/ERROR_UPDATING_VIEW";
|
6
|
+
interface ErrorUpdatingViewAction {
|
7
|
+
type: typeof ERROR_UPDATING_VIEW;
|
8
|
+
error: string;
|
9
|
+
}
|
10
|
+
export declare const DISMISS_VIEW_UPDATE_ERROR: "aggregations/update-view/DISMISS_VIEW_UPDATE_ERROR";
|
11
|
+
interface DismissViewUpdateErrorAction {
|
12
|
+
type: typeof DISMISS_VIEW_UPDATE_ERROR;
|
13
|
+
}
|
14
|
+
export type UpdateViewAction = ErrorUpdatingViewAction | DismissViewUpdateErrorAction;
|
15
|
+
export default function reducer(state: UpdateViewState | undefined, action: AnyAction): UpdateViewState;
|
16
|
+
export declare const updateViewErrorOccured: (error: Error | string) => ErrorUpdatingViewAction;
|
17
|
+
export declare const dismissViewError: () => DismissViewUpdateErrorAction;
|
18
|
+
export declare const updateView: () => PipelineBuilderThunkAction<Promise<void>>;
|
19
|
+
export {};
|
8
20
|
//# sourceMappingURL=update-view.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.
|
1
|
+
{"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,CAAC;AAK5C,eAAO,MAAM,aAAa,EAAE,eAAsB,CAAC;AAGnD,eAAO,MAAM,mBAAmB,gDACyB,CAAC;AAC1D,UAAU,uBAAuB;IAC/B,IAAI,EAAE,OAAO,mBAAmB,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,eAAO,MAAM,yBAAyB,sDACyB,CAAC;AAChE,UAAU,4BAA4B;IACpC,IAAI,EAAE,OAAO,yBAAyB,CAAC;CACxC;AAED,MAAM,MAAM,gBAAgB,GACxB,uBAAuB,GACvB,4BAA4B,CAAC;AAEjC,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,6BAAiC,EACtC,MAAM,EAAE,SAAS,GAChB,eAAe,CAcjB;AAKD,eAAO,MAAM,sBAAsB,UAC1B,KAAK,GAAG,MAAM,KACpB,uBAGD,CAAC;AAOH,eAAO,MAAM,gBAAgB,QAAO,4BAElC,CAAC;AAOH,eAAO,MAAM,UAAU,QAAO,2BAA2B,QAAQ,IAAI,CAAC,CAoCrE,CAAC"}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Reducer } from 'redux';
|
2
2
|
import type { PipelineBuilderThunkAction } from '.';
|
3
3
|
export type Workspace = 'builder' | 'results';
|
4
4
|
export declare enum ActionTypes {
|
5
5
|
WorkspaceChanged = "compass-aggregations/workspaceChanged"
|
6
6
|
}
|
7
|
-
type WorkspaceChangedAction = {
|
7
|
+
export type WorkspaceChangedAction = {
|
8
8
|
type: ActionTypes.WorkspaceChanged;
|
9
9
|
view: Workspace;
|
10
10
|
};
|
11
11
|
export type Actions = WorkspaceChangedAction;
|
12
12
|
export type State = Workspace;
|
13
13
|
export declare const INITIAL_STATE: State;
|
14
|
-
declare const reducer: Reducer<State
|
14
|
+
declare const reducer: Reducer<State>;
|
15
15
|
export declare const editPipeline: () => PipelineBuilderThunkAction<void>;
|
16
16
|
export default reducer;
|
17
17
|
//# sourceMappingURL=workspace.d.ts.map
|