@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
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"userId": "example-user-id",
|
|
18
18
|
"userEmail": "example@emai1.com",
|
|
19
19
|
"dataExtensionVersion": 2,
|
|
20
|
-
"
|
|
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', '
|
|
9
|
+
requiredFields: ['activeToken', 'activeTokenExpiry', 'refreshToken', 'userId', 'userEmail', 'dataExtensionId', 'dataExtensionVersion', 'enterpriseId', 'organizationId']
|
|
10
10
|
}
|
|
11
11
|
}
|
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,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
|
-
|
|
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
|