owl-cli 6.194.0 → 6.196.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.
@@ -1178,6 +1178,26 @@ var @projectCodeService = (function (pigeon) {
1178
1178
  }
1179
1179
  return 0;
1180
1180
  },
1181
+ executeSearchQuery:function(query){
1182
+ var elasticSearchUrl = $.getEnv( "elasticSearchUrl" );
1183
+
1184
+ var headers = { "Content-Type": "application/json;charset=utf-8" };
1185
+ var elasticSearchUser = $.getEnv("elasticSearchUser");
1186
+ var elasticSearchPass = $.getEnv("elasticSearchPass");
1187
+ if(elasticSearchUser && elasticSearchPass){
1188
+ var auth =Base64.encode(elasticSearchUser + ":" + elasticSearchPass);
1189
+ var basicAuth = "Basic " + auth;
1190
+ headers["Authorization"] = basicAuth;
1191
+ }
1192
+ var searchUrl = elasticSearchUrl+"/@projectCode/_search";
1193
+ if(dataSource){
1194
+ searchUrl = elasticSearchUrl + "/" + dataSource + "/_search";
1195
+ }
1196
+
1197
+ var sndTxt = JSON.stringify(query);
1198
+ return HttpUtils.postRaw( searchUrl, sndTxt, headers);
1199
+ },
1200
+
1181
1201
  search: function(mfilters, searchArgs, keyword,from, pageSize, sort, dataSource,isRecycleBin,meta_fields){
1182
1202
  var query = f.buildQuery(mfilters,searchArgs,keyword,isRecycleBin,meta_fields);
1183
1203
  // var effectiveSort = [{owl_createTime:{order:"desc"}}];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.194.0",
3
+ "version": "6.196.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {