@mongodb-js/compass-aggregations 9.23.4 → 9.25.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 +17 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +17 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-ai.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-header/pipeline-actions.d.ts.map +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-menus.d.ts +3 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts.map +1 -1
- package/dist/src/components/settings/settings.d.ts.map +1 -1
- package/dist/src/components/stage-preview/output-stage-preview.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts +2 -2
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts.map +1 -1
- package/dist/src/components/stage-wizard/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +13 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/modules/aggregation.d.ts.map +1 -1
- package/dist/src/modules/collections-fields.d.ts +3 -5
- package/dist/src/modules/collections-fields.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.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/insights.d.ts.map +1 -1
- package/dist/src/modules/max-time-ms.d.ts +13 -1
- package/dist/src/modules/max-time-ms.d.ts.map +1 -1
- package/dist/src/modules/out-results-fn.d.ts +1 -1
- package/dist/src/modules/out-results-fn.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-ai.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +2 -1
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +3 -1
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -1
- package/dist/src/modules/update-view.d.ts.map +1 -1
- package/dist/src/plugin.d.ts +3 -1
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/stores/create-view.d.ts +3 -1
- package/dist/src/stores/create-view.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +15 -15
- package/dist/src/stores/store.d.ts.map +1 -1
- package/dist/src/utils/cancellable-aggregation.d.ts +3 -1
- package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -1
- package/dist/src/utils/get-schema.d.ts.map +1 -1
- package/package.json +41 -34
@@ -6,33 +6,30 @@ import type AppRegistry from 'hadron-app-registry';
|
|
6
6
|
import type { ENVS } from '@mongodb-js/mongodb-constants';
|
7
7
|
import type { CollectionInfo } from '../modules/collections-fields';
|
8
8
|
import type { DataService } from '../modules/data-service';
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
isDataLake: boolean;
|
9
|
+
import type { WorkspacesService } from '@mongodb-js/compass-workspaces/provider';
|
10
|
+
import type { ActivateHelpers } from 'hadron-app-registry';
|
11
|
+
import type { MongoDBInstance } from 'mongodb-instance-model';
|
12
|
+
import type { CollectionTabPluginMetadata } from '@mongodb-js/compass-collection';
|
13
|
+
import type { PreferencesAccess } from 'compass-preferences-model';
|
14
|
+
export type ConfigureStoreOptions = CollectionTabPluginMetadata & Partial<{
|
16
15
|
env: typeof ENVS[number] | null;
|
17
16
|
fields: {
|
18
17
|
name: string;
|
19
18
|
}[];
|
20
19
|
outResultsFn: (namespace: string) => void;
|
21
|
-
aggregation?: unknown;
|
22
|
-
editViewName: string;
|
23
|
-
pipeline?: unknown[];
|
24
|
-
pipelineText?: string;
|
25
20
|
collections: CollectionInfo[];
|
26
21
|
pipelineStorage: PipelineStorage;
|
27
22
|
atlasService: AtlasService;
|
28
|
-
isSearchIndexesSupported: boolean;
|
29
23
|
}>;
|
30
24
|
export type AggregationsPluginServices = {
|
31
25
|
dataService: DataService;
|
32
26
|
localAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'removeListener' | 'getStore'>;
|
33
27
|
globalAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'removeListener' | 'getStore'>;
|
28
|
+
workspaces: WorkspacesService;
|
29
|
+
instance: MongoDBInstance;
|
30
|
+
preferences: PreferencesAccess;
|
34
31
|
};
|
35
|
-
export declare function activateAggregationsPlugin(options: ConfigureStoreOptions, { dataService, localAppRegistry, globalAppRegistry, }: AggregationsPluginServices): {
|
32
|
+
export declare function activateAggregationsPlugin(options: ConfigureStoreOptions, { dataService, localAppRegistry, globalAppRegistry, workspaces, instance, preferences, }: AggregationsPluginServices, { on, cleanup, addCleanup }: ActivateHelpers): {
|
36
33
|
store: Store<import("redux").CombinedState<{
|
37
34
|
appRegistry: unknown;
|
38
35
|
comments: boolean;
|
@@ -52,7 +49,10 @@ export declare function activateAggregationsPlugin(options: ConfigureStoreOption
|
|
52
49
|
settings: import("../modules/settings").SettingsState;
|
53
50
|
limit: number;
|
54
51
|
largeLimit: number;
|
55
|
-
maxTimeMS:
|
52
|
+
maxTimeMS: {
|
53
|
+
current: number | null;
|
54
|
+
preferencesValue: number | null;
|
55
|
+
};
|
56
56
|
savingPipeline: import("../modules/saving-pipeline").SavingPipelineState;
|
57
57
|
editViewName: string | null;
|
58
58
|
sourceName: string | null;
|
@@ -88,6 +88,6 @@ export declare function activateAggregationsPlugin(options: ConfigureStoreOption
|
|
88
88
|
}>, import("redux").AnyAction> & {
|
89
89
|
dispatch: PipelineBuilderThunkDispatch;
|
90
90
|
};
|
91
|
-
deactivate()
|
91
|
+
deactivate: () => void;
|
92
92
|
};
|
93
93
|
//# sourceMappingURL=store.d.ts.map
|
@@ -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;AAKnC,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,EAAE,4BAA4B,EAAa,MAAM,YAAY,CAAC;AAQ1E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMjE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAK1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,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;AAKnC,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,EAAE,4BAA4B,EAAa,MAAM,YAAY,CAAC;AAQ1E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMjE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAK1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAIpE,OAAO,KAAK,EAAE,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EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmL7C"}
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import type { AggregateOptions, Document } from 'mongodb';
|
2
|
+
import type { PreferencesAccess } from 'compass-preferences-model';
|
2
3
|
import type { DataService } from '../modules/data-service';
|
3
|
-
export declare function aggregatePipeline({ dataService, signal, namespace, pipeline, options, skip, limit, }: {
|
4
|
+
export declare function aggregatePipeline({ dataService, preferences, signal, namespace, pipeline, options, skip, limit, }: {
|
4
5
|
dataService: DataService;
|
6
|
+
preferences: PreferencesAccess;
|
5
7
|
signal: AbortSignal;
|
6
8
|
namespace: string;
|
7
9
|
pipeline: Document[];
|
@@ -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;
|
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,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,GACN,EAAE;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,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,CAgBtB"}
|
@@ -1 +1 @@
|
|
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;
|
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;AAyE3C,eAAO,MAAM,SAAS,YAAa,QAAQ,EAAE,mBAI5C,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.25.0",
|
5
5
|
"apiVersion": "3.0.0",
|
6
6
|
"description": "Compass Aggregation Pipeline Builder",
|
7
7
|
"main": "dist/index.js",
|
@@ -38,23 +38,25 @@
|
|
38
38
|
},
|
39
39
|
"license": "SSPL",
|
40
40
|
"peerDependencies": {
|
41
|
-
"@mongodb-js/atlas-service": "^0.
|
42
|
-
"@mongodb-js/compass-
|
43
|
-
"@mongodb-js/compass-
|
44
|
-
"@mongodb-js/compass-
|
45
|
-
"@mongodb-js/compass-
|
46
|
-
"@mongodb-js/compass-
|
47
|
-
"@mongodb-js/compass-
|
48
|
-
"@mongodb-js/
|
41
|
+
"@mongodb-js/atlas-service": "^0.14.0",
|
42
|
+
"@mongodb-js/compass-app-stores": "^7.9.0",
|
43
|
+
"@mongodb-js/compass-components": "^1.21.0",
|
44
|
+
"@mongodb-js/compass-crud": "^13.23.0",
|
45
|
+
"@mongodb-js/compass-editor": "^0.20.0",
|
46
|
+
"@mongodb-js/compass-generative-ai": "^0.7.0",
|
47
|
+
"@mongodb-js/compass-logging": "^1.2.9",
|
48
|
+
"@mongodb-js/compass-utils": "^0.5.8",
|
49
|
+
"@mongodb-js/compass-workspaces": "^0.4.0",
|
50
|
+
"@mongodb-js/explain-plan-helper": "^1.1.6",
|
49
51
|
"@mongodb-js/mongodb-constants": "^0.8.7",
|
50
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
51
|
-
"@mongodb-js/my-queries-storage": "^0.
|
52
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.19",
|
53
|
+
"@mongodb-js/my-queries-storage": "^0.4.0",
|
52
54
|
"bson": "^6.2.0",
|
53
|
-
"compass-preferences-model": "^2.
|
54
|
-
"hadron-app-registry": "^9.1.
|
55
|
-
"hadron-document": "^8.4.
|
55
|
+
"compass-preferences-model": "^2.17.0",
|
56
|
+
"hadron-app-registry": "^9.1.3",
|
57
|
+
"hadron-document": "^8.4.5",
|
56
58
|
"hadron-type-checker": "^7.1.1",
|
57
|
-
"mongodb-data-service": "^22.
|
59
|
+
"mongodb-data-service": "^22.17.1",
|
58
60
|
"react": "^17.0.2"
|
59
61
|
},
|
60
62
|
"devDependencies": {
|
@@ -64,12 +66,12 @@
|
|
64
66
|
"@dnd-kit/core": "^6.0.7",
|
65
67
|
"@dnd-kit/sortable": "^7.0.2",
|
66
68
|
"@dnd-kit/utilities": "^3.2.1",
|
67
|
-
"@mongodb-js/compass-collection": "^4.
|
68
|
-
"@mongodb-js/eslint-config-compass": "^1.0.
|
69
|
-
"@mongodb-js/mocha-config-compass": "^1.3.
|
69
|
+
"@mongodb-js/compass-collection": "^4.22.0",
|
70
|
+
"@mongodb-js/eslint-config-compass": "^1.0.13",
|
71
|
+
"@mongodb-js/mocha-config-compass": "^1.3.4",
|
70
72
|
"@mongodb-js/prettier-config-compass": "^1.0.1",
|
71
73
|
"@mongodb-js/tsconfig-compass": "^1.0.3",
|
72
|
-
"@mongodb-js/webpack-config-compass": "^1.
|
74
|
+
"@mongodb-js/webpack-config-compass": "^1.3.0",
|
73
75
|
"@testing-library/react": "^12.1.4",
|
74
76
|
"@testing-library/user-event": "^13.5.0",
|
75
77
|
"@types/lodash": "^4.14.188",
|
@@ -82,6 +84,9 @@
|
|
82
84
|
"lodash": "^4.17.21",
|
83
85
|
"mocha": "^10.2.0",
|
84
86
|
"mongodb": "^6.3.0",
|
87
|
+
"mongodb-collection-model": "^5.17.1",
|
88
|
+
"mongodb-database-model": "^2.17.1",
|
89
|
+
"mongodb-instance-model": "^12.17.1",
|
85
90
|
"mongodb-ns": "^2.4.0",
|
86
91
|
"mongodb-query-parser": "^4.0.0",
|
87
92
|
"mongodb-schema": "^12.1.0",
|
@@ -99,23 +104,25 @@
|
|
99
104
|
"xvfb-maybe": "^0.2.1"
|
100
105
|
},
|
101
106
|
"dependencies": {
|
102
|
-
"@mongodb-js/atlas-service": "^0.
|
103
|
-
"@mongodb-js/compass-
|
104
|
-
"@mongodb-js/compass-
|
105
|
-
"@mongodb-js/compass-
|
106
|
-
"@mongodb-js/compass-
|
107
|
-
"@mongodb-js/compass-
|
108
|
-
"@mongodb-js/compass-
|
109
|
-
"@mongodb-js/
|
107
|
+
"@mongodb-js/atlas-service": "^0.14.0",
|
108
|
+
"@mongodb-js/compass-app-stores": "^7.9.0",
|
109
|
+
"@mongodb-js/compass-components": "^1.21.0",
|
110
|
+
"@mongodb-js/compass-crud": "^13.23.0",
|
111
|
+
"@mongodb-js/compass-editor": "^0.20.0",
|
112
|
+
"@mongodb-js/compass-generative-ai": "^0.7.0",
|
113
|
+
"@mongodb-js/compass-logging": "^1.2.9",
|
114
|
+
"@mongodb-js/compass-utils": "^0.5.8",
|
115
|
+
"@mongodb-js/compass-workspaces": "^0.4.0",
|
116
|
+
"@mongodb-js/explain-plan-helper": "^1.1.6",
|
110
117
|
"@mongodb-js/mongodb-constants": "^0.8.7",
|
111
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
112
|
-
"@mongodb-js/my-queries-storage": "^0.
|
118
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.19",
|
119
|
+
"@mongodb-js/my-queries-storage": "^0.4.0",
|
113
120
|
"bson": "^6.2.0",
|
114
|
-
"compass-preferences-model": "^2.
|
115
|
-
"hadron-app-registry": "^9.1.
|
116
|
-
"hadron-document": "^8.4.
|
121
|
+
"compass-preferences-model": "^2.17.0",
|
122
|
+
"hadron-app-registry": "^9.1.3",
|
123
|
+
"hadron-document": "^8.4.5",
|
117
124
|
"hadron-type-checker": "^7.1.1",
|
118
|
-
"mongodb-data-service": "^22.
|
125
|
+
"mongodb-data-service": "^22.17.1"
|
119
126
|
},
|
120
127
|
"homepage": "https://github.com/mongodb-js/compass",
|
121
128
|
"bugs": {
|
@@ -126,5 +133,5 @@
|
|
126
133
|
"type": "git",
|
127
134
|
"url": "https://github.com/mongodb-js/compass.git"
|
128
135
|
},
|
129
|
-
"gitHead": "
|
136
|
+
"gitHead": "13985bba4e0cf9b03e1ef16f7fed023941ccd567"
|
130
137
|
}
|