@mongodb-js/compass-indexes 5.12.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 (89) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/browser.js.LICENSE.txt +0 -15
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.LICENSE.txt +0 -15
  5. package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
  6. package/dist/src/components/drop-index-modal/index.d.ts.map +1 -1
  7. package/dist/src/components/indexes/indexes.d.ts +10 -25
  8. package/dist/src/components/indexes/indexes.d.ts.map +1 -1
  9. package/dist/src/components/indexes-table/index.d.ts +2 -0
  10. package/dist/src/components/indexes-table/index.d.ts.map +1 -0
  11. package/dist/src/components/indexes-table/indexes-table.d.ts +20 -10
  12. package/dist/src/components/indexes-table/indexes-table.d.ts.map +1 -1
  13. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts +32 -5
  14. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts.map +1 -1
  15. package/dist/src/components/regular-indexes-table/badge-with-icon-link.d.ts.map +1 -0
  16. package/dist/src/components/{indexes-table → regular-indexes-table}/index-actions.d.ts +3 -3
  17. package/dist/src/components/regular-indexes-table/index-actions.d.ts.map +1 -0
  18. package/dist/src/components/regular-indexes-table/property-field.d.ts +11 -0
  19. package/dist/src/components/regular-indexes-table/property-field.d.ts.map +1 -0
  20. package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts +29 -0
  21. package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts.map +1 -0
  22. package/dist/src/components/regular-indexes-table/size-field.d.ts.map +1 -0
  23. package/dist/src/components/regular-indexes-table/type-field.d.ts +13 -0
  24. package/dist/src/components/regular-indexes-table/type-field.d.ts.map +1 -0
  25. package/dist/src/components/regular-indexes-table/usage-field.d.ts.map +1 -0
  26. package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts +17 -0
  27. package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts.map +1 -0
  28. package/dist/src/components/search-indexes-modals/index.d.ts +2 -0
  29. package/dist/src/components/search-indexes-modals/index.d.ts.map +1 -0
  30. package/dist/src/components/search-indexes-table/search-index-actions.d.ts +9 -0
  31. package/dist/src/components/search-indexes-table/search-index-actions.d.ts.map +1 -0
  32. package/dist/src/components/search-indexes-table/search-indexes-table.d.ts +27 -0
  33. package/dist/src/components/search-indexes-table/search-indexes-table.d.ts.map +1 -0
  34. package/dist/src/components/search-indexes-table/zero-graphic.d.ts +4 -0
  35. package/dist/src/components/search-indexes-table/zero-graphic.d.ts.map +1 -0
  36. package/dist/src/modules/create-index/error.d.ts +19 -0
  37. package/dist/src/modules/create-index/error.d.ts.map +1 -0
  38. package/dist/src/modules/create-index/index.d.ts +12 -12
  39. package/dist/src/modules/create-index/options.d.ts.map +1 -1
  40. package/dist/src/modules/data-service.d.ts +5 -5
  41. package/dist/src/modules/data-service.d.ts.map +1 -1
  42. package/dist/src/modules/description.d.ts +1 -1
  43. package/dist/src/modules/description.d.ts.map +1 -1
  44. package/dist/src/modules/drop-index/error.d.ts +19 -0
  45. package/dist/src/modules/drop-index/error.d.ts.map +1 -0
  46. package/dist/src/modules/drop-index/index.d.ts +2 -2
  47. package/dist/src/modules/index.d.ts +10 -12
  48. package/dist/src/modules/index.d.ts.map +1 -1
  49. package/dist/src/modules/is-readonly-view.d.ts +1 -1
  50. package/dist/src/modules/is-readonly-view.d.ts.map +1 -1
  51. package/dist/src/modules/is-writable.d.ts +1 -1
  52. package/dist/src/modules/is-writable.d.ts.map +1 -1
  53. package/dist/src/modules/regular-indexes.d.ts +96 -0
  54. package/dist/src/modules/regular-indexes.d.ts.map +1 -0
  55. package/dist/src/modules/search-indexes.d.ts +97 -0
  56. package/dist/src/modules/search-indexes.d.ts.map +1 -0
  57. package/dist/src/stores/create-index.d.ts +12 -12
  58. package/dist/src/stores/index.d.ts +0 -1
  59. package/dist/src/stores/index.d.ts.map +1 -1
  60. package/dist/src/stores/store.d.ts +27 -2
  61. package/dist/src/stores/store.d.ts.map +1 -1
  62. package/dist/src/utils/is-action.d.ts +3 -0
  63. package/dist/src/utils/is-action.d.ts.map +1 -0
  64. package/package.json +22 -22
  65. package/dist/src/components/indexes-table/badge-with-icon-link.d.ts.map +0 -1
  66. package/dist/src/components/indexes-table/index-actions.d.ts.map +0 -1
  67. package/dist/src/components/indexes-table/property-field.d.ts +0 -11
  68. package/dist/src/components/indexes-table/property-field.d.ts.map +0 -1
  69. package/dist/src/components/indexes-table/size-field.d.ts.map +0 -1
  70. package/dist/src/components/indexes-table/type-field.d.ts +0 -13
  71. package/dist/src/components/indexes-table/type-field.d.ts.map +0 -1
  72. package/dist/src/components/indexes-table/usage-field.d.ts.map +0 -1
  73. package/dist/src/modules/error.d.ts +0 -22
  74. package/dist/src/modules/error.d.ts.map +0 -1
  75. package/dist/src/modules/in-progress-indexes.d.ts +0 -41
  76. package/dist/src/modules/in-progress-indexes.d.ts.map +0 -1
  77. package/dist/src/modules/indexes.d.ts +0 -43
  78. package/dist/src/modules/indexes.d.ts.map +0 -1
  79. package/dist/src/modules/is-readonly.d.ts +0 -3
  80. package/dist/src/modules/is-readonly.d.ts.map +0 -1
  81. package/dist/src/modules/is-refreshing.d.ts +0 -19
  82. package/dist/src/modules/is-refreshing.d.ts.map +0 -1
  83. package/dist/src/modules/sort-column.d.ts +0 -6
  84. package/dist/src/modules/sort-column.d.ts.map +0 -1
  85. package/dist/src/modules/sort-order.d.ts +0 -6
  86. package/dist/src/modules/sort-order.d.ts.map +0 -1
  87. /package/dist/src/components/{indexes-table → regular-indexes-table}/badge-with-icon-link.d.ts +0 -0
  88. /package/dist/src/components/{indexes-table → regular-indexes-table}/size-field.d.ts +0 -0
  89. /package/dist/src/components/{indexes-table → regular-indexes-table}/usage-field.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAmCvC,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;gCAeX,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEnD,QAAA,MAAM,WAAW,UAAW,SAAS,UAAU,SAAS,KAAG,SAkB1D,CAAC;AAEF,eAAe,WAAW,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,5 +1,5 @@
