@mongodb-js/compass-aggregations 9.3.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/browser.js.LICENSE.txt +0 -6
- package/dist/index.css +34 -145
- package/dist/index.js +1 -22
- package/dist/index.js.LICENSE.txt +0 -6
- package/dist/src/components/atlas-stage-preview.d.ts +5 -0
- package/dist/src/components/atlas-stage-preview.d.ts.map +1 -0
- package/dist/src/components/create-view-modal/create-view-modal.d.ts +1 -1
- package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -1
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +1 -1
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -1
- package/dist/src/components/input-workspace/input-workspace.d.ts.map +1 -1
- package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts.map +1 -1
- package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts.map +1 -1
- package/dist/src/components/pipeline/modals/import-pipeline.d.ts.map +1 -1
- package/dist/src/components/pipeline/pipeline.d.ts +4 -0
- package/dist/src/components/pipeline/pipeline.d.ts.map +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 +2 -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 +6 -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 +13 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts.map +1 -0
- package/dist/src/components/pipeline-output-options-menu.d.ts +7 -0
- package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/index.d.ts +1 -0
- 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 +3 -0
- 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 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/index.d.ts +3 -0
- package/dist/src/components/pipeline-toolbar/index.d.ts.map +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.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +3 -3
- 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.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/resize-handle.d.ts +4 -0
- package/dist/src/components/resize-handle.d.ts.map +1 -0
- package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts +3 -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.map +1 -1
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -1
- package/dist/src/components/stage/stage.d.ts.map +1 -1
- package/dist/src/components/stage-editor/stage-editor.d.ts +7 -2
- package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -1
- package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts.map +1 -1
- package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts +16 -20
- package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts.map +1 -1
- package/dist/src/components/stage-preview/stage-preview.d.ts.map +1 -1
- package/dist/src/modules/aggregation.d.ts.map +1 -1
- package/dist/src/modules/explain.d.ts.map +1 -1
- package/dist/src/modules/index.d.ts +8 -1
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/input-documents.d.ts.map +1 -1
- package/dist/src/modules/max-time-ms.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +3 -0
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/index.d.ts +8 -1
- package/dist/src/modules/pipeline-builder/index.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +8 -3
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -1
- 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 +3 -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 +12 -2
- 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 +7 -6
- 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 +2 -0
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts +7 -1
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage.d.ts +2 -2
- package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +13 -0
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/{text-editor.d.ts → text-editor-pipeline.d.ts} +16 -10
- package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -0
- package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
- package/dist/src/modules/update-view.d.ts.map +1 -1
- package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -1
- package/dist/src/utils/pipeline-storage.d.ts.map +1 -1
- package/dist/src/utils/stage.d.ts +8 -2
- package/dist/src/utils/stage.d.ts.map +1 -1
- package/package.json +22 -19
- package/dist/src/components/resize-handle/resize-handle.d.ts +0 -7
- package/dist/src/components/resize-handle/resize-handle.d.ts.map +0 -1
- package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts +0 -14
- package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts.map +0 -1
- package/dist/src/modules/pipeline-builder/text-editor.d.ts.map +0 -1
- package/dist/src/utils/cancellable-promise.d.ts +0 -10
- package/dist/src/utils/cancellable-promise.d.ts.map +0 -1
@@ -1,7 +1,14 @@
|
|
1
1
|
declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
|
2
2
|
pipelineMode: import("./pipeline-mode").PipelineMode;
|
3
3
|
stageEditor: import("./stage-editor").StageEditorState;
|
4
|
-
textEditor: import("
|
4
|
+
textEditor: import("redux").CombinedState<{
|
5
|
+
pipeline: import("./text-editor-pipeline").TextEditorState;
|
6
|
+
outputStage: {
|
7
|
+
isLoading: boolean;
|
8
|
+
serverError: import("mongodb").MongoServerError | null;
|
9
|
+
isComplete: boolean;
|
10
|
+
};
|
11
|
+
}>;
|
5
12
|
}>, import("redux").AnyAction>;
|
6
13
|
export default reducer;
|
7
14
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;8BAOX,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
@@ -5,7 +5,7 @@ import { PipelinePreviewManager } from './pipeline-preview-manager';
|
|
5
5
|
import type { PreviewOptions } from './pipeline-preview-manager';
|
6
6
|
import Stage from './stage';
|
7
7
|
import { PipelineParserError } from './pipeline-parser/utils';
|
8
|
-
export declare const DEFAULT_PIPELINE = "[
|
8
|
+
export declare const DEFAULT_PIPELINE = "[]";
|
9
9
|
export declare class PipelineBuilder {
|
10
10
|
private _source;
|
11
11
|
pipeline: Document[] | null;
|
@@ -16,14 +16,13 @@ export declare class PipelineBuilder {
|
|
16
16
|
constructor(dataService: DataService, source?: string);
|
17
17
|
set source(source: string);
|
18
18
|
get source(): string;
|
19
|
+
private get nonEmptyStages();
|
19
20
|
private parseSourceToPipeline;
|
20
21
|
reset(source?: string): void;
|
21
|
-
stopPreview(from?: number): void;
|
22
22
|
changeSource(source: string): void;
|
23
23
|
sourceToStages(): void;
|
24
24
|
private validateSource;
|
25
25
|
getPipelineFromSource(): Document[];
|
26
|
-
getPreviewForPipeline(namespace: string, options: PreviewOptions): Promise<Document[]>;
|
27
26
|
stagesToSource(): void;
|
28
27
|
getStage(idx: number): Stage;
|
29
28
|
addStage(after?: number): Stage;
|
@@ -32,6 +31,12 @@ export declare class PipelineBuilder {
|
|
32
31
|
getPipelineStringFromStages(stages?: Stage[]): string;
|
33
32
|
getPipelineStringFromSource(): string;
|
34
33
|
getPipelineFromStages(stages?: Stage[]): Document[];
|
34
|
+
stopPreview(from?: number): void;
|
35
|
+
cancelPreviewForStage(id: number): void;
|
36
|
+
cancelPreviewForPipeline(): void;
|
35
37
|
getPreviewForStage(idx: number, namespace: string, options: PreviewOptions, force?: boolean): Promise<Document[]>;
|
38
|
+
isLastStagePreviewEqual(idx: number, pipeline?: Document[]): boolean;
|
39
|
+
getPreviewForPipeline(namespace: string, options: PreviewOptions, filterOutputStage?: boolean): Promise<Document[]>;
|
40
|
+
isLastPipelinePreviewEqual(pipeline?: Document[], filterOutputStage?: boolean): boolean;
|
36
41
|
}
|
37
42
|
//# sourceMappingURL=pipeline-builder.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipeline-builder.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,
|
1
|
+
{"version":3,"file":"pipeline-builder.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAkB,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9E,eAAO,MAAM,gBAAgB,OAA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K,UAAQ,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC;IActB,uBAAuB,CACrB,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,QAAQ,EAEjB;IAQH,qBAAqB,CACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,EACvB,iBAAiB,UAAQ,GACxB,OAAO,CAAC,QAAQ,EAAE,CAAC;IAkBtB,0BAA0B,CACxB,QAAQ,GAAE,QAAQ,EAAiC,EACnD,iBAAiB,UAAQ;CAY5B"}
|
@@ -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;AAGrD,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;AAGrD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAMnE,oBAAY,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC;AAEpD,oBAAY,WAAW;IACrB,mBAAmB,6CAA6C;CACjE;AAED,oBAAY,yBAAyB,GAAG;IACtC,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAAC;IACtC,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,aAAK,KAAK,GAAG,YAAY,CAAC;AAE1B,eAAO,MAAM,aAAa,EAAE,KAAoB,CAAC;AAEjD,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAiB3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,YAAY,KACpB,2BAA2B,IAAI,EAAE,yBAAyB,CAkC5D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type * as t from '@babel/types';
|
2
|
+
import type Stage from '../stage';
|
2
3
|
import { PipelineParserError } from './utils';
|
3
4
|
declare type ParseResponse = {
|
4
5
|
root: t.ArrayExpression;
|
@@ -12,8 +13,8 @@ export default class PipelineParser {
|
|
12
13
|
static parse(source: string): ParseResponse;
|
13
14
|
static _parseStringToRoot(source: string): t.ArrayExpression;
|
14
15
|
static validate(source: string): ValidateResponse;
|
15
|
-
static generate(root: t.ArrayExpression, stages:
|
16
|
-
static _getStageNodes(stages:
|
16
|
+
static generate(root: t.ArrayExpression, stages: Stage[]): string;
|
17
|
+
static _getStageNodes(stages: Stage[]): t.Expression[];
|
17
18
|
}
|
18
19
|
export {};
|
19
20
|
//# sourceMappingURL=pipeline-parser.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipeline-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/pipeline-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"pipeline-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/pipeline-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAOlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkF9C,aAAK,aAAa,GAAG;IACnB,IAAI,EAAE,CAAC,CAAC,eAAe,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC;CACxB,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,CAAC,CAAC,eAAe,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa;IAkB3C,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,eAAe;IAU5D,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB;IAmBjD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM;IAiBjE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE;CA4DvD"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type * as t from '@babel/types';
|
2
|
+
import type Stage from '../stage';
|
2
3
|
export declare type StageLike = t.ObjectExpression & {
|
3
4
|
properties: [t.ObjectProperty & {
|
4
5
|
key: t.Identifier | t.StringLiteral;
|
@@ -6,11 +7,20 @@ export declare type StageLike = t.ObjectExpression & {
|
|
6
7
|
};
|
7
8
|
export declare function isNodeDisabled(node: t.Node): boolean;
|
8
9
|
export declare function setNodeDisabled(node: t.Node, value: boolean): void;
|
10
|
+
export declare function isValidStageNode(node?: t.ObjectExpression): boolean;
|
9
11
|
export declare function isStageLike(node?: t.Node | null, loose?: boolean): node is StageLike;
|
10
|
-
export declare
|
12
|
+
export declare const enum StageAssertionErrorCodes {
|
13
|
+
InvalidStage = 0,
|
14
|
+
NotObjectExpression = 1,
|
15
|
+
NoStageOperator = 2,
|
16
|
+
UnrecognizedStageName = 3,
|
17
|
+
NoStageValue = 4,
|
18
|
+
InvalidStageValue = 5
|
19
|
+
}
|
20
|
+
export declare function assertStageNode(node?: t.Node | null, loose?: boolean): asserts node is StageLike;
|
11
21
|
export declare function getStageOperatorFromNode(node: StageLike): string;
|
12
22
|
export declare function getStageValueFromNode(node: StageLike): string;
|
13
|
-
export declare function stageToAstComments(stage:
|
23
|
+
export declare function stageToAstComments(stage: Stage): t.CommentLine[];
|
14
24
|
export default class StageParser {
|
15
25
|
source: string;
|
16
26
|
private maybeObject;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stage-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/stage-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"stage-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/stage-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAIlC,oBAAY,SAAS,GAAG,CAAC,CAAC,gBAAgB,GAAG;IAC3C,UAAU,EAAE,CAAC,CAAC,CAAC,cAAc,GAAG;QAAE,GAAG,EAAE,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,aAAa,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAC;AAIF,wBAAgB,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,OAAO,CAEpD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,QAE3D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,gBAAgB,GAAG,OAAO,CAanE;AAED,wBAAgB,WAAW,CACzB,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,EACpB,KAAK,UAAQ,GACZ,IAAI,IAAI,SAAS,CAOnB;AAUD,0BAAkB,wBAAwB;IACxC,YAAY,IAAA;IACZ,mBAAmB,IAAA;IACnB,eAAe,IAAA;IACf,qBAAqB,IAAA;IACrB,YAAY,IAAA;IACZ,iBAAiB,IAAA;CAClB;AAED,wBAAgB,eAAe,CAC7B,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,EACpB,KAAK,UAAQ,GACZ,OAAO,CAAC,IAAI,IAAI,SAAS,CAmC3B;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAIhE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAc7D;AAKD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,WAAW,EAAE,CAWhE;AAMD,MAAM,CAAC,OAAO,OAAO,WAAW;IACvB,MAAM,SAAM;IACnB,OAAO,CAAC,WAAW,CAAS;IAE5B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS;CA0CrC"}
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import type { Node } from '@babel/types';
|
2
2
|
import type { Document } from 'mongodb';
|
3
|
+
import type { FormatOptions } from '@mongodb-js/compass-editor';
|
3
4
|
declare type ErrorLoc = {
|
4
5
|
line: number;
|
5
6
|
column: number;
|
6
7
|
};
|
7
8
|
export declare class PipelineParserError extends SyntaxError {
|
8
|
-
loc
|
9
|
-
|
9
|
+
loc?: ErrorLoc | undefined;
|
10
|
+
code?: number | undefined;
|
11
|
+
constructor(message: string, loc?: ErrorLoc | undefined, code?: number | undefined);
|
10
12
|
}
|
11
|
-
export declare function generate(ast: Node): string;
|
12
|
-
export declare function
|
13
|
-
export
|
14
|
-
export {};
|
13
|
+
export declare function generate(ast: Node, formatOptions?: FormatOptions): string;
|
14
|
+
export declare function parseShellBSON(source: string): Document[];
|
15
|
+
export { prettify } from '@mongodb-js/compass-editor';
|
15
16
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,aAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AACD,qBAAa,mBAAoB,SAAQ,WAAW;IACd,GAAG,CAAC;IAAmB,IAAI,CAAC;gBAApD,OAAO,EAAE,MAAM,EAAS,GAAG,CAAC,sBAAU,EAAS,IAAI,CAAC,oBAAQ;CAGzE;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE,aAAa,UAMhE;AAMD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAQzD;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC"}
|
@@ -12,8 +12,10 @@ export declare function createPreviewAggregation(pipeline: Document[], options?:
|
|
12
12
|
export declare class PipelinePreviewManager {
|
13
13
|
private dataService;
|
14
14
|
private queue;
|
15
|
+
private lastPipeline;
|
15
16
|
constructor(dataService: DataService);
|
16
17
|
getPreviewForStage(idx: number, namespace: string, pipeline: Document[], { sampleSize, previewSize, totalDocumentCount, ...options }?: PreviewOptions, force?: boolean): Promise<Document[]>;
|
18
|
+
isLastPipelineEqual(idx: number, pipeline: Document[]): boolean;
|
17
19
|
cancelPreviewForStage(idx: number): boolean;
|
18
20
|
clearQueue(from?: number): void;
|
19
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipeline-preview-manager.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-preview-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"pipeline-preview-manager.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-preview-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAU1D,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAexC,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,QAAQ,EAAE,EACpB,OAAO,GAAE,IAAI,CACX,cAAc,EACd,YAAY,GAAG,aAAa,GAAG,oBAAoB,CAC/C,cA8BP;AAED,qBAAa,sBAAsB;IAGrB,OAAO,CAAC,WAAW;IAF/B,OAAO,CAAC,KAAK,CAAsC;IACnD,OAAO,CAAC,YAAY,CAAiC;gBACjC,WAAW,EAAE,WAAW;IAKtC,kBAAkB,CACtB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAAE,EACpB,EACE,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,GAAG,OAAO,EACX,GAAE,cAAmB,EACtB,KAAK,UAAQ,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC;IAuBtB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO;IAO/D,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAS3C,UAAU,CAAC,IAAI,SAAI;CASpB"}
|
@@ -5,6 +5,7 @@ import type Stage from './stage';
|
|
5
5
|
import type { PipelineParserError } from './pipeline-parser/utils';
|
6
6
|
export declare const enum StageEditorActionTypes {
|
7
7
|
StagePreviewFetch = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetch",
|
8
|
+
StagePreviewFetchSkipped = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSkipped",
|
8
9
|
StagePreviewFetchSuccess = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSuccess",
|
9
10
|
StagePreviewFetchError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
|
10
11
|
StageRun = "compass-aggregations/pipeline-builder/stage-editor/StageRun",
|
@@ -22,6 +23,10 @@ export declare type StagePreviewFetchAction = {
|
|
22
23
|
type: StageEditorActionTypes.StagePreviewFetch;
|
23
24
|
id: number;
|
24
25
|
};
|
26
|
+
export declare type StagePreviewFetchSkippedAction = {
|
27
|
+
type: StageEditorActionTypes.StagePreviewFetchSkipped;
|
28
|
+
id: number;
|
29
|
+
};
|
25
30
|
export declare type StagePreviewFetchSuccessAction = {
|
26
31
|
type: StageEditorActionTypes.StagePreviewFetchSuccess;
|
27
32
|
id: number;
|
@@ -80,7 +85,7 @@ export declare type StageMoveAction = {
|
|
80
85
|
from: number;
|
81
86
|
to: number;
|
82
87
|
};
|
83
|
-
export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction>;
|
88
|
+
export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction | StagePreviewFetchSkippedAction>;
|
84
89
|
export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
|
85
90
|
export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
|
86
91
|
export declare const changeStageValue: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageValueAction>;
|
@@ -102,6 +107,7 @@ export declare type StageEditorState = {
|
|
102
107
|
previewDocs: Document[] | null;
|
103
108
|
collapsed: boolean;
|
104
109
|
disabled: boolean;
|
110
|
+
empty: boolean;
|
105
111
|
}[];
|
106
112
|
};
|
107
113
|
export declare function mapBuilderStageToStoreStage(stage: Stage): StageEditorState['stages'][number];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAoB,QAAQ,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI5E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAWjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/st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,CAAC;QACrB,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;QACxC,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;QACrC,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QAC/B,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,OAAO,CAAC;QAClB,KAAK,EAAE,OAAO,CAAC;KAChB,EAAE,CAAC;CACL,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,KAAK,GACX,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAapC;AAED,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAkOtC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import * as t from '@babel/types';
|
2
2
|
import type { PipelineParserError } from './pipeline-parser/utils';
|
3
|
-
export declare function stageToString(operator: string, value: string, disabled: boolean): string;
|
4
3
|
export default class Stage {
|
5
4
|
id: number;
|
6
5
|
node: t.Expression;
|
@@ -9,6 +8,7 @@ export default class Stage {
|
|
9
8
|
operator: string | null;
|
10
9
|
value: string | null;
|
11
10
|
constructor(node?: t.Expression);
|
11
|
+
get isEmpty(): boolean;
|
12
12
|
changeValue(value: string): this;
|
13
13
|
changeOperator(operator: string): this;
|
14
14
|
changeDisabled(value: boolean): this;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAiCnE,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,EAAE,SAAW;IACb,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC;IACnB,QAAQ,UAAS;IACjB,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAQ;IAC/C,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC/B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAE1B,IAAI,GAAE,CAAC,CAAC,UAAyD;IAiBnE,IAAI,OAAO,IAAI,OAAO,CAYrB;IAED,WAAW,CAAC,KAAK,EAAE,MAAM;IAgBzB,cAAc,CAAC,QAAQ,EAAE,MAAM;IAgB/B,cAAc,CAAC,KAAK,EAAE,OAAO;IAM7B,QAAQ;IAqDR,MAAM;CAMP"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { Reducer } from 'redux';
|
2
|
+
import type { MongoServerError } from 'mongodb';
|
3
|
+
import type { PipelineBuilderThunkAction } from '..';
|
4
|
+
declare type OutputStageState = {
|
5
|
+
isLoading: boolean;
|
6
|
+
serverError: MongoServerError | null;
|
7
|
+
isComplete: boolean;
|
8
|
+
};
|
9
|
+
declare const reducer: Reducer<OutputStageState>;
|
10
|
+
export declare const runPipelineWithOutputStage: () => PipelineBuilderThunkAction<Promise<void>>;
|
11
|
+
export declare const gotoOutputStageCollection: () => PipelineBuilderThunkAction<void>;
|
12
|
+
export default reducer;
|
13
|
+
//# sourceMappingURL=text-editor-output-stage.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text-editor-output-stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-output-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AA+BrD,aAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAQF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAyDtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QACpC,2BAA2B,QAAQ,IAAI,CAAC,CA8C1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,QACnC,2BAA2B,IAAI,CAajC,CAAC;AAGF,eAAe,OAAO,CAAC"}
|
@@ -3,12 +3,13 @@ import type { Document, MongoServerError } from 'mongodb';
|
|
3
3
|
import type { PipelineBuilderThunkAction } from '..';
|
4
4
|
import type { PipelineParserError } from './pipeline-parser/utils';
|
5
5
|
export declare const enum EditorActionTypes {
|
6
|
-
EditorPreviewFetch = "compass-aggregations/pipeline-builder/text-editor/TextEditorPreviewFetch",
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
EditorPreviewFetch = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetch",
|
7
|
+
EditorPreviewFetchSkipped = "compass-aggregations/pipeline-builder/text-editor-pipeline/EditorPreviewFetchSkipped",
|
8
|
+
EditorPreviewFetchSuccess = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetchSuccess",
|
9
|
+
EditorPreviewFetchError = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetchError",
|
10
|
+
EditorValueChange = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorValueChange"
|
10
11
|
}
|
11
|
-
declare type EditorValueChangeAction = {
|
12
|
+
export declare type EditorValueChangeAction = {
|
12
13
|
type: EditorActionTypes.EditorValueChange;
|
13
14
|
pipelineText: string;
|
14
15
|
pipeline: Document[] | null;
|
@@ -17,6 +18,9 @@ declare type EditorValueChangeAction = {
|
|
17
18
|
declare type EditorPreviewFetchAction = {
|
18
19
|
type: EditorActionTypes.EditorPreviewFetch;
|
19
20
|
};
|
21
|
+
declare type EditorPreviewFetchSkippedAction = {
|
22
|
+
type: EditorActionTypes.EditorPreviewFetchSkipped;
|
23
|
+
};
|
20
24
|
declare type EditorPreviewFetchSuccessAction = {
|
21
25
|
type: EditorActionTypes.EditorPreviewFetchSuccess;
|
22
26
|
previewDocs: Document[];
|
@@ -27,14 +31,16 @@ declare type EditorPreviewFetchErrorAction = {
|
|
27
31
|
};
|
28
32
|
export declare type TextEditorState = {
|
29
33
|
pipelineText: string;
|
30
|
-
|
34
|
+
pipeline: Document[];
|
31
35
|
syntaxErrors: PipelineParserError[];
|
32
36
|
serverError: MongoServerError | null;
|
33
|
-
|
37
|
+
isLoading: boolean;
|
34
38
|
previewDocs: Document[] | null;
|
39
|
+
isPreviewStale: boolean;
|
35
40
|
};
|
36
41
|
declare const reducer: Reducer<TextEditorState>;
|
37
|
-
export declare
|
38
|
-
export declare const
|
42
|
+
export declare function canRunPipeline(autoPreview: boolean, syntaxErrors: PipelineParserError[]): boolean;
|
43
|
+
export declare const loadPreviewForPipeline: () => PipelineBuilderThunkAction<Promise<void>, EditorPreviewFetchAction | EditorPreviewFetchSuccessAction | EditorPreviewFetchErrorAction | EditorPreviewFetchSkippedAction>;
|
44
|
+
export declare const changeEditorValue: (newValue: string) => PipelineBuilderThunkAction<void, EditorValueChangeAction>;
|
39
45
|
export default reducer;
|
40
|
-
//# sourceMappingURL=text-editor.d.ts.map
|
46
|
+
//# sourceMappingURL=text-editor-pipeline.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text-editor-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AASrD,OAAO,KA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EAAE,mBAAmB,EAAE,WAGpC;AAED,eAAO,MAAM,sBAAsB,QAChC,2BACD,QAAQ,IAAI,CAAC,EACb,wBAAwB,GACxB,+BAA+B,GAC/B,6BAA6B,GAC7B,+BAA+B,CAkEhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAClB,MAAM,KACf,2BAA2B,IAAI,EAAE,uBAAuB,CAyB1D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -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":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQhE,eAAO,MAAM,wBAAwB,QAAuB,CAAC;AAC7D,eAAO,MAAM,kBAAkB,QAAkB,CAAC;AAClD,eAAO,MAAM,gBAAgB,QAA+B,CAAC;AAE7D,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAI3B,CAAC;AAuBF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,gCAAgB,EAAE,MAAM,EAAE,SAAS;;;;EAGvE;AAED,eAAO,MAAM,qBAAqB,SACzB,OAAO,KAAG,2BAA2B,IAAI,CAS/C,CAAC;AAEJ,eAAO,MAAM,gBAAgB,cAAe,cAAc,EAAE;;;CAG1D,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAAO,2BAA2B,IAAI,CAKjE,CAAC;AAKJ,eAAO,MAAM,kBAAkB,QAAO,2BAA2B,IAAI,CAclE,CAAC;AAKJ,eAAO,MAAM,cAAc,eACb,MAAM,KACjB,2BAA2B,QAAQ,IAAI,CAAC,CAK1C,CAAC;AAKF,eAAO,MAAM,gBAAgB,OACvB,MAAM,KACT,2BAA2B,QAAQ,IAAI,CAAC,CAiC1C,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAAO,2BAA2B,IAAI,CAkDrE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.js"],"names":[],"mappings":"AAqBA,2EAWC;AAnBD,iCAAkC;AAGlC,iFAAkF;AAGlF,6FAA8F;AAsBvF,8CAJI,KAAK,GAEH,MAAM,CAKjB;AAOK,oCAFM,MAAM,CAIjB;AAOK,
|
1
|
+
{"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.js"],"names":[],"mappings":"AAqBA,2EAWC;AAnBD,iCAAkC;AAGlC,iFAAkF;AAGlF,6FAA8F;AAsBvF,8CAJI,KAAK,GAEH,MAAM,CAKjB;AAOK,oCAFM,MAAM,CAIjB;AAOK,uCAqDN"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cancellable-aggregation.d.ts","sourceRoot":"","sources":["../../../src/utils/cancellable-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"cancellable-aggregation.d.ts","sourceRoot":"","sources":["../../../src/utils/cancellable-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAaxD,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,EACN,EAAE;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAqCtB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipeline-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/pipeline-storage.ts"],"names":[],"mappings":"AAUA,oBAAY,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1E,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;
|
1
|
+
{"version":3,"file":"pipeline-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/pipeline-storage.ts"],"names":[],"mappings":"AAUA,oBAAY,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1E,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAwCF,qBAAa,eAAe;IACpB,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAWpC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAIhD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAqB1D,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQhD,gBAAgB,CACpB,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,OAAO,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;IAyB/B,MAAM,CAAC,EAAE,EAAE,MAAM;CAIxB"}
|
@@ -1,11 +1,17 @@
|
|
1
1
|
export function isAtlasOnly(operatorEnv: any): any;
|
2
2
|
export function getStageOperator(stage: unknown): string | undefined;
|
3
|
-
export function getDestinationNamespaceFromStage(namespace: string, stage:
|
3
|
+
export function getDestinationNamespaceFromStage(namespace: string, stage: import('mongodb').Document): string;
|
4
4
|
export function isOutputStage(stageOperator: string): boolean;
|
5
5
|
export function getStageInfo(namespace: string, stageOperator: string | undefined | null, stageValue: string | undefined | null): {
|
6
6
|
description?: string;
|
7
7
|
link?: string;
|
8
8
|
destination?: string;
|
9
9
|
};
|
10
|
-
export
|
10
|
+
export const OUT_STAGE_PREVIEW_TEXT: string;
|
11
|
+
export const MERGE_STAGE_PREVIEW_TEXT: string;
|
12
|
+
export function filterStageOperators({ serverVersion, env, isTimeSeries, sourceName, isReadonly, preferencesReadOnly }: Object): any[];
|
13
|
+
export function getLastStageOperator(pipeline: import('mongodb').Document[]): string;
|
14
|
+
export function isLastStageOutputStage(pipeline: import('mongodb').Document[]): boolean;
|
15
|
+
export function isMissingAtlasStageSupport(env: string, serverError: import('mongodb').MongoServerError | null): boolean;
|
16
|
+
export function findAtlasOperator(operators: string[]): string | undefined;
|
11
17
|
//# sourceMappingURL=stage.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/utils/stage.js"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/utils/stage.js"],"names":[],"mappings":"AAmCA,mDAEC;AA+CD,wCAHW,OAAO,GACL,MAAM,GAAG,SAAS,CAI9B;AAcA,4DAJU,MAAM,SACN,OAAO,SAAS,EAAE,QAAQ,GACxB,MAAM,CA4BlB;AAaD,6CAHW,MAAM,GACJ,OAAO,CAInB;AAYD,wCALW,MAAM,iBACN,MAAM,GAAG,SAAS,GAAG,IAAI,cACzB,MAAM,GAAG,SAAS,GAAG,IAAI,GACvB;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAgCzE;AA1KD,4CAGkD;AAElD,8CAE4B;AAsCrB,wHARI,MAAM,SA4BhB;AA+GO,+CAHG,OAAO,SAAS,EAAE,QAAQ,EAAE,GAC1B,MAAM,CAKlB;AAMM,iDAHI,OAAO,SAAS,EAAE,QAAQ,EAAE,GAC1B,OAAO,CAInB;AAMO,gDAHG,MAAM,eACN,OAAO,SAAS,EAAE,gBAAgB,GAAG,IAAI,WAanD;AAMM,6CAFI,MAAM,EAAE,sBAIlB"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mongodb-js/compass-aggregations",
|
3
3
|
"productName": "Aggregations plugin",
|
4
|
-
"version": "9.
|
4
|
+
"version": "9.4.0",
|
5
5
|
"apiVersion": "3.0.0",
|
6
6
|
"description": "Compass Aggregation Pipeline Builder",
|
7
7
|
"main": "dist/index.js",
|
@@ -37,17 +37,19 @@
|
|
37
37
|
},
|
38
38
|
"license": "SSPL",
|
39
39
|
"peerDependencies": {
|
40
|
-
"@mongodb-js/compass-components": "^1.
|
41
|
-
"@mongodb-js/compass-crud": "^13.
|
42
|
-
"@mongodb-js/compass-editor": "^0.
|
40
|
+
"@mongodb-js/compass-components": "^1.4.0",
|
41
|
+
"@mongodb-js/compass-crud": "^13.4.0",
|
42
|
+
"@mongodb-js/compass-editor": "^0.3.0",
|
43
43
|
"@mongodb-js/compass-logging": "^1.1.1",
|
44
|
+
"@mongodb-js/compass-utils": "^0.1.2",
|
44
45
|
"@mongodb-js/explain-plan-helper": "^1.0.1",
|
45
46
|
"@mongodb-js/mongodb-constants": "^0.1.4",
|
46
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
47
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.3",
|
47
48
|
"bson": "^4.4.1",
|
48
|
-
"
|
49
|
+
"compass-preferences-model": "^2.4.0",
|
50
|
+
"hadron-document": "^8.0.2",
|
49
51
|
"hadron-react-buttons": "^6.0.2",
|
50
|
-
"hadron-react-components": "^6.
|
52
|
+
"hadron-react-components": "^6.4.0",
|
51
53
|
"react": "^16.14.0"
|
52
54
|
},
|
53
55
|
"devDependencies": {
|
@@ -59,10 +61,10 @@
|
|
59
61
|
"@mongodb-js/mocha-config-compass": "^1.0.1",
|
60
62
|
"@mongodb-js/prettier-config-compass": "^1.0.0",
|
61
63
|
"@mongodb-js/tsconfig-compass": "^1.0.1",
|
62
|
-
"@mongodb-js/webpack-config-compass": "^1.0.
|
64
|
+
"@mongodb-js/webpack-config-compass": "^1.0.4",
|
63
65
|
"@testing-library/react": "^12.1.4",
|
64
66
|
"@testing-library/user-event": "^13.5.0",
|
65
|
-
"@types/
|
67
|
+
"@types/lodash": "^4.14.188",
|
66
68
|
"@types/semver": "^7.3.9",
|
67
69
|
"chai": "^4.3.6",
|
68
70
|
"classnames": "^2.2.6",
|
@@ -75,18 +77,17 @@
|
|
75
77
|
"eslint": "^7.25.0",
|
76
78
|
"hadron-app-registry": "^9.0.2",
|
77
79
|
"is-electron-renderer": "^2.0.1",
|
80
|
+
"lodash": "^4.17.21",
|
78
81
|
"mocha": "^8.4.0",
|
79
82
|
"mongodb": "^4.10.0",
|
80
|
-
"mongodb-data-service": "^22.
|
83
|
+
"mongodb-data-service": "^22.3.0",
|
81
84
|
"mongodb-ns": "^2.4.0",
|
82
85
|
"mongodb-query-parser": "^2.4.6",
|
83
86
|
"nyc": "^15.1.0",
|
84
|
-
"prettier": "^2.7.1",
|
85
87
|
"prop-types": "^15.7.2",
|
86
88
|
"re-resizable": "^6.9.0",
|
87
89
|
"react-dom": "^16.14.0",
|
88
90
|
"react-redux": "^8.0.2",
|
89
|
-
"react-select-plus": "^1.2.0",
|
90
91
|
"react-sortable-hoc": "^2.0.0",
|
91
92
|
"redux": "^4.2.0",
|
92
93
|
"redux-thunk": "^2.3.0",
|
@@ -96,17 +97,19 @@
|
|
96
97
|
"xvfb-maybe": "^0.2.1"
|
97
98
|
},
|
98
99
|
"dependencies": {
|
99
|
-
"@mongodb-js/compass-components": "^1.
|
100
|
-
"@mongodb-js/compass-crud": "^13.
|
101
|
-
"@mongodb-js/compass-editor": "^0.
|
100
|
+
"@mongodb-js/compass-components": "^1.4.0",
|
101
|
+
"@mongodb-js/compass-crud": "^13.4.0",
|
102
|
+
"@mongodb-js/compass-editor": "^0.3.0",
|
102
103
|
"@mongodb-js/compass-logging": "^1.1.1",
|
104
|
+
"@mongodb-js/compass-utils": "^0.1.2",
|
103
105
|
"@mongodb-js/explain-plan-helper": "^1.0.1",
|
104
106
|
"@mongodb-js/mongodb-constants": "^0.1.4",
|
105
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
107
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.3",
|
106
108
|
"bson": "^4.4.1",
|
107
|
-
"
|
109
|
+
"compass-preferences-model": "^2.4.0",
|
110
|
+
"hadron-document": "^8.0.2",
|
108
111
|
"hadron-react-buttons": "^6.0.2",
|
109
|
-
"hadron-react-components": "^6.
|
112
|
+
"hadron-react-components": "^6.4.0",
|
110
113
|
"react": "^16.14.0"
|
111
114
|
},
|
112
115
|
"homepage": "https://github.com/mongodb-js/compass",
|
@@ -118,5 +121,5 @@
|
|
118
121
|
"type": "git",
|
119
122
|
"url": "https://github.com/mongodb-js/compass.git"
|
120
123
|
},
|
121
|
-
"gitHead": "
|
124
|
+
"gitHead": "7f786ed13b999a5c0831af6fde545154890df956"
|
122
125
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"resize-handle.d.ts","sourceRoot":"","sources":["../../../../src/components/resize-handle/resize-handle.jsx"],"names":[],"mappings":"AAIA;IASinmB,wBAA8C;IAAA,sCAAyJ;IARtzmB,sBAMC;CACF"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export default SelectOptionWithTooltip;
|
2
|
-
declare class SelectOptionWithTooltip extends React.Component<any, any, any> {
|
3
|
-
static propTypes: {
|
4
|
-
option: PropTypes.Validator<object>;
|
5
|
-
className: PropTypes.Requireable<string>;
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
7
|
-
};
|
8
|
-
constructor(props: any);
|
9
|
-
constructor(props: any, context: any);
|
10
|
-
render(): JSX.Element;
|
11
|
-
}
|
12
|
-
import React from "react";
|
13
|
-
import PropTypes from "prop-types";
|
14
|
-
//# sourceMappingURL=select-option-with-tooltip.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"select-option-with-tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.jsx"],"names":[],"mappings":";AASA;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AW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC;AAWF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,eAAe,CAwErC,CAAC;AAOF,eAAO,MAAM,sBAAsB,QAChC,2BACD,QAAQ,IAAI,CAAC,EACb,wBAAwB,GACxB,+BAA+B,GAC/B,6BAA6B,CAyD9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UACrB,MAAM,KACZ,2BAA2B,IAAI,EAAE,uBAAuB,CAW1D,CAAC;AAGF,eAAe,OAAO,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
export declare const PROMISE_CANCELLED_ERROR = "PromiseCancelledError";
|
2
|
-
declare class PromiseCancelledError extends Error {
|
3
|
-
name: string;
|
4
|
-
}
|
5
|
-
export declare const createCancelError: () => Error;
|
6
|
-
export declare function isCancelError(error: any): error is PromiseCancelledError;
|
7
|
-
export declare function raceWithAbort<T>(promise: Promise<T>, signal: AbortSignal): Promise<T>;
|
8
|
-
export declare function cancellableWait(ms: number, signal: AbortSignal): Promise<void>;
|
9
|
-
export {};
|
10
|
-
//# sourceMappingURL=cancellable-promise.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cancellable-promise.d.ts","sourceRoot":"","sources":["../../../src/utils/cancellable-promise.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,0BAA0B,CAAC;AAI/D,cAAM,qBAAsB,SAAQ,KAAK;IACvC,IAAI,SAA2B;CAChC;AAED,eAAO,MAAM,iBAAiB,QAAO,KAEpC,CAAA;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,qBAAqB,CAExE;AA0CD,wBAAsB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAe3F;AAQD,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,iBAOpE"}
|