@go-mailer/jarvis 5.0.13 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/query.js CHANGED
@@ -36,7 +36,7 @@ const buildQuery = (options) => {
36
36
  delete options.sum
37
37
 
38
38
  Object.keys(options).forEach((field) => {
39
- const field_value = options[field] ? options[field].toString().toLowerCase() : ''
39
+ const field_value = options[field] ? options[field].toString() : ''
40
40
  let condition
41
41
 
42
42
  if (field_value.includes(':')) {
@@ -1,17 +1,19 @@
1
- const { ActivityLogSchema } = require('./iam/Activity')
2
- const { ContactImportSchema } = require('./Contact')
3
- const { PostalSchema } = require('./Postal')
4
- const { TaskSchema } = require('./automation/Task')
5
- const { CampaignSchema } = require('./mailing/Campaign')
6
- const { LinkSchema } = require('./mailing/Link')
7
- const { MailActionSchema } = require('./mailing/Mailaction')
1
+ const { ActivityLogSchema } = require("./iam/Activity");
2
+ const { ContactImportSchema } = require("./Contact");
3
+ const { PostalSchema } = require("./Postal");
4
+ const { TaskSchema } = require("./automation/Task");
5
+ const { CampaignSchema } = require("./mailing/Campaign");
6
+ const { LinkSchema } = require("./mailing/Link");
7
+ const { MailActionSchema } = require("./mailing/Mailaction");
8
+ const { AutoTopUpSchema } = require("./sales/Wallet");
8
9
 
9
10
  module.exports = {
10
11
  ActivityLogSchema,
12
+ AutoTopUpSchema,
11
13
  CampaignSchema,
12
14
  ContactImportSchema,
13
15
  LinkSchema,
14
16
  MailActionSchema,
15
17
  PostalSchema,
16
- AutomationTaskSchema: TaskSchema
17
- }
18
+ AutomationTaskSchema: TaskSchema,
19
+ };
@@ -0,0 +1,9 @@
1
+ const { Schema } = require('redis-om')
2
+
3
+ const AutoTopUpSchema = new Schema('auto_topup', {
4
+ tenant_id: { type: 'number' },
5
+ })
6
+
7
+ module.exports = {
8
+ AutoTopUpSchema
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "5.0.13",
3
+ "version": "5.1.1",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:go-mailer-ltd/jarvis-node.git",
6
6
  "author": "Nathan Oguntuberu <nateoguns.work@gmail.com>",