@mongodb-js/compass-aggregations 9.9.0 → 9.10.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/index.js +1 -1
- package/dist/src/components/add-stage/add-stage.d.ts +1 -1
- package/dist/src/components/add-stage/add-stage.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/index.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/field-combobox.d.ts +21 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/field-combobox.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/basic-group.d.ts +5 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/basic-group.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/group-with-statistics.d.ts +15 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/group-with-statistics.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/group-with-subset.d.ts +27 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/group-with-subset.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/index.d.ts +9 -6
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/index.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/lookup/lookup.d.ts +18 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/lookup/lookup.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/match/match-condition-form.d.ts +44 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/match/match-condition-form.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/match/match-group-form.d.ts +29 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/match/match-group-form.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/match/match.d.ts +41 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/match/match.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/project/project.d.ts +8 -12
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/project/project.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/sort/sort.d.ts +2 -4
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/sort/sort.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-card.d.ts +12 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-card.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/utils.d.ts +18 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/utils.d.ts.map +1 -0
- package/dist/src/components/focus-mode/focus-mode.d.ts.map +1 -1
- package/dist/src/components/pipeline/pipeline.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/index.d.ts +0 -1
- package/dist/src/components/pipeline-builder-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/dnd-wrapper.d.ts +8 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/dnd-wrapper.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.d.ts +3 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/sortable-list.d.ts +1 -2
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/sortable-list.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/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/stage-toolbar/index.d.ts +1 -3
- package/dist/src/components/stage-toolbar/index.d.ts.map +1 -1
- package/dist/src/components/stage-wizard/index.d.ts +2 -1
- package/dist/src/components/stage-wizard/index.d.ts.map +1 -1
- package/dist/src/components/stage.d.ts.map +1 -1
- package/dist/src/components/use-case-droppable-area/index.d.ts +11 -0
- package/dist/src/components/use-case-droppable-area/index.d.ts.map +1 -0
- package/dist/src/components/use-guide-cue.d.ts +15 -0
- package/dist/src/components/use-guide-cue.d.ts.map +1 -0
- package/dist/src/modules/aggregation.d.ts.map +1 -1
- package/dist/src/modules/collections-fields.d.ts +41 -0
- package/dist/src/modules/collections-fields.d.ts.map +1 -0
- package/dist/src/modules/explain.d.ts +1 -55
- package/dist/src/modules/explain.d.ts.map +1 -1
- package/dist/src/modules/index.d.ts +3 -2
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +5 -2
- package/dist/src/stores/store.d.ts.map +1 -1
- package/dist/src/utils/get-schema.d.ts +7 -1
- package/dist/src/utils/get-schema.d.ts.map +1 -1
- package/dist/src/utils/local-storage.d.ts +2 -2
- package/dist/src/utils/local-storage.d.ts.map +1 -1
- package/package.json +35 -37
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.d.ts +0 -6
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.d.ts.map +0 -1
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts +0 -8
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts.map +0 -1
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts +0 -10
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +0 -1
- package/dist/src/components/pipeline-explain/explain-results.d.ts +0 -9
- package/dist/src/components/pipeline-explain/explain-results.d.ts.map +0 -1
- package/dist/src/components/pipeline-explain/index.d.ts +0 -17
- package/dist/src/components/pipeline-explain/index.d.ts.map +0 -1
- package/dist/src/modules/indexes.d.ts +0 -22
- package/dist/src/modules/indexes.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"aggregation.d.ts","sourceRoot":"","sources":["../../../src/modules/aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAoB,QAAQ,EAAoB,MAAM,SAAS,CAAC;AAC5E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAiBpD,oBAAY,WAAW;IACrB,cAAc,yCAAyC;IACvD,kBAAkB,4CAA4C;IAC9D,mBAAmB,6CAA6C;IAChE,iBAAiB,2CAA2C;IAC5D,0BAA0B,oDAAoD;IAC9E,eAAe,yCAAyC;IACxD,qBAAqB,+CAA+C;CACrE;AAED,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC;IACjC,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAC,kBAAkB,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAAC;IACtC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,M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AC/B,QAAQ,IAAI,CAAC,EACb,OAAO,CAWR,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,2BAClC,QAAQ,IAAI,CAAC,EACb,OAAO,CAQR,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,2BACnC,IAAI,EACJ,OAAO,CAcR,CAAC;AAqGF,eAAO,MAAM,wBAAwB,QAC/B,2BAA2B,IAAI,CA6BlC,CAAC;AAEJ,eAAO,MAAM,cAAc,gBAAiB,UAAU,GAAG,MAAM;;;CAK9D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import type { AnyAction } from 'redux';
|
2
|
+
import type { PipelineBuilderThunkAction } from '.';
|
3
|
+
type CollectionType = 'collection' | 'view';
|
4
|
+
export type CollectionInfo = {
|
5
|
+
name: string;
|
6
|
+
type: CollectionType;
|
7
|
+
};
|
8
|
+
export declare enum ActionTypes {
|
9
|
+
CollectionsFetch = "compass-aggregations/collectionsFetched",
|
10
|
+
CollectionFieldsFetched = "compass-aggregations/collectionFieldsFetched",
|
11
|
+
CollectionDataUpdated = "compass-aggregations/collectionDataUpdated"
|
12
|
+
}
|
13
|
+
type CollectionsFetchedAction = {
|
14
|
+
type: ActionTypes.CollectionsFetch;
|
15
|
+
data: State;
|
16
|
+
};
|
17
|
+
type CollectionFieldsFetchedAction = {
|
18
|
+
type: ActionTypes.CollectionFieldsFetched;
|
19
|
+
collection: string;
|
20
|
+
fields: string[];
|
21
|
+
collectionType: CollectionType;
|
22
|
+
};
|
23
|
+
type CollectionDataUpdatedAction = {
|
24
|
+
type: ActionTypes.CollectionDataUpdated;
|
25
|
+
collection: string;
|
26
|
+
data: CollectionData;
|
27
|
+
};
|
28
|
+
export type CollectionData = {
|
29
|
+
isLoading: boolean;
|
30
|
+
type: CollectionType;
|
31
|
+
fields: string[];
|
32
|
+
error?: Error;
|
33
|
+
};
|
34
|
+
type State = Record<string, CollectionData>;
|
35
|
+
export declare const INITIAL_STATE: State;
|
36
|
+
export default function reducer(state: State | undefined, action: AnyAction): State;
|
37
|
+
export declare const setCollections: (collections: CollectionInfo[]) => PipelineBuilderThunkAction<void, CollectionsFetchedAction>;
|
38
|
+
export declare const setCollectionFields: (collection: string, collectionType: CollectionType, fields: string[]) => CollectionFieldsFetchedAction;
|
39
|
+
export declare const fetchCollectionFields: (collection: string) => PipelineBuilderThunkAction<Promise<void>, CollectionDataUpdatedAction>;
|
40
|
+
export {};
|
41
|
+
//# sourceMappingURL=collections-fields.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"collections-fields.d.ts","sourceRoot":"","sources":["../../../src/modules/collections-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAOpD,KAAK,cAAc,GAAG,YAAY,GAAG,MAAM,CAAC;AAC5C,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAEF,oBAAY,WAAW;IACrB,gBAAgB,4CAA4C;IAC5D,uBAAuB,iDAAiD;IACxE,qBAAqB,+CAA+C;CACrE;AAED,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,WAAW,CAAC,uBAAuB,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,WAAW,CAAC,qBAAqB,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE5C,eAAO,MAAM,aAAa,EAAE,KAAU,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,mBAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,KAAK,CAoCP;AAED,eAAO,MAAM,cAAc,gBACZ,cAAc,EAAE,KAC5B,2BAA2B,IAAI,EAAE,wBAAwB,CAsB3D,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAClB,MAAM,kBACF,cAAc,UACtB,MAAM,EAAE,KACf,6BAKD,CAAC;AAEH,eAAO,MAAM,qBAAqB,eACpB,MAAM,KACjB,2BAA2B,QAAQ,IAAI,CAAC,EAAE,2BAA2B,CAyEvE,CAAC"}
|
@@ -1,57 +1,3 @@
|
|
1
|
-
import type { AnyAction, Reducer } from 'redux';
|
2
|
-
import type { Document } from 'mongodb';
|
3
|
-
import type { ExplainExecuteOptions } from 'mongodb-data-service';
|
4
|
-
import type { IndexInformation } from '@mongodb-js/explain-plan-helper';
|
5
1
|
import type { PipelineBuilderThunkAction } from '.';
|
6
|
-
|
7
|
-
export declare enum ActionTypes {
|
8
|
-
ExplainStarted = "compass-aggregations/explainStarted",
|
9
|
-
ExplainFinished = "compass-aggregations/explainFinished",
|
10
|
-
ExplainFailed = "compass-aggregations/explainFailed",
|
11
|
-
ExplainCancelled = "compass-aggregations/explainCancelled"
|
12
|
-
}
|
13
|
-
type ExplainStartedAction = {
|
14
|
-
type: ActionTypes.ExplainStarted;
|
15
|
-
abortController: AbortController;
|
16
|
-
};
|
17
|
-
type ExplainFinishedAction = {
|
18
|
-
type: ActionTypes.ExplainFinished;
|
19
|
-
explain: ExplainData;
|
20
|
-
};
|
21
|
-
type ExplainFailedAction = {
|
22
|
-
type: ActionTypes.ExplainFailed;
|
23
|
-
error: string;
|
24
|
-
};
|
25
|
-
type ExplainCancelledAction = {
|
26
|
-
type: ActionTypes.ExplainCancelled;
|
27
|
-
};
|
28
|
-
export type Actions = ExplainStartedAction | ExplainFinishedAction | ExplainFailedAction | ExplainCancelledAction;
|
29
|
-
export type ExplainIndex = {
|
30
|
-
name: string;
|
31
|
-
shard?: string;
|
32
|
-
key: IndexInfo['key'];
|
33
|
-
};
|
34
|
-
export type ExplainData = {
|
35
|
-
plan: Document;
|
36
|
-
stats?: {
|
37
|
-
executionTimeMillis: number;
|
38
|
-
nReturned: number;
|
39
|
-
indexes: ExplainIndex[];
|
40
|
-
};
|
41
|
-
};
|
42
|
-
export type State = {
|
43
|
-
isLoading: boolean;
|
44
|
-
isModalOpen: boolean;
|
45
|
-
explain?: ExplainData;
|
46
|
-
abortController?: AbortController;
|
47
|
-
error?: string;
|
48
|
-
};
|
49
|
-
export declare const INITIAL_STATE: State;
|
50
|
-
declare const reducer: Reducer<State, AnyAction>;
|
51
|
-
export declare const closeExplainModal: () => PipelineBuilderThunkAction<void>;
|
52
|
-
export declare const cancelExplain: () => PipelineBuilderThunkAction<void>;
|
53
|
-
export declare const explainAggregation: () => PipelineBuilderThunkAction<Promise<void>>;
|
54
|
-
export declare const _getExplainVerbosity: (pipeline: Document[], isDataLake: boolean) => ExplainExecuteOptions['explainVerbosity'];
|
55
|
-
export declare const _mapIndexesInformation: (collectionIndexes: IndexInfo[], explainIndexes: IndexInformation[]) => ExplainIndex[];
|
56
|
-
export default reducer;
|
2
|
+
export declare const explainAggregation: () => PipelineBuilderThunkAction<void>;
|
57
3
|
//# sourceMappingURL=explain.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"explain.d.ts","sourceRoot":"","sources":["../../../src/modules/explain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"explain.d.ts","sourceRoot":"","sources":["../../../src/modules/explain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,eAAO,MAAM,kBAAkB,QAAO,2BAA2B,IAAI,CAapE,CAAC"}
|
@@ -52,9 +52,7 @@ declare const rootReducer: import("redux").Reducer<import("redux").CombinedState
|
|
52
52
|
workspace: import("./workspace").Workspace;
|
53
53
|
countDocuments: import("./count-documents").State;
|
54
54
|
aggregationWorkspaceId: string;
|
55
|
-
explain: import("./explain").State;
|
56
55
|
isDataLake: boolean;
|
57
|
-
indexes: import("./indexes").State;
|
58
56
|
pipelineBuilder: import("redux").CombinedState<{
|
59
57
|
pipelineMode: import("./pipeline-builder/pipeline-mode").PipelineMode;
|
60
58
|
stageEditor: import("./pipeline-builder/stage-editor").StageEditorState;
|
@@ -75,6 +73,9 @@ declare const rootReducer: import("redux").Reducer<import("redux").CombinedState
|
|
75
73
|
sidePanel: {
|
76
74
|
isPanelOpen: boolean;
|
77
75
|
};
|
76
|
+
collectionsFields: {
|
77
|
+
[x: string]: import("./collections-fields").CollectionData;
|
78
|
+
};
|
78
79
|
}>, Action<any>>;
|
79
80
|
export type RootState = ReturnType<typeof rootReducer>;
|
80
81
|
export type PipelineBuilderExtraArgs = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAkC/C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAWjE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAoCf,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,IACnE,aAAa,CAAC,SAAS,EAAE,wBAAwB,EAAE,CAAC,CAAC,CAAC;AAExD,MAAM,MAAM,0BAA0B,CACpC,CAAC,EACD,CAAC,SAAS,MAAM,GAAG,SAAS,IAC1B,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC,CAAC,CAAC;AAE3D,eAAe,WAAW,CAAC"}
|
@@ -5,6 +5,7 @@ import { PipelineStorage } from '../utils/pipeline-storage';
|
|
5
5
|
import type { DataService } from 'mongodb-data-service';
|
6
6
|
import type AppRegistry from 'hadron-app-registry';
|
7
7
|
import type { ENVS } from '@mongodb-js/mongodb-constants';
|
8
|
+
import type { CollectionInfo } from '../modules/collections-fields';
|
8
9
|
export type ConfigureStoreOptions = {
|
9
10
|
dataProvider: {
|
10
11
|
dataProvider: Pick<DataService, 'isCancelError' | 'estimatedCount' | 'aggregate' | 'getConnectionString'>;
|
@@ -29,6 +30,7 @@ export type ConfigureStoreOptions = {
|
|
29
30
|
sourcePipeline: unknown[];
|
30
31
|
pipeline: unknown[];
|
31
32
|
pipelineText: string;
|
33
|
+
collections: CollectionInfo[];
|
32
34
|
}>;
|
33
35
|
declare const configureStore: (options: ConfigureStoreOptions) => Store<import("redux").EmptyObject & {
|
34
36
|
appRegistry: unknown;
|
@@ -80,9 +82,7 @@ declare const configureStore: (options: ConfigureStoreOptions) => Store<import("
|
|
80
82
|
workspace: import("../modules/workspace").Workspace;
|
81
83
|
countDocuments: import("../modules/count-documents").State;
|
82
84
|
aggregationWorkspaceId: string;
|
83
|
-
explain: import("../modules/explain").State;
|
84
85
|
isDataLake: boolean;
|
85
|
-
indexes: import("../modules/indexes").State;
|
86
86
|
pipelineBuilder: import("redux").CombinedState<{
|
87
87
|
pipelineMode: import("../modules/pipeline-builder/pipeline-mode").PipelineMode;
|
88
88
|
stageEditor: import("../modules/pipeline-builder/stage-editor").StageEditorState;
|
@@ -103,6 +103,9 @@ declare const configureStore: (options: ConfigureStoreOptions) => Store<import("
|
|
103
103
|
sidePanel: {
|
104
104
|
isPanelOpen: boolean;
|
105
105
|
};
|
106
|
+
collectionsFields: {
|
107
|
+
[x: string]: import("../modules/collections-fields").CollectionData;
|
108
|
+
};
|
106
109
|
}, import("redux").Action<any>> & {
|
107
110
|
dispatch: import("redux-thunk").ThunkDispatch<any, {
|
108
111
|
pipelineBuilder: PipelineBuilder;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AASnC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAM5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,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;;;;;;;;;;;;;;;;;;;;;CAkKrD,CAAC;AAiDF,eAAe,cAAc,CAAC"}
|
@@ -1,3 +1,9 @@
|
|
1
|
+
import type { TypeCastTypes } from 'hadron-type-checker';
|
1
2
|
import type { Document } from 'mongodb';
|
2
|
-
export
|
3
|
+
export type FieldSchema = {
|
4
|
+
name: string;
|
5
|
+
type: TypeCastTypes;
|
6
|
+
};
|
7
|
+
export type DocumentSchema = FieldSchema[];
|
8
|
+
export declare const getSchema: (records: Document[]) => DocumentSchema;
|
3
9
|
//# sourceMappingURL=get-schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-schema.d.ts","sourceRoot":"","sources":["../../../src/utils/get-schema.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"get-schema.d.ts","sourceRoot":"","sources":["../../../src/utils/get-schema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,EAAE,CAAC;AA2D3C,eAAO,MAAM,SAAS,YAAa,QAAQ,EAAE,mBAI5C,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const
|
2
|
-
export declare const
|
1
|
+
export declare const getStorageItem: (key: string) => string | null;
|
2
|
+
export declare const setStorageItem: (key: string, value: string) => void;
|
3
3
|
//# sourceMappingURL=local-storage.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/local-storage.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/local-storage.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,QAAS,MAAM,kBAEzC,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,MAAM,SAAS,MAAM,SAExD,CAAC"}
|
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.10.0",
|
5
5
|
"apiVersion": "3.0.0",
|
6
6
|
"description": "Compass Aggregation Pipeline Builder",
|
7
7
|
"main": "dist/index.js",
|
@@ -19,7 +19,6 @@
|
|
19
19
|
"prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
|
20
20
|
"compile": "npm run webpack -- --mode production",
|
21
21
|
"postcompile": "tsc --emitDeclarationOnly",
|
22
|
-
"prewebpack": "rimraf ./dist",
|
23
22
|
"webpack": "webpack-compass",
|
24
23
|
"analyze": "npm run webpack -- --mode production --analyze",
|
25
24
|
"typecheck": "tsc -p tsconfig-lint.json --noEmit",
|
@@ -39,17 +38,17 @@
|
|
39
38
|
},
|
40
39
|
"license": "SSPL",
|
41
40
|
"peerDependencies": {
|
42
|
-
"@mongodb-js/compass-components": "^1.
|
43
|
-
"@mongodb-js/compass-crud": "^13.
|
44
|
-
"@mongodb-js/compass-editor": "^0.
|
45
|
-
"@mongodb-js/compass-logging": "^1.1.
|
46
|
-
"@mongodb-js/compass-utils": "^0.3.
|
47
|
-
"@mongodb-js/
|
48
|
-
"@mongodb-js/mongodb-
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"hadron-
|
41
|
+
"@mongodb-js/compass-components": "^1.9.0",
|
42
|
+
"@mongodb-js/compass-crud": "^13.9.0",
|
43
|
+
"@mongodb-js/compass-editor": "^0.8.0",
|
44
|
+
"@mongodb-js/compass-logging": "^1.1.6",
|
45
|
+
"@mongodb-js/compass-utils": "^0.3.1",
|
46
|
+
"@mongodb-js/mongodb-constants": "^0.6.0",
|
47
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.8",
|
48
|
+
"bson": "^5.2.0",
|
49
|
+
"compass-preferences-model": "^2.9.0",
|
50
|
+
"hadron-document": "^8.2.1",
|
51
|
+
"hadron-type-checker": "^7.0.3",
|
53
52
|
"react": "^17.0.2"
|
54
53
|
},
|
55
54
|
"devDependencies": {
|
@@ -60,11 +59,11 @@
|
|
60
59
|
"@dnd-kit/sortable": "^7.0.2",
|
61
60
|
"@dnd-kit/utilities": "^3.2.1",
|
62
61
|
"@electron/remote": "^2.0.9",
|
63
|
-
"@mongodb-js/eslint-config-compass": "^1.0.
|
64
|
-
"@mongodb-js/mocha-config-compass": "^1.
|
62
|
+
"@mongodb-js/eslint-config-compass": "^1.0.6",
|
63
|
+
"@mongodb-js/mocha-config-compass": "^1.2.0",
|
65
64
|
"@mongodb-js/prettier-config-compass": "^1.0.0",
|
66
65
|
"@mongodb-js/tsconfig-compass": "^1.0.2",
|
67
|
-
"@mongodb-js/webpack-config-compass": "^1.0
|
66
|
+
"@mongodb-js/webpack-config-compass": "^1.1.0",
|
68
67
|
"@testing-library/react": "^12.1.4",
|
69
68
|
"@testing-library/user-event": "^13.5.0",
|
70
69
|
"@types/lodash": "^4.14.188",
|
@@ -72,17 +71,17 @@
|
|
72
71
|
"chai": "^4.3.6",
|
73
72
|
"debug": "^4.2.0",
|
74
73
|
"depcheck": "^1.4.1",
|
75
|
-
"ejson-shell-parser": "^1.2.
|
76
|
-
"electron": "^22.
|
74
|
+
"ejson-shell-parser": "^1.2.4",
|
75
|
+
"electron": "^22.3.12",
|
77
76
|
"enzyme": "^3.11.0",
|
78
77
|
"eslint": "^7.25.0",
|
79
|
-
"hadron-app-registry": "^9.0.
|
78
|
+
"hadron-app-registry": "^9.0.7",
|
80
79
|
"lodash": "^4.17.21",
|
81
80
|
"mocha": "^10.2.0",
|
82
|
-
"mongodb": "^5.
|
83
|
-
"mongodb-data-service": "^22.
|
81
|
+
"mongodb": "^5.5.0",
|
82
|
+
"mongodb-data-service": "^22.7.0",
|
84
83
|
"mongodb-ns": "^2.4.0",
|
85
|
-
"mongodb-query-parser": "^2.
|
84
|
+
"mongodb-query-parser": "^2.5.0",
|
86
85
|
"nyc": "^15.1.0",
|
87
86
|
"prettier": "^2.7.1",
|
88
87
|
"prop-types": "^15.7.2",
|
@@ -91,25 +90,24 @@
|
|
91
90
|
"react-dom": "^17.0.2",
|
92
91
|
"react-intersection-observer": "^8.34.0",
|
93
92
|
"react-redux": "^8.0.5",
|
94
|
-
"redux": "^4.2.
|
95
|
-
"redux-thunk": "^2.
|
96
|
-
"rimraf": "^3.0.0",
|
93
|
+
"redux": "^4.2.1",
|
94
|
+
"redux-thunk": "^2.4.1",
|
97
95
|
"semver": "^5.7.1",
|
98
96
|
"sinon": "^9.2.3",
|
99
97
|
"xvfb-maybe": "^0.2.1"
|
100
98
|
},
|
101
99
|
"dependencies": {
|
102
|
-
"@mongodb-js/compass-components": "^1.
|
103
|
-
"@mongodb-js/compass-crud": "^13.
|
104
|
-
"@mongodb-js/compass-editor": "^0.
|
105
|
-
"@mongodb-js/compass-logging": "^1.1.
|
106
|
-
"@mongodb-js/compass-utils": "^0.3.
|
107
|
-
"@mongodb-js/
|
108
|
-
"@mongodb-js/mongodb-
|
109
|
-
"
|
110
|
-
"
|
111
|
-
"
|
112
|
-
"hadron-
|
100
|
+
"@mongodb-js/compass-components": "^1.9.0",
|
101
|
+
"@mongodb-js/compass-crud": "^13.9.0",
|
102
|
+
"@mongodb-js/compass-editor": "^0.8.0",
|
103
|
+
"@mongodb-js/compass-logging": "^1.1.6",
|
104
|
+
"@mongodb-js/compass-utils": "^0.3.1",
|
105
|
+
"@mongodb-js/mongodb-constants": "^0.6.0",
|
106
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.8",
|
107
|
+
"bson": "^5.2.0",
|
108
|
+
"compass-preferences-model": "^2.9.0",
|
109
|
+
"hadron-document": "^8.2.1",
|
110
|
+
"hadron-type-checker": "^7.0.3"
|
113
111
|
},
|
114
112
|
"homepage": "https://github.com/mongodb-js/compass",
|
115
113
|
"bugs": {
|
@@ -120,5 +118,5 @@
|
|
120
118
|
"type": "git",
|
121
119
|
"url": "https://github.com/mongodb-js/compass.git"
|
122
120
|
},
|
123
|
-
"gitHead": "
|
121
|
+
"gitHead": "129d5d5375a2815408e12ee15e1b6bd566f52600"
|
124
122
|
}
|
package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"use-case-list.d.ts","sourceRoot":"","sources":["../../../../../src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.tsx"],"names":[],"mappings":";AAqBA,QAAA,MAAM,WAAW;mBAAmC,MAAM,KAAK,IAAI;iBAuBlE,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ExplainIndex } from '../../modules/explain';
|
3
|
-
type ExplainIndexesProps = {
|
4
|
-
indexes: ExplainIndex[];
|
5
|
-
};
|
6
|
-
export declare const ExplainIndexes: React.FunctionComponent<ExplainIndexesProps>;
|
7
|
-
export {};
|
8
|
-
//# sourceMappingURL=explain-indexes.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"explain-indexes.d.ts","sourceRoot":"","sources":["../../../../src/components/pipeline-explain/explain-indexes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC;AAuBF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAgDvE,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ExplainIndex } from '../../modules/explain';
|
3
|
-
type ExplainQueryPerformanceProps = {
|
4
|
-
executionTimeMillis: number;
|
5
|
-
nReturned: number;
|
6
|
-
indexes: ExplainIndex[];
|
7
|
-
};
|
8
|
-
export declare const ExplainQueryPerformance: React.FunctionComponent<ExplainQueryPerformanceProps>;
|
9
|
-
export {};
|
10
|
-
//# sourceMappingURL=explain-query-performance.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"explain-query-performance.d.ts","sourceRoot":"","sources":["../../../../src/components/pipeline-explain/explain-query-performance.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1D,KAAK,4BAA4B,GAAG;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC;AAwBF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,iBAAiB,CAC3D,4BAA4B,CAiC7B,CAAC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ExplainData } from '../../modules/explain';
|
3
|
-
type ExplainResultsProps = {
|
4
|
-
plan: ExplainData['plan'];
|
5
|
-
stats?: ExplainData['stats'];
|
6
|
-
};
|
7
|
-
export declare const ExplainResults: React.FunctionComponent<ExplainResultsProps>;
|
8
|
-
export {};
|
9
|
-
//# sourceMappingURL=explain-results.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"explain-results.d.ts","sourceRoot":"","sources":["../../../../src/components/pipeline-explain/explain-results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAC9B,CAAC;AAgCF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAkCvE,CAAC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ExplainData } from '../../modules/explain';
|
3
|
-
type PipelineExplainProps = {
|
4
|
-
isModalOpen: boolean;
|
5
|
-
isLoading: boolean;
|
6
|
-
error?: string;
|
7
|
-
explain?: ExplainData;
|
8
|
-
onCloseModal: () => void;
|
9
|
-
onCancelExplain: () => void;
|
10
|
-
};
|
11
|
-
export declare const PipelineExplain: React.FunctionComponent<PipelineExplainProps>;
|
12
|
-
declare const _default: import("react-redux").ConnectedComponent<React.FunctionComponent<PipelineExplainProps>, {
|
13
|
-
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
14
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
15
|
-
}>;
|
16
|
-
export default _default;
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/pipeline-explain/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,KAAK,oBAAoB,GAAG;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAYF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAiEzE,CAAC;;;;;AAeF,wBAA+D"}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import type { Reducer } from 'redux';
|
2
|
-
import type { IndexDirection } from 'mongodb';
|
3
|
-
export declare enum ActionTypes {
|
4
|
-
IndexesFetched = "compass-aggregations/indexesFetched"
|
5
|
-
}
|
6
|
-
export type IndexInfo = {
|
7
|
-
ns: string;
|
8
|
-
name: string;
|
9
|
-
key: Record<string, IndexDirection>;
|
10
|
-
extra: Record<string, any>;
|
11
|
-
};
|
12
|
-
type IndexesFetchedAction = {
|
13
|
-
type: ActionTypes.IndexesFetched;
|
14
|
-
indexes: IndexInfo[];
|
15
|
-
};
|
16
|
-
export type Actions = IndexesFetchedAction;
|
17
|
-
export type State = IndexInfo[];
|
18
|
-
export declare const INITIAL_STATE: State;
|
19
|
-
declare const reducer: Reducer<State, Actions>;
|
20
|
-
export declare const indexesFetched: (indexes: IndexInfo[]) => IndexesFetchedAction;
|
21
|
-
export default reducer;
|
22
|
-
//# sourceMappingURL=indexes.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,cAAc,wCAAwC;CACvD;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC;IACjC,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,oBAAoB,CAAC;AAE3C,MAAM,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC;AAEhC,eAAO,MAAM,aAAa,EAAE,KAAU,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAOpC,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,SAAS,EAAE,KAAG,oBAGpD,CAAC;AAEH,eAAe,OAAO,CAAC"}
|