@webiny/api-elasticsearch 5.37.8-beta.0 → 5.38.0-beta.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 (52) hide show
  1. package/client.js +3 -1
  2. package/compression.js +3 -2
  3. package/compression.js.map +1 -1
  4. package/cursors.js +3 -1
  5. package/index.d.ts +1 -0
  6. package/index.js +15 -1
  7. package/index.js.map +1 -1
  8. package/indexConfiguration/base.js +3 -1
  9. package/indexConfiguration/common.js +3 -1
  10. package/indexConfiguration/index.js +3 -1
  11. package/indexConfiguration/japanese.js +3 -1
  12. package/indices.js +3 -1
  13. package/limit.js +3 -1
  14. package/normalize.js +3 -1
  15. package/operators.js +3 -1
  16. package/package.json +8 -8
  17. package/plugins/GzipCompression.js +3 -1
  18. package/plugins/definition/CompressionPlugin.js +3 -1
  19. package/plugins/definition/ElasticsearchBodyModifierPlugin.js +3 -1
  20. package/plugins/definition/ElasticsearchFieldPlugin.js +3 -1
  21. package/plugins/definition/ElasticsearchIndexPlugin.js +3 -1
  22. package/plugins/definition/ElasticsearchQueryBuilderOperatorPlugin.js +3 -1
  23. package/plugins/definition/ElasticsearchQueryModifierPlugin.js +3 -1
  24. package/plugins/definition/ElasticsearchSortModifierPlugin.js +3 -1
  25. package/plugins/definition/index.js +3 -1
  26. package/plugins/index.js +3 -1
  27. package/plugins/operator/andIn.js +3 -1
  28. package/plugins/operator/between.js +3 -1
  29. package/plugins/operator/contains.js +3 -1
  30. package/plugins/operator/equal.js +3 -1
  31. package/plugins/operator/gt.js +3 -1
  32. package/plugins/operator/gte.js +3 -1
  33. package/plugins/operator/in.js +3 -1
  34. package/plugins/operator/index.js +3 -1
  35. package/plugins/operator/japanese/contains.js +3 -1
  36. package/plugins/operator/lt.js +3 -1
  37. package/plugins/operator/lte.js +3 -1
  38. package/plugins/operator/not.js +3 -1
  39. package/plugins/operator/notBetween.js +3 -1
  40. package/plugins/operator/notContains.js +3 -1
  41. package/plugins/operator/notIn.js +3 -1
  42. package/plugins/operator/notStartsWith.js +3 -1
  43. package/plugins/operator/startsWith.js +3 -1
  44. package/sort.js +3 -1
  45. package/types.js +3 -1
  46. package/utils/createIndex.d.ts +20 -0
  47. package/utils/createIndex.js +97 -0
  48. package/utils/createIndex.js.map +1 -0
  49. package/utils/index.d.ts +1 -0
  50. package/utils/index.js +18 -0
  51. package/utils/index.js.map +1 -0
  52. package/where.js +3 -1
package/client.js CHANGED
@@ -44,4 +44,6 @@ const createElasticsearchClient = options => {
44
44
  throw new _error.default("Could not connect to Elasticsearch.", "ELASTICSEARCH_CLIENT_ERROR", data);
45
45
  }
46
46
  };
