@go-mailer/jarvis 7.2.0 → 8.0.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.
@@ -5,29 +5,17 @@ const { TaskSchema } = require("./automation/Task");
5
5
  const { CampaignSchema } = require("./mailing/Campaign");
6
6
  const { LinkSchema } = require("./mailing/Link");
7
7
  const { MailActionSchema } = require("./mailing/Mailaction");
8
- const {
9
- AppInsightSubSchema,
10
- AutomationSubSchema,
11
- CampaignSubSchema,
12
- SMSSubSchema,
13
- TransactionalSubSchema,
14
- WebPushSubSchema,
15
- } = require("./sales/Subscription");
8
+ const { SubscriptionSchema } = require("./sales/Subscription");
16
9
  const { AutoTopUpSchema } = require("./sales/Wallet");
17
10
 
18
11
  module.exports = {
19
12
  ActivityLogSchema,
20
- AppInsightSubSchema,
21
- AutomationSubSchema,
22
13
  AutomationTaskSchema: TaskSchema,
23
14
  AutoTopUpSchema,
24
15
  CampaignSchema,
25
- CampaignSubSchema,
26
16
  ContactImportSchema,
27
17
  LinkSchema,
28
18
  MailActionSchema,
29
19
  PostalSchema,
30
- SMSSubSchema,
31
- TransactionalSubSchema,
32
- WebPushSubSchema,
20
+ SubscriptionSchema
33
21
  };
@@ -1,34 +1,9 @@
1
1
  const { Schema } = require("redis-om");
2
2
 
3
- const AppInsightSubSchema = new Schema("app_insight_subscription", {
4
- tenant_id: { type: "number" },
5
- });
6
-
7
- const AutomationSubSchema = new Schema("automation_subscription", {
8
- tenant_id: { type: "number" },
9
- });
10
-
11
- const CampaignSubSchema = new Schema("campaign_subscription", {
12
- tenant_id: { type: "number" },
13
- });
14
-
15
- const SMSSubSchema = new Schema("sms_subscription", {
16
- tenant_id: { type: "number" },
17
- });
18
-
19
- const TransactionalSubSchema = new Schema("transactional_subscription", {
20
- tenant_id: { type: "number" },
21
- });
22
-
23
- const WebPushSubSchema = new Schema("web_push_subscription", {
24
- tenant_id: { type: "number" },
3
+ const SubscriptionSchema = new Schema("subscription", {
4
+ tenant_id: { type: "string" },
25
5
  });
26
6
 
27
7
  module.exports = {
28
- AppInsightSubSchema,
29
- AutomationSubSchema,
30
- CampaignSubSchema,
31
- SMSSubSchema,
32
- TransactionalSubSchema,
33
- WebPushSubSchema,
8
+ SubscriptionSchema,
34
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "7.2.0",
3
+ "version": "8.0.0",
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>",