@mongodb-js/compass-aggregations 9.19.0 → 9.20.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/saved-pipelines/saved-pipelines.d.ts +3 -3
- package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/modules/index.d.ts +1 -1
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/saved-pipeline.d.ts +6 -6
- package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +3 -3
- package/dist/src/stores/store.d.ts.map +1 -1
- package/package.json +31 -31
- package/dist/src/utils/pipeline-storage.d.ts +0 -115
- package/dist/src/utils/pipeline-storage.d.ts.map +0 -1
@@ -1,9 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type {
|
2
|
+
import type { SavedPipeline } from '@mongodb-js/my-queries-storage';
|
3
3
|
type SavedPipelinesProps = {
|
4
4
|
namespace: string;
|
5
|
-
savedPipelines:
|
6
|
-
onOpenPipeline: (pipelineData:
|
5
|
+
savedPipelines: SavedPipeline[];
|
6
|
+
onOpenPipeline: (pipelineData: SavedPipeline) => void;
|
7
7
|
onDeletePipeline: (pipelineId: string) => void;
|
8
8
|
onMount: () => void;
|
9
9
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"saved-pipelines.d.ts","sourceRoot":"","sources":["../../../../src/components/saved-pipelines/saved-pipelines.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAgBjD,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"saved-pipelines.d.ts","sourceRoot":"","sources":["../../../../src/components/saved-pipelines/saved-pipelines.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAgBjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AA0CpE,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,cAAc,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,8EAMxB,mBAAmB,gBAgDrB,CAAC;;;;;AAYF,wBAA8D"}
|
package/dist/src/index.d.ts
CHANGED
@@ -6,11 +6,9 @@ import CreateViewPlugin from './components/create-view-plugin';
|
|
6
6
|
import DuplicateViewPlugin from './components/duplicate-view-plugin';
|
7
7
|
import configureCreateViewStore from './stores/create-view';
|
8
8
|
import StageEditor from './components/stage-editor';
|
9
|
-
import { PipelineStorage } from './utils/pipeline-storage';
|
10
9
|
declare const activate: (appRegistry: AppRegistry) => void;
|
11
10
|
declare const deactivate: (appRegistry: AppRegistry) => void;
|
12
11
|
export default AggregationsPlugin;
|
13
|
-
export { activate, deactivate, Aggregations, StageEditor, CreateViewPlugin, DuplicateViewPlugin, configureStore, configureCreateViewStore,
|
14
|
-
export { StoredPipeline } from './utils/pipeline-storage';
|
12
|
+
export { activate, deactivate, Aggregations, StageEditor, CreateViewPlugin, DuplicateViewPlugin, configureStore, configureCreateViewStore, };
|
15
13
|
export { default as metadata } from '../package.json';
|
16
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,kBAAkB,MAAM,UAAU,CAAC;AAC1C,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,wBAAwB,MAAM,sBAAsB,CAAC;AAE5D,OAAO,WAAW,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,kBAAkB,MAAM,UAAU,CAAC;AAC1C,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,wBAAwB,MAAM,sBAAsB,CAAC;AAE5D,OAAO,WAAW,MAAM,2BAA2B,CAAC;AA4CpD,QAAA,MAAM,QAAQ,gBAAiB,WAAW,SAQzC,CAAC;AAOF,QAAA,MAAM,UAAU,gBAAiB,WAAW,SAK3C,CAAC;AAEF,eAAe,kBAAkB,CAAC;AAClC,OAAO,EACL,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,wBAAwB,GACzB,CAAC;AACF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -2,7 +2,7 @@ import type { Action, AnyAction } from 'redux';
|
|
2
2
|
import type { AtlasService } from '@mongodb-js/atlas-service/renderer';
|
3
3
|
import type { ThunkAction, ThunkDispatch } from 'redux-thunk';
|
4
4
|
import type { PipelineBuilder } from './pipeline-builder/pipeline-builder';
|
5
|
-
import type { PipelineStorage } from '
|
5
|
+
import type { PipelineStorage } from '@mongodb-js/my-queries-storage';
|
6
6
|
declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
|
7
7
|
appRegistry: unknown;
|
8
8
|
comments: boolean;
|
@@ -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;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAgCvE,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,
|
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;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAgCvE,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,gCAAgC,CAAC;AAatE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAqCf,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,YAAY,CAAC;CAC5B,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"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { AnyAction } from 'redux';
|
2
2
|
import type { PipelineBuilderThunkAction } from '.';
|
3
|
-
import type {
|
3
|
+
import type { SavedPipeline } from '@mongodb-js/my-queries-storage';
|
4
4
|
export declare const SAVED_PIPELINE_ADD: string;
|
5
5
|
export declare const RESTORE_PIPELINE: string;
|
6
6
|
export type SavedPipelineState = {
|
7
|
-
pipelines:
|
7
|
+
pipelines: SavedPipeline[];
|
8
8
|
isLoaded: boolean;
|
9
9
|
};
|
10
10
|
export declare const INITIAL_STATE: SavedPipelineState;
|
@@ -12,13 +12,13 @@ export default function reducer(state: SavedPipelineState | undefined, action: A
|
|
12
12
|
pipelines: any;
|
13
13
|
isLoaded: boolean;
|
14
14
|
};
|
15
|
-
export declare const savedPipelineAdd: (pipelines:
|
15
|
+
export declare const savedPipelineAdd: (pipelines: SavedPipeline[]) => {
|
16
16
|
type: string;
|
17
17
|
pipelines: {
|
18
|
-
pipelineText: string;
|
19
18
|
id: string;
|
20
19
|
name: string;
|
21
20
|
namespace: string;
|
21
|
+
pipelineText: string;
|
22
22
|
comments?: boolean | undefined;
|
23
23
|
autoPreview?: boolean | undefined;
|
24
24
|
collationString?: string | undefined;
|
@@ -28,8 +28,8 @@ export declare const savedPipelineAdd: (pipelines: StoredPipeline[]) => {
|
|
28
28
|
};
|
29
29
|
export declare const getSavedPipelines: () => PipelineBuilderThunkAction<void>;
|
30
30
|
export declare const updatePipelineList: () => PipelineBuilderThunkAction<void>;
|
31
|
-
export declare const openStoredPipeline: (pipelineData:
|
31
|
+
export declare const openStoredPipeline: (pipelineData: SavedPipeline, updatePreview?: boolean) => PipelineBuilderThunkAction<void>;
|
32
32
|
export declare const saveCurrentPipeline: () => PipelineBuilderThunkAction<void>;
|
33
|
-
export declare const confirmOpenPipeline: (pipelineData:
|
33
|
+
export declare const confirmOpenPipeline: (pipelineData: SavedPipeline) => PipelineBuilderThunkAction<void>;
|
34
34
|
export declare const confirmDeletePipeline: (pipelineId: string) => PipelineBuilderThunkAction<void>;
|
35
35
|
//# sourceMappingURL=saved-pipeline.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"saved-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saved-pipeline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AACpD,OAAO,KAAK,EAAE,
|
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,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAgBpE,eAAO,MAAM,kBAAkB,QAAkB,CAAC;AAClD,eAAO,MAAM,gBAAgB,QAA+B,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAeF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,gCAAgB,EAAE,MAAM,EAAE,SAAS;;;EAGvE;AAED,eAAO,MAAM,gBAAgB,cAAe,aAAa,EAAE;;;;;;;;;;;;;CAGzD,CAAC;AAEH,eAAO,MAAM,iBAAiB,QACxB,2BAA2B,IAAI,CAIlC,CAAC;AAKJ,eAAO,MAAM,kBAAkB,QACzB,2BAA2B,IAAI,CAiBlC,CAAC;AAKJ,eAAO,MAAM,kBAAkB,iBACf,aAAa,8BAE1B,2BAA2B,IAAI,CAqCjC,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAC1B,2BAA2B,IAAI,CAiDlC,CAAC;AAEJ,eAAO,MAAM,mBAAmB,iBACf,aAAa,KAAG,2BAA2B,IAAI,CAqB7D,CAAC;AAEJ,eAAO,MAAM,qBAAqB,eACnB,MAAM,KAAG,2BAA2B,IAAI,CAoBpD,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { Store } from 'redux';
|
2
2
|
import { AtlasService } from '@mongodb-js/atlas-service/renderer';
|
3
3
|
import { PipelineBuilder } from '../modules/pipeline-builder/pipeline-builder';
|
4
|
-
import type {
|
5
|
-
import { PipelineStorage } from '
|
4
|
+
import type { SavedPipeline } from '@mongodb-js/my-queries-storage';
|
5
|
+
import { PipelineStorage } from '@mongodb-js/my-queries-storage';
|
6
6
|
import type { DataService } from 'mongodb-data-service';
|
7
7
|
import type AppRegistry from 'hadron-app-registry';
|
8
8
|
import type { ENVS } from '@mongodb-js/mongodb-constants';
|
@@ -25,7 +25,7 @@ export type ConfigureStoreOptions = {
|
|
25
25
|
name: string;
|
26
26
|
}[];
|
27
27
|
outResultsFn: (namespace: string) => void;
|
28
|
-
aggregation:
|
28
|
+
aggregation: SavedPipeline;
|
29
29
|
editViewName: string;
|
30
30
|
sourcePipeline: unknown[];
|
31
31
|
pipeline: unknown[];
|
@@ -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;AAKlE,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,OAAO,KAAK,EAAE,
|
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;AAKlE,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,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;AAMpE,MAAM,MAAM,qBAAqB,GAAG;IAIlC,YAAY,EAAE;QACZ,YAAY,EAAE,IAAI,CAChB,WAAW,EACX,eAAe,GAAG,gBAAgB,GAAG,WAAW,GAAG,qBAAqB,CACzE,GAEC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC,CAAC;QACjD,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,CAAC;IAIF,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC;IAMV,gBAAgB,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC;IAMhE,iBAAiB,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC;IAIjE,UAAU,EAAE,MAAM,CAAC;IAInB,aAAa,EAAE,MAAM,CAAC;IAKtB,YAAY,EAAE,OAAO,CAAC;IAKtB,UAAU,EAAE,OAAO,CAAC;IAKpB,GAAG,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAIhC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAM3B,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAK1C,WAAW,EAAE,aAAa,CAAC;IAM3B,YAAY,EAAE,MAAM,CAAC;IAMrB,cAAc,EAAE,OAAO,EAAE,CAAC;IAK1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IAIpB,YAAY,EAAE,MAAM,CAAC;IAKrB,WAAW,EAAE,cAAc,EAAE,CAAC;IAI9B,eAAe,EAAE,eAAe,CAAC;IAIjC,YAAY,EAAE,YAAY,CAAC;IAI3B,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC,CAAC;AAEH,QAAA,MAAM,cAAc,YAAa,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6LrD,CAAC;AAiDF,eAAe,cAAc,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.20.0",
|
5
5
|
"apiVersion": "3.0.0",
|
6
6
|
"description": "Compass Aggregation Pipeline Builder",
|
7
7
|
"main": "dist/index.js",
|
@@ -38,20 +38,20 @@
|
|
38
38
|
},
|
39
39
|
"license": "SSPL",
|
40
40
|
"peerDependencies": {
|
41
|
-
"@mongodb-js/atlas-service": "^0.
|
42
|
-
"@mongodb-js/compass-components": "^1.
|
43
|
-
"@mongodb-js/compass-crud": "^13.
|
44
|
-
"@mongodb-js/compass-editor": "^0.
|
45
|
-
"@mongodb-js/compass-generative-ai": "^0.
|
46
|
-
"@mongodb-js/compass-logging": "^1.2.
|
47
|
-
"@mongodb-js/compass-
|
48
|
-
"@mongodb-js/
|
49
|
-
"@mongodb-js/explain-plan-helper": "^1.1.3",
|
41
|
+
"@mongodb-js/atlas-service": "^0.10.0",
|
42
|
+
"@mongodb-js/compass-components": "^1.19.0",
|
43
|
+
"@mongodb-js/compass-crud": "^13.19.0",
|
44
|
+
"@mongodb-js/compass-editor": "^0.18.0",
|
45
|
+
"@mongodb-js/compass-generative-ai": "^0.5.0",
|
46
|
+
"@mongodb-js/compass-logging": "^1.2.5",
|
47
|
+
"@mongodb-js/compass-utils": "^0.5.4",
|
48
|
+
"@mongodb-js/explain-plan-helper": "^1.1.4",
|
50
49
|
"@mongodb-js/mongodb-constants": "^0.8.7",
|
51
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
50
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.14",
|
51
|
+
"@mongodb-js/my-queries-storage": "^0.2.0",
|
52
52
|
"bson": "^6.0.0",
|
53
|
-
"compass-preferences-model": "^2.15.
|
54
|
-
"hadron-document": "^8.4.
|
53
|
+
"compass-preferences-model": "^2.15.5",
|
54
|
+
"hadron-document": "^8.4.3",
|
55
55
|
"hadron-type-checker": "^7.1.0",
|
56
56
|
"react": "^17.0.2"
|
57
57
|
},
|
@@ -62,11 +62,11 @@
|
|
62
62
|
"@dnd-kit/core": "^6.0.7",
|
63
63
|
"@dnd-kit/sortable": "^7.0.2",
|
64
64
|
"@dnd-kit/utilities": "^3.2.1",
|
65
|
-
"@mongodb-js/eslint-config-compass": "^1.0.
|
66
|
-
"@mongodb-js/mocha-config-compass": "^1.3.
|
65
|
+
"@mongodb-js/eslint-config-compass": "^1.0.11",
|
66
|
+
"@mongodb-js/mocha-config-compass": "^1.3.2",
|
67
67
|
"@mongodb-js/prettier-config-compass": "^1.0.1",
|
68
68
|
"@mongodb-js/tsconfig-compass": "^1.0.3",
|
69
|
-
"@mongodb-js/webpack-config-compass": "^1.2.
|
69
|
+
"@mongodb-js/webpack-config-compass": "^1.2.5",
|
70
70
|
"@testing-library/react": "^12.1.4",
|
71
71
|
"@testing-library/user-event": "^13.5.0",
|
72
72
|
"@types/lodash": "^4.14.188",
|
@@ -77,11 +77,11 @@
|
|
77
77
|
"ejson-shell-parser": "^1.2.4",
|
78
78
|
"enzyme": "^3.11.0",
|
79
79
|
"eslint": "^7.25.0",
|
80
|
-
"hadron-app-registry": "^9.0.
|
80
|
+
"hadron-app-registry": "^9.0.13",
|
81
81
|
"lodash": "^4.17.21",
|
82
82
|
"mocha": "^10.2.0",
|
83
83
|
"mongodb": "^6.0.0",
|
84
|
-
"mongodb-data-service": "^22.
|
84
|
+
"mongodb-data-service": "^22.15.0",
|
85
85
|
"mongodb-ns": "^2.4.0",
|
86
86
|
"mongodb-query-parser": "^3.1.3",
|
87
87
|
"mongodb-schema": "^12.0.0",
|
@@ -99,20 +99,20 @@
|
|
99
99
|
"xvfb-maybe": "^0.2.1"
|
100
100
|
},
|
101
101
|
"dependencies": {
|
102
|
-
"@mongodb-js/atlas-service": "^0.
|
103
|
-
"@mongodb-js/compass-components": "^1.
|
104
|
-
"@mongodb-js/compass-crud": "^13.
|
105
|
-
"@mongodb-js/compass-editor": "^0.
|
106
|
-
"@mongodb-js/compass-generative-ai": "^0.
|
107
|
-
"@mongodb-js/compass-logging": "^1.2.
|
108
|
-
"@mongodb-js/compass-
|
109
|
-
"@mongodb-js/
|
110
|
-
"@mongodb-js/explain-plan-helper": "^1.1.3",
|
102
|
+
"@mongodb-js/atlas-service": "^0.10.0",
|
103
|
+
"@mongodb-js/compass-components": "^1.19.0",
|
104
|
+
"@mongodb-js/compass-crud": "^13.19.0",
|
105
|
+
"@mongodb-js/compass-editor": "^0.18.0",
|
106
|
+
"@mongodb-js/compass-generative-ai": "^0.5.0",
|
107
|
+
"@mongodb-js/compass-logging": "^1.2.5",
|
108
|
+
"@mongodb-js/compass-utils": "^0.5.4",
|
109
|
+
"@mongodb-js/explain-plan-helper": "^1.1.4",
|
111
110
|
"@mongodb-js/mongodb-constants": "^0.8.7",
|
112
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
111
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.14",
|
112
|
+
"@mongodb-js/my-queries-storage": "^0.2.0",
|
113
113
|
"bson": "^6.0.0",
|
114
|
-
"compass-preferences-model": "^2.15.
|
115
|
-
"hadron-document": "^8.4.
|
114
|
+
"compass-preferences-model": "^2.15.5",
|
115
|
+
"hadron-document": "^8.4.3",
|
116
116
|
"hadron-type-checker": "^7.1.0"
|
117
117
|
},
|
118
118
|
"homepage": "https://github.com/mongodb-js/compass",
|
@@ -124,5 +124,5 @@
|
|
124
124
|
"type": "git",
|
125
125
|
"url": "https://github.com/mongodb-js/compass.git"
|
126
126
|
},
|
127
|
-
"gitHead": "
|
127
|
+
"gitHead": "25b247aaca2b0905914a1f7c9be8c95a03105af2"
|
128
128
|
}
|
@@ -1,115 +0,0 @@
|
|
1
|
-
import { z } from '@mongodb-js/compass-user-data';
|
2
|
-
declare const PipelineSchema: z.ZodEffects<z.ZodObject<{
|
3
|
-
id: z.ZodString;
|
4
|
-
name: z.ZodString;
|
5
|
-
namespace: z.ZodString;
|
6
|
-
comments: z.ZodOptional<z.ZodBoolean>;
|
7
|
-
autoPreview: z.ZodOptional<z.ZodBoolean>;
|
8
|
-
collationString: z.ZodOptional<z.ZodString>;
|
9
|
-
pipeline: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
10
|
-
stageOperator: z.ZodString;
|
11
|
-
isEnabled: z.ZodBoolean;
|
12
|
-
stage: z.ZodString;
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
14
|
-
stage: string;
|
15
|
-
stageOperator: string;
|
16
|
-
isEnabled: boolean;
|
17
|
-
}, {
|
18
|
-
stage: string;
|
19
|
-
stageOperator: string;
|
20
|
-
isEnabled: boolean;
|
21
|
-
}>, "many">>;
|
22
|
-
host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
23
|
-
pipelineText: z.ZodOptional<z.ZodString>;
|
24
|
-
lastModified: z.ZodOptional<z.ZodEffects<z.ZodNumber, Date, number>>;
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
26
|
-
id: string;
|
27
|
-
name: string;
|
28
|
-
namespace: string;
|
29
|
-
comments?: boolean | undefined;
|
30
|
-
autoPreview?: boolean | undefined;
|
31
|
-
collationString?: string | undefined;
|
32
|
-
pipeline?: {
|
33
|
-
stage: string;
|
34
|
-
stageOperator: string;
|
35
|
-
isEnabled: boolean;
|
36
|
-
}[] | undefined;
|
37
|
-
host?: string | null | undefined;
|
38
|
-
pipelineText?: string | undefined;
|
39
|
-
lastModified?: Date | undefined;
|
40
|
-
}, {
|
41
|
-
id: string;
|
42
|
-
name: string;
|
43
|
-
namespace: string;
|
44
|
-
comments?: boolean | undefined;
|
45
|
-
autoPreview?: boolean | undefined;
|
46
|
-
collationString?: string | undefined;
|
47
|
-
pipeline?: {
|
48
|
-
stage: string;
|
49
|
-
stageOperator: string;
|
50
|
-
isEnabled: boolean;
|
51
|
-
}[] | undefined;
|
52
|
-
host?: string | null | undefined;
|
53
|
-
pipelineText?: string | undefined;
|
54
|
-
lastModified?: number | undefined;
|
55
|
-
}>, {
|
56
|
-
pipelineText: string;
|
57
|
-
id: string;
|
58
|
-
name: string;
|
59
|
-
namespace: string;
|
60
|
-
comments?: boolean | undefined;
|
61
|
-
autoPreview?: boolean | undefined;
|
62
|
-
collationString?: string | undefined;
|
63
|
-
host?: string | null | undefined;
|
64
|
-
lastModified?: Date | undefined;
|
65
|
-
}, {
|
66
|
-
id: string;
|
67
|
-
name: string;
|
68
|
-
namespace: string;
|
69
|
-
comments?: boolean | undefined;
|
70
|
-
autoPreview?: boolean | undefined;
|
71
|
-
collationString?: string | undefined;
|
72
|
-
pipeline?: {
|
73
|
-
stage: string;
|
74
|
-
stageOperator: string;
|
75
|
-
isEnabled: boolean;
|
76
|
-
}[] | undefined;
|
77
|
-
host?: string | null | undefined;
|
78
|
-
pipelineText?: string | undefined;
|
79
|
-
lastModified?: number | undefined;
|
80
|
-
}>;
|
81
|
-
export type StoredPipeline = z.output<typeof PipelineSchema>;
|
82
|
-
type SaveablePipeline = Omit<z.input<typeof PipelineSchema>, 'pipeline'>;
|
83
|
-
export declare class PipelineStorage {
|
84
|
-
private readonly userData;
|
85
|
-
constructor(basePath?: string);
|
86
|
-
private mergeStats;
|
87
|
-
loadAll(): Promise<StoredPipeline[]>;
|
88
|
-
private loadOne;
|
89
|
-
createOrUpdate(id: string, attributes: SaveablePipeline): Promise<{
|
90
|
-
pipelineText: string;
|
91
|
-
id: string;
|
92
|
-
name: string;
|
93
|
-
namespace: string;
|
94
|
-
comments?: boolean | undefined;
|
95
|
-
autoPreview?: boolean | undefined;
|
96
|
-
collationString?: string | undefined;
|
97
|
-
host?: string | null | undefined;
|
98
|
-
lastModified?: Date | undefined;
|
99
|
-
}>;
|
100
|
-
private create;
|
101
|
-
updateAttributes(id: string, attributes: Partial<SaveablePipeline>): Promise<{
|
102
|
-
pipelineText: string;
|
103
|
-
id: string;
|
104
|
-
name: string;
|
105
|
-
namespace: string;
|
106
|
-
comments?: boolean | undefined;
|
107
|
-
autoPreview?: boolean | undefined;
|
108
|
-
collationString?: string | undefined;
|
109
|
-
host?: string | null | undefined;
|
110
|
-
lastModified?: Date | undefined;
|
111
|
-
}>;
|
112
|
-
delete(id: string): Promise<void>;
|
113
|
-
}
|
114
|
-
export {};
|
115
|
-
//# sourceMappingURL=pipeline-storage.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pipeline-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/pipeline-storage.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,CAAC,EAAE,MAAM,+BAA+B,CAAC;AA0C5D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmChB,CAAC;AAEL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,KAAK,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAEzE,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;gBAC/C,QAAQ,CAAC,EAAE,MAAM;IAO7B,OAAO,CAAC,UAAU;IAOZ,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;YAY5B,OAAO;IAKf,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB;;;;;;;;;;;YAW/C,MAAM;IAQd,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,gBAAgB,CAAC;;;;;;;;;;;IASlE,MAAM,CAAC,EAAE,EAAE,MAAM;CAGxB"}
|