47
- exports.createElasticsearchClient = createElasticsearchClient;
47
+ exports.createElasticsearchClient = createElasticsearchClient;
48
+
49
+ //# sourceMappingURL=client.js.map
package/compression.js CHANGED
@@ -17,7 +17,6 @@ const getCompressionPlugins = plugins => {
17
17
  const compress = async (pluginsContainer, data) => {
18
18
  const plugins = getCompressionPlugins(pluginsContainer);
19
19
  if (plugins.length === 0) {
20
- console.log("No compression plugins");
21
20
  return data;
22
21
  }
23
22
  for (const plugin of plugins) {
@@ -48,4 +47,6 @@ const decompress = async (pluginsContainer, data) => {
48
47
  */
49
48
  return data;
50
49
  };
51
- exports.decompress = decompress;
50
+ exports.decompress = decompress;
51
+
52
+ //# sourceMappingURL=compression.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_CompressionPlugin","require","getCompressionPlugins","plugins","byType","CompressionPlugin","type","reverse","compress","pluginsContainer","data","length","console","log","plugin","canCompress","exports","decompress","canDecompress"],"sources":["compression.ts"],"sourcesContent":["import { CompressionPlugin } from \"~/plugins/definition/CompressionPlugin\";\nimport { PluginsContainer } from \"@webiny/plugins\";\n\n/**\n * Get the compression plugins, in reverse order, because we want to use the last one added - first.\n */\nconst getCompressionPlugins = (plugins: PluginsContainer): CompressionPlugin[] => {\n return plugins.byType<CompressionPlugin>(CompressionPlugin.type).reverse();\n};\n/**\n * Method to compress the elasticsearch data that is going to be stored into the DynamoDB table that is meant for elasticsearch.\n */\nexport const compress = async (\n pluginsContainer: PluginsContainer,\n data: Record<string, any>\n): Promise<Record<string, any>> => {\n const plugins = getCompressionPlugins(pluginsContainer);\n if (plugins.length === 0) {\n console.log(\"No compression plugins\");\n return data;\n }\n for (const plugin of plugins) {\n if (plugin.canCompress(data) === false) {\n continue;\n }\n return await plugin.compress(data);\n }\n /**\n * Possibly no plugins that can compress, just return the data.\n */\n return data;\n};\n\nexport const decompress = async (\n pluginsContainer: PluginsContainer,\n data: Record<string, any>\n): Promise<Record<string, any>> => {\n const plugins = getCompressionPlugins(pluginsContainer);\n if (plugins.length === 0) {\n return data;\n }\n for (const plugin of plugins) {\n if (plugin.canDecompress(data) === false) {\n continue;\n }\n return await plugin.decompress(data);\n }\n /**\n * Possibly no plugins that can decompress, just return the data.\n */\n return data;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA,MAAMC,qBAAqB,GAAIC,OAAyB,IAA0B;EAC9E,OAAOA,OAAO,CAACC,MAAM,CAAoBC,oCAAiB,CAACC,IAAI,CAAC,CAACC,OAAO,CAAC,CAAC;AAC9E,CAAC;AACD;AACA;AACA;AACO,MAAMC,QAAQ,GAAG,MAAAA,CACpBC,gBAAkC,EAClCC,IAAyB,KACM;EAC/B,MAAMP,OAAO,GAAGD,qBAAqB,CAACO,gBAAgB,CAAC;EACvD,IAAIN,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;IACtBC,OAAO,CAACC,GAAG,CAAC,wBAAwB,CAAC;IACrC,OAAOH,IAAI;EACf;EACA,KAAK,MAAMI,MAAM,IAAIX,OAAO,EAAE;IAC1B,IAAIW,MAAM,CAACC,WAAW,CAACL,IAAI,CAAC,KAAK,KAAK,EAAE;MACpC;IACJ;IACA,OAAO,MAAMI,MAAM,CAACN,QAAQ,CAACE,IAAI,CAAC;EACtC;EACA;AACJ;AACA;EACI,OAAOA,IAAI;AACf,CAAC;AAACM,OAAA,CAAAR,QAAA,GAAAA,QAAA;AAEK,MAAMS,UAAU,GAAG,MAAAA,CACtBR,gBAAkC,EAClCC,IAAyB,KACM;EAC/B,MAAMP,OAAO,GAAGD,qBAAqB,CAACO,gBAAgB,CAAC;EACvD,IAAIN,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;IACtB,OAAOD,IAAI;EACf;EACA,KAAK,MAAMI,MAAM,IAAIX,OAAO,EAAE;IAC1B,IAAIW,MAAM,CAACI,aAAa,CAACR,IAAI,CAAC,KAAK,KAAK,EAAE;MACtC;IACJ;IACA,OAAO,MAAMI,MAAM,CAACG,UAAU,CAACP,IAAI,CAAC;EACxC;EACA;AACJ;AACA;EACI,OAAOA,IAAI;AACf,CAAC;AAACM,OAAA,CAAAC,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"names":["_CompressionPlugin","require","getCompressionPlugins","plugins","byType","CompressionPlugin","type","reverse","compress","pluginsContainer","data","length","plugin","canCompress","exports","decompress","canDecompress"],"sources":["compression.ts"],"sourcesContent":["import { CompressionPlugin } from \"~/plugins/definition/CompressionPlugin\";\nimport { PluginsContainer } from \"@webiny/plugins\";\n\n/**\n * Get the compression plugins, in reverse order, because we want to use the last one added - first.\n */\nconst getCompressionPlugins = (plugins: PluginsContainer): CompressionPlugin[] => {\n return plugins.byType<CompressionPlugin>(CompressionPlugin.type).reverse();\n};\n/**\n * Method to compress the elasticsearch data that is going to be stored into the DynamoDB table that is meant for elasticsearch.\n */\nexport const compress = async (\n pluginsContainer: PluginsContainer,\n data: Record<string, any>\n): Promise<Record<string, any>> => {\n const plugins = getCompressionPlugins(pluginsContainer);\n if (plugins.length === 0) {\n return data;\n }\n for (const plugin of plugins) {\n if (plugin.canCompress(data) === false) {\n continue;\n }\n return await plugin.compress(data);\n }\n /**\n * Possibly no plugins that can compress, just return the data.\n */\n return data;\n};\n\nexport const decompress = async (\n pluginsContainer: PluginsContainer,\n data: Record<string, any>\n): Promise<Record<string, any>> => {\n const plugins = getCompressionPlugins(pluginsContainer);\n if (plugins.length === 0) {\n return data;\n }\n for (const plugin of plugins) {\n if (plugin.canDecompress(data) === false) {\n continue;\n }\n return await plugin.decompress(data);\n }\n /**\n * Possibly no plugins that can decompress, just return the data.\n */\n return data;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA,MAAMC,qBAAqB,GAAIC,OAAyB,IAA0B;EAC9E,OAAOA,OAAO,CAACC,MAAM,CAAoBC,oCAAiB,CAACC,IAAI,CAAC,CAACC,OAAO,CAAC,CAAC;AAC9E,CAAC;AACD;AACA;AACA;AACO,MAAMC,QAAQ,GAAG,MAAAA,CACpBC,gBAAkC,EAClCC,IAAyB,KACM;EAC/B,MAAMP,OAAO,GAAGD,qBAAqB,CAACO,gBAAgB,CAAC;EACvD,IAAIN,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;IACtB,OAAOD,IAAI;EACf;EACA,KAAK,MAAME,MAAM,IAAIT,OAAO,EAAE;IAC1B,IAAIS,MAAM,CAACC,WAAW,CAACH,IAAI,CAAC,KAAK,KAAK,EAAE;MACpC;IACJ;IACA,OAAO,MAAME,MAAM,CAACJ,QAAQ,CAACE,IAAI,CAAC;EACtC;EACA;AACJ;AACA;EACI,OAAOA,IAAI;AACf,CAAC;AAACI,OAAA,CAAAN,QAAA,GAAAA,QAAA;AAEK,MAAMO,UAAU,GAAG,MAAAA,CACtBN,gBAAkC,EAClCC,IAAyB,KACM;EAC/B,MAAMP,OAAO,GAAGD,qBAAqB,CAACO,gBAAgB,CAAC;EACvD,IAAIN,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;IACtB,OAAOD,IAAI;EACf;EACA,KAAK,MAAME,MAAM,IAAIT,OAAO,EAAE;IAC1B,IAAIS,MAAM,CAACI,aAAa,CAACN,IAAI,CAAC,KAAK,KAAK,EAAE;MACtC;IACJ;IACA,OAAO,MAAME,MAAM,CAACG,UAAU,CAACL,IAAI,CAAC;EACxC;EACA;AACJ;AACA;EACI,OAAOA,IAAI;AACf,CAAC;AAACI,OAAA,CAAAC,UAAA,GAAAA,UAAA"}
package/cursors.js CHANGED
@@ -40,4 +40,6 @@ const decodeCursor = cursor => {
40
40
  }
41
41
  return undefined;
42
42
  };
43
- exports.decodeCursor = decodeCursor;
43
+ exports.decodeCursor = decodeCursor;
44
+
45
+ //# sourceMappingURL=cursors.js.map
package/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from "./compression";
13
13
  export * from "./operators";
14
14
  export * from "./cursors";
15
15
  export * from "./client";
16
+ export * from "./utils";
16
17
  export { createGzipCompression } from "./plugins/GzipCompression";
17
18
  /**
18
19
  * We must accept either Elasticsearch client or options that create the client.
package/index.js CHANGED
@@ -149,6 +149,18 @@ Object.keys(_cursors).forEach(function (key) {
149
149
  }
150
150
  });
151
151
  });
152
+ var _utils = require("./utils");
153
+ Object.keys(_utils).forEach(function (key) {
154
+ if (key === "default" || key === "__esModule") return;
155
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
156
+ if (key in exports && exports[key] === _utils[key]) return;
157
+ Object.defineProperty(exports, key, {
158
+ enumerable: true,
159
+ get: function () {
160
+ return _utils[key];
161
+ }
162
+ });
163
+ });
152
164
  var _GzipCompression = require("./plugins/GzipCompression");
153
165
  /**
154
166
  * TODO File should contain only exports from other files.
@@ -168,4 +180,6 @@ var _default = params => {
168
180
  context.plugins.register((0, _operators.getElasticsearchOperators)());
169
181
  });
170
182
  };
171
- exports.default = _default;
183
+ exports.default = _default;
184
+
185
+ //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_error","_interopRequireDefault","require","_api","_client","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_operators","_elasticsearch","_indexConfiguration","_plugins","_sort","_indices","_where","_limit","_normalize","_compression","_cursors","_GzipCompression","_default","params","ContextPlugin","context","elasticsearch","WebinyError","Client","createElasticsearchClient","plugins","register","getElasticsearchOperators","default"],"sources":["index.ts"],"sourcesContent":["/**\n * TODO File should contain only exports from other files.\n */\nimport WebinyError from \"@webiny/error\";\nimport { ElasticsearchContext } from \"~/types\";\nimport { ContextPlugin } from \"@webiny/api\";\nimport { createElasticsearchClient, ElasticsearchClientOptions } from \"~/client\";\nimport { getElasticsearchOperators } from \"~/operators\";\nimport { Client } from \"@elastic/elasticsearch\";\n\nexport * from \"./indexConfiguration\";\nexport * from \"./plugins\";\nexport * from \"./sort\";\nexport * from \"./indices\";\nexport * from \"./where\";\nexport * from \"./limit\";\nexport * from \"./normalize\";\nexport * from \"./compression\";\nexport * from \"./operators\";\nexport * from \"./cursors\";\nexport * from \"./client\";\nexport { createGzipCompression } from \"./plugins/GzipCompression\";\n\n/**\n * We must accept either Elasticsearch client or options that create the client.\n */\nexport default (\n params: ElasticsearchClientOptions | Client\n): ContextPlugin<ElasticsearchContext> => {\n return new ContextPlugin<ElasticsearchContext>(context => {\n if (context.elasticsearch) {\n throw new WebinyError(\n \"Elasticsearch client is already initialized, no need to define it again. Check your code for duplicate initializations.\",\n \"ELASTICSEARCH_ALREADY_INITIALIZED\"\n );\n }\n /**\n * Initialize the Elasticsearch client.\n */\n context.elasticsearch =\n params instanceof Client ? params : createElasticsearchClient(params);\n\n context.plugins.register(getElasticsearchOperators());\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAcAG,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA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,IAAIC,cAAW,CACjB,yHAAyH,EACzH,mCACJ,CAAC;IACL;IACA;AACR;AACA;IACQF,OAAO,CAACC,aAAa,GACjBH,MAAM,YAAYK,qBAAM,GAAGL,MAAM,GAAG,IAAAM,iCAAyB,EAACN,MAAM,CAAC;IAEzEE,OAAO,CAACK,OAAO,CAACC,QAAQ,CAAC,IAAAC,oCAAyB,EAAC,CAAC,CAAC;EACzD,CAAC,CAAC;AACN,CAAC;AAAA1B,OAAA,CAAA2B,OAAA,GAAAX,QAAA"}
1
+ {"version":3,"names":["_error","_interopRequireDefault","require","_api","_client","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_operators","_elasticsearch","_indexConfiguration","_plugins","_sort","_indices","_where","_limit","_normalize","_compression","_cursors","_utils","_GzipCompression","_default","params","ContextPlugin","context","elasticsearch","WebinyError","Client","createElasticsearchClient","plugins","register","getElasticsearchOperators","default"],"sources":["index.ts"],"sourcesContent":["/**\n * TODO File should contain only exports from other files.\n */\nimport WebinyError from \"@webiny/error\";\nimport { ElasticsearchContext } from \"~/types\";\nimport { ContextPlugin } from \"@webiny/api\";\nimport { createElasticsearchClient, ElasticsearchClientOptions } from \"~/client\";\nimport { getElasticsearchOperators } from \"~/operators\";\nimport { Client } from \"@elastic/elasticsearch\";\n\nexport * from \"./indexConfiguration\";\nexport * from \"./plugins\";\nexport * from \"./sort\";\nexport * from \"./indices\";\nexport * from \"./where\";\nexport * from \"./limit\";\nexport * from \"./normalize\";\nexport * from \"./compression\";\nexport * from \"./operators\";\nexport * from \"./cursors\";\nexport * from \"./client\";\nexport * from \"./utils\";\nexport { createGzipCompression } from \"./plugins/GzipCompression\";\n\n/**\n * We must accept either Elasticsearch client or options that create the client.\n */\nexport default (\n params: ElasticsearchClientOptions | Client\n): ContextPlugin<ElasticsearchContext> => {\n return new ContextPlugin<ElasticsearchContext>(context => {\n if (context.elasticsearch) {\n throw new WebinyError(\n \"Elasticsearch client is already initialized, no need to define it again. Check your code for duplicate initializations.\",\n \"ELASTICSEARCH_ALREADY_INITIALIZED\"\n );\n }\n /**\n * Initialize the Elasticsearch client.\n */\n context.elasticsearch =\n params instanceof Client ? params : createElasticsearchClient(params);\n\n context.plugins.register(getElasticsearchOperators());\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAcAG,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,OAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,OAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAbA,IAAAS,UAAA,GAAAf,OAAA;AAWAG,MAAA,CAAAC,IAAA,CAAAW,UAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,UAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AAVA,IAAAU,cAAA,GAAAhB,OAAA;AAEA,IAAAiB,mBAAA,G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oCAAyB,EAAC,CAAC,CAAC;EACzD,CAAC,CAAC;AACN,CAAC;AAAA3B,OAAA,CAAA4B,OAAA,GAAAX,QAAA"}
@@ -37,4 +37,6 @@ const getBaseConfiguration = modifier => {
37
37
  }
38
38
  return modifier(config);
39
39
  };
40
- exports.getBaseConfiguration = getBaseConfiguration;
40
+ exports.getBaseConfiguration = getBaseConfiguration;
41
+
42
+ //# sourceMappingURL=base.js.map
@@ -38,4 +38,6 @@ const getCommonMappings = cb => {
38
38
  }
39
39
  return cb(getDefaultMappings());
40
40
  };
