@mongodb-js/compass-indexes 5.13.0 → 5.14.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.
Files changed (35) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/src/components/indexes/indexes.d.ts +10 -25
  4. package/dist/src/components/indexes/indexes.d.ts.map +1 -1
  5. package/dist/src/components/indexes-table/indexes-table.d.ts +1 -1
  6. package/dist/src/components/indexes-table/indexes-table.d.ts.map +1 -1
  7. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts +22 -5
  8. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts.map +1 -1
  9. package/dist/src/components/regular-indexes-table/index-actions.d.ts +3 -3
  10. package/dist/src/components/regular-indexes-table/index-actions.d.ts.map +1 -1
  11. package/dist/src/components/regular-indexes-table/property-field.d.ts +5 -5
  12. package/dist/src/components/regular-indexes-table/property-field.d.ts.map +1 -1
  13. package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts +21 -6
  14. package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts.map +1 -1
  15. package/dist/src/components/regular-indexes-table/type-field.d.ts +5 -5
  16. package/dist/src/components/regular-indexes-table/type-field.d.ts.map +1 -1
  17. package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts +17 -0
  18. package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts.map +1 -0
  19. package/dist/src/components/search-indexes-modals/index.d.ts +2 -0
  20. package/dist/src/components/search-indexes-modals/index.d.ts.map +1 -0
  21. package/dist/src/components/search-indexes-table/search-index-actions.d.ts +9 -0
  22. package/dist/src/components/search-indexes-table/search-index-actions.d.ts.map +1 -0
  23. package/dist/src/components/search-indexes-table/search-indexes-table.d.ts +27 -0
  24. package/dist/src/components/search-indexes-table/search-indexes-table.d.ts.map +1 -0
  25. package/dist/src/components/search-indexes-table/zero-graphic.d.ts +4 -0
  26. package/dist/src/components/search-indexes-table/zero-graphic.d.ts.map +1 -0
  27. package/dist/src/modules/index.d.ts +1 -0
  28. package/dist/src/modules/index.d.ts.map +1 -1
  29. package/dist/src/modules/regular-indexes.d.ts +11 -13
  30. package/dist/src/modules/regular-indexes.d.ts.map +1 -1
  31. package/dist/src/modules/search-indexes.d.ts +81 -7
  32. package/dist/src/modules/search-indexes.d.ts.map +1 -1
  33. package/dist/src/stores/store.d.ts +1 -1
  34. package/dist/src/stores/store.d.ts.map +1 -1
  35. package/package.json +14 -13
@@ -1,31 +1,16 @@
1
1
  import React from 'react';
2
- import type AppRegistry from 'hadron-app-registry';
3
- import type { IndexDefinition, SortColumn, SortDirection } from '../../modules/regular-indexes';
2
+ import type { State as RegularIndexesState } from '../../modules/regular-indexes';
3
+ import type { State as SearchIndexesState } from '../../modules/search-indexes';
4
4
  type IndexesProps = {
5
- indexes: IndexDefinition[];
6
- isWritable: boolean;
7
- isReadonlyView: boolean;
8
- description?: string;
9
- error: string | null;
10
- localAppRegistry: AppRegistry;
11
- isRefreshing: boolean;
12
- serverVersion: string;
13
- sortIndexes: (name: SortColumn, direction: SortDirection) => void;
14
- refreshIndexes: () => void;
15
- dropFailedIndex: (id: string) => void;
16
- onHideIndex: (name: string) => void;
17
- onUnhideIndex: (name: string) => void;
18
- readOnly?: boolean;
19
- isAtlasSearchSupported: boolean;
5
+ isReadonlyView?: boolean;
6
+ regularIndexes: Pick<RegularIndexesState, 'indexes' | 'error' | 'isRefreshing'>;
7
+ searchIndexes: Pick<SearchIndexesState, 'indexes' | 'error' | 'status'>;
8
+ refreshRegularIndexes: () => void;
9
+ refreshSearchIndexes: () => void;
10
+ onClickCreateAtlasSearchIndex: () => void;
20
11
  };
