@bluedot-innovation/models 7.9.0 → 7.10.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.10.0
2
+ - Add Bbot Integration to Project
3
+
1
4
  ## 7.9.0
2
5
  - Add helloOrder webhook
3
6
 
@@ -63,6 +63,9 @@
63
63
  "wave": true,
64
64
  "trigger": true,
65
65
  "tempo": false
66
+ },
67
+ "bbot": {
68
+ "nowReadyEnabled": true
66
69
  }
67
70
  },
68
71
  "tempo": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "7.9.0",
3
+ "version": "7.10.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 BbotIntegrationSchema = new mongoose.Schema({
4
+ nowReadyEnabled: {type: Boolean, default: false}
5
+ }, {
6
+ _id: false
7
+ })
8
+
9
+ module.exports = BbotIntegrationSchema
@@ -2,6 +2,7 @@ let mongoose = require("mongoose");
2
2
  const oloIntegrationSchema = require('./OloIntegration')
3
3
  const segmentIntegrationSchema = require('./SegmentIntegration')
4
4
  const oneSignalIntegrationSchema = require('./OneSignalIntegration')
5
+ const bbotIntegrationSchema = require('./BbotIntegration')
5
6
 
6
7
 
7
8
  const MParticleSchema = new mongoose.Schema({
@@ -52,7 +53,8 @@ const IntegrationSchema = new mongoose.Schema({
52
53
  },
53
54
  olo: { type: oloIntegrationSchema },
54
55
  segment: { type: segmentIntegrationSchema },
55
- oneSignal: { type: oneSignalIntegrationSchema }
56
+ oneSignal: { type: oneSignalIntegrationSchema },
57
+ bbot: { type: bbotIntegrationSchema }
56
58
  },{ _id : false });
57
59
  function apiKeyValidator(value){
58
60
  // check if the value is a non-empty string