@go-mailer/jarvis 4.0.0 → 4.0.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.
@@ -1,12 +1,11 @@
1
- const { Schema, Entity } = require('redis-om')
1
+ const { Schema, Repository } = require('redis-om')
2
2
  const client = require('../index')
3
3
 
4
- class Campaign extends Entity {}
5
- const CampaignSchema = new Schema(Campaign, {
4
+ const CampaignSchema = new Schema('campaign', {
6
5
  id: {type: 'number'},
7
6
  status: {type: 'number'}
8
7
  })
9
8
 
10
9
  module.exports = {
11
- CampaignRepo: client.register_schema(CampaignSchema)
10
+ CampaignRepo: new Repository(CampaignSchema, client)
12
11
  }
@@ -1,11 +1,10 @@
1
- const { Schema, Entity } = require('redis-om')
1
+ const { Schema, Repository } = require('redis-om')
2
2
  const client = require('../index')
3
3
 
4
- class ContactImport extends Entity {}
5
- const ContactImportSchema = new Schema(ContactImport, {
4
+ const ContactImportSchema = new Schema('contactimport', {
6
5
  data: { type: 'string' }
7
6
  })
8
7
 
9
8
  module.exports = {
10
- contactImportRepo: client.register_schema(ContactImportSchema)
9
+ contactImportRepo: new Repository(ContactImportSchema, client)
11
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "4.0.0",
3
+ "version": "4.0.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>",