1
1
  export default function reducer(state: boolean | undefined, action: any): boolean;
2
2
  export const READONLY_VIEW_CHANGED: "indexes/is-readonly-view/READONLY_VIEW_CHANGED";
3
3
  export const INITIAL_STATE: false;
4
- export function readonlyViewChanged(isReadonlyView: boolean): Object;
4
+ export function readonlyViewChanged(isReadonlyView: boolean): import('redux').AnyAction;
5
5
  //# sourceMappingURL=is-readonly-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-readonly-view.d.ts","sourceRoot":"","sources":["../../../src/modules/is-readonly-view.js"],"names":[],"mappings":"AAkBA,kFAKC;AApBD,qFACmD;AAKnD,kCAAmC;AAuB5B,8DAFM,MAAM,CAKjB"}
1
+ {"version":3,"file":"is-readonly-view.d.ts","sourceRoot":"","sources":["../../../src/modules/is-readonly-view.js"],"names":[],"mappings":"AAkBA,kFAKC;AApBD,qFACmD;AAKnD,kCAAmC;AAuB5B,8DAFM,OAAO,OAAO,EAAE,SAAS,CAKpC"}
@@ -1,6 +1,6 @@
1
1
  export const WRITE_STATE_CHANGED: string;
2
2
  export const INITIAL_STATE: true;
3
3
  export default reducer;
4
- export function writeStateChanged(isWritable: boolean): Object;
4
+ export function writeStateChanged(isWritable: boolean): import('redux').AnyAction;
5
5
  declare function reducer(state: boolean | undefined, action: Object): boolean;