41
- exports.getCommonMappings = getCommonMappings;
41
+ exports.getCommonMappings = getCommonMappings;
42
+
43
+ //# sourceMappingURL=common.js.map
@@ -35,4 +35,6 @@ Object.keys(_japanese).forEach(function (key) {
35
35
  return _japanese[key];
36
36
  }
37
37
  });
38
- });
38
+ });
39
+
40
+ //# sourceMappingURL=index.js.map
@@ -116,4 +116,6 @@ const getJapaneseConfiguration = modifier => {
116
116
  }
117
117
  return modifier(config);
118
118
  };
119
- exports.getJapaneseConfiguration = getJapaneseConfiguration;
119
+ exports.getJapaneseConfiguration = getJapaneseConfiguration;
120
+
121
+ //# sourceMappingURL=japanese.js.map
package/indices.js CHANGED
@@ -25,4 +25,6 @@ const getLastAddedIndexPlugin = params => {
25
25
  }
26
26
  return plugins.pop();
27
27
  };
28
- exports.getLastAddedIndexPlugin = getLastAddedIndexPlugin;
28
+ exports.getLastAddedIndexPlugin = getLastAddedIndexPlugin;
29
+
30
+ //# sourceMappingURL=indices.js.map
package/limit.js CHANGED
@@ -34,4 +34,6 @@ const createLimit = (limit, defaultValue = ES_LIMIT_DEFAULT) => {
34
34
  */
35
35
  return ES_LIMIT_MAX - 1;
36
36
  };
