@mongodb-js/compass-indexes 5.5.3 → 5.7.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 (72) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/browser.js.LICENSE.txt +0 -4
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.LICENSE.txt +0 -4
  5. package/dist/src/components/create-index-fields.d.ts.map +1 -1
  6. package/dist/src/components/create-index-form/checkbox-input.d.ts +19 -0
  7. package/dist/src/components/create-index-form/checkbox-input.d.ts.map +1 -0
  8. package/dist/src/components/create-index-form/collapsible-input.d.ts +24 -0
  9. package/dist/src/components/create-index-form/collapsible-input.d.ts.map +1 -0
  10. package/dist/src/components/create-index-form/create-index-form.d.ts +1 -29
  11. package/dist/src/components/create-index-form/create-index-form.d.ts.map +1 -1
  12. package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
  13. package/dist/src/components/drop-index-modal/index.d.ts.map +1 -1
  14. package/dist/src/modules/create-index/fields.d.ts.map +1 -1
  15. package/dist/src/modules/create-index/index.d.ts +49 -22
  16. package/dist/src/modules/create-index/index.d.ts.map +1 -1
  17. package/dist/src/modules/create-index/new-index-field.d.ts.map +1 -1
  18. package/dist/src/modules/create-index/options.d.ts +92 -0
  19. package/dist/src/modules/create-index/options.d.ts.map +1 -0
  20. package/dist/src/modules/error.d.ts +2 -1
  21. package/dist/src/modules/error.d.ts.map +1 -1
  22. package/dist/src/modules/in-progress.d.ts.map +1 -1
  23. package/dist/src/modules/is-visible.d.ts.map +1 -1
  24. package/dist/src/stores/create-index.d.ts +56 -1
  25. package/dist/src/stores/create-index.d.ts.map +1 -1
  26. package/dist/src/utils/columnstore-indexes.d.ts +5 -0
  27. package/dist/src/utils/columnstore-indexes.d.ts.map +1 -0
  28. package/package.json +24 -25
  29. package/dist/src/components/create-index-form/columnstore-projection.d.ts +0 -10
  30. package/dist/src/components/create-index-form/columnstore-projection.d.ts.map +0 -1
  31. package/dist/src/components/create-index-form/custom-collation.d.ts +0 -10
  32. package/dist/src/components/create-index-form/custom-collation.d.ts.map +0 -1
  33. package/dist/src/components/create-index-form/index-name.d.ts +0 -10
  34. package/dist/src/components/create-index-form/index-name.d.ts.map +0 -1
  35. package/dist/src/components/create-index-form/partial-filter-expression.d.ts +0 -10
  36. package/dist/src/components/create-index-form/partial-filter-expression.d.ts.map +0 -1
  37. package/dist/src/components/create-index-form/sparse-index.d.ts +0 -8
  38. package/dist/src/components/create-index-form/sparse-index.d.ts.map +0 -1
  39. package/dist/src/components/create-index-form/ttl.d.ts +0 -10
  40. package/dist/src/components/create-index-form/ttl.d.ts.map +0 -1
  41. package/dist/src/components/create-index-form/unique-index.d.ts +0 -8
  42. package/dist/src/components/create-index-form/unique-index.d.ts.map +0 -1
  43. package/dist/src/components/create-index-form/wildcard-projection.d.ts +0 -10
  44. package/dist/src/components/create-index-form/wildcard-projection.d.ts.map +0 -1
  45. package/dist/src/modules/create-index/collation-string.d.ts +0 -6
  46. package/dist/src/modules/create-index/collation-string.d.ts.map +0 -1
  47. package/dist/src/modules/create-index/columnstore-projection.d.ts +0 -6
  48. package/dist/src/modules/create-index/columnstore-projection.d.ts.map +0 -1
  49. package/dist/src/modules/create-index/is-sparse.d.ts +0 -13
  50. package/dist/src/modules/create-index/is-sparse.d.ts.map +0 -1
  51. package/dist/src/modules/create-index/is-unique.d.ts +0 -9
  52. package/dist/src/modules/create-index/is-unique.d.ts.map +0 -1
  53. package/dist/src/modules/create-index/name.d.ts +0 -9
  54. package/dist/src/modules/create-index/name.d.ts.map +0 -1
  55. package/dist/src/modules/create-index/ttl.d.ts +0 -9
  56. package/dist/src/modules/create-index/ttl.d.ts.map +0 -1
  57. package/dist/src/modules/create-index/use-columnstore-projection.d.ts +0 -9
  58. package/dist/src/modules/create-index/use-columnstore-projection.d.ts.map +0 -1
  59. package/dist/src/modules/create-index/use-custom-collation.d.ts +0 -9
  60. package/dist/src/modules/create-index/use-custom-collation.d.ts.map +0 -1
  61. package/dist/src/modules/create-index/use-index-name.d.ts +0 -9
  62. package/dist/src/modules/create-index/use-index-name.d.ts.map +0 -1
  63. package/dist/src/modules/create-index/use-partial-filter-expression.d.ts +0 -9
  64. package/dist/src/modules/create-index/use-partial-filter-expression.d.ts.map +0 -1
  65. package/dist/src/modules/create-index/use-ttl.d.ts +0 -9
  66. package/dist/src/modules/create-index/use-ttl.d.ts.map +0 -1
  67. package/dist/src/modules/create-index/use-wildcard-projection.d.ts +0 -9
  68. package/dist/src/modules/create-index/use-wildcard-projection.d.ts.map +0 -1
  69. package/dist/src/modules/create-index/wildcard-projection.d.ts +0 -6
  70. package/dist/src/modules/create-index/wildcard-projection.d.ts.map +0 -1
  71. package/dist/src/utils/has-columnstore-indexes-support.d.ts +0 -2
  72. package/dist/src/utils/has-columnstore-indexes-support.d.ts.map +0 -1