21
- export declare const Indexes: React.FunctionComponent<IndexesProps>;
22
- declare const _default: import("react-redux").ConnectedComponent<(props: Omit<IndexesProps & {
23
- children?: React.ReactNode;
24
- }, "readOnly"> & Partial<Pick<IndexesProps & {
25
- children?: React.ReactNode;
26
- }, "readOnly">>) => React.ReactElement<{}, string | React.JSXElementConstructor<any>>, {
27
- children?: React.ReactNode;
28
- readOnly?: boolean | undefined;
12
+ export declare function Indexes({ isReadonlyView, regularIndexes, searchIndexes, refreshRegularIndexes, refreshSearchIndexes, onClickCreateAtlasSearchIndex, }: IndexesProps): JSX.Element;
13
+ declare const _default: import("react-redux").ConnectedComponent<typeof Indexes, {
29
14
  context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
30
15
  store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
31
16
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes/indexes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AAUnD,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,aAAa,EACd,MAAM,+BAA+B,CAAC;AAgBvC,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,WAAW,CAAC;IAC9B,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAClE,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAMF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CA8DzD,CAAC;;;;;;;;;;;AA8BF,wBAGiD"}
1
+ {"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes/indexes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAahE,OAAO,KAAK,EAAE,KAAK,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAkBhF,KAAK,YAAY,GAAG;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,IAAI,CAClB,mBAAmB,EACnB,SAAS,GAAG,OAAO,GAAG,cAAc,CACrC,CAAC;IACF,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC;IACxE,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,6BAA6B,EAAE,MAAM,IAAI,CAAC;CAC3C,CAAC;AASF,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,GAC9B,EAAE,YAAY,eA8Dd;;;;;AAkBD,wBAAuD"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- type SortDirection = 'asc' | 'desc';
2
+ import type { SortDirection } from '../../modules';
3
3
  type IndexInfo = {
4
4
  key: string;
5
5
  'data-testid': string;
@@ -1 +1 @@
1
- {"version":3,"file":"indexes-table.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-table/indexes-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAc1D,KAAK,aAAa,GAAG,KAAK,GAAG,MAAM,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,EAAE,MAAM,CAAC;QACb,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;KAC3B,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,MAAM,IAAI;IACrD,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;CACjE,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,SAAS,MAAM,EAAE,EAClD,CAAC,aAAa,CAAC,EAAE,UAAU,EAC3B,CAAC,YAAY,CAAC,EAAE,SAAS,EACzB,OAAO,EAAE,WAAW,EACpB,cAAc,EACd,IAAI,EACJ,WAAW,GACZ,EAAE,iBAAiB,CAAC,MAAM,CAAC,eAmI3B"}
@@ -3,15 +3,16 @@ import type AppRegistry from 'hadron-app-registry';
3
3
  export type IndexView = 'regular-indexes' | 'search-indexes';
4
4
  type IndexesToolbarProps = {
5
5
  errorMessage: string | null;
6
+ hasTooManyIndexes: boolean;
7
+ isRefreshing: boolean;
8
+ onRefreshIndexes: () => void;
9
+ onChangeIndexView: (newView: IndexView) => void;
10
+ onClickCreateAtlasSearchIndex: () => void;
6
11
  isReadonlyView: boolean;
7
12
  isWritable: boolean;
8
- hasTooManyIndexes: boolean;
9
13
  localAppRegistry: AppRegistry;
10
- isRefreshing: boolean;
11
14
  writeStateDescription?: string;
12
15
  isAtlasSearchSupported: boolean;
13
- onRefreshIndexes: () => void;
14
- onChangeIndexView: (newView: IndexView) => void;
15
16
  readOnly?: boolean;
16
17
  };
17
18
  export declare const IndexesToolbar: React.FunctionComponent<IndexesToolbarProps>;
@@ -23,5 +24,21 @@ type CreateIndexButtonProps = {
23
24
  onClickCreateAtlasSearchIndex: () => void;
24
25
  };
25
26
  export declare const CreateIndexButton: React.FunctionComponent<CreateIndexButtonProps>;
26
- export {};
27
+ declare const _default: import("react-redux").ConnectedComponent<(props: Omit<IndexesToolbarProps & {
28
+ children?: React.ReactNode;
29
+ }, "readOnly"> & Partial<Pick<IndexesToolbarProps & {
30
+ children?: React.ReactNode;
31
+ }, "readOnly">>) => React.ReactElement<{}, string | React.JSXElementConstructor<any>>, {
32
+ children?: React.ReactNode;
33
+ errorMessage: string | null;
34
+ readOnly?: boolean | undefined;
35
+ isRefreshing: boolean;
36
+ hasTooManyIndexes: boolean;
37
+ onRefreshIndexes: () => void;
38
+ onChangeIndexView: (newView: IndexView) => void;
39
+ onClickCreateAtlasSearchIndex: () => void;
40
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
41
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
42
+ }>;
43
+ export default _default;
27
44
  //# sourceMappingURL=indexes-toolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexes-toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-toolbar/indexes-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAiB3C,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AA2BnD,MAAM,MAAM,SAAS,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AAE7D,KAAK,mBAAmB,GAAG;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,W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gBAAgB,EAAE,WAAW,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;IAEhC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAuJvE,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,wBAAwB,EAAE,OAAO,CAAC;IAClC,sBAAsB,EAAE,OAAO,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,6BAA6B,EAAE,MAAM,IAAI,CAAC;CAC3C,CAAC;AAIF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CACrD,sBAAsB,CAkDvB,CAAC;;;;;;;;;;;;;;;;;AAqBF,wBAGwD"}
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import type { IndexDefinition } from '../../modules/regular-indexes';
2
+ import type { RegularIndex } from '../../modules/regular-indexes';
3
3
  type IndexActionsProps = {
4
- index: IndexDefinition;
4
+ index: RegularIndex;
5
5
  serverVersion: string;
6
- onDeleteIndex: (index: IndexDefinition) => void;
6
+ onDeleteIndex: (index: RegularIndex) => void;
7
7
  onHideIndex: (name: string) => void;
8
8
  onUnhideIndex: (name: string) => void;
9
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/index-actions.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,eAAe,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAcF,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAyD5D,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/index-actions.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,YAAY,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAcF,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAyD5D,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import type { IndexDefinition } from '../../modules/regular-indexes';
3
- export declare const getPropertyTooltip: (property: string | undefined, extra: IndexDefinition['extra']) => string | null;
2
+ import type { RegularIndex } from '../../modules/regular-indexes';
3
+ export declare const getPropertyTooltip: (property: string | undefined, extra: RegularIndex['extra']) => string | null;
4
4
  type PropertyFieldProps = {
5
- extra: IndexDefinition['extra'];
6
- properties: IndexDefinition['properties'];
7
- cardinality: IndexDefinition['cardinality'];
5
+ extra: RegularIndex['extra'];
6
+ properties: RegularIndex['properties'];
7
+ cardinality: RegularIndex['cardinality'];
8
8
  };
9
9
  declare const PropertyField: React.FunctionComponent<PropertyFieldProps>;
10
10
  export default PropertyField;
@@ -1 +1 @@
1
- {"version":3,"file":"property-field.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/property-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAkBrE,eAAO,MAAM,kBAAkB,aACnB,MAAM,GAAG,SAAS,SACrB,eAAe,CAAC,OAAO,CAAC,KAC9B,MAAM,GAAG,IAMX,CAAC;AA2CF,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAChC,UAAU,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC1C,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC;CAC7C,CAAC;AAIF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CA0C9D,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"property-field.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/property-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAkBlE,eAAO,MAAM,kBAAkB,aACnB,MAAM,GAAG,SAAS,SACrB,YAAY,CAAC,OAAO,CAAC,KAC3B,MAAM,GAAG,IAMX,CAAC;AA2CF,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC7B,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACvC,WAAW,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;CAC1C,CAAC;AAIF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CA0C9D,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,14 +1,29 @@
1
1
  import React from 'react';
2
- import type { IndexDefinition, SortColumn, SortDirection } from '../../modules/regular-indexes';
2
+ import type AppRegistry from 'hadron-app-registry';
3
+ import { type RegularIndex, type RegularSortColumn } from '../../modules/regular-indexes';
4
+ import type { SortDirection } from '../../modules';
3
5
  type RegularIndexesTableProps = {
4
- indexes: IndexDefinition[];
5
- canModifyIndex: boolean;
6
+ indexes: RegularIndex[];
6
7
  serverVersion: string;
7
- onDeleteIndex: (index: IndexDefinition) => void;
8
+ isWritable?: boolean;
9
+ dropFailedIndex: (name: string) => void;
8
10
  onHideIndex: (name: string) => void;
9
11
  onUnhideIndex: (name: string) => void;
10
- onSortTable: (column: SortColumn, direction: SortDirection) => void;
12
+ onSortTable: (column: RegularSortColumn, direction: SortDirection) => void;
13
+ localAppRegistry: AppRegistry;
14
+ readOnly?: boolean;
15
+ error?: string | null;
11
16
  };
12
17
  export declare const RegularIndexesTable: React.FunctionComponent<RegularIndexesTableProps>;
13
- export {};
18
+ declare const _default: import("react-redux").ConnectedComponent<(props: Omit<RegularIndexesTableProps & {
19
+ children?: React.ReactNode;
20
+ }, "readOnly"> & Partial<Pick<RegularIndexesTableProps & {
21
+ children?: React.ReactNode;
22
+ }, "readOnly">>) => React.ReactElement<{}, string | React.JSXElementConstructor<any>>, {
23
+ children?: React.ReactNode;
24
+ readOnly?: boolean | undefined;
25
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
26
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
27
+ }>;
28
+ export default _default;
14
29
  //# sourceMappingURL=regular-indexes-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"regular-indexes-table.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/regular-indexes-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,aAAa,EACd,MAAM,+BAA+B,CAAC;AAEvC,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,CACvD,wBAAwB,CA6EzB,CAAC"}
1
+ {"version":3,"file":"regular-indexes-table.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/regular-indexes-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AAqBnD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3E,gBAAgB,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,CACvD,wBAAwB,CAoGzB,CAAC;;;;;;;;;;;AAsBF,wBAG6D"}
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import type { IndexDefinition } from '../../modules/regular-indexes';
3
- export declare const canRenderTooltip: (type: IndexDefinition['type']) => boolean;
2
+ import type { RegularIndex } from '../../modules/regular-indexes';
3
+ export declare const canRenderTooltip: (type: RegularIndex['type']) => boolean;
4
4
  type TypeFieldProps = {
5
- type: IndexDefinition['type'];
6
- extra: IndexDefinition['extra'];
5
+ type: RegularIndex['type'];
6
+ extra: RegularIndex['extra'];
7
7
  };
8
8
  export declare const IndexTypeTooltip: React.FunctionComponent<{
9
- extra: IndexDefinition['extra'];
9
+ extra: RegularIndex['extra'];
10
10
  }>;
11
11
  declare const TypeField: React.FunctionComponent<TypeFieldProps>;
12
12
  export default TypeField;
@@ -1 +1 @@
1
- {"version":3,"file":"type-field.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/type-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGrE,eAAO,MAAM,gBAAgB,SAAU,eAAe,CAAC,MAAM,CAAC,YAE7D,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACrD,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;CACjC,CAeA,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAkBtD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"type-field.d.ts","sourceRoot":"","sources":["../../../../src/components/regular-indexes-table/type-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,eAAO,MAAM,gBAAgB,SAAU,YAAY,CAAC,MAAM,CAAC,YAE1D,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACrD,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;CAC9B,CAeA,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAkBtD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { Document } from 'mongodb';
3
+ export declare const DEFAULT_INDEX_DEFINITION = "{\n \"mappings\": {\n \"dynamic\": true\n }\n}";
4
+ type CreateSearchIndexModalProps = {
5
+ isModalOpen: boolean;
6
+ isBusy: boolean;
7
+ error?: string;
8
+ saveIndex: (indexName: string, indexDefinition: Document) => void;
9
+ closeModal: () => void;
10
+ };
11
+ export declare const CreateSearchIndexModal: React.FunctionComponent<CreateSearchIndexModalProps>;
12
+ declare const _default: import("react-redux").ConnectedComponent<React.FunctionComponent<CreateSearchIndexModalProps>, {
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=create-search-index-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-search-index-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/search-indexes-modals/create-search-index-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAwBrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAaxC,eAAO,MAAM,wBAAwB,wDAInC,CAAC;AAiBH,KAAK,2BAA2B,GAAG;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,KAAK,IAAI,CAAC;IAClE,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAAiB,CAC1D,2BAA2B,CAmH5B,CAAC;;;;;AAaF,wBAAsE"}
@@ -0,0 +1,2 @@
1
+ export { default as CreateSearchIndexModal } from './create-search-index-modal';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/search-indexes-modals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { SearchIndex } from 'mongodb-data-service';
3
+ type IndexActionsProps = {
4
+ index: SearchIndex;
5
+ onDropIndex: (name: string) => void;
6
+ };
7
+ declare const IndexActions: React.FunctionComponent<IndexActionsProps>;
8
+ export default IndexActions;
9
+ //# sourceMappingURL=search-index-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-index-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/search-indexes-table/search-index-actions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAIF,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAgC5D,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import type { SearchIndex } from 'mongodb-data-service';
3
+ import type { SearchSortColumn } from '../../modules/search-indexes';
4
+ import type { SearchIndexesStatus } from '../../modules/search-indexes';
5
+ import type { SortDirection } from '../../modules';
6
+ type SearchIndexesTableProps = {
7
+ indexes: SearchIndex[];
8
+ isWritable?: boolean;
9
+ readOnly?: boolean;
10
+ onSortTable: (column: SearchSortColumn, direction: SortDirection) => void;
11
+ onDropIndex: (name: string) => void;
12
+ openCreateModal: () => void;
13
+ status: SearchIndexesStatus;
14
+ };
15
+ export declare const SearchIndexesTable: React.FunctionComponent<SearchIndexesTableProps>;
16
+ declare const _default: import("react-redux").ConnectedComponent<(props: Omit<SearchIndexesTableProps & {
17
+ children?: React.ReactNode;
18
+ }, "readOnly"> & Partial<Pick<SearchIndexesTableProps & {
19
+ children?: React.ReactNode;
20
+ }, "readOnly">>) => React.ReactElement<{}, string | React.JSXElementConstructor<any>>, {
21
+ children?: React.ReactNode;
22
+ readOnly?: boolean | undefined;
23
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
24
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
25
+ }>;
26
+ export default _default;
27
+ //# sourceMappingURL=search-indexes-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-indexes-table.d.ts","sourceRoot":"","sources":["../../../../src/components/search-indexes-table/search-indexes-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AAa3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAMrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAM9D,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1E,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAgHF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CACtD,uBAAuB,CAgExB,CAAC;;;;;;;;;;;AAcF,wBAG4D"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const ZeroGraphic: React.FunctionComponent;
3
+ export { ZeroGraphic };
4
+ //# sourceMappingURL=zero-graphic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zero-graphic.d.ts","sourceRoot":"","sources":["../../../../src/components/search-indexes-table/zero-graphic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,iBA8BxB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -11,6 +11,7 @@ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
11
11
  regularIndexes: import("./regular-indexes").State;
12
12
  searchIndexes: import("./search-indexes").State;
13
13
  }>, Action<any>>;
14
+ export type SortDirection = 'asc' | 'desc';
14
15
  export type RootState = ReturnType<typeof reducer>;
15
16
  export type IndexesThunkDispatch<A extends AnyAction> = ThunkDispatch<RootState, unknown, A>;
16
17
  export type IndexesThunkAction<R, A extends Action = AnyAction> = ThunkAction<R, RootState, unknown, A>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU/C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,QAAA,MAAM,OAAO;;;;;;;;;;gBAUX,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AACnD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,SAAS,IAAI,aAAa,CACnE,SAAS,EACT,OAAO,EACP,CAAC,CACF,CAAC;AACF,MAAM,MAAM,kBAAkB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,SAAS,IAAI,WAAW,CAC3E,CAAC,EACD,SAAS,EACT,OAAO,EACP,CAAC,CACF,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU/C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,QAAA,MAAM,OAAO;;;;;;;;;;gBAUX,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AACnD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,SAAS,IAAI,aAAa,CACnE,SAAS,EACT,OAAO,EACP,CAAC,CACF,CAAC;AACF,MAAM,MAAM,kBAAkB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,SAAS,IAAI,WAAW,CAC3E,CAAC,EACD,SAAS,EACT,OAAO,EACP,CAAC,CACF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import type { IndexDefinition as _IndexDefinition } from 'mongodb-data-service';
2
2
  import type { AnyAction } from 'redux';
3
3
  import type { CreateIndexSpec } from './create-index';
4
- import type { IndexesThunkAction } from '.';
5
- export type SortColumn = keyof typeof sortColumnToProps;
6
- export type SortDirection = 'asc' | 'desc';
4
+ import type { SortDirection, IndexesThunkAction } from '.';
5
+ export type RegularSortColumn = keyof typeof sortColumnToProps;
7
6
  declare const sortColumnToProps: {
8
7
  readonly 'Name and Definition': "name";
9
8
  readonly Type: "type";
@@ -11,7 +10,7 @@ declare const sortColumnToProps: {
11
10
  readonly Usage: "usageCount";
12
11
  readonly Properties: "properties";
13
12
  };
14
- export type IndexDefinition = Omit<_IndexDefinition, 'type' | 'cardinality' | 'properties' | 'version'> & Partial<_IndexDefinition>;
13
+ export type RegularIndex = Omit<_IndexDefinition, 'type' | 'cardinality' | 'properties' | 'version'> & Partial<_IndexDefinition>;
15
14
  export type InProgressIndex = {
16
15
  id: string;
17
16
  key: CreateIndexSpec;
@@ -40,13 +39,13 @@ export declare enum ActionTypes {
40
39
  }
41
40
  type IndexesAddedAction = {
42
41
  type: ActionTypes.IndexesAdded;
43
- indexes: IndexDefinition[];
42
+ indexes: RegularIndex[];
44
43
  };
45
44
  type IndexesSortedAction = {
46
45
  type: ActionTypes.IndexesSorted;
47
- indexes: IndexDefinition[];
46
+ indexes: RegularIndex[];
48
47
  sortOrder: SortDirection;
49
- sortColumn: SortColumn;
48
+ sortColumn: RegularSortColumn;
50
49
  };
51
50
  type SetIsRefreshingAction = {
52
51
  type: ActionTypes.SetIsRefreshing;
@@ -71,20 +70,19 @@ type InProgressIndexFailedAction = {
71
70
  };
72
71
  type RegularIndexesActions = IndexesAddedAction | IndexesSortedAction | SetIsRefreshingAction | SetErrorAction | InProgressIndexAddedAction | InProgressIndexRemovedAction | InProgressIndexFailedAction;
73
72
  export type State = {
74
- indexes: IndexDefinition[];
73
+ indexes: RegularIndex[];
75
74
  sortOrder: SortDirection;
76
- sortColumn: SortColumn;
75
+ sortColumn: RegularSortColumn;
77
76
  isRefreshing: boolean;
78
77
  inProgressIndexes: InProgressIndex[];
79
78
  error: string | null;
80
79
  };
81
80
  export declare const INITIAL_STATE: State;
82
81
  export default function reducer(state: State | undefined, action: AnyAction): State;
83
- export declare const setIndexes: (indexes: IndexDefinition[]) => IndexesAddedAction;
84
- export declare const setError: (error: string | null) => SetErrorAction;
82
+ export declare const setRegularIndexes: (indexes: RegularIndex[]) => IndexesAddedAction;
85
83
  export declare const fetchIndexes: () => IndexesThunkAction<Promise<void>, RegularIndexesActions>;
86
- export declare const sortIndexes: (column: SortColumn, order: SortDirection) => IndexesThunkAction<void, IndexesSortedAction>;
87
- export declare const refreshIndexes: () => IndexesThunkAction<void>;
84
+ export declare const sortRegularIndexes: (column: RegularSortColumn, order: SortDirection) => IndexesThunkAction<void, IndexesSortedAction>;
85
+ export declare const refreshRegularIndexes: () => IndexesThunkAction<void>;
88
86
  export declare const inProgressIndexAdded: (inProgressIndex: InProgressIndex) => InProgressIndexAddedAction;
89
87
  export declare const inProgressIndexRemoved: (inProgressIndexId: string) => InProgressIndexRemovedAction;
90
88
  export declare const inProgressIndexFailed: ({ inProgressIndexId, error, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"regular-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/regular-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC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AAEF,eAAO,MAAM,oBAAoB,oBACd,eAAe,KAC/B,0BAGD,CAAC;AAEH,eAAO,MAAM,sBAAsB,sBACd,MAAM,KACxB,4BAGD,CAAC;AAEH,eAAO,MAAM,qBAAqB;uBAIb,MAAM;WAClB,MAAM;MACX,2BAIF,CAAC;AAEH,eAAO,MAAM,eAAe,OAAQ,MAAM,KAAG,mBAAmB,IAAI,CAKnE,CAAC;AAEF,eAAO,MAAM,SAAS,cACT,MAAM,KAChB,mBAAmB,QAAQ,IAAI,CAAC,CA8BlC,CAAC;AAEF,eAAO,MAAM,WAAW,cACX,MAAM,KAChB,mBAAmB,QAAQ,IAAI,CAAC,CA8BlC,CAAC"}
@@ -1,23 +1,97 @@
1
+ /// <reference types="react" />
1
2
  import type { AnyAction } from 'redux';
3
+ import type { Document } from 'mongodb';
4
+ import type { SortDirection, IndexesThunkAction } from '.';
5
+ import type { SearchIndex } from 'mongodb-data-service';
6
+ export type SearchSortColumn = keyof typeof sortColumnToProps;
7
+ declare const sortColumnToProps: {
8
+ readonly 'Name and Fields': "name";
9
+ readonly Status: "status";
10
+ };
2
11
  export declare enum SearchIndexesStatuses {
3
12
  NOT_AVAILABLE = "NOT_AVAILABLE",
4
13
  PENDING = "PENDING",
5
14
  READY = "READY",
6
- REFRESHING = "REFRESHING"
15
+ REFRESHING = "REFRESHING",
16
+ ERROR = "ERROR"
7
17
  }
8
- type SearchIndexesStatus = keyof typeof SearchIndexesStatuses;
18
+ export type SearchIndexesStatus = keyof typeof SearchIndexesStatuses;
9
19
  export declare enum ActionTypes {
10
- SetStatus = "indexes/regular-indexes/SetStatus"
20
+ SetStatus = "indexes/search-indexes/SetStatus",
21
+ OpenCreateSearchIndexModal = "indexes/search-indexes/OpenCreateSearchIndexModal",
22
+ CreateSearchIndexStarted = "indexes/search-indexes/CreateSearchIndexStarted",
23
+ CreateSearchIndexFailed = "indexes/search-indexes/CreateSearchIndexFailed",
24
+ CreateSearchIndexSucceeded = "indexes/search-indexes/CreateSearchIndexSucceed",
25
+ CreateSearchIndexCancelled = "indexes/search-indexes/CreateSearchIndexCancelled",
26
+ SetIsRefreshing = "indexes/search-indexes/SetIsRefreshing",
27
+ SetSearchIndexes = "indexes/search-indexes/SetSearchIndexes",
28
+ SearchIndexesSorted = "indexes/search-indexes/SearchIndexesSorted",
29
+ SetError = "indexes/search-indexes/SetError"
11
30
  }
12
- type SetStatusAction = {
13
- type: ActionTypes.SetStatus;
14
- status: SearchIndexesStatus;
31
+ type SetIsRefreshingAction = {
32
+ type: ActionTypes.SetIsRefreshing;
33
+ };
34
+ type OpenCreateSearchIndexModalAction = {
35
+ type: ActionTypes.OpenCreateSearchIndexModal;
36
+ };
37
+ type CreateSearchIndexStartedAction = {
38
+ type: ActionTypes.CreateSearchIndexStarted;
39
+ };
40
+ type CreateSearchIndexFailedAction = {
41
+ type: ActionTypes.CreateSearchIndexFailed;
42
+ error: string;
43
+ };
44
+ type CreateSearchIndexSucceededAction = {
45
+ type: ActionTypes.CreateSearchIndexSucceeded;
46
+ };
47
+ type CreateSearchIndexCancelledAction = {
48
+ type: ActionTypes.CreateSearchIndexCancelled;
49
+ };
50
+ type CreateSearchIndexState = {
51
+ isModalOpen: boolean;
52
+ isBusy: boolean;
15
53
  };
16
54
  export type State = {
17
55
  status: SearchIndexesStatus;
56
+ createIndex: CreateSearchIndexState;
57
+ error?: string;
58
+ indexes: SearchIndex[];
59
+ sortOrder: SortDirection;
60
+ sortColumn: SearchSortColumn;
61
+ };
62
+ type SetSearchIndexesAction = {
63
+ type: ActionTypes.SetSearchIndexes;
64
+ indexes: SearchIndex[];
65
+ };
66
+ type SearchIndexesSortedAction = {
67
+ type: ActionTypes.SearchIndexesSorted;
68
+ indexes: SearchIndex[];
69
+ sortOrder: SortDirection;
70
+ sortColumn: SearchSortColumn;
71
+ };
72
+ type SetErrorAction = {
73
+ type: ActionTypes.SetError;
74
+ error: string | undefined;
18
75
  };
76
+ type SearchIndexesActions = SetIsRefreshingAction | SetSearchIndexesAction | SearchIndexesSortedAction | SetErrorAction;
19
77
  export declare const INITIAL_STATE: State;
20
78
  export default function reducer(state: State | undefined, action: AnyAction): State;
21
- export declare const setStatus: (status: SearchIndexesStatus) => SetStatusAction;
79
+ export declare const openModalForCreation: () => OpenCreateSearchIndexModalAction;
80
+ export declare const closeModal: () => CreateSearchIndexCancelledAction;
81
+ export declare const createIndexStarted: () => CreateSearchIndexStartedAction;
82
+ export declare const createIndexFailed: (error: string) => CreateSearchIndexFailedAction;
83
+ export declare const createIndexSucceeded: () => CreateSearchIndexSucceededAction;
84
+ export declare const saveIndex: (indexName: string, indexDefinition: Document) => IndexesThunkAction<Promise<void>>;
85
+ export declare const fetchSearchIndexes: () => IndexesThunkAction<Promise<void>, SearchIndexesActions>;
86
+ export declare const refreshSearchIndexes: () => IndexesThunkAction<void>;
87
+ export declare const sortSearchIndexes: (column: SearchSortColumn, direction: SortDirection) => IndexesThunkAction<void, SearchIndexesSortedAction>;
88
+ export declare const showConfirmation: (props: {
89
+ title: string;
90
+ description: import("react").ReactNode;
91
+ buttonText?: string | undefined;
92
+ variant?: import("@mongodb-js/compass-components").ConfirmationModalVariant | undefined;
93
+ requiredInputText?: string | undefined;
94
+ }) => Promise<boolean>;
95
+ export declare const dropSearchIndex: (name: string) => IndexesThunkAction<Promise<void>>;
22
96
  export {};
23
97
  //# sourceMappingURL=search-indexes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/search-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,oBAAY,qBAAqB;IAI/B,aAAa,kBAAkB;IAI/B,OAAO,YAAY;IAInB,KAAK,UAAU;IAIf,UAAU,eAAe;CAC1B;AAED,KAAK,mBAAmB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAE9D,oBAAY,WAAW;IACrB,SAAS,sCAAsC;CAChD;AAED,KAAK,eAAe,GAAG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3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,KAAK,oBAAoB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,yBAAyB,GACzB,cAAc,CAAC;AAEnB,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,mBAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,KAAK,CA6GP;AAOD,eAAO,MAAM,oBAAoB,QAAO,gCAEtC,CAAC;AAEH,eAAO,MAAM,UAAU,QAAO,gCAE5B,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAAO,8BAEpC,CAAC;AAEH,eAAO,MAAM,iBAAiB,UACrB,MAAM,KACZ,6BAGD,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAAO,gCAEtC,CAAC;AAEH,eAAO,MAAM,SAAS,cACT,MAAM,mBACA,QAAQ,KACxB,mBAAmB,QAAQ,IAAI,CAAC,CAmClC,CAAC;AAUF,eAAO,MAAM,kBAAkB,QAAO,mBACpC,QAAQ,IAAI,CAAC,EACb,oBAAoB,CAgCrB,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,mBAAmB,IAAI,CAI9D,CAAC;AAEF,eAAO,MAAM,iBAAiB,WACpB,gBAAgB,aACb,aAAa,KACvB,mBAAmB,IAAI,EAAE,yBAAyB,CAepD,CAAC;AAIF,eAAO,MAAM,gBAAgB;;;;;;sBAAwB,CAAC;AACtD,eAAO,MAAM,eAAe,SACpB,MAAM,KACX,mBAAmB,QAAQ,IAAI,CAAC,CAsClC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { DataService } from 'mongodb-data-service';
2
2
  import type AppRegistry from 'hadron-app-registry';
3
- export type IndexesDataService = Pick<DataService, 'indexes' | 'isConnected' | 'updateCollection' | 'createIndex' | 'dropIndex'>;
3
+ export type IndexesDataService = Pick<DataService, 'indexes' | 'isConnected' | 'updateCollection' | 'createIndex' | 'dropIndex' | 'getSearchIndexes' | 'createSearchIndex' | 'updateSearchIndex' | 'dropSearchIndex'>;
4
4
  export type ConfigureStoreOptions = {
5
5
  dataProvider: {
6
6
  dataProvider?: IndexesDataService;
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,WAAW,EACX,SAAS,GAAG,aAAa,GAAG,kBAAkB,GAAG,aAAa,GAAG,WAAW,CAC7E,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE;QACZ,YAAY,CAAC,EAAE,kBAAkB,CAAC;KACnC,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,WAAW,CAAC;IAC9B,iBAAiB,EAAE,WAAW,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,cAAc,YAAa,qBAAqB;;;;;;;;;;;;CAiFrD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,WAAW,EACT,SAAS,GACT,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,kBAAkB,GAClB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE;QAC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