6
6
  //# sourceMappingURL=is-writable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-writable.d.ts","sourceRoot":"","sources":["../../../src/modules/is-writable.js"],"names":[],"mappings":"AAQA,yCAA+E;AAK/E,iCAAkC;;AAyB3B,wDAFM,MAAM,CAKjB;AAlBF,6DAJW,MAAM,WAShB"}
1
+ {"version":3,"file":"is-writable.d.ts","sourceRoot":"","sources":["../../../src/modules/is-writable.js"],"names":[],"mappings":"AAQA,yCAA+E;AAK/E,iCAAkC;;AAyB3B,wDAFM,OAAO,OAAO,EAAE,SAAS,CAKpC;AAlBF,6DAJW,MAAM,WAShB"}
@@ -0,0 +1,96 @@
1
+ import type { IndexDefinition as _IndexDefinition } from 'mongodb-data-service';
2
+ import type { AnyAction } from 'redux';
3
+ import type { CreateIndexSpec } from './create-index';
4
+ import type { SortDirection, IndexesThunkAction } from '.';
5
+ export type RegularSortColumn = keyof typeof sortColumnToProps;
6
+ declare const sortColumnToProps: {
7
+ readonly 'Name and Definition': "name";
8
+ readonly Type: "type";
9
+ readonly Size: "size";
10
+ readonly Usage: "usageCount";
11
+ readonly Properties: "properties";
12
+ };
13
+ export type RegularIndex = Omit<_IndexDefinition, 'type' | 'cardinality' | 'properties' | 'version'> & Partial<_IndexDefinition>;
14
+ export type InProgressIndex = {
15
+ id: string;
16
+ key: CreateIndexSpec;
17
+ fields: {
18
+ field: string;
19
+ value: string | number;
20
+ }[];
21
+ name: string;
22
+ ns: string;
23
+ size: number;
24
+ relativeSize: number;
25
+ usageCount: number;
26
+ extra: {
27
+ status: 'inprogress' | 'failed';
28
+ error?: string;
29
+ };
30
+ };
31
+ export declare enum ActionTypes {
32
+ IndexesAdded = "indexes/regular-indexes/IndexesAdded",
33
+ IndexesSorted = "indexes/regular-indexes/IndexesSorted",
34
+ SetIsRefreshing = "indexes/regular-indexes/SetIsRefreshing",
35
+ SetError = "indexes/regular-indexes/SetError",
36
+ InProgressIndexAdded = "indexes/regular-indexes/InProgressIndexAdded",
37
+ InProgressIndexRemoved = "indexes/regular-indexes/InProgressIndexRemoved",
38
+ InProgressIndexFailed = "indexes/regular-indexes/InProgressIndexFailed"
39
+ }
40
+ type IndexesAddedAction = {
41
+ type: ActionTypes.IndexesAdded;
42
+ indexes: RegularIndex[];
43
+ };
44
+ type IndexesSortedAction = {
45
+ type: ActionTypes.IndexesSorted;
46
+ indexes: RegularIndex[];
47
+ sortOrder: SortDirection;
48
+ sortColumn: RegularSortColumn;
49
+ };
50
+ type SetIsRefreshingAction = {
51
+ type: ActionTypes.SetIsRefreshing;
52
+ isRefreshing: boolean;
53
+ };
54
+ type SetErrorAction = {
55
+ type: ActionTypes.SetError;
56
+ error: string | null;
57
+ };
58
+ type InProgressIndexAddedAction = {
59
+ type: ActionTypes.InProgressIndexAdded;
60
+ index: InProgressIndex;
61
+ };
62
+ type InProgressIndexRemovedAction = {
63
+ type: ActionTypes.InProgressIndexRemoved;
64
+ id: string;
65
+ };
66
+ type InProgressIndexFailedAction = {
67
+ type: ActionTypes.InProgressIndexFailed;
68
+ id: string;
69
+ error: string;
70
+ };
71
+ type RegularIndexesActions = IndexesAddedAction | IndexesSortedAction | SetIsRefreshingAction | SetErrorAction | InProgressIndexAddedAction | InProgressIndexRemovedAction | InProgressIndexFailedAction;
72
+ export type State = {
73
+ indexes: RegularIndex[];
74
+ sortOrder: SortDirection;
75
+ sortColumn: RegularSortColumn;
76
+ isRefreshing: boolean;
77
+ inProgressIndexes: InProgressIndex[];
78
+ error: string | null;
79
+ };
80
+ export declare const INITIAL_STATE: State;
81
+ export default function reducer(state: State | undefined, action: AnyAction): State;
82
+ export declare const setRegularIndexes: (indexes: RegularIndex[]) => IndexesAddedAction;
83
+ export declare const fetchIndexes: () => IndexesThunkAction<Promise<void>, RegularIndexesActions>;
84
+ export declare const sortRegularIndexes: (column: RegularSortColumn, order: SortDirection) => IndexesThunkAction<void, IndexesSortedAction>;
85
+ export declare const refreshRegularIndexes: () => IndexesThunkAction<void>;
86
+ export declare const inProgressIndexAdded: (inProgressIndex: InProgressIndex) => InProgressIndexAddedAction;
87
+ export declare const inProgressIndexRemoved: (inProgressIndexId: string) => InProgressIndexRemovedAction;
88
+ export declare const inProgressIndexFailed: ({ inProgressIndexId, error, }: {
89
+ inProgressIndexId: string;
90
+ error: string;
91
+ }) => InProgressIndexFailedAction;
92
+ export declare const dropFailedIndex: (id: string) => IndexesThunkAction<void>;
93
+ export declare const hideIndex: (indexName: string) => IndexesThunkAction<Promise<void>>;
94
+ export declare const unhideIndex: (indexName: string) => IndexesThunkAction<Promise<void>>;
95
+ export {};
96
+ //# sourceMappingURL=regular-indexes.d.ts.map
@@ -0,0 +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;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM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CAAC;AAEF,eAAO,MAAM,kBAAkB,WACrB,iBAAiB,SAClB,aAAa,KACnB,mBAAmB,IAAI,EAAE,mBAAmB,CAiB9C,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,mBAAmB,IAAI,CAK/D,CAAC;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"}
@@ -0,0 +1,97 @@
1
+ /// <reference types="react" />
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
+ };
11
+ export declare enum SearchIndexesStatuses {
12
+ NOT_AVAILABLE = "NOT_AVAILABLE",
13
+ PENDING = "PENDING",
14
+ READY = "READY",
15
+ REFRESHING = "REFRESHING",
16
+ ERROR = "ERROR"
17
+ }
18
+ export type SearchIndexesStatus = keyof typeof SearchIndexesStatuses;
19
+ export declare enum ActionTypes {
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"
30
+ }
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;
53
+ };
54
+ export type State = {
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;
75
+ };
76
+ type SearchIndexesActions = SetIsRefreshingAction | SetSearchIndexesAction | SearchIndexesSortedAction | SetErrorAction;
77
+ export declare const INITIAL_STATE: State;
78
+ export default function reducer(state: State | undefined, action: AnyAction): State;
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>>;
96
+ export {};
97
+ //# sourceMappingURL=search-indexes.d.ts.map
@@ -0,0 +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;AAOvC,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,SAAS,CAAC;AAO1D,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAE3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE9D,QAAA,MAAM,iBAAiB;;;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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,7 +1,7 @@
1
1
  export function setDataProvider(store: Object, error: Object, provider: Object): void;
