@sebspark/opensearch 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -114,7 +114,7 @@ type OpenSearchFilter<T> = {
114
114
  exists?: Exists<T>;
115
115
  fuzzy?: Fuzzy<T>;
116
116
  prefix?: Partial<NestedFields<T>>;
117
- wildcard?: Partial<NestedFields<T>>;
117
+ wildcard?: Wildcard<T>;
118
118
  regexp?: Regexp<T>;
119
119
  match?: Match<T>;
120
120
  match_phrase?: Partial<NestedFields<T>>;
@@ -152,8 +152,8 @@ type Prefix<T> = {
152
152
  };
153
153
  };
154
154
  type Wildcard<T> = {
155
- [P in keyof NestedFields<T>]?: NestedFields<T>[P] | {
156
- value: NestedFields<T>[P];
155
+ [P in NestedPaths<T>]?: string | {
156
+ value: string;
157
157
  boost?: number;
158
158
  };
159
159
  };
package/dist/index.d.ts CHANGED
@@ -114,7 +114,7 @@ type OpenSearchFilter<T> = {
114
114
  exists?: Exists<T>;
115
115
  fuzzy?: Fuzzy<T>;
116
116
  prefix?: Partial<NestedFields<T>>;
117
- wildcard?: Partial<NestedFields<T>>;
117
+ wildcard?: Wildcard<T>;
118
118
  regexp?: Regexp<T>;
119
119
  match?: Match<T>;
120
120
  match_phrase?: Partial<NestedFields<T>>;
@@ -152,8 +152,8 @@ type Prefix<T> = {
152
152
  };
153
153
  };
154
154
  type Wildcard<T> = {
155
- [P in keyof NestedFields<T>]?: NestedFields<T>[P] | {
156
- value: NestedFields<T>[P];
155
+ [P in NestedPaths<T>]?: string | {
156
+ value: string;
157
157
  boost?: number;
158
158
  };
159
159
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/opensearch",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",