37
- exports.createLimit = createLimit;
37
+ exports.createLimit = createLimit;
38
+
39
+ //# sourceMappingURL=limit.js.map
package/normalize.js CHANGED
@@ -57,4 +57,6 @@ const normalizeValueWithAsterisk = initial => {
57
57
  }
58
58
  return result;
59
59
  };
60
- exports.normalizeValueWithAsterisk = normalizeValueWithAsterisk;
60
+ exports.normalizeValueWithAsterisk = normalizeValueWithAsterisk;
61
+
62
+ //# sourceMappingURL=normalize.js.map
package/operators.js CHANGED
@@ -42,4 +42,6 @@ const getElasticsearchOperatorPluginsByLocale = (plugins, locale) => {
42
42
  return acc;
43
43
  }, {});
44
44
  };
45
- exports.getElasticsearchOperatorPluginsByLocale = getElasticsearchOperatorPluginsByLocale;
45
+ exports.getElasticsearchOperatorPluginsByLocale = getElasticsearchOperatorPluginsByLocale;
46
+
47
+ //# sourceMappingURL=operators.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-elasticsearch",
3
- "version": "5.37.8-beta.0",
3
+ "version": "5.38.0-beta.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/webiny/webiny-js.git",
@@ -13,10 +13,10 @@
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
15
  "@elastic/elasticsearch": "7.12.0",
16
- "@webiny/api": "5.37.8-beta.0",
17
- "@webiny/error": "5.37.8-beta.0",
18
- "@webiny/plugins": "5.37.8-beta.0",
19
- "@webiny/utils": "5.37.8-beta.0",
16
+ "@webiny/api": "5.38.0-beta.0",
17
+ "@webiny/error": "5.38.0-beta.0",
18
+ "@webiny/plugins": "5.38.0-beta.0",
19
+ "@webiny/utils": "5.38.0-beta.0",
20
20
  "aws-elasticsearch-connector": "9.2.0",
21
21
  "aws-sdk": "2.1310.0",
22
22
  "elastic-ts": "0.8.0"
@@ -24,8 +24,8 @@
24
24
  "devDependencies": {
25
25
  "@babel/cli": "7.22.6",
26
26
  "@babel/core": "7.22.8",
27
- "@webiny/cli": "5.37.8-beta.0",
28
- "@webiny/project-utils": "5.37.8-beta.0",
27
+ "@webiny/cli": "5.38.0-beta.0",
28
+ "@webiny/project-utils": "5.38.0-beta.0",
29
29
  "rimraf": "3.0.2",
30
30
  "ttypescript": "1.5.15",
31
31
  "typescript": "4.7.4"
@@ -45,5 +45,5 @@
45
45
  ]
46
46
  }
47
47
  },