2
2
  export default configureStore;
3
3
  declare function configureStore(options?: {}): import("redux").Store<import("redux").EmptyObject & {
4
- dataService: import("mongodb-data-service").DataService | null;
4
+ dataService: import("./store").IndexesDataService | null;
5
5
  appRegistry: unknown;
6
6
  namespace: string;
7
7
  serverVersion: string;
@@ -11,32 +11,37 @@ declare function configureStore(options?: {}): import("redux").Store<import("red
11
11
  schemaFields: string[];
12
12
  error: string | null;
13
13
  options: {
14
+ name: {
15
+ enabled: boolean;
16
+ } & {
17
+ value: string;
18
+ };
14
19
  unique: {
15
20
  enabled: boolean;
16
21
  } & {
17
22
  value: boolean;
18
23
  };
19
- name: {
24
+ sparse: {
20
25
  enabled: boolean;
21
26
  } & {
22
- value: string;
27
+ value: boolean;
23
28
  };
24
- expireAfterSeconds: {
29
+ collation: {
25
30
  enabled: boolean;
26
31
  } & {
27
32
  value: string;
28
33
  };
29
- partialFilterExpression: {
34
+ expireAfterSeconds: {
30
35
  enabled: boolean;
31
36
  } & {
32
37
  value: string;
33
38
  };
34
- wildcardProjection: {
39
+ partialFilterExpression: {
35
40
  enabled: boolean;
36
41
  } & {
37
42
  value: string;
38
43
  };
39
- collation: {
44
+ wildcardProjection: {
40
45
  enabled: boolean;
41
46
  } & {
42
47
  value: string;
@@ -46,11 +51,6 @@ declare function configureStore(options?: {}): import("redux").Store<import("red
46
51
  } & {
47
52
  value: string;
48
53
  };
49
- sparse: {
50
- enabled: boolean;
51
- } & {
52
- value: boolean;
53
- };
54
54
  };
55
55
  }, import("redux").Action<any>> & {
56
56
  dispatch: any;
@@ -1,5 +1,4 @@
1
1
  export default configureStore;
2
2
  export { setDataProvider };
3
3
  import configureStore from './store';
4
- import { setDataProvider } from './store';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stores/index.js"],"names":[],"mappings":";;2BAAgD,SAAS;gCAAT,SAAS"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stores/index.js"],"names":[],"mappings":";;2BAAgD,SAAS"}
@@ -1,4 +1,29 @@
1
- export function setDataProvider(store: Object, error: Object, provider: Object): void;
1
+ import type { DataService } from 'mongodb-data-service';
2
+ import type AppRegistry from 'hadron-app-registry';
3
+ export type IndexesDataService = Pick<DataService, 'indexes' | 'isConnected' | 'updateCollection' | 'createIndex' | 'dropIndex' | 'getSearchIndexes' | 'createSearchIndex' | 'updateSearchIndex' | 'dropSearchIndex'>;
4
+ export type ConfigureStoreOptions = {
5
+ dataProvider: {
6
+ dataProvider?: IndexesDataService;
7
+ };
8
+ namespace: string;
9
+ localAppRegistry: AppRegistry;
10
+ globalAppRegistry: AppRegistry;
11
+ serverVersion: string;
12
+ isReadonly: boolean;
13
+ isSearchIndexesSupported: boolean;
14
+ };
15
+ declare const configureStore: (options: ConfigureStoreOptions) => import("redux").Store<import("redux").EmptyObject & {
16
+ isWritable: boolean;
17
+ isReadonlyView: boolean;
18
+ description: any;
19
+ appRegistry: unknown;
20
+ dataService: IndexesDataService | null;
21
+ serverVersion: string;
22
+ namespace: string;
23
+ regularIndexes: import("../modules/regular-indexes").State;
24
+ searchIndexes: import("../modules/search-indexes").State;
25
+ }, import("redux").Action<any>> & {
26
+ dispatch: import("redux-thunk").ThunkDispatch<any, {}, import("redux").AnyAction>;
27
+ };
2
28
  export default configureStore;
3
- declare function configureStore(options?: {}): any;
4
29
  //# sourceMappingURL=store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.js"],"names":[],"mappings":"AA4BO,uCAJI,MAAM,SACN,MAAM,YACN,MAAM,QAShB;;AAED,mDAyEC"}
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;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;;;;;;;;;;;;CAkFrD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { AnyAction } from 'redux';
2
+ export declare function isAction<A extends AnyAction>(action: AnyAction, type: A['type']): action is A;
3
+ //# sourceMappingURL=is-action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-action.d.ts","sourceRoot":"","sources":["../../../src/utils/is-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,EAC1C,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,GACd,MAAM,IAAI,CAAC,CAEb"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@mongodb-js/compass-indexes",
3
3
  "productName": "Compass Indexes plugin",
4
4
  "description": "Collection index management for Compass",
5
- "version": "5.12.0",
5
+ "version": "5.14.0",
6
6
  "author": {
7
7
  "name": "MongoDB Inc",
8
8
  "email": "compass@mongodb.com"
@@ -56,33 +56,33 @@
56
56
  "reformat": "npm run prettier -- --write . && npm run eslint . --fix"
57
57
  },
58
58
  "peerDependencies": {
59
- "@mongodb-js/compass-components": "^1.12.0",
60
- "@mongodb-js/compass-editor": "^0.11.0",
61
- "@mongodb-js/compass-logging": "^1.1.8",
62
- "@mongodb-js/mongodb-redux-common": "^2.0.10",
63
- "bson": "^5.2.0",
64
- "compass-preferences-model": "^2.12.0",
59
+ "@mongodb-js/compass-components": "^1.14.0",
60
+ "@mongodb-js/compass-editor": "^0.13.0",
61
+ "@mongodb-js/compass-logging": "^1.2.0",
62
+ "@mongodb-js/mongodb-redux-common": "^2.0.11",
63
+ "bson": "^6.0.0",
64
+ "compass-preferences-model": "^2.14.0",
65
65
  "react": "^17.0.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@mongodb-js/eslint-config-compass": "^1.0.8",
69
- "@mongodb-js/mocha-config-compass": "^1.3.0",
68
+ "@mongodb-js/eslint-config-compass": "^1.0.9",
69
+ "@mongodb-js/mocha-config-compass": "^1.3.1",
70
70
  "@mongodb-js/prettier-config-compass": "^1.0.1",
71
71
  "@mongodb-js/tsconfig-compass": "^1.0.3",
72
- "@mongodb-js/webpack-config-compass": "^1.1.2",
72
+ "@mongodb-js/webpack-config-compass": "^1.2.0",
73
73
  "@testing-library/react": "^12.1.4",
74
74
  "@testing-library/user-event": "^13.5.0",
75
75
  "chai": "^4.2.0",
76
- "debug": "^4.2.0",
77
76
  "depcheck": "^1.4.1",
78
- "electron": "^23.3.12",
77
+ "ejson-shell-parser": "^1.2.4",
78
+ "electron": "^26.2.1",
79
79
  "enzyme": "^3.11.0",
80
80
  "eslint": "^7.25.0",
81
- "hadron-app-registry": "^9.0.9",
81
+ "hadron-app-registry": "^9.0.10",
82
82
  "lodash": "^4.17.21",
83
83
  "mocha": "^10.2.0",
84
- "mongodb": "^5.6.0",
85
- "mongodb-data-service": "^22.9.2",
84
+ "mongodb": "^6.0.0",
85
+ "mongodb-data-service": "^22.11.0",
86
86
  "mongodb-query-parser": "^3.1.3",
87
87
  "numeral": "^2.0.6",
88
88
  "nyc": "^15.1.0",
@@ -97,12 +97,12 @@
97
97
  "xvfb-maybe": "^0.2.1"
98
98
  },
99
99
  "dependencies": {
100
- "@mongodb-js/compass-components": "^1.12.0",
101
- "@mongodb-js/compass-editor": "^0.11.0",
102
- "@mongodb-js/compass-logging": "^1.1.8",
103
- "@mongodb-js/mongodb-redux-common": "^2.0.10",
104
- "bson": "^5.2.0",
105
- "compass-preferences-model": "^2.12.0"
100
+ "@mongodb-js/compass-components": "^1.14.0",
101
+ "@mongodb-js/compass-editor": "^0.13.0",
102
+ "@mongodb-js/compass-logging": "^1.2.0",
103
+ "@mongodb-js/mongodb-redux-common": "^2.0.11",
104
+ "bson": "^6.0.0",
105
+ "compass-preferences-model": "^2.14.0"
106
106
  },
107
- "gitHead": "62acadaa32f014e73080cfaf7c15753e2e1db08f"
107
+ "gitHead": "146534300cc62674da9089cc7f8ebade832b359f"
108
108
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge-with-icon-link.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-table/badge-with-icon-link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4B1B,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CAqBtE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-table/index-actions.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,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,11 +0,0 @@
1
- import React from 'react';
2
- import type { IndexDefinition } from '../../modules/indexes';
3
- export declare const getPropertyTooltip: (property: string | undefined, extra: IndexDefinition['extra']) => string | null;
4
- type PropertyFieldProps = {
5
- extra: IndexDefinition['extra'];
6
- properties: IndexDefinition['properties'];
7
- cardinality: IndexDefinition['cardinality'];
8
- };
9
- declare const PropertyField: React.FunctionComponent<PropertyFieldProps>;
10
- export default PropertyField;
11
- //# sourceMappingURL=property-field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-field.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-table/property-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAkB7D,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 +0,0 @@
1
- {"version":3,"file":"size-field.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-table/size-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,WAGtC,CAAC;AAEF,eAAO,MAAM,cAAc,iBAAkB,MAAM,KAAG,MAErD,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAgBtD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { IndexDefinition } from '../../modules/indexes';
3
- export declare const canRenderTooltip: (type: IndexDefinition['type']) => boolean;
4
- type TypeFieldProps = {
5
- type: IndexDefinition['type'];
6
- extra: IndexDefinition['extra'];
7
- };
8
- export declare const IndexTypeTooltip: React.FunctionComponent<{
9
- extra: IndexDefinition['extra'];
10
- }>;
11
- declare const TypeField: React.FunctionComponent<TypeFieldProps>;
12
- export default TypeField;
13
- //# sourceMappingURL=type-field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-field.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-table/type-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,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 +0,0 @@
1
- {"version":3,"file":"usage-field.d.ts","sourceRoot":"","sources":["../../../../src/components/indexes-table/usage-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,eAAe,WAAY,MAAM,KAAG,MAIhD,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AAGF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAoBxD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,22 +0,0 @@
1
- import type { AnyError } from 'mongodb';
2
- import type { AnyAction } from 'redux';
3
- export type IndexesError = AnyError | string | null | undefined;
4
- export declare enum ActionTypes {
5
- HandleError = "indexes/error/HANDLE_ERROR",
6
- ClearError = "indexes/error/CLEAR_ERROR"
7
- }
8
- export type HandleErrorAction = {
9
- type: ActionTypes.HandleError;
10
- error: IndexesError;
11
- };
12
- type ClearErrorAction = {
13
- type: ActionTypes.ClearError;
14
- };
15
- export type Actions = HandleErrorAction | ClearErrorAction;
16
- type State = string | null;
17
- export declare const INITIAL_STATE: State;
18
- export default function reducer(state: State | undefined, action: AnyAction): State;
19
- export declare const handleError: (error: IndexesError) => HandleErrorAction;
20
- export declare const clearError: () => ClearErrorAction;
21
- export {};
22
- //# sourceMappingURL=error.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/modules/error.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAEhE,oBAAY,WAAW;IACrB,WAAW,+BAA+B;IAC1C,UAAU,8BAA8B;CACzC;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AAE3D,KAAK,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;AAC3B,eAAO,MAAM,aAAa,EAAE,KAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,mBAAuB,EAC5B,MAAM,EAAE,SAAS,SAYlB;AAED,eAAO,MAAM,WAAW,UAAW,YAAY,KAAG,iBAGhD,CAAC;AAEH,eAAO,MAAM,UAAU,QAAO,gBAE5B,CAAC"}
@@ -1,41 +0,0 @@
1
- import type { AnyAction } from 'redux';
2
- import type { CreateIndexSpec } from './create-index';
3
- export declare const IN_PROGRESS_INDEXES_ADDED = "indexes/in-progress-indexes/IN_PROGRESS_INDEXES_ADDED";
4
- export declare const IN_PROGRESS_INDEXES_REMOVED = "indexes/in-progress-indexes/IN_PROGRESS_INDEXES_REMOVED";
5
- export declare const IN_PROGRESS_INDEXES_FAILED = "indexes/in-progress-indexes/IN_PROGRESS_INDEXES_FAILED";
6
- export type InProgressIndex = {
7
- id: string;
8
- key: CreateIndexSpec;
9
- fields: {
10
- field: string;
11
- value: string | number;
12
- }[];
13
- name: string;
14
- ns: string;
15
- size: number;
16
- relativeSize: number;
17
- usageCount: number;
18
- extra: {
19
- status: 'inprogress' | 'failed';
20
- error?: string;
21
- };
22
- };
23
- export declare const INITIAL_STATE: InProgressIndex[];
24
- export default function reducer(state: InProgressIndex[] | undefined, action: AnyAction): any[];
25
- export declare const inProgressIndexAdded: (inProgressIndex: InProgressIndex) => {
26
- type: string;
27
- inProgressIndex: InProgressIndex;
28
- };
29
- export declare const inProgressIndexRemoved: (inProgressIndexId: string) => {
30
- type: string;
31
- inProgressIndexId: string;
32
- };
33
- export declare const inProgressIndexFailed: ({ inProgressIndexId, error, }: {
34
- inProgressIndexId: string;
35
- error: string;
36
- }) => {
37
- type: string;
38
- inProgressIndexId: string;
39
- error: string;
40
- };
41
- //# sourceMappingURL=in-progress-indexes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"in-progress-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/in-progress-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,eAAO,MAAM,yBAAyB,0DACmB,CAAC;AAK1D,eAAO,MAAM,2BAA2B,4DACmB,CAAC;AAK5D,eAAO,MAAM,0BAA0B,2DACmB,CAAC;AAE3D,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,eAAe,CAAC;IACrB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAC;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE;QACL,MAAM,EAAE,YAAY,GAAG,QAAQ,CAAC;QAChC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAKF,eAAO,MAAM,aAAa,EAAE,eAAe,EAAO,CAAC;AAUnD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,+BAAgB,EAAE,MAAM,EAAE,SAAS,SAyBvE;AASD,eAAO,MAAM,oBAAoB,oBAAqB,eAAe;;;CAGnE,CAAC;AASH,eAAO,MAAM,sBAAsB,sBAAuB,MAAM;;;CAG9D,CAAC;AAUH,eAAO,MAAM,qBAAqB;uBAIb,MAAM;WAClB,MAAM;;;;;CAKb,CAAC"}
@@ -1,43 +0,0 @@
1
- import type { IndexDefinition as _IndexDefinition } from 'mongodb-data-service';
2
- import type { ThunkAction } from 'redux-thunk';
3
- import type { AnyAction } from 'redux';
4
- import type { RootState } from './index';
5
- import type { HandleErrorAction } from './error';
6
- import type { RefreshFinishedAction } from './is-refreshing';
7
- export type SortColumn = keyof typeof sortColumnToProps;
8
- export type SortDirection = 'asc' | 'desc';
9
- declare const sortColumnToProps: {
10
- readonly 'Name and Definition': "name";
11
- readonly Type: "type";
12
- readonly Size: "size";
13
- readonly Usage: "usageCount";
14
- readonly Properties: "properties";
15
- };
16
- export type IndexDefinition = Omit<_IndexDefinition, 'type' | 'cardinality' | 'properties' | 'version'> & Partial<_IndexDefinition>;
17
- export type IndexFieldsDefinition = _IndexDefinition['fields'];
18
- export declare enum ActionTypes {
19
- LoadIndexes = "indexes/indexes/LOAD_INDEXES",
20
- SortIndexes = "indexes/indexes/SORT_INDEXES"
21
- }
22
- type LoadIndexesAction = {
23
- type: ActionTypes.LoadIndexes;
24
- indexes: IndexDefinition[];
25
- };
26
- export type SortIndexesAction = {
27
- type: ActionTypes.SortIndexes;
28
- indexes: IndexDefinition[];
29
- column: SortColumn;
30
- order: SortDirection;
31
- };
32
- type Actions = LoadIndexesAction | SortIndexesAction;
33
- type State = IndexDefinition[];
34
- export declare const INITIAL_STATE: State;
35
- export default function reducer(state: State | undefined, action: Actions): State;
36
- export declare const loadIndexes: (indexes: IndexDefinition[]) => LoadIndexesAction;
37
- export declare const sortIndexes: (column: SortColumn, order: SortDirection) => ThunkAction<void, RootState, void, SortIndexesAction>;
38
- export declare const fetchIndexes: () => ThunkAction<Promise<void>, RootState, void, LoadIndexesAction | RefreshFinishedAction | HandleErrorAction>;
39
- export declare const dropFailedIndex: (id: string) => ThunkAction<void, RootState, void, AnyAction>;
40
- export declare const hideIndex: (indexName: string) => ThunkAction<Promise<void>, RootState, void, AnyAction>;
41
- export declare const unhideIndex: (indexName: string) => ThunkAction<Promise<void>, RootState, void, AnyAction>;
42
- export {};
43
- //# sourceMappingURL=indexes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/indexes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,aAAa,CAAC;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,SAAS,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAgB7D,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3C,QAAA,MAAM,iBAAiB;;;;;;CAMb,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,gBAAgB,EAChB,MAAM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EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,CA8BvD,CAAC;AAEF,eAAO,MAAM,WAAW,cACX,MAAM,KAChB,YAAY,QAAQ,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,CA8BvD,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const INITIAL_STATE = false;
2
- export default function reducer(state?: boolean): boolean;
3
- //# sourceMappingURL=is-readonly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-readonly.d.ts","sourceRoot":"","sources":["../../../src/modules/is-readonly.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,QAAQ,CAAC;AAUnC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,UAAgB,WAEpD"}