@@ -77,7 +77,3 @@ object-assign
77
77
  * This source code is licensed under the MIT license found in the
78
78
  * LICENSE file in the root directory of this source tree.
79
79
  */
80
-
81
- //! moment.js
82
-
83
- //! moment.js locale configuration
@@ -1 +1 @@
1
- {"version":3,"file":"create-index-fields.d.ts","sourceRoot":"","sources":["../../../src/components/create-index-fields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAapD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAgCjE,oBAAY,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EACzB,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,eAAe,GAChB,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY,CA6F7C;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"create-index-fields.d.ts","sourceRoot":"","sources":["../../../src/components/create-index-fields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAcpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AA+BjE,oBAAY,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EACzB,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,eAAe,GAChB,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY,CA2G7C;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { CheckboxOptions } from '../../modules/create-index/options';
3
+ declare type CheckboxInputProps = {
4
+ name: CheckboxOptions;
5
+ label: string;
6
+ description: string;
7
+ disabled?: boolean;
8
+ checked: boolean;
9
+ onChange(name: CheckboxOptions, newVal: boolean): void;
10
+ };
11
+ export declare const CheckboxInput: React.FunctionComponent<CheckboxInputProps>;
12
+ declare const _default: import("react-redux").ConnectedComponent<React.FunctionComponent<CheckboxInputProps>, {
13
+ name: CheckboxOptions;
14
+ disabled?: boolean | undefined;
15
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
16
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
17
+ }>;
18
+ export default _default;
19
+ //# sourceMappingURL=checkbox-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-input.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/checkbox-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAI1E,aAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAwBrE,CAAC;;;;;;;AAEF,wBASiB"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import type { InputOptions } from '../../modules/create-index/options';
3
+ declare type CollapsibleInputProps = {
4
+ name: InputOptions;
5
+ type: 'text' | 'code' | 'number';
6
+ label: React.ReactElement | string;
7
+ description: React.ReactElement | string;
8
+ disabled?: boolean;
9
+ optional?: boolean;
10
+ units?: string;
11
+ value: string;
12
+ onChange(name: string, newVal: string): void;
13
+ enabled: boolean;
14
+ onEnabled(name: string, newVal: boolean): void;
15
+ };
16
+ export declare const CollapsibleInput: React.FunctionComponent<CollapsibleInputProps>;
17
+ declare const _default: import("react-redux").ConnectedComponent<React.FunctionComponent<CollapsibleInputProps>, {
18
+ name: InputOptions;
19
+ disabled?: boolean | undefined;
20
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
21
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
22
+ }>;
23
+ export default _default;
24
+ //# sourceMappingURL=collapsible-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible-input.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/collapsible-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAOvE,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IACjC,KAAK,EAAE,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;IACnC,WAAW,EAAE,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CACpD,qBAAqB,CA2DtB,CAAC;;;;;;;AAEF,wBAgBoB"}
@@ -7,41 +7,13 @@ declare type CreateIndexFormProps = {
7
7
  fields: IndexField[];
8
8
  newIndexField: string | null;
9
9
  schemaFields: string[];
10
- isUnique: boolean;
11
- isSparse: boolean;
12
- useIndexName: boolean;
13
- useTtl: boolean;
14
- usePartialFilterExpression: boolean;
15
- useCustomCollation: boolean;
16
- useWildcardProjection: boolean;
17
- useColumnstoreProjection: boolean;
18
- name: string;
19
- ttl?: string;
20
- partialFilterExpression?: string;
21
- wildcardProjection: string;
22
- collationString?: string;
23
- columnstoreProjection: string;
24
10
  serverVersion: string;
25
- toggleIsUnique: (isUnique: boolean) => void;
26
- toggleIsSparse: (isSparse: boolean) => void;
27
- toggleUseIndexName: (useIndexName: boolean) => void;
28
- toggleUseTtl: (useTtl: boolean) => void;
29
- toggleUsePartialFilterExpression: (usePartialFilterExpression: boolean) => void;
30
- toggleUseWildcardProjection: (useWildcardProjection: boolean) => void;
31
- toggleUseCustomCollation: (useCustomCollation: boolean) => void;
32
- toggleUseColumnstoreProjection: (useColumnstoreProjection: boolean) => void;
33
- nameChanged: (name: string) => void;
34
- ttlChanged: (ttl: string) => void;
35
- partialFilterExpressionChanged: (partialFilterExpression: string) => void;
36
- wildcardProjectionChanged: (wildcardProjection: string) => void;
37
- collationStringChanged: (collationString: string) => void;
38
- columnstoreProjectionChanged: (columnstoreProjection: string) => void;
39
11
  updateFieldName: (idx: number, name: string) => void;
40
12
  updateFieldType: (idx: number, fType: string) => void;
41
13
  addField: () => void;
42
14
  removeField: (idx: number) => void;
43
15
  createNewIndexField: (newField: string) => void;
44
16
  };
45
- declare function CreateIndexForm({ fields, newIndexField, schemaFields, isUnique, isSparse, useIndexName, useTtl, usePartialFilterExpression, useCustomCollation, useWildcardProjection, useColumnstoreProjection, name, ttl, partialFilterExpression, wildcardProjection, collationString, columnstoreProjection, serverVersion, toggleIsUnique, toggleIsSparse, toggleUseIndexName, toggleUseTtl, toggleUsePartialFilterExpression, toggleUseWildcardProjection, toggleUseCustomCollation, toggleUseColumnstoreProjection, nameChanged, ttlChanged, partialFilterExpressionChanged, wildcardProjectionChanged, collationStringChanged, columnstoreProjectionChanged, updateFieldName, updateFieldType, addField, removeField, createNewIndexField, }: CreateIndexFormProps): JSX.Element;
17
+ declare function CreateIndexForm({ fields, newIndexField, schemaFields, serverVersion, updateFieldName, updateFieldType, addField, removeField, createNewIndexField, }: CreateIndexFormProps): JSX.Element;
46
18
  export { CreateIndexForm };
47
19
  //# sourceMappingURL=create-index-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-index-form.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/create-index-form.tsx"],"names":[],"mappings":";AA0BA,aAAK,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD,aAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAElB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,0BAA0B,EAAE,OAAO,CAAC;IACpC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,wBAAwB,EAAE,OAAO,CAAC;IAElC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAC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,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,MAAM,EACN,aAAa,EACb,YAAY,EAEZ,QAAQ,EACR,QAAQ,EAER,YAAY,EACZ,MAAM,EACN,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EAExB,IAAI,EACJ,GAAG,EACH,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EAErB,aAAa,EAEb,cAAc,EACd,cAAc,EAEd,kBAAkB,EAClB,YAAY,EACZ,gCAAgC,EAChC,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAE9B,WAAW,EACX,UAAU,EACV,8BAA8B,EAC9B,yBAAyB,EACzB,sBAAsB,EACtB,4BAA4B,EAE5B,eAAe,EACf,eAAe,EACf,QAAQ,EACR,WAAW,EACX,mBAAmB,GACpB,EAAE,oBAAoB,eAgFtB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"create-index-form.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/create-index-form.tsx"],"names":[],"mappings":";AAoBA,aAAK,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD,aAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB,aAAa,EAAE,MAAM,CAAC;IAEtB,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,MAAM,EACN,aAAa,EACb,YAAY,EAEZ,aAAa,EAEb,eAAe,EACf,eAAe,EACf,QAAQ,EACR,WAAW,EACX,mBAAmB,GACpB,EAAE,oBAAoB,eA4CtB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-index-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-modal/create-index-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAoC3C,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAQzE,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,GAAG;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC,eAoCA;;;;;AA8ED,wBAAgE"}
1
+ {"version":3,"file":"create-index-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-modal/create-index-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAwB3C,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAIzE,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,GAAG;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC,eA6CA;;;;;AAoCD,wBAAgE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drop-index-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4C1B,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAKF,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,KAAK,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE,kBAAkB,eAiFpB;;;;;;AA0BD,wBAA8D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drop-index-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6C1B,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAKF,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,KAAK,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE,kBAAkB,eA4FpB;;;;;;AA0BD,wBAA8D"}
@@ -1 +1 @@
1
- {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-index/fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,eAAO,MAAM,SAAS,0CAA0C,CAAC;AACjE,eAAO,MAAM,iBAAiB,kDACmB,CAAC;AAClD,eAAO,MAAM,YAAY,6CAA6C,CAAC;AACvE,eAAO,MAAM,aAAa,8CA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MAAM,WAAW,QAAS,MAAM;;;CAGrC,CAAC;AAEH,eAAO,MAAM,eAAe,QAAS,MAAM,SAAS,MAAM;;;;CAIxD,CAAC;AAEH,eAAO,MAAM,YAAY,WAAY,UAAU,EAAE;;;CAG/C,CAAC;AAEH,eAAO,MAAM,eAAe,QAAS,MAAM,QAAQ,MAAM,gBACrC,QAAQ,YAAY,MAAM,SAAS,SA2BtD,CAAC"}
@@ -1,37 +1,64 @@
1
- import type { AnyAction, Dispatch } from 'redux';
1
+ import type { Dispatch } from 'redux';
2
2
  import type { IndexField } from '../create-index/fields';
3
3
  declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
4
4
  dataService: import("mongodb-data-service").DataService | null;
5
5
  appRegistry: unknown;
6
- collationString: string;
7
- fields: IndexField[];
6
+ namespace: string;
7
+ serverVersion: string;
8
8
  inProgress: any;
9
- useCustomCollation: boolean;
10
- useIndexName: boolean;
11
- schemaFields: string[];
12
- newIndexField: string | null;
13
9
  isVisible: any;
10
+ fields: IndexField[];
11
+ newIndexField: string | null;
12
+ schemaFields: string[];
14
13
  error: string | null;
15
- isUnique: boolean;
16
- useTtl: boolean;
17
- useWildcardProjection: boolean;
18
- useColumnstoreProjection: boolean;
19
- usePartialFilterExpression: boolean;
20
- ttl: string;
21
- wildcardProjection: string;
22
- columnstoreProjection: string;
23
- partialFilterExpression: string;
24
- name: string;
25
- namespace: string;
26
- serverVersion: string;
27
- isSparse: boolean;
14
+ options: {
15
+ name: {
16
+ enabled: boolean;
17
+ } & {
18
+ value: string;
19
+ };
20
+ unique: {
21
+ enabled: boolean;
22
+ } & {
23
+ value: boolean;
24
+ };
25
+ sparse: {
26
+ enabled: boolean;
27
+ } & {
28
+ value: boolean;
29
+ };
30
+ collation: {
31
+ enabled: boolean;
32
+ } & {
33
+ value: string;
34
+ };
35
+ expireAfterSeconds: {
36
+ enabled: boolean;
37
+ } & {
38
+ value: string;
39
+ };
40
+ partialFilterExpression: {
41
+ enabled: boolean;
42
+ } & {
43
+ value: string;
44
+ };
45
+ wildcardProjection: {
46
+ enabled: boolean;
47
+ } & {
48
+ value: string;
49
+ };
50
+ columnstoreProjection: {
51
+ enabled: boolean;
52
+ } & {
53
+ value: string;
54
+ };
55
+ };
28
56
  }>, import("redux").Action<any>>;
29
57
  export declare type RootState = ReturnType<typeof reducer>;
30
58
  export declare type CreateIndexSpec = {
31
59
  [key: string]: string | number;
32
60
  };
33
- declare const rootReducer: (state: RootState, action: AnyAction) => RootState;
34
- export default rootReducer;
61
+ export default reducer;
35
62
  export declare const closeCreateIndexModal: () => (dispatch: Dispatch) => void;
36
63
  export declare const createIndex: () => (dispatch: Dispatch, getState: () => RootState) => void;
37
64
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-index/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAkCjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA+CzD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;gCAyBX,CAAC;AAEH,oBAAY,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEnD,oBAAY,eAAe,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAUF,QAAA,MAAM,WAAW,UAAW,SAAS,UAAU,SAAS,KAAG,SA0B1D,CAAC;AAEF,eAAe,WAAW,CAAC;AAE3B,eAAO,MAAM,qBAAqB,mBACd,QAAQ,SAK3B,CAAC;AAyCF,eAAO,MAAM,WAAW,mBACJ,QAAQ,YAAY,MAAM,SAAS,SA4ItD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-index/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAatC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAiBzD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAqBX,CAAC;AAEH,oBAAY,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEnD,oBAAY,eAAe,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAe,OAAO,CAAC;AAEvB,eAAO,MAAM,qBAAqB,mBACd,QAAQ,SAK3B,CAAC;AAyCF,eAAO,MAAM,WAAW,mBACJ,QAAQ,YAAY,MAAM,SAAS,SAuKtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"new-index-field.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-index/new-index-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,IAAW,CAAC;AAEjD,oBAAY,WAAW;IACrB,mBAAmB,qDAAqD;IACxE,kBAAkB,oDAAoD;CACvE;AAUD,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,2BAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,MAAM,GAAG,IAAI,CAQf;AASD,eAAO,MAAM,mBAAmB,aAAc,MAAM;;;CAGlD,CAAC;AAOH,eAAO,MAAM,kBAAkB;;CAE7B,CAAC"}
1
+ {"version":3,"file":"new-index-field.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-index/new-index-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,IAAW,CAAC;AAEjD,oBAAY,WAAW;IACrB,mBAAmB,qDAAqD;IACxE,kBAAkB,oDAAoD;CACvE;AAUD,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,2BAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,MAAM,GAAG,IAAI,CAWf;AASD,eAAO,MAAM,mBAAmB,aAAc,MAAM;;;CAGlD,CAAC;AAOH,eAAO,MAAM,kBAAkB;;CAE7B,CAAC"}
@@ -0,0 +1,92 @@
1
+ /// <reference types="react" />
2
+ import type { Reducer } from 'redux';
3
+ export declare const UNSUPPORTED_COLUMNSTORE_INDEX_OPTIONS: OptionNames[];
4
+ export declare const OPTIONS: {
5
+ readonly unique: {
6
+ readonly type: "checkbox";
7
+ readonly label: "Create unique index";
8
+ readonly description: "A unique index ensures that the indexed fields do not store duplicate values; i.e. enforces uniqueness for the indexed fields.";
9
+ };
10
+ readonly name: {
11
+ readonly type: "text";
12
+ readonly label: "Index name";
13
+ readonly description: "Enter the name of the index to create, or leave blank to have MongoDB create a default name for the index.";
14
+ readonly units: undefined;
15
+ readonly optional: true;
16
+ };
17
+ readonly expireAfterSeconds: {
18
+ readonly type: "number";
19
+ readonly label: "Create TTL";
20
+ readonly description: "TTL indexes are special single-field indexes that MongoDB can use to automatically remove documents from a collection after a certain amount of time or at a specific clock time.";
21
+ readonly units: "seconds";
22
+ readonly optional: false;
23
+ };
24
+ readonly partialFilterExpression: {
25
+ readonly type: "code";
26
+ readonly label: "Partial Filter Expression";
27
+ readonly description: "Partial indexes only index the documents in a collection that meet a specified filter expression.";
28
+ readonly units: undefined;
29
+ readonly optional: false;
30
+ };
31
+ readonly wildcardProjection: {
32
+ readonly type: "code";
33
+ readonly label: "Wildcard Projection";
34
+ readonly description: "Wildcard indexes support queries against unknown or arbitrary fields.";
35
+ readonly units: undefined;
36
+ readonly optional: false;
37
+ };
38
+ readonly collation: {
39
+ readonly type: "code";
40
+ readonly label: "Use Custom Collation";
41
+ readonly description: "Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.";
42
+ readonly units: undefined;
43
+ readonly optional: false;
44
+ };
45
+ readonly columnstoreProjection: {
46
+ readonly type: "code";
47
+ readonly label: JSX.Element;
48
+ readonly description: "Columnstore indexes support queries against unknown or arbitrary fields.";
49
+ readonly units: undefined;
50
+ readonly optional: false;
51
+ };
52
+ readonly sparse: {
53
+ readonly type: "checkbox";
54
+ readonly label: "Create sparse index";
55
+ readonly description: "Sparse indexes only contain entries for documents that have the indexed field, even if the index field contains a null value. The index skips over any document that is missing the indexed field.";
56
+ };
57
+ };
58
+ export declare type OptionNames = keyof typeof OPTIONS;
59
+ export declare type CheckboxOptions = {
60
+ [k in OptionNames]: typeof OPTIONS[k]['type'] extends 'checkbox' ? k : never;
61
+ }[OptionNames];
62
+ export declare type InputOptions = Exclude<OptionNames, CheckboxOptions>;
63
+ declare type State = {
64
+ [k in OptionNames]: {
65
+ enabled: boolean;
66
+ } & (typeof OPTIONS[k]['type'] extends 'checkbox' ? {
67
+ value: boolean;
68
+ } : {
69
+ value: string;
70
+ });
71
+ };
72
+ declare type ValueForOption<O extends OptionNames> = typeof OPTIONS[O]['type'] extends 'checkbox' ? boolean : string;
73
+ declare enum Actions {
74
+ ChangeOption = "compass-indexes/create-index/change-option",
75
+ ChangeOptionEnabled = "compass-indexes/create-index/change-option-enabled"
76
+ }
77
+ declare type ChangeOptionAction<O extends OptionNames = OptionNames> = {
78
+ type: Actions.ChangeOption;
79
+ name: O;
80
+ value: ValueForOption<O>;
81
+ };
82
+ export declare function changeOption<O extends OptionNames>(optionName: O, newValue: ValueForOption<O>): ChangeOptionAction<O>;
83
+ declare type ChangeOptionEnabledAction<O extends OptionNames = OptionNames> = {
84
+ type: Actions.ChangeOptionEnabled;
85
+ name: O;
86
+ enabled: boolean;
87
+ };
88
+ export declare function changeOptionEnabled<O extends OptionNames>(optionName: O, enabled: boolean): ChangeOptionEnabledAction<O>;
89
+ export declare const INITIAL_STATE: State;
90
+ declare const reducer: Reducer<State>;
91
+ export default reducer;
92
+ //# sourceMappingURL=options.d.ts.map
@@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,CAAC,CAAC;CAC1B,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,SAAS,WAAW,EAChD,UAAU,EAAE,CAAC,EACb,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAC1B,kBAAkB,CAAC,CAAC,CAAC,CAEvB;AAED,aAAK,yBAAyB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI;IACpE,IAAI,EAAE,OAAO,CAAC,mBAAmB,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,UAAU,EAAE,CAAC,EACb,OAAO,EAAE,OAAO,GACf,yBAAyB,CAAC,CAAC,CAAC,CAE9B;AAED,eAAO,MAAM,aAAa,OAOhB,CAAC;AASX,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CA+B3B,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { AnyError } from 'mongodb';
2
+ import type { AnyAction } from 'redux';
2
3
  export declare type IndexesError = AnyError | string | null | undefined;
3
4
  export declare enum ActionTypes {
4
5
  HandleError = "indexes/error/HANDLE_ERROR",
@@ -14,7 +15,7 @@ declare type ClearErrorAction = {
14
15
  export declare type Actions = HandleErrorAction | ClearErrorAction;
15
16
  declare type State = string | null;
16
17
  export declare const INITIAL_STATE: State;
17
- export default function reducer(state: State | undefined, action: Actions): State;
18
+ export default function reducer(state: State | undefined, action: AnyAction): State;
18
19
  export declare const handleError: (error: IndexesError) => HandleErrorAction;
19
20
  export declare const clearError: () => ClearErrorAction;
20
21
  export {};
@@ -1 +1 @@
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,oBAAY,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,IA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,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 +1 @@
1
- {"version":3,"file":"in-progress.d.ts","sourceRoot":"","sources":["../../../src/modules/in-progress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AAK3E,eAAO,MAAM,aAAa,QAAQ,CAAC;AAUnC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,qBAAgB,EAAE,MAAM,EAAE,SAAS,OAKvE;AASD,eAAO,MAAM,gBAAgB,eAAgB,OAAO;;;CAGlD,CAAC"}
1
+ {"version":3,"file":"in-progress.d.ts","sourceRoot":"","sources":["../../../src/modules/in-progress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AAK3E,eAAO,MAAM,aAAa,QAAQ,CAAC;AAUnC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,qBAAgB,EAAE,MAAM,EAAE,SAAS,OAQvE;AASD,eAAO,MAAM,gBAAgB,eAAgB,OAAO;;;CAGlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-visible.d.ts","sourceRoot":"","sources":["../../../src/modules/is-visible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAK/D,eAAO,MAAM,aAAa,QAAQ,CAAC;AAUnC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,qBAAgB,EAAE,MAAM,EAAE,SAAS,OAKvE;AASD,eAAO,MAAM,eAAe,cAAe,OAAO;;;CAGhD,CAAC"}
1
+ {"version":3,"file":"is-visible.d.ts","sourceRoot":"","sources":["../../../src/modules/is-visible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAK/D,eAAO,MAAM,aAAa,QAAQ,CAAC;AAUnC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,qBAAgB,EAAE,MAAM,EAAE,SAAS,OAQvE;AASD,eAAO,MAAM,eAAe,cAAe,OAAO;;;CAGhD,CAAC"}
@@ -1,4 +1,59 @@
1
1
  export function setDataProvider(store: Object, error: Object, provider: Object): void;
2
2
  export default configureStore;
3
- declare function configureStore(options?: {}): any;
3
+ declare function configureStore(options?: {}): import("redux").Store<import("redux").EmptyObject & {
4
+ dataService: import("mongodb-data-service").DataService | null;
5
+ appRegistry: unknown;
6
+ namespace: string;
7
+ serverVersion: string;
8
+ inProgress: any;
9
+ isVisible: any;
10
+ fields: import("../modules/create-index/fields").IndexField[];
11
+ newIndexField: string | null;
12
+ schemaFields: string[];
13
+ error: string | null;
14
+ options: {
15
+ name: {
16
+ enabled: boolean;
17
+ } & {
18
+ value: string;
19
+ };
20
+ unique: {
21
+ enabled: boolean;
22
+ } & {
23
+ value: boolean;
24
+ };
25
+ sparse: {
26
+ enabled: boolean;
27
+ } & {
28
+ value: boolean;
29
+ };
30
+ collation: {
31
+ enabled: boolean;
32
+ } & {
33
+ value: string;
34
+ };
35
+ expireAfterSeconds: {
36
+ enabled: boolean;
37
+ } & {
38
+ value: string;
39
+ };
40
+ partialFilterExpression: {
41
+ enabled: boolean;
42
+ } & {
43
+ value: string;
44
+ };
45
+ wildcardProjection: {
46
+ enabled: boolean;
47
+ } & {
48
+ value: string;
49
+ };
50
+ columnstoreProjection: {
51
+ enabled: boolean;
52
+ } & {
53
+ value: string;
54
+ };
55
+ };
56
+ }, import("redux").Action<any>> & {
57
+ dispatch: any;
58
+ };
4
59
  //# sourceMappingURL=create-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-index.d.ts","sourceRoot":"","sources":["../../../src/stores/create-index.js"],"names":[],"mappings":"AAwBO,uCAJI,MAAM,SACN,MAAM,YACN,MAAM,QAQhB;;AAED,mDAiDC"}
1
+ {"version":3,"file":"create-index.d.ts","sourceRoot":"","sources":["../../../src/stores/create-index.js"],"names":[],"mappings":"AAwBO,uCAJI,MAAM,SACN,MAAM,YACN,MAAM,QAQhB;;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDC"}
@@ -0,0 +1,5 @@
1
+ import type { IndexField } from '../modules/create-index/fields';
2
+ export declare const MIN_COLUMNSTORE_INDEXES_SERVER_VERSION = "6.3.0-alpha0";
3
+ export declare function hasColumnstoreIndex(fields: IndexField[]): boolean;
4
+ export declare function hasColumnstoreIndexesSupport(serverVersion: string | undefined | null): boolean;
5
+ //# sourceMappingURL=columnstore-indexes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnstore-indexes.d.ts","sourceRoot":"","sources":["../../../src/utils/columnstore-indexes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,eAAO,MAAM,sCAAsC,iBAAiB,CAAC;AAErE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,WAEvD;AAED,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GACvC,OAAO,CAST"}
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.5.3",
5
+ "version": "5.7.0",
6
6
  "author": {
7
7
  "name": "MongoDB Inc",
8
8
  "email": "compass@mongodb.com"
@@ -54,24 +54,24 @@
54
54
  "test-watch": "npm run test -- --watch",
55
55
  "test-ci": "npm run test-cov",
56
56
  "test-ci-electron": "npm run test-electron",
57
- "reformat": "npm run prettier -- --write ."
57
+ "reformat": "npm run prettier -- --write . && npm run eslint . --fix"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mongodb-js/compass-components": "^1.5.0",
61
- "@mongodb-js/compass-editor": "^0.4.2",
62
- "@mongodb-js/compass-logging": "^1.1.2",
63
- "@mongodb-js/mongodb-redux-common": "^2.0.4",
64
- "bson": "^4.4.1",
65
- "compass-preferences-model": "^2.5.1",
66
- "mongodb-index-model": "^4.1.1",
60
+ "@mongodb-js/compass-components": "^1.7.0",
61
+ "@mongodb-js/compass-editor": "^0.6.0",
62
+ "@mongodb-js/compass-logging": "^1.1.4",
63
+ "@mongodb-js/mongodb-redux-common": "^2.0.6",
64
+ "bson": "^5.0.1",
65
+ "compass-preferences-model": "^2.7.0",
66
+ "mongodb-index-model": "^4.1.2",
67
67
  "react": "^17.0.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@mongodb-js/eslint-config-compass": "^1.0.2",
71
- "@mongodb-js/mocha-config-compass": "^1.0.2",
70
+ "@mongodb-js/eslint-config-compass": "^1.0.4",
71
+ "@mongodb-js/mocha-config-compass": "^1.1.0",
72
72
  "@mongodb-js/prettier-config-compass": "^1.0.0",
73
73
  "@mongodb-js/tsconfig-compass": "^1.0.1",
74
- "@mongodb-js/webpack-config-compass": "^1.0.5",
74
+ "@mongodb-js/webpack-config-compass": "^1.0.7",
75
75
  "@testing-library/react": "^12.1.4",
76
76
  "@testing-library/user-event": "^13.5.0",
77
77
  "chai": "^4.2.0",
@@ -80,14 +80,13 @@
80
80
  "electron": "^22.0.2",
81
81
  "enzyme": "^3.11.0",
82
82
  "eslint": "^7.25.0",
83
- "hadron-app": "^5.4.1",
84
- "hadron-app-registry": "^9.0.3",
83
+ "hadron-app-registry": "^9.0.5",
85
84
  "lodash.clonedeep": "^4.5.0",
86
85
  "lodash.contains": "^2.4.3",
87
86
  "mocha": "^8.4.0",
88
- "mongodb": "^4.13.0",
89
- "mongodb-data-service": "^22.4.1",
90
- "mongodb-query-parser": "^2.4.6",
87
+ "mongodb": "^5.1.0",
88
+ "mongodb-data-service": "^22.5.1",
89
+ "mongodb-query-parser": "^2.4.8",
91
90
  "numeral": "^2.0.6",
92
91
  "nyc": "^15.1.0",
93
92
  "prop-types": "^15.7.2",
@@ -103,13 +102,13 @@
103
102
  "xvfb-maybe": "^0.2.1"
104
103
  },
105
104
  "dependencies": {
106
- "@mongodb-js/compass-components": "^1.5.0",
107
- "@mongodb-js/compass-editor": "^0.4.2",
108
- "@mongodb-js/compass-logging": "^1.1.2",
109
- "@mongodb-js/mongodb-redux-common": "^2.0.4",
110
- "bson": "^4.4.1",
111
- "compass-preferences-model": "^2.5.1",
112
- "mongodb-index-model": "^4.1.1"
105
+ "@mongodb-js/compass-components": "^1.7.0",
106
+ "@mongodb-js/compass-editor": "^0.6.0",
107
+ "@mongodb-js/compass-logging": "^1.1.4",
108
+ "@mongodb-js/mongodb-redux-common": "^2.0.6",
109
+ "bson": "^5.0.1",
110
+ "compass-preferences-model": "^2.7.0",
111
+ "mongodb-index-model": "^4.1.2"
113
112
  },
114
- "gitHead": "b625bfb4b1c028513e232069ca2f56b14ffa5422"
113
+ "gitHead": "fe181eedfcb07251b9b9a3dce8254a4941d74e42"
115
114
  }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare type ColumnstoreProjection = {
3
- useColumnstoreProjection: boolean;
4
- toggleUseColumnstoreProjection: (useColumnstoreProjection: boolean) => void;
5
- columnstoreProjection?: string;
6
- columnstoreProjectionChanged: (columnstoreProjection: string) => void;
7
- };
8
- declare const ColumnstoreProjectionCollapsibleFieldSet: ({ useColumnstoreProjection, toggleUseColumnstoreProjection, columnstoreProjection, columnstoreProjectionChanged, }: ColumnstoreProjection) => JSX.Element;
9
- export default ColumnstoreProjectionCollapsibleFieldSet;
10
- //# sourceMappingURL=columnstore-projection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"columnstore-projection.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/columnstore-projection.tsx"],"names":[],"mappings":";AAIA,aAAK,qBAAqB,GAAG;IAC3B,wBAAwB,EAAE,OAAO,CAAC;IAClC,8BAA8B,EAAE,CAAC,wBAAwB,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4BAA4B,EAAE,CAAC,qBAAqB,EAAE,MAAM,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF,QAAA,MAAM,wCAAwC,uHAK3C,qBAAqB,gBAmBvB,CAAC;AAEF,eAAe,wCAAwC,CAAC"}
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare type CustomCollation = {
3
- useCustomCollation: boolean;
4
- toggleUseCustomCollation: (useCustomCollation: boolean) => void;
5
- collationString?: string;
6
- collationStringChanged: (collationString: string) => void;
7
- };
8
- declare const CustomCollationCollapsibleFieldSet: ({ useCustomCollation, toggleUseCustomCollation, collationString, collationStringChanged, }: CustomCollation) => JSX.Element;
9
- export default CustomCollationCollapsibleFieldSet;
10
- //# sourceMappingURL=custom-collation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-collation.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/custom-collation.tsx"],"names":[],"mappings":";AAIA,aAAK,eAAe,GAAG;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,wBAAwB,EAAE,CAAC,kBAAkB,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,QAAA,MAAM,kCAAkC,+FAKrC,eAAe,gBAmBjB,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare type IndexName = {
3
- indexName: string;
4
- nameChanged: (indexName: string) => void;
5
- useIndexName: boolean;
6
- toggleUseIndexName: (useIndexName: boolean) => void;
7
- };
8
- declare const IndexNameCollapsibleFieldSet: ({ indexName, nameChanged, useIndexName, toggleUseIndexName, }: IndexName) => JSX.Element;
9
- export default IndexNameCollapsibleFieldSet;
10
- //# sourceMappingURL=index-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-name.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/index-name.tsx"],"names":[],"mappings":";AAGA,aAAK,SAAS,GAAG;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF,QAAA,MAAM,4BAA4B,kEAK/B,SAAS,gBAoBX,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare type PartialFilter = {
3
- usePartialFilterExpression: boolean;
4
- toggleUsePartialFilterExpression: (usePartialFilterExpression: boolean) => void;
5
- partialFilterExpression?: string;
6
- partialFilterExpressionChanged: (partialFilterExpression: string) => void;
7
- };
8
- declare const PartialFilterCollapsibleFieldSet: ({ usePartialFilterExpression, toggleUsePartialFilterExpression, partialFilterExpression, partialFilterExpressionChanged, }: PartialFilter) => JSX.Element;
9
- export default PartialFilterCollapsibleFieldSet;
10
- //# sourceMappingURL=partial-filter-expression.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"partial-filter-expression.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/partial-filter-expression.tsx"],"names":[],"mappings":";AAIA,aAAK,aAAa,GAAG;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,gCAAgC,EAAE,CAChC,0BAA0B,EAAE,OAAO,KAChC,IAAI,CAAC;IACV,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,8BAA8B,EAAE,CAAC,uBAAuB,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3E,CAAC;AAEF,QAAA,MAAM,gCAAgC,+HAKnC,aAAa,gBAmBf,CAAC;AAEF,eAAe,gCAAgC,CAAC"}
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare type SparseIndex = {
3
- isSparse: boolean;
4
- toggleIsSparse: (isSparse: boolean) => void;
5
- };
6
- declare const SparseIndexCheckbox: ({ isSparse, toggleIsSparse }: SparseIndex) => JSX.Element;
7
- export default SparseIndexCheckbox;
8
- //# sourceMappingURL=sparse-index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sparse-index.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-form/sparse-index.tsx"],"names":[],"mappings":";AASA,aAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C,CAAC;AASF,QAAA,MAAM,mBAAmB,iCAAkC,WAAW,gBAoBrE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}