@bluedot-innovation/models 6.2.1 → 6.2.3

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
+ ## 6.2.3
2
+ - Fixed typo of dataExtensionsId to dataExtensionId
3
+
4
+ ## 6.2.2
5
+ - Added sfmc integrations object to Account model
6
+
1
7
  ## 6.2.0
2
8
  - Renamed all references to eta to tempo
3
9
 
@@ -17,7 +17,7 @@
17
17
  "userId": "example-user-id",
18
18
  "userEmail": "example@emai1.com",
19
19
  "dataExtensionVersion": 2,
20
- "dataExtensionsId": "example-data-extension-id",
20
+ "dataExtensionId": "example-data-extension-id",
21
21
  "stackKey": "example-stack-key",
22
22
  "activated": true,
23
23
  "enterpriseId": 1234567,
@@ -6,6 +6,6 @@ module.exports = {
6
6
  {name: 'lastUpdateTime', invalidInputs: ['21/07/2017', 'saturday']}
7
7
  ],
8
8
  sfmcIntegration: {
9
- requiredFields: ['activeToken', 'activeTokenExpiry', 'refreshToken', 'userId', 'userEmail', 'dataExtensionsId', 'dataExtensionVersion', 'enterpriseId', 'organizationId']
9
+ requiredFields: ['activeToken', 'activeTokenExpiry', 'refreshToken', 'userId', 'userEmail', 'dataExtensionId', 'dataExtensionVersion', 'enterpriseId', 'organizationId']
10
10
  }
11
11
  }
@@ -9,7 +9,6 @@ let chai = require('chai')
9
9
  let assert = chai.assert
10
10
  let mocha = require('mocha')
11
11
  let beforeEach = mocha.beforeEach
12
- let helpers = require("../../helpers");
13
12
 
14
13
  let account
15
14
 
package/models/Account.js CHANGED
@@ -26,7 +26,6 @@ let AccountSchema = new mongoose.Schema({
26
26
  },
27
27
  state: {type: String, default: StateEnum.ACTIVE},
28
28
  poiCredits: Number,
29
- integrations: Object,
30
29
  features: accountFeatures,
31
30
  creationTime: {type: Date, default: Date.now},
32
31
  lastUpdateTime: {type: Date, default: Date.now},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "6.2.1",
3
+ "version": "6.2.3",
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,5 +1,4 @@
1
1
  let mongoose = require("mongoose");
2
- const helpers = require("../helpers");
3
2
 
4
3
  const SfmcIntegrationSchema = new mongoose.Schema({
5
4
  activeToken: {
@@ -22,7 +21,7 @@ const SfmcIntegrationSchema = new mongoose.Schema({
22
21
  type: String,
23
22
  required: true
24
23
  },
25
- dataExtensionsId: {
24
+ dataExtensionId: {
26
25
  type: String,
27
26
  required: true
28
27
  },
@@ -48,6 +47,8 @@ const SfmcIntegrationSchema = new mongoose.Schema({
48
47
  allowedFields: {
49
48
  type: [String]
50
49
  }
50
+ }, {
51
+ _id: false
51
52
  })
52
53
 
53
54
  module.exports = SfmcIntegrationSchema