48
- "gitHead": "7af94ec35e4614ac89549a544352fd2ceba1ba42"
48
+ "gitHead": "5746389d4988626b50e2523ccfa0a9a5e398e0ed"
49
49
  }
@@ -65,4 +65,6 @@ exports.createGzipCompression = createGzipCompression;
65
65
  var _default = () => {
66
66
  return createGzipCompression();
67
67
  };
68
- exports.default = _default;
68
+ exports.default = _default;
69
+
70
+ //# sourceMappingURL=GzipCompression.js.map
@@ -9,4 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _plugins = require("@webiny/plugins");
10
10
  class CompressionPlugin extends _plugins.Plugin {}
11
11
  exports.CompressionPlugin = CompressionPlugin;
12
- (0, _defineProperty2.default)(CompressionPlugin, "type", "elasticsearch.compression");
12
+ (0, _defineProperty2.default)(CompressionPlugin, "type", "elasticsearch.compression");
13
+
14
+ //# sourceMappingURL=CompressionPlugin.js.map
@@ -23,4 +23,6 @@ class ElasticsearchBodyModifierPlugin extends _plugins.Plugin {
23
23
  this.callable(params);
24
24
  }
25
25
  }
26
- exports.ElasticsearchBodyModifierPlugin = ElasticsearchBodyModifierPlugin;
26
+ exports.ElasticsearchBodyModifierPlugin = ElasticsearchBodyModifierPlugin;
27
+
28
+ //# sourceMappingURL=ElasticsearchBodyModifierPlugin.js.map
@@ -78,4 +78,6 @@ class ElasticsearchFieldPlugin extends _plugins.Plugin {
78
78
  }
79
79
  exports.ElasticsearchFieldPlugin = ElasticsearchFieldPlugin;
80
80
  (0, _defineProperty2.default)(ElasticsearchFieldPlugin, "type", "elasticsearch.fieldDefinition");
81
- (0, _defineProperty2.default)(ElasticsearchFieldPlugin, "ALL", "*");
81
+ (0, _defineProperty2.default)(ElasticsearchFieldPlugin, "ALL", "*");
82
+
83
+ //# sourceMappingURL=ElasticsearchFieldPlugin.js.map
@@ -33,4 +33,6 @@ class ElasticsearchIndexPlugin extends _plugins.Plugin {
33
33
  return this.locales.includes(locale.toLowerCase());
34
34
  }
35
35
  }
36
- exports.ElasticsearchIndexPlugin = ElasticsearchIndexPlugin;
36
+ exports.ElasticsearchIndexPlugin = ElasticsearchIndexPlugin;
37
+
38
+ //# sourceMappingURL=ElasticsearchIndexPlugin.js.map
@@ -19,4 +19,6 @@ class ElasticsearchQueryBuilderOperatorPlugin extends _plugins.Plugin {
19
19
  }
20
20
  }
21
21
  exports.ElasticsearchQueryBuilderOperatorPlugin = ElasticsearchQueryBuilderOperatorPlugin;
22
- (0, _defineProperty2.default)(ElasticsearchQueryBuilderOperatorPlugin, "type", "elasticsearch.queryBuilder.operator");
22
+ (0, _defineProperty2.default)(ElasticsearchQueryBuilderOperatorPlugin, "type", "elasticsearch.queryBuilder.operator");
23
+
24
+ //# sourceMappingURL=ElasticsearchQueryBuilderOperatorPlugin.js.map
@@ -23,4 +23,6 @@ class ElasticsearchQueryModifierPlugin extends _plugins.Plugin {
23
23
  this.callable(params);
24
24
  }
25
25
  }
26
- exports.ElasticsearchQueryModifierPlugin = ElasticsearchQueryModifierPlugin;
26
+ exports.ElasticsearchQueryModifierPlugin = ElasticsearchQueryModifierPlugin;
27
+
28
+ //# sourceMappingURL=ElasticsearchQueryModifierPlugin.js.map
@@ -23,4 +23,6 @@ class ElasticsearchSortModifierPlugin extends _plugins.Plugin {
23
23
  this.callable(params);
24
24
  }
25
25
  }
26
- exports.ElasticsearchSortModifierPlugin = ElasticsearchSortModifierPlugin;
26
+ exports.ElasticsearchSortModifierPlugin = ElasticsearchSortModifierPlugin;
27
+
28
+ //# sourceMappingURL=ElasticsearchSortModifierPlugin.js.map
@@ -79,4 +79,6 @@ Object.keys(_ElasticsearchSortModifierPlugin).forEach(function (key) {
79
79
  return _ElasticsearchSortModifierPlugin[key];
80
80
  }
81
81
  });
82
- });
82
+ });
83
+
84
+ //# sourceMappingURL=index.js.map
package/plugins/index.js CHANGED
@@ -24,4 +24,6 @@ Object.keys(_definition).forEach(function (key) {
24
24
  return _definition[key];
25
25
  }
26
26
  });
27
- });
27
+ });
28
+
29
+ //# sourceMappingURL=index.js.map
@@ -42,4 +42,6 @@ class ElasticsearchQueryBuilderOperatorAndInPlugin extends _ElasticsearchQueryBu
42
42
  }
43
43
  }
44
44
  }
45
- exports.ElasticsearchQueryBuilderOperatorAndInPlugin = ElasticsearchQueryBuilderOperatorAndInPlugin;
45
+ exports.ElasticsearchQueryBuilderOperatorAndInPlugin = ElasticsearchQueryBuilderOperatorAndInPlugin;
46
+
47
+ //# sourceMappingURL=andIn.js.map
@@ -39,4 +39,6 @@ class ElasticsearchQueryBuilderOperatorBetweenPlugin extends _ElasticsearchQuery
39
39
  });
40
40
  }
41
41
  }
