@webiny/api-opensearch 0.0.0-unstable.7be00a75a9 → 0.0.0-unstable.9609e4e0c9

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 (218) hide show
  1. package/client.js +1 -24
  2. package/client.js.map +1 -1
  3. package/exports/api/opensearch.d.ts +6 -1
  4. package/exports/api/opensearch.js +6 -1
  5. package/features/OpenSearchClient/abstraction.d.ts +3 -3
  6. package/features/OpenSearchClient/abstraction.js.map +1 -1
  7. package/features/OpenSearchClient/feature.d.ts +2 -1
  8. package/features/OpenSearchClient/feature.js +5 -3
  9. package/features/OpenSearchClient/feature.js.map +1 -1
  10. package/features/OpenSearchField/OpenSearchField.d.ts +18 -0
  11. package/{plugins/definition/OpenSearchFieldPlugin.js → features/OpenSearchField/OpenSearchField.js} +10 -13
  12. package/features/OpenSearchField/OpenSearchField.js.map +1 -0
  13. package/features/OpenSearchField/OpenSearchFieldFactory.d.ts +9 -0
  14. package/features/OpenSearchField/OpenSearchFieldFactory.js +14 -0
  15. package/features/OpenSearchField/OpenSearchFieldFactory.js.map +1 -0
  16. package/features/OpenSearchField/abstractions/OpenSearchField.d.ts +35 -0
  17. package/features/OpenSearchField/abstractions/OpenSearchField.js +6 -0
  18. package/features/OpenSearchField/abstractions/OpenSearchField.js.map +1 -0
  19. package/features/OpenSearchField/abstractions/OpenSearchFieldFactory.d.ts +8 -0
  20. package/features/OpenSearchField/abstractions/OpenSearchFieldFactory.js +5 -0
  21. package/features/OpenSearchField/abstractions/OpenSearchFieldFactory.js.map +1 -0
  22. package/features/OpenSearchField/feature.d.ts +4 -0
  23. package/features/OpenSearchField/feature.js +11 -0
  24. package/features/OpenSearchField/feature.js.map +1 -0
  25. package/features/OpenSearchIndex/OpenSearchIndexRegistry.d.ts +12 -0
  26. package/features/OpenSearchIndex/OpenSearchIndexRegistry.js +30 -0
  27. package/features/OpenSearchIndex/OpenSearchIndexRegistry.js.map +1 -0
  28. package/features/OpenSearchIndex/abstractions/OpenSearchIndex.d.ts +9 -0
  29. package/features/OpenSearchIndex/abstractions/OpenSearchIndex.js +5 -0
  30. package/features/OpenSearchIndex/abstractions/OpenSearchIndex.js.map +1 -0
  31. package/features/OpenSearchIndex/abstractions/OpenSearchIndexRegistry.d.ts +9 -0
  32. package/features/OpenSearchIndex/abstractions/OpenSearchIndexRegistry.js +5 -0
  33. package/features/OpenSearchIndex/abstractions/OpenSearchIndexRegistry.js.map +1 -0
  34. package/features/OpenSearchIndex/feature.d.ts +4 -0
  35. package/features/OpenSearchIndex/feature.js +11 -0
  36. package/features/OpenSearchIndex/feature.js.map +1 -0
  37. package/features/OpenSearchQueryBuilderOperator/OpenSearchQueryBuilderOperatorRegistry.d.ts +12 -0
  38. package/features/OpenSearchQueryBuilderOperator/OpenSearchQueryBuilderOperatorRegistry.js +28 -0
  39. package/features/OpenSearchQueryBuilderOperator/OpenSearchQueryBuilderOperatorRegistry.js.map +1 -0
  40. package/features/OpenSearchQueryBuilderOperator/abstractions/OpenSearchQueryBuilderOperator.d.ts +11 -0
  41. package/features/OpenSearchQueryBuilderOperator/abstractions/OpenSearchQueryBuilderOperator.js +5 -0
  42. package/features/OpenSearchQueryBuilderOperator/abstractions/OpenSearchQueryBuilderOperator.js.map +1 -0
  43. package/features/OpenSearchQueryBuilderOperator/abstractions/OpenSearchQueryBuilderOperatorRegistry.d.ts +10 -0
  44. package/features/OpenSearchQueryBuilderOperator/abstractions/OpenSearchQueryBuilderOperatorRegistry.js +5 -0
  45. package/features/OpenSearchQueryBuilderOperator/abstractions/OpenSearchQueryBuilderOperatorRegistry.js.map +1 -0
  46. package/features/OpenSearchQueryBuilderOperator/feature.d.ts +4 -0
  47. package/features/OpenSearchQueryBuilderOperator/feature.js +41 -0
  48. package/features/OpenSearchQueryBuilderOperator/feature.js.map +1 -0
  49. package/features/OpenSearchQueryBuilderOperator/operators/AndIn.d.ts +9 -0
  50. package/{plugins/operator/andIn.js → features/OpenSearchQueryBuilderOperator/operators/AndIn.js} +8 -7
  51. package/features/OpenSearchQueryBuilderOperator/operators/AndIn.js.map +1 -0
  52. package/features/OpenSearchQueryBuilderOperator/operators/Between.d.ts +9 -0
  53. package/features/OpenSearchQueryBuilderOperator/operators/Between.js +27 -0
  54. package/features/OpenSearchQueryBuilderOperator/operators/Between.js.map +1 -0
  55. package/features/OpenSearchQueryBuilderOperator/operators/Contains.d.ts +9 -0
  56. package/features/OpenSearchQueryBuilderOperator/operators/Contains.js +27 -0
  57. package/features/OpenSearchQueryBuilderOperator/operators/Contains.js.map +1 -0
  58. package/features/OpenSearchQueryBuilderOperator/operators/Equal.d.ts +9 -0
  59. package/{plugins/operator/equal.js → features/OpenSearchQueryBuilderOperator/operators/Equal.js} +8 -7
  60. package/features/OpenSearchQueryBuilderOperator/operators/Equal.js.map +1 -0
  61. package/features/OpenSearchQueryBuilderOperator/operators/GreaterThan.d.ts +9 -0
  62. package/features/OpenSearchQueryBuilderOperator/operators/GreaterThan.js +23 -0
  63. package/features/OpenSearchQueryBuilderOperator/operators/GreaterThan.js.map +1 -0
  64. package/features/OpenSearchQueryBuilderOperator/operators/GreaterThanOrEqual.d.ts +9 -0
  65. package/features/OpenSearchQueryBuilderOperator/operators/GreaterThanOrEqual.js +23 -0
  66. package/features/OpenSearchQueryBuilderOperator/operators/GreaterThanOrEqual.js.map +1 -0
  67. package/features/OpenSearchQueryBuilderOperator/operators/In.d.ts +9 -0
  68. package/{plugins/operator/in.js → features/OpenSearchQueryBuilderOperator/operators/In.js} +8 -7
  69. package/features/OpenSearchQueryBuilderOperator/operators/In.js.map +1 -0
  70. package/features/OpenSearchQueryBuilderOperator/operators/LesserThan.d.ts +9 -0
  71. package/features/OpenSearchQueryBuilderOperator/operators/LesserThan.js +23 -0
  72. package/features/OpenSearchQueryBuilderOperator/operators/LesserThan.js.map +1 -0
  73. package/features/OpenSearchQueryBuilderOperator/operators/LesserThanOrEqual.d.ts +9 -0
  74. package/features/OpenSearchQueryBuilderOperator/operators/LesserThanOrEqual.js +23 -0
  75. package/features/OpenSearchQueryBuilderOperator/operators/LesserThanOrEqual.js.map +1 -0
  76. package/features/OpenSearchQueryBuilderOperator/operators/Not.d.ts +9 -0
  77. package/{plugins/operator/not.js → features/OpenSearchQueryBuilderOperator/operators/Not.js} +8 -7
  78. package/features/OpenSearchQueryBuilderOperator/operators/Not.js.map +1 -0
  79. package/features/OpenSearchQueryBuilderOperator/operators/NotBetween.d.ts +9 -0
  80. package/features/OpenSearchQueryBuilderOperator/operators/NotBetween.js +27 -0
  81. package/features/OpenSearchQueryBuilderOperator/operators/NotBetween.js.map +1 -0
  82. package/features/OpenSearchQueryBuilderOperator/operators/NotContains.d.ts +9 -0
  83. package/features/OpenSearchQueryBuilderOperator/operators/NotContains.js +27 -0
  84. package/features/OpenSearchQueryBuilderOperator/operators/NotContains.js.map +1 -0
  85. package/features/OpenSearchQueryBuilderOperator/operators/NotIn.d.ts +9 -0
  86. package/{plugins/operator/notIn.js → features/OpenSearchQueryBuilderOperator/operators/NotIn.js} +8 -7
  87. package/features/OpenSearchQueryBuilderOperator/operators/NotIn.js.map +1 -0
  88. package/features/OpenSearchQueryBuilderOperator/operators/NotStartsWith.d.ts +9 -0
  89. package/features/OpenSearchQueryBuilderOperator/operators/NotStartsWith.js +22 -0
  90. package/features/OpenSearchQueryBuilderOperator/operators/NotStartsWith.js.map +1 -0
  91. package/features/OpenSearchQueryBuilderOperator/operators/StartsWith.d.ts +9 -0
  92. package/features/OpenSearchQueryBuilderOperator/operators/StartsWith.js +22 -0
  93. package/features/OpenSearchQueryBuilderOperator/operators/StartsWith.js.map +1 -0
  94. package/index.d.ts +2 -10
  95. package/index.js +3 -28
  96. package/indices.d.ts +2 -8
  97. package/indices.js +1 -12
  98. package/package.json +9 -12
  99. package/registerOpenSearchCore.d.ts +3 -0
  100. package/registerOpenSearchCore.js +20 -0
  101. package/registerOpenSearchCore.js.map +1 -0
  102. package/sort.d.ts +2 -2
  103. package/sort.js +2 -2
  104. package/sort.js.map +1 -1
  105. package/testing/createBlankQuery.d.ts +2 -0
  106. package/testing/createBlankQuery.js +9 -0
  107. package/testing/createBlankQuery.js.map +1 -0
  108. package/testing/createTestOpenSearchClient.d.ts +11 -0
  109. package/testing/createTestOpenSearchClient.js +162 -0
  110. package/testing/createTestOpenSearchClient.js.map +1 -0
  111. package/testing/index.d.ts +4 -0
  112. package/testing/index.js +4 -0
  113. package/testing/registerOpenSearchCoreForTests.d.ts +1 -0
  114. package/testing/registerOpenSearchCoreForTests.js +9 -0
  115. package/testing/registerOpenSearchCoreForTests.js.map +1 -0
  116. package/testing/setupTestIndexManager.d.ts +13 -0
  117. package/testing/setupTestIndexManager.js +26 -0
  118. package/testing/setupTestIndexManager.js.map +1 -0
  119. package/types.d.ts +0 -8
  120. package/types.js.map +1 -1
  121. package/utils/createIndex.d.ts +2 -2
  122. package/utils/createIndex.js +2 -8
  123. package/utils/createIndex.js.map +1 -1
  124. package/utils/waitUntilHealthy/WaitUntilHealthy.js +1 -2
  125. package/utils/waitUntilHealthy/WaitUntilHealthy.js.map +1 -1
  126. package/where.d.ts +4 -4
  127. package/where.js +5 -5
  128. package/where.js.map +1 -1
  129. package/db/entity.d.ts +0 -7
  130. package/db/entity.js +0 -18
  131. package/db/entity.js.map +0 -1
  132. package/db/index.d.ts +0 -3
  133. package/db/index.js +0 -3
  134. package/db/table.d.ts +0 -7
  135. package/db/table.js +0 -13
  136. package/db/table.js.map +0 -1
  137. package/db/types.d.ts +0 -6
  138. package/db/types.js +0 -0
  139. package/features/OpenSearchClient/OpenSearchClient.d.ts +0 -12
  140. package/features/OpenSearchClient/OpenSearchClient.js +0 -19
  141. package/features/OpenSearchClient/OpenSearchClient.js.map +0 -1
  142. package/features/OpenSearchContext/OpenSearchContext.d.ts +0 -8
  143. package/features/OpenSearchContext/OpenSearchContext.js +0 -14
  144. package/features/OpenSearchContext/OpenSearchContext.js.map +0 -1
  145. package/features/OpenSearchContext/abstraction.d.ts +0 -14
  146. package/features/OpenSearchContext/abstraction.js +0 -5
  147. package/features/OpenSearchContext/abstraction.js.map +0 -1
  148. package/features/OpenSearchContext/feature.d.ts +0 -5
  149. package/features/OpenSearchContext/feature.js +0 -12
  150. package/features/OpenSearchContext/feature.js.map +0 -1
  151. package/index.js.map +0 -1
  152. package/indices.js.map +0 -1
  153. package/operators.d.ts +0 -6
  154. package/operators.js +0 -22
  155. package/operators.js.map +0 -1
  156. package/plugins/definition/OpenSearchBodyModifierPlugin.d.ts +0 -13
  157. package/plugins/definition/OpenSearchBodyModifierPlugin.js +0 -17
  158. package/plugins/definition/OpenSearchBodyModifierPlugin.js.map +0 -1
  159. package/plugins/definition/OpenSearchFieldPlugin.d.ts +0 -81
  160. package/plugins/definition/OpenSearchFieldPlugin.js.map +0 -1
  161. package/plugins/definition/OpenSearchIndexPlugin.d.ts +0 -10
  162. package/plugins/definition/OpenSearchIndexPlugin.js +0 -16
  163. package/plugins/definition/OpenSearchIndexPlugin.js.map +0 -1
  164. package/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.d.ts +0 -10
  165. package/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js +0 -9
  166. package/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js.map +0 -1
  167. package/plugins/definition/OpenSearchQueryModifierPlugin.d.ts +0 -14
  168. package/plugins/definition/OpenSearchQueryModifierPlugin.js +0 -17
  169. package/plugins/definition/OpenSearchQueryModifierPlugin.js.map +0 -1
  170. package/plugins/definition/OpenSearchSortModifierPlugin.d.ts +0 -13
  171. package/plugins/definition/OpenSearchSortModifierPlugin.js +0 -17
  172. package/plugins/definition/OpenSearchSortModifierPlugin.js.map +0 -1
  173. package/plugins/definition/index.d.ts +0 -6
  174. package/plugins/definition/index.js +0 -6
  175. package/plugins/index.d.ts +0 -2
  176. package/plugins/index.js +0 -2
  177. package/plugins/operator/andIn.d.ts +0 -7
  178. package/plugins/operator/andIn.js.map +0 -1
  179. package/plugins/operator/between.d.ts +0 -7
  180. package/plugins/operator/between.js +0 -26
  181. package/plugins/operator/between.js.map +0 -1
  182. package/plugins/operator/contains.d.ts +0 -7
  183. package/plugins/operator/contains.js +0 -26
  184. package/plugins/operator/contains.js.map +0 -1
  185. package/plugins/operator/equal.d.ts +0 -7
  186. package/plugins/operator/equal.js.map +0 -1
  187. package/plugins/operator/gt.d.ts +0 -7
  188. package/plugins/operator/gt.js +0 -22
  189. package/plugins/operator/gt.js.map +0 -1
  190. package/plugins/operator/gte.d.ts +0 -7
  191. package/plugins/operator/gte.js +0 -22
  192. package/plugins/operator/gte.js.map +0 -1
  193. package/plugins/operator/in.d.ts +0 -7
  194. package/plugins/operator/in.js.map +0 -1
  195. package/plugins/operator/index.d.ts +0 -15
  196. package/plugins/operator/index.js +0 -15
  197. package/plugins/operator/lt.d.ts +0 -7
  198. package/plugins/operator/lt.js +0 -22
  199. package/plugins/operator/lt.js.map +0 -1
  200. package/plugins/operator/lte.d.ts +0 -7
  201. package/plugins/operator/lte.js +0 -22
  202. package/plugins/operator/lte.js.map +0 -1
  203. package/plugins/operator/not.d.ts +0 -7
  204. package/plugins/operator/not.js.map +0 -1
  205. package/plugins/operator/notBetween.d.ts +0 -7
  206. package/plugins/operator/notBetween.js +0 -26
  207. package/plugins/operator/notBetween.js.map +0 -1
  208. package/plugins/operator/notContains.d.ts +0 -7
  209. package/plugins/operator/notContains.js +0 -26
  210. package/plugins/operator/notContains.js.map +0 -1
  211. package/plugins/operator/notIn.d.ts +0 -7
  212. package/plugins/operator/notIn.js.map +0 -1
  213. package/plugins/operator/notStartsWith.d.ts +0 -7
  214. package/plugins/operator/notStartsWith.js +0 -21
  215. package/plugins/operator/notStartsWith.js.map +0 -1
  216. package/plugins/operator/startsWith.d.ts +0 -7
  217. package/plugins/operator/startsWith.js +0 -21
  218. package/plugins/operator/startsWith.js.map +0 -1
