@vasrefil/api-toolkit 1.3.1 → 1.3.3

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.
@@ -39,6 +39,9 @@ class QueryHelper_ {
39
39
  else if (fit.operator === 'date_lte') {
40
40
  result.push({ [fit.field]: { $lte: date_util_1.DateUtil.get_local_date(fit.value) } });
41
41
  }
42
+ else if (fit.operator === 'exists') {
43
+ result.push({ [fit.field]: { $exists: fit.value === 'true' } });
44
+ }
42
45
  });
43
46
  filter_query = { [logical_operator]: result };
44
47
  }
@@ -116,6 +116,7 @@ class RootService {
116
116
  };
117
117
  }
118
118
  get_error(error) {
119
+ console.log('RootService:get_error->error', error);
119
120
  let response = { status: status_interface_1.Status.ERROR, message: env_1.default.ERROR_MESSAGE, data: null, code: null };
120
121
  const { status, message, data, code } = error;
121
122
  response.status = status ? status : response.status;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vasrefil/api-toolkit",
3
3
  "description": "This is Vasrefil API toolkit",
4
- "version": "1.3.1",
4
+ "version": "1.3.3",
5
5
  "author": "Sodiq Alabi",
6
6
  "main": "dist/public-api.js",
7
7
  "types": "dist/public-api.d.ts",