42
- exports.ElasticsearchQueryBuilderOperatorBetweenPlugin = ElasticsearchQueryBuilderOperatorBetweenPlugin;
42
+ exports.ElasticsearchQueryBuilderOperatorBetweenPlugin = ElasticsearchQueryBuilderOperatorBetweenPlugin;
43
+
44
+ //# sourceMappingURL=between.js.map
@@ -31,4 +31,6 @@ class ElasticsearchQueryBuilderOperatorContainsPlugin extends _ElasticsearchQuer
31
31
  });
32
32
  }
33
33
  }
34
- exports.ElasticsearchQueryBuilderOperatorContainsPlugin = ElasticsearchQueryBuilderOperatorContainsPlugin;
34
+ exports.ElasticsearchQueryBuilderOperatorContainsPlugin = ElasticsearchQueryBuilderOperatorContainsPlugin;
35
+
36
+ //# sourceMappingURL=contains.js.map
@@ -57,4 +57,6 @@ class ElasticsearchQueryBuilderOperatorEqualPlugin extends _ElasticsearchQueryBu
57
57
  });
58
58
  }
59
59
  }
60
- exports.ElasticsearchQueryBuilderOperatorEqualPlugin = ElasticsearchQueryBuilderOperatorEqualPlugin;
60
+ exports.ElasticsearchQueryBuilderOperatorEqualPlugin = ElasticsearchQueryBuilderOperatorEqualPlugin;
61
+
62
+ //# sourceMappingURL=equal.js.map
@@ -29,4 +29,6 @@ class ElasticsearchQueryBuilderOperatorGreaterThanPlugin extends _ElasticsearchQ
29
29
  });
30
30
  }
31
31
  }
32
- exports.ElasticsearchQueryBuilderOperatorGreaterThanPlugin = ElasticsearchQueryBuilderOperatorGreaterThanPlugin;
32
+ exports.ElasticsearchQueryBuilderOperatorGreaterThanPlugin = ElasticsearchQueryBuilderOperatorGreaterThanPlugin;
33
+
34
+ //# sourceMappingURL=gt.js.map
@@ -29,4 +29,6 @@ class ElasticsearchQueryBuilderOperatorGreaterThanOrEqualToPlugin extends _Elast
29
29
  });
30
30
  }
31
31
  }
32
- exports.ElasticsearchQueryBuilderOperatorGreaterThanOrEqualToPlugin = ElasticsearchQueryBuilderOperatorGreaterThanOrEqualToPlugin;
32
+ exports.ElasticsearchQueryBuilderOperatorGreaterThanOrEqualToPlugin = ElasticsearchQueryBuilderOperatorGreaterThanOrEqualToPlugin;
33
+
34
+ //# sourceMappingURL=gte.js.map
@@ -36,4 +36,6 @@ class ElasticsearchQueryBuilderOperatorInPlugin extends _ElasticsearchQueryBuild
36
36
  });
37
37
  }
38
38
  }
39
- exports.ElasticsearchQueryBuilderOperatorInPlugin = ElasticsearchQueryBuilderOperatorInPlugin;
39
+ exports.ElasticsearchQueryBuilderOperatorInPlugin = ElasticsearchQueryBuilderOperatorInPlugin;
40
+
41
+ //# sourceMappingURL=in.js.map
@@ -178,4 +178,6 @@ Object.keys(_contains2).forEach(function (key) {
178
178
  return _contains2[key];
179
179
  }
180
180
  });
181
- });
181
+ });
182
+
183
+ //# sourceMappingURL=index.js.map
@@ -44,4 +44,6 @@ class ElasticsearchQueryBuilderJapaneseOperatorContainsPlugin extends _Elasticse
44
44
  });
45
45
  }
46
46
  }
47
- exports.ElasticsearchQueryBuilderJapaneseOperatorContainsPlugin = ElasticsearchQueryBuilderJapaneseOperatorContainsPlugin;
47
+ exports.ElasticsearchQueryBuilderJapaneseOperatorContainsPlugin = ElasticsearchQueryBuilderJapaneseOperatorContainsPlugin;
48
+
49
+ //# sourceMappingURL=contains.js.map
@@ -29,4 +29,6 @@ class ElasticsearchQueryBuilderOperatorLesserThanPlugin extends _ElasticsearchQu
29
29
  });
30
30
  }
31
31
  }
32
- exports.ElasticsearchQueryBuilderOperatorLesserThanPlugin = ElasticsearchQueryBuilderOperatorLesserThanPlugin;
32
+ exports.ElasticsearchQueryBuilderOperatorLesserThanPlugin = ElasticsearchQueryBuilderOperatorLesserThanPlugin;
33
+
34
+ //# sourceMappingURL=lt.js.map
@@ -29,4 +29,6 @@ class ElasticsearchQueryBuilderOperatorLesserThanOrEqualToPlugin extends _Elasti
29
29
  });
30
30
  }
31
31
  }
32
- exports.ElasticsearchQueryBuilderOperatorLesserThanOrEqualToPlugin = ElasticsearchQueryBuilderOperatorLesserThanOrEqualToPlugin;
32
+ exports.ElasticsearchQueryBuilderOperatorLesserThanOrEqualToPlugin = ElasticsearchQueryBuilderOperatorLesserThanOrEqualToPlugin;
33
+
34
+ //# sourceMappingURL=lte.js.map
@@ -47,4 +47,6 @@ class ElasticsearchQueryBuilderOperatorNotPlugin extends _ElasticsearchQueryBuil
47
47
  });
48
48
  }
49
49
  }
50
- exports.ElasticsearchQueryBuilderOperatorNotPlugin = ElasticsearchQueryBuilderOperatorNotPlugin;
50
+ exports.ElasticsearchQueryBuilderOperatorNotPlugin = ElasticsearchQueryBuilderOperatorNotPlugin;
51
+
52
+ //# sourceMappingURL=not.js.map
@@ -39,4 +39,6 @@ class ElasticsearchQueryBuilderOperatorNotBetweenPlugin extends _ElasticsearchQu
39
39
  });
40
40
  }
41
41
  }
