@bluedot-innovation/models 9.1.0 → 9.1.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,6 @@
1
+ ## 9.1.1
2
+ - Reverted changes on 9.1.0 to remove UberEats integration from Project
3
+
1
4
  ## 9.1.0
2
5
  - Add UberEats integration to Project
3
6
 
@@ -108,9 +108,6 @@
108
108
  },
109
109
  "doordash": {
110
110
  "authorizationToken": "1986d1de-85ea-4339-93a2-6442d44a31f6"
111
- },
112
- "uberEats": {
113
- "signingKey": "5sWo9i2Ia2v1765_D6Wk20Uvn-sZQvDQ3h0MvwmY"
114
111
  }
115
112
  },
116
113
  "tempo": {
@@ -1010,18 +1010,6 @@ describe('Project', () => {
1010
1010
  })
1011
1011
  })
1012
1012
  })
1013
-
1014
- describe("UberEats integration validation", () => {
1015
- it('should throw an error when signingKey is missing', (done) => {
1016
- delete project.integrations.uberEats.signingKey
1017
- let Project = new ProjectModel(project)
1018
- Project.validate((err, res) => {
1019
- assert.exists(err)
1020
- assert.match(err.message, /`signingKey` is required/)
1021
- done()
1022
- })
1023
- })
1024
- })
1025
1013
  })
1026
1014
 
1027
1015
  describe('should throw an error when any of the values of the array contains a falsy value', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "9.1.0",
3
+ "version": "9.1.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",
@@ -9,7 +9,6 @@ const incentivioIntegrationSchema = require('./IncentivioIntegration')
9
9
  const mparticleIntegrationSchema = require('./MparticleIntegration')
10
10
  const klaviyoIntegrationSchema = require('./KlaviyoIntegration')
11
11
  const doordashIntegrationSchema = require('./DoordashIntegration')
12
- const uberEatsIntegrationSchema = require('./UberEatsIntegration')
13
12
 
14
13
  function mParticleValidator(value) {
15
14
  const { androidApiKey, iosApiKey, webApiKey } = value;
@@ -26,8 +25,7 @@ const IntegrationSchema = new mongoose.Schema({
26
25
  attentive: { type: projectAttentiveIntegrationSchema },
27
26
  incentivio: { type: incentivioIntegrationSchema },
28
27
  klaviyo: { type: klaviyoIntegrationSchema },
29
- doordash: { type: doordashIntegrationSchema },
30
- uberEats: { type: uberEatsIntegrationSchema }
28
+ doordash: { type: doordashIntegrationSchema }
31
29
  },{ _id : false });
32
30
 
33
31
  module.exports = IntegrationSchema
@@ -1,9 +0,0 @@
1
- const mongoose = require('mongoose');
2
-
3
- let UberEatsIntegrationSchema = new mongoose.Schema({
4
- signingKey: {type: String, required: true}
5
- }, {
6
- _id: false
7
- })
8
-
9
- module.exports = UberEatsIntegrationSchema