@bluedot-innovation/models 6.2.8 → 6.2.9-alpha.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,8 @@
|
|
|
1
|
+
## 6.2.9
|
|
2
|
+
- Remove poiCredits from Account model
|
|
3
|
+
- Remove activated field from account.integrations.sfmc
|
|
4
|
+
- Removed required label on dataExtensionId and dataExtensionVersion in sfmc integration object
|
|
5
|
+
|
|
1
6
|
## 6.2.8
|
|
2
7
|
- Change `shouldSync` default in Project to false
|
|
3
8
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
"name": "ABC Company",
|
|
7
7
|
"createdBy": "b0824b76-ce73-4fcf-81f8-1b63edb1114e",
|
|
8
8
|
"customerApiKey": "55645af4-a8cb-468d-93fa-c15dacc949ca",
|
|
9
|
-
"poiCredits": 23,
|
|
10
9
|
"features": {
|
|
11
10
|
"tempo": {
|
|
12
11
|
"enabled": true
|
|
@@ -25,7 +24,6 @@
|
|
|
25
24
|
"dataExtensionVersion": 2,
|
|
26
25
|
"dataExtensionId": "example-data-extension-id",
|
|
27
26
|
"stackKey": "example-stack-key",
|
|
28
|
-
"activated": true,
|
|
29
27
|
"enterpriseId": 1234567,
|
|
30
28
|
"organizationId": 12345,
|
|
31
29
|
"allowedFields": ["example-allowed-fields"]
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
requiredFields: ['name'],
|
|
3
3
|
customValidators: [
|
|
4
|
-
{name: 'poiCredits', invalidInputs: ['a string']},
|
|
5
4
|
{name: 'creationTime', invalidInputs: ['21/07/2017', 'thursday']},
|
|
6
5
|
{name: 'lastUpdateTime', invalidInputs: ['21/07/2017', 'saturday']}
|
|
7
6
|
],
|
|
8
7
|
sfmcIntegration: {
|
|
9
|
-
requiredFields: ['activeToken', 'activeTokenExpiry', 'refreshToken', 'userId', 'userEmail', '
|
|
8
|
+
requiredFields: ['activeToken', 'activeTokenExpiry', 'refreshToken', 'userId', 'userEmail', 'enterpriseId', 'organizationId']
|
|
10
9
|
}
|
|
11
10
|
}
|
package/models/Account.js
CHANGED
|
@@ -25,7 +25,6 @@ let AccountSchema = new mongoose.Schema({
|
|
|
25
25
|
default: uuidv4
|
|
26
26
|
},
|
|
27
27
|
state: {type: String, default: StateEnum.ACTIVE},
|
|
28
|
-
poiCredits: Number,
|
|
29
28
|
features: accountFeatures,
|
|
30
29
|
creationTime: {type: Date, default: Date.now},
|
|
31
30
|
lastUpdateTime: {type: Date, default: Date.now},
|
package/package.json
CHANGED
|
@@ -22,20 +22,14 @@ const SfmcIntegrationSchema = new mongoose.Schema({
|
|
|
22
22
|
required: true
|
|
23
23
|
},
|
|
24
24
|
dataExtensionId: {
|
|
25
|
-
type: String
|
|
26
|
-
required: true
|
|
25
|
+
type: String
|
|
27
26
|
},
|
|
28
27
|
dataExtensionVersion: {
|
|
29
|
-
type: Number
|
|
30
|
-
required: true
|
|
28
|
+
type: Number
|
|
31
29
|
},
|
|
32
30
|
stackKey: {
|
|
33
31
|
type: String
|
|
34
32
|
},
|
|
35
|
-
activated: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: false
|
|
38
|
-
},
|
|
39
33
|
enterpriseId: {
|
|
40
34
|
type: Number,
|
|
41
35
|
required: true
|