42
- exports.ElasticsearchQueryBuilderOperatorNotBetweenPlugin = ElasticsearchQueryBuilderOperatorNotBetweenPlugin;
42
+ exports.ElasticsearchQueryBuilderOperatorNotBetweenPlugin = ElasticsearchQueryBuilderOperatorNotBetweenPlugin;
43
+
44
+ //# sourceMappingURL=notBetween.js.map
@@ -31,4 +31,6 @@ class ElasticsearchQueryBuilderOperatorNotContainsPlugin extends _ElasticsearchQ
31
31
  });
32
32
  }
33
33
  }
34
- exports.ElasticsearchQueryBuilderOperatorNotContainsPlugin = ElasticsearchQueryBuilderOperatorNotContainsPlugin;
34
+ exports.ElasticsearchQueryBuilderOperatorNotContainsPlugin = ElasticsearchQueryBuilderOperatorNotContainsPlugin;
35
+
36
+ //# sourceMappingURL=notContains.js.map
@@ -34,4 +34,6 @@ class ElasticsearchQueryBuilderOperatorNotInPlugin extends _ElasticsearchQueryBu
34
34
  });
35
35
  }
36
36
  }
37
- exports.ElasticsearchQueryBuilderOperatorNotInPlugin = ElasticsearchQueryBuilderOperatorNotInPlugin;
37
+ exports.ElasticsearchQueryBuilderOperatorNotInPlugin = ElasticsearchQueryBuilderOperatorNotInPlugin;
38
+
39
+ //# sourceMappingURL=notIn.js.map
@@ -30,4 +30,6 @@ class ElasticsearchQueryBuilderOperatorNotStartsWithPlugin extends _Elasticsearc
30
30
  });
31
31
  }
32
32
  }
33
- exports.ElasticsearchQueryBuilderOperatorNotStartsWithPlugin = ElasticsearchQueryBuilderOperatorNotStartsWithPlugin;
33
+ exports.ElasticsearchQueryBuilderOperatorNotStartsWithPlugin = ElasticsearchQueryBuilderOperatorNotStartsWithPlugin;
34
+
35
+ //# sourceMappingURL=notStartsWith.js.map
@@ -30,4 +30,6 @@ class ElasticsearchQueryBuilderOperatorStartsWithPlugin extends _ElasticsearchQu
30
30
  });
31
31
  }
32
32
  }
33
- exports.ElasticsearchQueryBuilderOperatorStartsWithPlugin = ElasticsearchQueryBuilderOperatorStartsWithPlugin;
33
+ exports.ElasticsearchQueryBuilderOperatorStartsWithPlugin = ElasticsearchQueryBuilderOperatorStartsWithPlugin;
34
+
35
+ //# sourceMappingURL=startsWith.js.map
package/sort.js CHANGED
@@ -58,4 +58,6 @@ const createSort = params => {
58
58
  return acc;
59
59
  }, {});
60
60
  };
61
- exports.createSort = createSort;
61
+ exports.createSort = createSort;
62
+
63
+ //# sourceMappingURL=sort.js.map
package/types.js CHANGED
@@ -24,4 +24,6 @@ Object.keys(_elasticTs).forEach(function (key) {
24
24
  return _elasticTs[key];
25
25
  }
26
26
  });
