@mongodb-js/compass-aggregations 9.19.0 → 9.21.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.
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import type { StoredPipeline } from '../../utils/pipeline-storage';
2
+ import type { SavedPipeline } from '@mongodb-js/my-queries-storage';
3
3
  type SavedPipelinesProps = {
4
4
  namespace: string;
5
- savedPipelines: StoredPipeline[];
6
- onOpenPipeline: (pipelineData: StoredPipeline) => void;
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,cAAc,EAAE,MAAM,8BAA8B,CAAC;AA0CnE,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,cAAc,EAAE,CAAC,YAAY,EAAE,cAAc,KAAK,IAAI,CAAC;IACvD,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"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"output-stage-preview.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-preview/output-stage-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiD1B,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAyBF,eAAO,MAAM,WAAW,yIAQrB,gBAAgB,uBAuDlB,CAAC;;;;;;AAiCF,wBAA2D"}
1
+ {"version":3,"file":"output-stage-preview.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-preview/output-stage-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiD1B,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAyBF,eAAO,MAAM,WAAW,yIAQrB,gBAAgB,uBA6DlB,CAAC;;;;;;AAiCF,wBAA2D"}
@@ -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, PipelineStorage, };
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
@@ -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;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AA4C3D,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,EACxB,eAAe,GAChB,CAAC;AACF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"export-to-language.d.ts","sourceRoot":"","sources":["../../../src/modules/export-to-language.js"],"names":[],"mappings":"AAWO,6CAeN"}
1
+ {"version":3,"file":"export-to-language.d.ts","sourceRoot":"","sources":["../../../src/modules/export-to-language.js"],"names":[],"mappings":"AAQO,6CAUN"}
@@ -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 '../utils/pipeline-storage';
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,2BAA2B,CAAC;AAajE,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
+ {"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 { StoredPipeline } from '../utils/pipeline-storage';
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: StoredPipeline[];
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: StoredPipeline[]) => {
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: StoredPipeline, updatePreview?: boolean) => PipelineBuilderThunkAction<void>;
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: StoredPipeline) => PipelineBuilderThunkAction<void>;
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,O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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 { StoredPipeline } from '../utils/pipeline-storage';
5
- import { PipelineStorage } from '../utils/pipeline-storage';
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: StoredPipeline;
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,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,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,MAA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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.19.0",
4
+ "version": "9.21.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.9.0",
42
- "@mongodb-js/compass-components": "^1.18.0",
43
- "@mongodb-js/compass-crud": "^13.18.0",
44
- "@mongodb-js/compass-editor": "^0.17.0",
45
- "@mongodb-js/compass-generative-ai": "^0.4.0",
46
- "@mongodb-js/compass-logging": "^1.2.4",
47
- "@mongodb-js/compass-user-data": "^0.1.7",
48
- "@mongodb-js/compass-utils": "^0.5.3",
49
- "@mongodb-js/explain-plan-helper": "^1.1.3",
41
+ "@mongodb-js/atlas-service": "^0.10.1",
42
+ "@mongodb-js/compass-components": "^1.19.0",
43
+ "@mongodb-js/compass-crud": "^13.20.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.6",
47
+ "@mongodb-js/compass-utils": "^0.5.5",
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.13",
50
+ "@mongodb-js/mongodb-redux-common": "^2.0.15",
51
+ "@mongodb-js/my-queries-storage": "^0.2.1",
52
52
  "bson": "^6.0.0",
53
- "compass-preferences-model": "^2.15.4",
54
- "hadron-document": "^8.4.2",
53
+ "compass-preferences-model": "^2.15.6",
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.10",
66
- "@mongodb-js/mocha-config-compass": "^1.3.1",
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.4",
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.12",
80
+ "hadron-app-registry": "^9.0.14",
81
81
  "lodash": "^4.17.21",
82
82
  "mocha": "^10.2.0",
83
83
  "mongodb": "^6.0.0",
84
- "mongodb-data-service": "^22.14.0",
84
+ "mongodb-data-service": "^22.15.1",
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.9.0",
103
- "@mongodb-js/compass-components": "^1.18.0",
104
- "@mongodb-js/compass-crud": "^13.18.0",
105
- "@mongodb-js/compass-editor": "^0.17.0",
106
- "@mongodb-js/compass-generative-ai": "^0.4.0",
107
- "@mongodb-js/compass-logging": "^1.2.4",
108
- "@mongodb-js/compass-user-data": "^0.1.7",
109
- "@mongodb-js/compass-utils": "^0.5.3",
110
- "@mongodb-js/explain-plan-helper": "^1.1.3",
102
+ "@mongodb-js/atlas-service": "^0.10.1",
103
+ "@mongodb-js/compass-components": "^1.19.0",
104
+ "@mongodb-js/compass-crud": "^13.20.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.6",
108
+ "@mongodb-js/compass-utils": "^0.5.5",
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.13",
111
+ "@mongodb-js/mongodb-redux-common": "^2.0.15",
112
+ "@mongodb-js/my-queries-storage": "^0.2.1",
113
113
  "bson": "^6.0.0",
114
- "compass-preferences-model": "^2.15.4",
115
- "hadron-document": "^8.4.2",
114
+ "compass-preferences-model": "^2.15.6",
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": "d4718d787a720daa2afe348586e50a6b5290b302"
127
+ "gitHead": "c18fdc5ffd935fcd931935b63193df1d90cfd219"
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"}