@bluedot-innovation/models 7.13.0 → 7.14.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 7.14.0
2
+ - Added Flipdish integration to project
3
+
1
4
  ## 7.13.0
2
5
  - Added automaticDestinationCreation feature to account
3
6
 
@@ -66,6 +66,9 @@
66
66
  },
67
67
  "bbot": {
68
68
  "nowReadyEnabled": true
69
+ },
70
+ "flipdish": {
71
+ "nowReadyEnabled": true
69
72
  }
70
73
  },
71
74
  "tempo": {
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.0",
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",
@@ -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