27
- });
27
+ });
28
+
29
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,20 @@
1
+ import { Client } from "@elastic/elasticsearch";
2
+ import { PluginsContainer } from "@webiny/plugins";
3
+ interface OnExists {
4
+ (): void;
5
+ }
6
+ interface OnError {
7
+ (ex: Error): Error;
8
+ }
9
+ interface CreateIndexParams {
10
+ client: Client;
11
+ plugins: PluginsContainer;
12
+ type: string;
13
+ tenant: string;
14
+ locale: string;
15
+ index: string;
16
+ onExists?: OnExists;
17
+ onError?: OnError;
18
+ }
19
+ export declare const createIndex: (params: CreateIndexParams) => Promise<void>;
20
+ export {};
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.createIndex = void 0;
8
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
+ var _indices = require("../indices");
10
+ var _error = _interopRequireDefault(require("@webiny/error"));
11
+ const indexExists = async params => {
12
+ const {
13
+ client,
14
+ index,
15
+ onExists
16
+ } = params;
17
+ try {
18
+ const response = await client.indices.exists({
19
+ index,
20
+ ignore_unavailable: false,
21
+ allow_no_indices: true,
22
+ include_defaults: true,
23
+ flat_settings: false,
24
+ local: false
25
+ });
26
+ if (!response.body) {
27
+ return false;
28
+ }
29
+ if (onExists) {
30
+ onExists();
31
+ }
32
+ return true;
33
+ } catch (ex) {
34
+ console.error(`Could not determine if the index "${index}" exists.`);
35
+ }
36
+ return false;
37
+ };
38
+ const indexCreate = async params => {
39
+ const {
40
+ client,
41
+ index,
42
+ plugin,
43
+ tenant,
44
+ locale,
45
+ type,
46
+ onError
47
+ } = params;
48
+ try {
49
+ await client.indices.create({
50
+ index,
51
+ body: (0, _objectSpread2.default)({}, plugin.body)
52
+ });
53
+ } catch (ex) {
54
+ let error = ex;
55
+ if (onError) {
56
+ error = onError(ex);
57
+ }
58
+ throw new _error.default(error.message || `Could not create Elasticsearch index for the ${type}.`, error.code || "CREATE_ELASTICSEARCH_INDEX_ERROR", {
59
+ error: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, error), {}, {
60
+ message: error.message,
61
+ code: error.code,
62
+ data: error.data
63
+ }),
64
+ type,
65
+ locale,
66
+ tenant,
67
+ index,
68
+ body: plugin.body
69
+ });
70
+ }
71
+ };
72
+ const createIndex = async params => {
73
+ const {
74
+ plugins,
75
+ type,
76
+ locale,
77
+ onExists
78
+ } = params;
79
+ const plugin = (0, _indices.getLastAddedIndexPlugin)({
80
+ container: plugins,
81
+ type,
82
+ locale
83
+ });
84
+ const exists = await indexExists(params);
85
+ if (exists) {
86
+ if (onExists) {
87
+ onExists();
88
+ }
89
+ return;
90
+ }
91
+ await indexCreate((0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
92
+ plugin
93
+ }));
94
+ };
95
+ exports.createIndex = createIndex;
96
+
97
+ //# sourceMappingURL=createIndex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_indices","require","_error","_interopRequireDefault","indexExists","params","client","index","onExists","response","indices","exists","ignore_unavailable","allow_no_indices","include_defaults","flat_settings","local","body","ex","console","error","indexCreate","plugin","tenant","locale","type","onError","create","_objectSpread2","default","WebinyError","message","code","data","createIndex","plugins","getLastAddedIndexPlugin","container","exports"],"sources":["createIndex.ts"],"sourcesContent":["import { Client } from \"@elastic/elasticsearch\";\nimport { PluginsContainer } from \"@webiny/plugins\";\nimport { getLastAddedIndexPlugin } from \"~/indices\";\nimport { ElasticsearchIndexPlugin } from \"~/plugins\";\nimport WebinyError from \"@webiny/error\";\n\ninterface OnExists {\n (): void;\n}\n\ninterface OnError {\n (ex: Error): Error;\n}\n\ninterface ExistsIndexParams {\n client: Client;\n index: string;\n onExists?: OnExists;\n}\n\nconst indexExists = async (params: ExistsIndexParams): Promise<boolean> => {\n const { client, index, onExists } = params;\n\n try {\n const response = await client.indices.exists({\n index,\n ignore_unavailable: false,\n allow_no_indices: true,\n include_defaults: true,\n flat_settings: false,\n local: false\n });\n if (!response.body) {\n return false;\n }\n if (onExists) {\n onExists();\n }\n return true;\n } catch (ex) {\n console.error(`Could not determine if the index \"${index}\" exists.`);\n }\n return false;\n};\n\ninterface IndexCreateParams {\n client: Client;\n index: string;\n type: string;\n tenant: string;\n locale: string;\n plugin: ElasticsearchIndexPlugin;\n onError?: OnError;\n}\n\nconst indexCreate = async (params: IndexCreateParams): Promise<void> => {\n const { client, index, plugin, tenant, locale, type, onError } = params;\n\n try {\n await client.indices.create({\n index,\n body: {\n ...plugin.body\n }\n });\n } catch (ex) {\n let error = ex;\n if (onError) {\n error = onError(ex);\n }\n throw new WebinyError(\n error.message || `Could not create Elasticsearch index for the ${type}.`,\n error.code || \"CREATE_ELASTICSEARCH_INDEX_ERROR\",\n {\n error: {\n ...error,\n message: error.message,\n code: error.code,\n data: error.data\n },\n type,\n locale,\n tenant,\n index,\n body: plugin.body\n }\n );\n }\n};\n\ninterface CreateIndexParams {\n client: Client;\n plugins: PluginsContainer;\n type: string;\n tenant: string;\n locale: string;\n index: string;\n onExists?: OnExists;\n onError?: OnError;\n}\n\nexport const createIndex = async (params: CreateIndexParams): Promise<void> => {\n const { plugins, type, locale, onExists } = params;\n const plugin = getLastAddedIndexPlugin<ElasticsearchIndexPlugin>({\n container: plugins,\n type,\n locale\n });\n\n const exists = await indexExists(params);\n if (exists) {\n if (onExists) {\n onExists();\n }\n return;\n }\n\n await indexCreate({\n ...params,\n plugin\n });\n};\n"],"mappings":";;;;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAgBA,MAAMG,WAAW,GAAG,MAAOC,MAAyB,IAAuB;EACvE,MAAM;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGH,MAAM;EAE1C,IAAI;IACA,MAAMI,QAAQ,GAAG,MAAMH,MAAM,CAACI,OAAO,CAACC,MAAM,CAAC;MACzCJ,KAAK;MACLK,kBAAkB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ACNhB,KAAK;MACLU,IAAI,EAAEK,MAAM,CAACL;IACjB,CACJ,CAAC;EACL;AACJ,CAAC;AAaM,MAAMiB,WAAW,GAAG,MAAO7B,MAAyB,IAAoB;EAC3E,MAAM;IAAE8B,OAAO;IAAEV,IAAI;IAAED,MAAM;IAAEhB;EAAS,CAAC,GAAGH,MAAM;EAClD,MAAMiB,MAAM,GAAG,IAAAc,gCAAuB,EAA2B;IAC7DC,SAAS,EAAEF,OAAO;IAClBV,IAAI;IACJD;EACJ,CAAC,CAAC;EAEF,MAAMb,MAAM,GAAG,MAAMP,WAAW,CAACC,MAAM,CAAC;EACxC,IAAIM,MAAM,EAAE;IACR,IAAIH,QAAQ,EAAE;MACVA,QAAQ,CAAC,CAAC;IACd;IACA;EACJ;EAEA,MAAMa,WAAW,KAAAO,cAAA,CAAAC,OAAA,MAAAD,cAAA,CAAAC,OAAA,MACVxB,MAAM;IACTiB;EAAM,EACT,CAAC;AACN,CAAC;AAACgB,OAAA,CAAAJ,WAAA,GAAAA,WAAA"}
@@ -0,0 +1 @@
1
+ export * from "./createIndex";
package/utils/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _createIndex = require("./createIndex");
7
+ Object.keys(_createIndex).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _createIndex[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _createIndex[key];
14
+ }
15
+ });
16
+ });
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_createIndex","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./createIndex\";\n"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
package/where.js CHANGED
@@ -86,4 +86,6 @@ const applyWhere = params => {
86
86
  });
87
87
  }
88
88
  };
89
- exports.applyWhere = applyWhere;
89
+ exports.applyWhere = applyWhere;
90
+
91
+ //# sourceMappingURL=where.js.map