@bluedot-innovation/models 7.13.0 → 7.14.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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 7.14.1
2
+ - Added username and lastSyncedTime to Bbot integration
3
+
4
+ ## 7.14.0
5
+ - Added Flipdish integration to project
6
+
1
7
  ## 7.13.0
2
8
  - Added automaticDestinationCreation feature to account
3
9
 
@@ -65,6 +65,11 @@
65
65
  "tempo": false
66
66
  },
67
67
  "bbot": {
68
+ "nowReadyEnabled": true,
69
+ "username": "bluedot",
70
+ "lastSyncedTime": "2022-10-21T04:12:02.103Z"
71
+ },
72
+ "flipdish": {
68
73
  "nowReadyEnabled": true
69
74
  }
70
75
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "7.13.0",
3
+ "version": "7.14.1",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",
@@ -1,7 +1,9 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
3
  let BbotIntegrationSchema = new mongoose.Schema({
4
- nowReadyEnabled: {type: Boolean, default: false}
4
+ nowReadyEnabled: {type: Boolean, default: true},
5
+ username: {type: String},
6
+ lastSyncedTime: {type: Date, default: Date.now}
5
7
  }, {
6
8
  _id: false
7
9
  })
@@ -0,0 +1,9 @@
1
+ const mongoose = require('mongoose');
2
+
3
+ let FlipdishIntegrationSchema = new mongoose.Schema({
4
+ nowReadyEnabled: {type: Boolean, default: false}
5
+ }, {
6
+ _id: false
7
+ })
8
+
9
+ module.exports = FlipdishIntegrationSchema
@@ -3,6 +3,7 @@ const oloIntegrationSchema = require('./OloIntegration')
3
3
  const segmentIntegrationSchema = require('./SegmentIntegration')
4
4
  const oneSignalIntegrationSchema = require('./OneSignalIntegration')
5
5
  const bbotIntegrationSchema = require('./BbotIntegration')
6
+ const flipdishIntegrationSchema = require('./FlipdishIntegration')
6
7
 
7
8
 
8
9
  const MParticleSchema = new mongoose.Schema({
@@ -54,7 +55,8 @@ const IntegrationSchema = new mongoose.Schema({
54
55
  olo: { type: oloIntegrationSchema },
55
56
  segment: { type: segmentIntegrationSchema },
56
57
  oneSignal: { type: oneSignalIntegrationSchema },
57
- bbot: { type: bbotIntegrationSchema }
58
+ bbot: { type: bbotIntegrationSchema },
59
+ flipdish: { type: flipdishIntegrationSchema }
58
60
  },{ _id : false });
59
61
  function apiKeyValidator(value){
60
62
  // check if the value is a non-empty string