@@ -1,81 +0,0 @@
1
- import { Plugin } from "@webiny/plugins";
2
- import type { FieldSortOptions, SortOrder } from "../../types.js";
3
- export type UnmappedTypes = "date" | "long" | string;
4
- export interface ToSearchValueParams {
5
- /**
6
- * The value to transform.
7
- */
8
- value: any;
9
- /**
10
- * When using toSearchValue() in our code we send a field.getPath() value here.
11
- */
12
- path: string;
13
- /**
14
- * When using toSearchValue() in our code we send a field.getBasePath() value here.
15
- */
16
- basePath: string;
17
- }
18
- export interface OpenSearchFieldPluginParams {
19
- /**
20
- * Which field is this plugin for.
21
- */
22
- field: string;
23
- /**
24
- * Some specific path of a field?
25
- * Example: createdBy is createdBy.id
26
- */
27
- path?: string;
28
- /**
29
- * Add a .keyword at the end of the field path?
30
- */
31
- keyword?: boolean;
32
- /**
33
- * Is the field of a specific type, but possibly not mapped?
34
- * Happens when inserting a date in string format.
35
- * You need to cast it as date when running the search/sort to work correctly.
36
- */
37
- unmappedType?: UnmappedTypes;
38
- /**
39
- * Is the field sortable?
40
- */
41
- sortable?: boolean;
42
- /**
43
- * Is the field searchable?
44
- */
45
- searchable?: boolean;
46
- /**
47
- * Used to transform the input value for the search.
48
- */
49
- toSearchValue?: (params: ToSearchValueParams) => any;
50
- }
51
- export declare class OpenSearchFieldPlugin extends Plugin {
52
- static readonly type: string;
53
- static readonly ALL: string;
54
- readonly field: string;
55
- readonly path: string;
56
- readonly keyword: boolean;
57
- readonly unmappedType?: string;
58
- readonly sortable: boolean;
59
- readonly searchable: boolean;
60
- constructor(params: OpenSearchFieldPluginParams);
61
- /**
62
- * The default sort options. Extend in your own plugin if you want to add more options.
63
- */
64
- getSortOptions(order: SortOrder): FieldSortOptions;
65
- /**
66
- * The default path generator. Extend in your own plugin if you want to add more options.
67
- * Field parameter is here because there is a possibility that this is the ALL field plugin, so we need to know which field are we working on.
68
- */
69
- getPath(field: string): string;
70
- /**
71
- * @see getPath
72
- *
73
- * This is the default base path generator. Basically it replaces ALL with given field name.
74
- */
75
- getBasePath(field: string): string;
76
- /**
77
- * The default transformer. Just returns the value by default.
78
- * Override to implement what ever is required.
79
- */
80
- toSearchValue(params: ToSearchValueParams): any;
81
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/definition/OpenSearchFieldPlugin.js","sources":["../../../src/plugins/definition/OpenSearchFieldPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport type { FieldSortOptions, SortOrder } from \"~/types.js\";\n\nexport type UnmappedTypes = \"date\" | \"long\" | string;\n\nconst keywordLessUnmappedType = [\"date\", \"long\"];\n\nconst unmappedTypeHasKeyword = (type?: string): boolean => {\n if (!type) {\n return true;\n } else if (keywordLessUnmappedType.includes(type)) {\n return false;\n }\n return true;\n};\n\nexport interface ToSearchValueParams {\n /**\n * The value to transform.\n */\n value: any;\n /**\n * When using toSearchValue() in our code we send a field.getPath() value here.\n */\n path: string;\n /**\n * When using toSearchValue() in our code we send a field.getBasePath() value here.\n */\n basePath: string;\n}\nexport interface OpenSearchFieldPluginParams {\n /**\n * Which field is this plugin for.\n */\n field: string;\n /**\n * Some specific path of a field?\n * Example: createdBy is createdBy.id\n */\n path?: string;\n /**\n * Add a .keyword at the end of the field path?\n */\n keyword?: boolean;\n /**\n * Is the field of a specific type, but possibly not mapped?\n * Happens when inserting a date in string format.\n * You need to cast it as date when running the search/sort to work correctly.\n */\n unmappedType?: UnmappedTypes;\n /**\n * Is the field sortable?\n */\n sortable?: boolean;\n /**\n * Is the field searchable?\n */\n searchable?: boolean;\n /**\n * Used to transform the input value for the search.\n */\n toSearchValue?: (params: ToSearchValueParams) => any;\n}\n\nexport class OpenSearchFieldPlugin extends Plugin {\n public static override readonly type: string = \"opensearch.fieldDefinition\";\n public static readonly ALL: string = \"*\";\n\n public readonly field: string;\n public readonly path: string;\n public readonly keyword: boolean;\n public readonly unmappedType?: string;\n public readonly sortable: boolean;\n public readonly searchable: boolean;\n\n constructor(params: OpenSearchFieldPluginParams) {\n super();\n this.field = params.field;\n this.path = params.path || params.field;\n this.keyword = params.keyword === undefined ? true : params.keyword;\n this.unmappedType = params.unmappedType;\n if (unmappedTypeHasKeyword(params.unmappedType) === false) {\n this.keyword = false;\n }\n this.sortable = params.sortable === undefined ? true : params.sortable;\n this.searchable = params.searchable === undefined ? true : params.searchable;\n }\n /**\n * The default sort options. Extend in your own plugin if you want to add more options.\n */\n public getSortOptions(order: SortOrder): FieldSortOptions {\n const options = {\n order\n };\n if (!this.unmappedType) {\n return options;\n }\n return {\n ...options,\n // TODO: Cast to the proper MappingFieldType once deep opensearch _types/ imports are resolvable under bundler resolution.\n unmapped_type: this.unmappedType as any\n };\n }\n /**\n * The default path generator. Extend in your own plugin if you want to add more options.\n * Field parameter is here because there is a possibility that this is the ALL field plugin, so we need to know which field are we working on.\n */\n public getPath(field: string): string {\n return `${this.getBasePath(field)}${this.keyword ? \".keyword\" : \"\"}`;\n }\n /**\n * @see getPath\n *\n * This is the default base path generator. Basically it replaces ALL with given field name.\n */\n public getBasePath(field: string): string {\n if (this.path === OpenSearchFieldPlugin.ALL) {\n return field;\n }\n return this.path;\n }\n /**\n * The default transformer. Just returns the value by default.\n * Override to implement what ever is required.\n */\n public toSearchValue(params: ToSearchValueParams): any {\n return params.value;\n }\n}\n"],"names":["keywordLessUnmappedType","unmappedTypeHasKeyword","type","OpenSearchFieldPlugin","Plugin","params","undefined","order","options","field"],"mappings":";AAKA,MAAMA,0BAA0B;IAAC;IAAQ;CAAO;AAEhD,MAAMC,yBAAyB,CAACC;IAC5B,IAAKA,MAEE;QAAA,IAAIF,wBAAwB,QAAQ,CAACE,OACxC,OAAO;IACX;IACA,OAAO;AACX;AAkDO,MAAMC,8BAA8BC;;aACP,IAAI,GAAW;;;aACxB,GAAG,GAAW;;IASrC,YAAYC,MAAmC,CAAE;QAC7C,KAAK;QACL,IAAI,CAAC,KAAK,GAAGA,OAAO,KAAK;QACzB,IAAI,CAAC,IAAI,GAAGA,OAAO,IAAI,IAAIA,OAAO,KAAK;QACvC,IAAI,CAAC,OAAO,GAAGA,AAAmBC,WAAnBD,OAAO,OAAO,GAAiB,OAAOA,OAAO,OAAO;QACnE,IAAI,CAAC,YAAY,GAAGA,OAAO,YAAY;QACvC,IAAIJ,AAAgD,UAAhDA,uBAAuBI,OAAO,YAAY,GAC1C,IAAI,CAAC,OAAO,GAAG;QAEnB,IAAI,CAAC,QAAQ,GAAGA,AAAoBC,WAApBD,OAAO,QAAQ,GAAiB,OAAOA,OAAO,QAAQ;QACtE,IAAI,CAAC,UAAU,GAAGA,AAAsBC,WAAtBD,OAAO,UAAU,GAAiB,OAAOA,OAAO,UAAU;IAChF;IAIO,eAAeE,KAAgB,EAAoB;QACtD,MAAMC,UAAU;YACZD;QACJ;QACA,IAAI,CAAC,IAAI,CAAC,YAAY,EAClB,OAAOC;QAEX,OAAO;YACH,GAAGA,OAAO;YAEV,eAAe,IAAI,CAAC,YAAY;QACpC;IACJ;IAKO,QAAQC,KAAa,EAAU;QAClC,OAAO,GAAG,IAAI,CAAC,WAAW,CAACA,SAAS,IAAI,CAAC,OAAO,GAAG,aAAa,IAAI;IACxE;IAMO,YAAYA,KAAa,EAAU;QACtC,IAAI,IAAI,CAAC,IAAI,KAAKN,sBAAsB,GAAG,EACvC,OAAOM;QAEX,OAAO,IAAI,CAAC,IAAI;IACpB;IAKO,cAAcJ,MAA2B,EAAO;QACnD,OAAOA,OAAO,KAAK;IACvB;AACJ"}
@@ -1,10 +0,0 @@
1
- import { Plugin } from "@webiny/plugins";
2
- import type { OpenSearchIndexRequestBody } from "../../types.js";
3
- export interface OpenSearchIndexPluginParams {
4
- body: OpenSearchIndexRequestBody;
5
- }
6
- export declare abstract class OpenSearchIndexPlugin extends Plugin {
7
- readonly body: OpenSearchIndexRequestBody;
8
- constructor(params: OpenSearchIndexPluginParams);
9
- canUse(): boolean;
10
- }
@@ -1,16 +0,0 @@
1
- import { Plugin } from "@webiny/plugins";
2
- class OpenSearchIndexPlugin extends Plugin {
3
- constructor(params){
4
- super();
5
- const { body } = params;
6
- this.body = {
7
- ...body
8
- };
9
- }
10
- canUse() {
11
- return true;
12
- }
13
- }
14
- export { OpenSearchIndexPlugin };
15
-
16
- //# sourceMappingURL=OpenSearchIndexPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/definition/OpenSearchIndexPlugin.js","sources":["../../../src/plugins/definition/OpenSearchIndexPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport type { OpenSearchIndexRequestBody } from \"~/types.js\";\n\nexport interface OpenSearchIndexPluginParams {\n body: OpenSearchIndexRequestBody;\n}\n\nexport abstract class OpenSearchIndexPlugin extends Plugin {\n public readonly body: OpenSearchIndexRequestBody;\n\n public constructor(params: OpenSearchIndexPluginParams) {\n super();\n const { body } = params;\n this.body = {\n ...body\n };\n }\n\n public canUse(): boolean {\n return true;\n }\n}\n"],"names":["OpenSearchIndexPlugin","Plugin","params","body"],"mappings":";AAOO,MAAeA,8BAA8BC;IAGhD,YAAmBC,MAAmC,CAAE;QACpD,KAAK;QACL,MAAM,EAAEC,IAAI,EAAE,GAAGD;QACjB,IAAI,CAAC,IAAI,GAAG;YACR,GAAGC,IAAI;QACX;IACJ;IAEO,SAAkB;QACrB,OAAO;IACX;AACJ"}
@@ -1,10 +0,0 @@
1
- import { Plugin } from "@webiny/plugins";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- /**
4
- * Built-in operators name ends with .default because user can override the operator, just write a name without the .default keyword.
5
- */
6
- export declare abstract class OpenSearchQueryBuilderOperatorPlugin extends Plugin {
7
- static readonly type: string;
8
- abstract getOperator(): string;
9
- abstract apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
10
- }
@@ -1,9 +0,0 @@
1
- import { Plugin } from "@webiny/plugins";
2
- class OpenSearchQueryBuilderOperatorPlugin extends Plugin {
3
- static{
4
- this.type = "opensearch.queryBuilder.operator";
5
- }
6
- }
7
- export { OpenSearchQueryBuilderOperatorPlugin };
8
-
9
- //# sourceMappingURL=OpenSearchQueryBuilderOperatorPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js","sources":["../../../src/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\n/**\n * Built-in operators name ends with .default because user can override the operator, just write a name without the .default keyword.\n */\nexport abstract class OpenSearchQueryBuilderOperatorPlugin extends Plugin {\n public static override readonly type: string = \"opensearch.queryBuilder.operator\";\n\n public abstract getOperator(): string;\n\n public abstract apply(\n query: OpenSearchBoolQueryConfig,\n params: OpenSearchQueryBuilderArgsPlugin\n ): void;\n}\n"],"names":["OpenSearchQueryBuilderOperatorPlugin","Plugin"],"mappings":";AAMO,MAAeA,6CAA6CC;;aAC/B,IAAI,GAAW;;AAQnD"}
@@ -1,14 +0,0 @@
1
- import { Plugin } from "@webiny/plugins";
2
- import type { OpenSearchBoolQueryConfig } from "../../types.js";
3
- export interface ModifyQueryParams {
4
- query: OpenSearchBoolQueryConfig;
5
- where: Record<string, any>;
6
- }
7
- export interface ModifyQueryCallable<T extends ModifyQueryParams> {
8
- (params: T): void;
9
- }
10
- export declare abstract class OpenSearchQueryModifierPlugin<T extends ModifyQueryParams = ModifyQueryParams> extends Plugin {
11
- private readonly callable?;
12
- constructor(callable?: ModifyQueryCallable<T>);
13
- modifyQuery(params: T): void;
14
- }
@@ -1,17 +0,0 @@
1
- import error from "@webiny/error";
2
- import { Plugin } from "@webiny/plugins";
3
- class OpenSearchQueryModifierPlugin extends Plugin {
4
- constructor(callable){
5
- super();
6
- this.callable = callable;
7
- }
8
- modifyQuery(params) {
9
- if ("function" != typeof this.callable) throw new error("Missing modification for the query.", "QUERY_MODIFICATION_MISSING", {
10
- params
11
- });
12
- this.callable(params);
13
- }
14
- }
15
- export { OpenSearchQueryModifierPlugin };
16
-
17
- //# sourceMappingURL=OpenSearchQueryModifierPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/definition/OpenSearchQueryModifierPlugin.js","sources":["../../../src/plugins/definition/OpenSearchQueryModifierPlugin.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { Plugin } from \"@webiny/plugins\";\nimport type { OpenSearchBoolQueryConfig } from \"~/types.js\";\n\nexport interface ModifyQueryParams {\n query: OpenSearchBoolQueryConfig;\n where: Record<string, any>;\n}\n\nexport interface ModifyQueryCallable<T extends ModifyQueryParams> {\n (params: T): void;\n}\n\nexport abstract class OpenSearchQueryModifierPlugin<\n T extends ModifyQueryParams = ModifyQueryParams\n> extends Plugin {\n private readonly callable?: ModifyQueryCallable<T>;\n\n public constructor(callable?: ModifyQueryCallable<T>) {\n super();\n this.callable = callable;\n }\n\n public modifyQuery(params: T): void {\n if (typeof this.callable !== \"function\") {\n throw new WebinyError(\n `Missing modification for the query.`,\n \"QUERY_MODIFICATION_MISSING\",\n {\n params\n }\n );\n }\n this.callable(params);\n }\n}\n"],"names":["OpenSearchQueryModifierPlugin","Plugin","callable","params","WebinyError"],"mappings":";;AAaO,MAAeA,sCAEZC;IAGN,YAAmBC,QAAiC,CAAE;QAClD,KAAK;QACL,IAAI,CAAC,QAAQ,GAAGA;IACpB;IAEO,YAAYC,MAAS,EAAQ;QAChC,IAAI,AAAyB,cAAzB,OAAO,IAAI,CAAC,QAAQ,EACpB,MAAM,IAAIC,MACN,uCACA,8BACA;YACID;QACJ;QAGR,IAAI,CAAC,QAAQ,CAACA;IAClB;AACJ"}
@@ -1,13 +0,0 @@
1
- import { Plugin } from "@webiny/plugins";
2
- import type { Sort } from "../../types.js";
3
- export interface ModifySortParams {
4
- sort: Sort;
5
- }
6
- export interface ModifySortCallable<T extends ModifySortParams> {
7
- (params: T): void;
8
- }
9
- export declare abstract class OpenSearchSortModifierPlugin<T extends ModifySortParams = ModifySortParams> extends Plugin {
10
- private readonly callable?;
11
- constructor(callable?: ModifySortCallable<T>);
12
- modifySort(params: T): void;
13
- }
@@ -1,17 +0,0 @@
1
- import error from "@webiny/error";
2
- import { Plugin } from "@webiny/plugins";
3
- class OpenSearchSortModifierPlugin extends Plugin {
4
- constructor(callable){
5
- super();
6
- this.callable = callable;
7
- }
8
- modifySort(params) {
9
- if ("function" != typeof this.callable) throw new error("Missing modification for the sort.", "SORT_MODIFICATION_MISSING", {
10
- params
11
- });
12
- this.callable(params);
13
- }
14
- }
15
- export { OpenSearchSortModifierPlugin };
16
-
17
- //# sourceMappingURL=OpenSearchSortModifierPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/definition/OpenSearchSortModifierPlugin.js","sources":["../../../src/plugins/definition/OpenSearchSortModifierPlugin.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { Plugin } from \"@webiny/plugins\";\nimport type { Sort } from \"~/types.js\";\n\nexport interface ModifySortParams {\n sort: Sort;\n}\n\nexport interface ModifySortCallable<T extends ModifySortParams> {\n (params: T): void;\n}\n\nexport abstract class OpenSearchSortModifierPlugin<\n T extends ModifySortParams = ModifySortParams\n> extends Plugin {\n private readonly callable?: ModifySortCallable<T>;\n\n public constructor(callable?: ModifySortCallable<T>) {\n super();\n this.callable = callable;\n }\n\n public modifySort(params: T): void {\n if (typeof this.callable !== \"function\") {\n throw new WebinyError(\n `Missing modification for the sort.`,\n \"SORT_MODIFICATION_MISSING\",\n {\n params\n }\n );\n }\n this.callable(params);\n }\n}\n"],"names":["OpenSearchSortModifierPlugin","Plugin","callable","params","WebinyError"],"mappings":";;AAYO,MAAeA,qCAEZC;IAGN,YAAmBC,QAAgC,CAAE;QACjD,KAAK;QACL,IAAI,CAAC,QAAQ,GAAGA;IACpB;IAEO,WAAWC,MAAS,EAAQ;QAC/B,IAAI,AAAyB,cAAzB,OAAO,IAAI,CAAC,QAAQ,EACpB,MAAM,IAAIC,MACN,sCACA,6BACA;YACID;QACJ;QAGR,IAAI,CAAC,QAAQ,CAACA;IAClB;AACJ"}
@@ -1,6 +0,0 @@
1
- export * from "./OpenSearchBodyModifierPlugin.js";
2
- export * from "./OpenSearchFieldPlugin.js";
3
- export * from "./OpenSearchIndexPlugin.js";
4
- export * from "./OpenSearchQueryBuilderOperatorPlugin.js";
5
- export * from "./OpenSearchQueryModifierPlugin.js";
6
- export * from "./OpenSearchSortModifierPlugin.js";
@@ -1,6 +0,0 @@
1
- export * from "./OpenSearchBodyModifierPlugin.js";
2
- export * from "./OpenSearchFieldPlugin.js";
3
- export * from "./OpenSearchIndexPlugin.js";
4
- export * from "./OpenSearchQueryBuilderOperatorPlugin.js";
5
- export * from "./OpenSearchQueryModifierPlugin.js";
6
- export * from "./OpenSearchSortModifierPlugin.js";
@@ -1,2 +0,0 @@
1
- export * from "./definition/index.js";
2
- export * from "./operator/index.js";
package/plugins/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./definition/index.js";
2
- export * from "./operator/index.js";
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorAndInPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/andIn.js","sources":["../../../src/plugins/operator/andIn.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorAndInPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.andIn.default\";\n\n public getOperator(): string {\n return \"and_in\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value: values, path, basePath } = params;\n const isArray = Array.isArray(values);\n if (isArray === false || values.length === 0) {\n throw new Error(\n `You cannot filter field \"${path}\" with \"in\" operator and not send an array of values.`\n );\n }\n\n let useBasePath = false;\n // Only use \".keyword\" if all of the provided values are strings.\n for (const value of values) {\n if (typeof value !== \"string\") {\n useBasePath = true;\n break;\n }\n }\n\n for (const value of values) {\n query.filter.push({\n term: {\n [useBasePath ? basePath : path]: value\n }\n });\n }\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorAndInPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","values","path","basePath","isArray","Array","Error","useBasePath","value"],"mappings":";AAGO,MAAMA,kDAAkDC;IAGpD,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAE,OAAOC,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGH;QAC1C,MAAMI,UAAUC,MAAM,OAAO,CAACJ;QAC9B,IAAIG,AAAY,UAAZA,WAAqBH,AAAkB,MAAlBA,OAAO,MAAM,EAClC,MAAM,IAAIK,MACN,CAAC,yBAAyB,EAAEJ,KAAK,qDAAqD,CAAC;QAI/F,IAAIK,cAAc;QAElB,KAAK,MAAMC,SAASP,OAChB,IAAI,AAAiB,YAAjB,OAAOO,OAAoB;YAC3BD,cAAc;YACd;QACJ;QAGJ,KAAK,MAAMC,SAASP,OAChBF,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,MAAM;gBACF,CAACQ,cAAcJ,WAAWD,KAAK,EAAEM;YACrC;QACJ;IAER;;QAhCG,qBACa,IAAI,GAAG;;AAgC3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorBetweenPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1,26 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- class OpenSearchQueryBuilderOperatorBetweenPlugin extends OpenSearchQueryBuilderOperatorPlugin {
3
- getOperator() {
4
- return "between";
5
- }
6
- apply(query, params) {
7
- const { value, basePath, name } = params;
8
- if (false === Array.isArray(value)) throw new Error(`You cannot filter field path "${name}" with between query and not send an array of values.`);
9
- if (2 !== value.length) throw new Error(`You must pass 2 values in the array for field path "${name}" filtering.`);
10
- const [gte, lte] = value;
11
- query.filter.push({
12
- range: {
13
- [basePath]: {
14
- lte,
15
- gte
16
- }
17
- }
18
- });
19
- }
20
- constructor(...args){
21
- super(...args), this.name = "opensearch.queryBuilder.operator.between.default";
22
- }
23
- }
24
- export { OpenSearchQueryBuilderOperatorBetweenPlugin };
25
-
26
- //# sourceMappingURL=between.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/between.js","sources":["../../../src/plugins/operator/between.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorBetweenPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.between.default\";\n\n public getOperator(): string {\n return \"between\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, basePath, name } = params;\n if (Array.isArray(value) === false) {\n throw new Error(\n `You cannot filter field path \"${name}\" with between query and not send an array of values.`\n );\n } else if (value.length !== 2) {\n throw new Error(\n `You must pass 2 values in the array for field path \"${name}\" filtering.`\n );\n }\n // we take gte first because it should be a lesser value than lte, eg [5, 10]\n // 6 >= gte && 6 <= lte\n const [gte, lte] = value;\n query.filter.push({\n range: {\n [basePath]: {\n lte,\n gte\n }\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorBetweenPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","basePath","name","Array","Error","gte","lte"],"mappings":";AAGO,MAAMA,oDAAoDC;IAGtD,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGH;QAClC,IAAII,AAAyB,UAAzBA,MAAM,OAAO,CAACH,QACd,MAAM,IAAII,MACN,CAAC,8BAA8B,EAAEF,KAAK,qDAAqD,CAAC;QAE7F,IAAIF,AAAiB,MAAjBA,MAAM,MAAM,EACnB,MAAM,IAAII,MACN,CAAC,oDAAoD,EAAEF,KAAK,YAAY,CAAC;QAKjF,MAAM,CAACG,KAAKC,IAAI,GAAGN;QACnBF,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,OAAO;gBACH,CAACG,SAAS,EAAE;oBACRK;oBACAD;gBACJ;YACJ;QACJ;IACJ;;QA7BG,qBACa,IAAI,GAAG;;AA6B3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorContainsPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1,26 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import { normalizeValueWithAsterisk } from "../../normalize.js";
3
- class OpenSearchQueryBuilderOperatorContainsPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- getOperator() {
5
- return "contains";
6
- }
7
- apply(query, params) {
8
- const { value, basePath } = params;
9
- query.must.push({
10
- query_string: {
11
- allow_leading_wildcard: true,
12
- fields: [
13
- basePath
14
- ],
15
- query: normalizeValueWithAsterisk(value),
16
- default_operator: "and"
17
- }
18
- });
19
- }
20
- constructor(...args){
21
- super(...args), this.name = "opensearch.queryBuilder.operator.contains.default";
22
- }
23
- }
24
- export { OpenSearchQueryBuilderOperatorContainsPlugin };
25
-
26
- //# sourceMappingURL=contains.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/contains.js","sources":["../../../src/plugins/operator/contains.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport { normalizeValueWithAsterisk } from \"~/normalize.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorContainsPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.contains.default\";\n\n public getOperator(): string {\n return \"contains\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, basePath } = params;\n query.must.push({\n query_string: {\n allow_leading_wildcard: true,\n fields: [basePath],\n query: normalizeValueWithAsterisk(value),\n default_operator: \"and\"\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorContainsPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","basePath","normalizeValueWithAsterisk"],"mappings":";;AAIO,MAAMA,qDAAqDC;IAGvD,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAE,GAAGF;QAC5BD,MAAM,IAAI,CAAC,IAAI,CAAC;YACZ,cAAc;gBACV,wBAAwB;gBACxB,QAAQ;oBAACG;iBAAS;gBAClB,OAAOC,2BAA2BF;gBAClC,kBAAkB;YACtB;QACJ;IACJ;;QAjBG,qBACa,IAAI,GAAG;;AAiB3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorEqualPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/equal.js","sources":["../../../src/plugins/operator/equal.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorEqualPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.equal.default\";\n\n public getOperator(): string {\n return \"eq\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, path, basePath } = params;\n\n if (value === null || value === undefined) {\n query.must_not.push({\n exists: {\n field: path\n }\n });\n return;\n }\n const typeOf = typeof value;\n /**\n * If value is a number or boolean, use filtering instead of must/term\n */\n if (typeOf === \"number\" || typeOf === \"boolean\") {\n query.filter.push({\n term: {\n [basePath]: value\n }\n });\n return;\n }\n /**\n * In case we are searching for a string, use regular path.\n * Otherwise use base path.\n */\n const useBasePath = typeOf !== \"string\";\n const valuePath = useBasePath ? basePath : path;\n /**\n * String or something else.\n */\n query.filter.push({\n term: {\n [valuePath]: value\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorEqualPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","path","basePath","typeOf","useBasePath","valuePath"],"mappings":";AAGO,MAAMA,kDAAkDC;IAGpD,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGH;QAElC,IAAIC,QAAAA,OAAuC,YACvCF,MAAM,QAAQ,CAAC,IAAI,CAAC;YAChB,QAAQ;gBACJ,OAAOG;YACX;QACJ;QAGJ,MAAME,SAAS,OAAOH;QAItB,IAAIG,AAAW,aAAXA,UAAuBA,AAAW,cAAXA,QAAsB,YAC7CL,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,MAAM;gBACF,CAACI,SAAS,EAAEF;YAChB;QACJ;QAOJ,MAAMI,cAAcD,AAAW,aAAXA;QACpB,MAAME,YAAYD,cAAcF,WAAWD;QAI3CH,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,MAAM;gBACF,CAACO,UAAU,EAAEL;YACjB;QACJ;IACJ;;QA5CG,qBACa,IAAI,GAAG;;AA4C3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorGreaterThanPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1,22 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- class OpenSearchQueryBuilderOperatorGreaterThanPlugin extends OpenSearchQueryBuilderOperatorPlugin {
3
- getOperator() {
4
- return "gt";
5
- }
6
- apply(query, params) {
7
- const { value, basePath } = params;
8
- query.filter.push({
9
- range: {
10
- [basePath]: {
11
- gt: value
12
- }
13
- }
14
- });
15
- }
16
- constructor(...args){
17
- super(...args), this.name = "opensearch.queryBuilder.operator.greaterThan.default";
18
- }
19
- }
20
- export { OpenSearchQueryBuilderOperatorGreaterThanPlugin };
21
-
22
- //# sourceMappingURL=gt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/gt.js","sources":["../../../src/plugins/operator/gt.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorGreaterThanPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.greaterThan.default\";\n\n public getOperator(): string {\n return \"gt\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, basePath } = params;\n query.filter.push({\n range: {\n [basePath]: {\n gt: value\n }\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorGreaterThanPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","basePath"],"mappings":";AAGO,MAAMA,wDAAwDC;IAG1D,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAE,GAAGF;QAC5BD,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,OAAO;gBACH,CAACG,SAAS,EAAE;oBACR,IAAID;gBACR;YACJ;QACJ;IACJ;;QAhBG,qBACa,IAAI,GAAG;;AAgB3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorGreaterThanOrEqualToPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1,22 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- class OpenSearchQueryBuilderOperatorGreaterThanOrEqualToPlugin extends OpenSearchQueryBuilderOperatorPlugin {
3
- getOperator() {
4
- return "gte";
5
- }
6
- apply(query, params) {
7
- const { value, basePath } = params;
8
- query.filter.push({
9
- range: {
10
- [basePath]: {
11
- gte: value
12
- }
13
- }
14
- });
15
- }
16
- constructor(...args){
17
- super(...args), this.name = "opensearch.queryBuilder.operator.greaterThanOrEqualTo.default";
18
- }
19
- }
20
- export { OpenSearchQueryBuilderOperatorGreaterThanOrEqualToPlugin };
21
-
22
- //# sourceMappingURL=gte.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/gte.js","sources":["../../../src/plugins/operator/gte.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorGreaterThanOrEqualToPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.greaterThanOrEqualTo.default\";\n\n public getOperator(): string {\n return \"gte\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, basePath } = params;\n query.filter.push({\n range: {\n [basePath]: {\n gte: value\n }\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorGreaterThanOrEqualToPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","basePath"],"mappings":";AAGO,MAAMA,iEAAiEC;IAGnE,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAE,GAAGF;QAC5BD,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,OAAO;gBACH,CAACG,SAAS,EAAE;oBACR,KAAKD;gBACT;YACJ;QACJ;IACJ;;QAhBG,qBACa,IAAI,GAAG;;AAgB3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorInPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/in.js","sources":["../../../src/plugins/operator/in.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorInPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.in.default\";\n\n public getOperator(): string {\n return \"in\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value: values, path, basePath, name } = params;\n const isArray = Array.isArray(values);\n if (isArray === false || values.length === 0) {\n throw new Error(\n `You cannot filter field \"${name}\" with \"in\" operator and not send an array of values.`\n );\n }\n\n // Only use \".keyword\" if all of the provided values are strings.\n const useBasePath = values.some(\n (value: string | number | boolean | null | undefined) => typeof value !== \"string\"\n );\n\n query.filter.push({\n terms: {\n [useBasePath ? basePath : path]: values\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorInPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","values","path","basePath","name","isArray","Array","Error","useBasePath","value"],"mappings":";AAGO,MAAMA,+CAA+CC;IAGjD,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAE,OAAOC,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGJ;QAChD,MAAMK,UAAUC,MAAM,OAAO,CAACL;QAC9B,IAAII,AAAY,UAAZA,WAAqBJ,AAAkB,MAAlBA,OAAO,MAAM,EAClC,MAAM,IAAIM,MACN,CAAC,yBAAyB,EAAEH,KAAK,qDAAqD,CAAC;QAK/F,MAAMI,cAAcP,OAAO,IAAI,CAC3B,CAACQ,QAAwD,AAAiB,YAAjB,OAAOA;QAGpEV,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,OAAO;gBACH,CAACS,cAAcL,WAAWD,KAAK,EAAED;YACrC;QACJ;IACJ;;QA1BG,qBACa,IAAI,GAAG;;AA0B3B"}
@@ -1,15 +0,0 @@
1
- export * from "./between.js";
2
- export * from "./contains.js";
3
- export * from "./equal.js";
4
- export * from "./gt.js";
5
- export * from "./gte.js";
6
- export * from "./andIn.js";
7
- export * from "./in.js";
8
- export * from "./lt.js";
9
- export * from "./lte.js";
10
- export * from "./not.js";
11
- export * from "./notBetween.js";
12
- export * from "./notContains.js";
13
- export * from "./notIn.js";
14
- export * from "./startsWith.js";
15
- export * from "./notStartsWith.js";
@@ -1,15 +0,0 @@
1
- export * from "./between.js";
2
- export * from "./contains.js";
3
- export * from "./equal.js";
4
- export * from "./gt.js";
5
- export * from "./gte.js";
6
- export * from "./andIn.js";
7
- export * from "./in.js";
8
- export * from "./lt.js";
9
- export * from "./lte.js";
10
- export * from "./not.js";
11
- export * from "./notBetween.js";
12
- export * from "./notContains.js";
13
- export * from "./notIn.js";
14
- export * from "./startsWith.js";
15
- export * from "./notStartsWith.js";
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorLesserThanPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1,22 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- class OpenSearchQueryBuilderOperatorLesserThanPlugin extends OpenSearchQueryBuilderOperatorPlugin {
3
- getOperator() {
4
- return "lt";
5
- }
6
- apply(query, params) {
7
- const { value, basePath } = params;
8
- query.filter.push({
9
- range: {
10
- [basePath]: {
11
- lt: value
12
- }
13
- }
14
- });
15
- }
16
- constructor(...args){
17
- super(...args), this.name = "opensearch.queryBuilder.operator.lesserThan.default";
18
- }
19
- }
20
- export { OpenSearchQueryBuilderOperatorLesserThanPlugin };
21
-
22
- //# sourceMappingURL=lt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/lt.js","sources":["../../../src/plugins/operator/lt.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorLesserThanPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.lesserThan.default\";\n\n public getOperator(): string {\n return \"lt\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, basePath } = params;\n query.filter.push({\n range: {\n [basePath]: {\n lt: value\n }\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorLesserThanPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","basePath"],"mappings":";AAGO,MAAMA,uDAAuDC;IAGzD,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAE,GAAGF;QAC5BD,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,OAAO;gBACH,CAACG,SAAS,EAAE;oBACR,IAAID;gBACR;YACJ;QACJ;IACJ;;QAhBG,qBACa,IAAI,GAAG;;AAgB3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorLesserThanOrEqualToPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1,22 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- class OpenSearchQueryBuilderOperatorLesserThanOrEqualToPlugin extends OpenSearchQueryBuilderOperatorPlugin {
3
- getOperator() {
4
- return "lte";
5
- }
6
- apply(query, params) {
7
- const { value, basePath } = params;
8
- query.filter.push({
9
- range: {
10
- [basePath]: {
11
- lte: value
12
- }
13
- }
14
- });
15
- }
16
- constructor(...args){
17
- super(...args), this.name = "opensearch.queryBuilder.operator.lesserThanOrEqualTo.default";
18
- }
19
- }
20
- export { OpenSearchQueryBuilderOperatorLesserThanOrEqualToPlugin };
21
-
22
- //# sourceMappingURL=lte.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/lte.js","sources":["../../../src/plugins/operator/lte.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorLesserThanOrEqualToPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.lesserThanOrEqualTo.default\";\n\n public getOperator(): string {\n return \"lte\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, basePath } = params;\n query.filter.push({\n range: {\n [basePath]: {\n lte: value\n }\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorLesserThanOrEqualToPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","basePath"],"mappings":";AAGO,MAAMA,gEAAgEC;IAGlE,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAE,GAAGF;QAC5BD,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,OAAO;gBACH,CAACG,SAAS,EAAE;oBACR,KAAKD;gBACT;YACJ;QACJ;IACJ;;QAhBG,qBACa,IAAI,GAAG;;AAgB3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorNotPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins/operator/not.js","sources":["../../../src/plugins/operator/not.ts"],"sourcesContent":["import { OpenSearchQueryBuilderOperatorPlugin } from \"~/plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js\";\nimport type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from \"~/types.js\";\n\nexport class OpenSearchQueryBuilderOperatorNotPlugin extends OpenSearchQueryBuilderOperatorPlugin {\n public override name = \"opensearch.queryBuilder.operator.not.default\";\n\n public getOperator(): string {\n return \"not\";\n }\n\n public apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void {\n const { value, path, basePath } = params;\n\n if (value === null || value === undefined) {\n query.filter.push({\n exists: {\n field: path\n }\n });\n return;\n }\n\n const typeOf = typeof value;\n\n if (typeOf === \"boolean\") {\n query.filter.push({\n bool: {\n must_not: {\n term: {\n [path]: value\n }\n }\n }\n });\n return;\n }\n\n const useBasePath = typeOf !== \"string\";\n const valuePath = useBasePath ? basePath : path;\n query.must_not.push({\n term: {\n [valuePath]: value\n }\n });\n }\n}\n"],"names":["OpenSearchQueryBuilderOperatorNotPlugin","OpenSearchQueryBuilderOperatorPlugin","query","params","value","path","basePath","typeOf","useBasePath","valuePath"],"mappings":";AAGO,MAAMA,gDAAgDC;IAGlD,cAAsB;QACzB,OAAO;IACX;IAEO,MAAMC,KAAgC,EAAEC,MAAwC,EAAQ;QAC3F,MAAM,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGH;QAElC,IAAIC,QAAAA,OAAuC,YACvCF,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,QAAQ;gBACJ,OAAOG;YACX;QACJ;QAIJ,MAAME,SAAS,OAAOH;QAEtB,IAAIG,AAAW,cAAXA,QAAsB,YACtBL,MAAM,MAAM,CAAC,IAAI,CAAC;YACd,MAAM;gBACF,UAAU;oBACN,MAAM;wBACF,CAACG,KAAK,EAAED;oBACZ;gBACJ;YACJ;QACJ;QAIJ,MAAMI,cAAcD,AAAW,aAAXA;QACpB,MAAME,YAAYD,cAAcF,WAAWD;QAC3CH,MAAM,QAAQ,CAAC,IAAI,CAAC;YAChB,MAAM;gBACF,CAACO,UAAU,EAAEL;YACjB;QACJ;IACJ;;QAzCG,qBACa,IAAI,GAAG;;AAyC3B"}
@@ -1,7 +0,0 @@
1
- import { OpenSearchQueryBuilderOperatorPlugin } from "../../plugins/definition/OpenSearchQueryBuilderOperatorPlugin.js";
2
- import type { OpenSearchBoolQueryConfig, OpenSearchQueryBuilderArgsPlugin } from "../../types.js";
3
- export declare class OpenSearchQueryBuilderOperatorNotBetweenPlugin extends OpenSearchQueryBuilderOperatorPlugin {
4
- name: string;
5
- getOperator(): string;
6
- apply(query: OpenSearchBoolQueryConfig, params: OpenSearchQueryBuilderArgsPlugin): void;
7
- }