@bluedot-innovation/models 8.2.5 → 8.2.6

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
+ ## 8.2.6
2
+ - Add retryEnabled to webhook model
3
+
1
4
  ## 8.2.5
2
5
  - Fix validation of mParticle keys and event flags
3
6
 
@@ -11,21 +11,24 @@
11
11
  "url": "https://webhooklistener.bluedotinnovation.com",
12
12
  "headers" : {
13
13
  "securityToken" : "value"
14
- }
14
+ },
15
+ "retryEnabled": true
15
16
  },
16
17
  {
17
18
  "type": "tempo",
18
19
  "url": "https://webhooklistener.bluedotinnovation.com",
19
20
  "headers" : {
20
21
  "securityToken" : "value"
21
- }
22
+ },
23
+ "retryEnabled": true
22
24
  },
23
25
  {
24
26
  "type": "tempo",
25
27
  "url": "https://webhooklistener2.bluedotinnovation.com",
26
28
  "headers" : {
27
29
  "securityToken" : "value"
28
- }
30
+ },
31
+ "retryEnabled": false
29
32
  },
30
33
  {
31
34
  "type": "wave",
@@ -38,7 +41,8 @@
38
41
  "body": {
39
42
  "key1": "value1",
40
43
  "key2": "value2"
41
- }
44
+ },
45
+ "retryEnabled": true
42
46
  }
43
47
  ],
44
48
  "shouldSync": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "8.2.5",
3
+ "version": "8.2.6",
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",
@@ -50,7 +50,8 @@ let WebhookSchema = new mongoose.Schema({
50
50
  {validator: validateTealiumRequiredFields, msg: 'tealium webhooks require "tealium_account" and "tealium_profile" body fields to be present'},
51
51
  {validator: validateMobivityRequiredFields, msg: 'mobivity webhooks require "username", "target_id" and "message_text" body fields to be present'}
52
52
  ]
53
- }
53
+ },
54
+ retryEnabled: { type: Boolean, default: false }
54
55
  }, {
55
56
  _id: false
56
57
  })