@bluedot-innovation/models 6.2.2 → 6.2.4
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 +8 -0
- package/__tests__/account/account.data.json +1 -1
- package/__tests__/account/account.rules.js +1 -1
- package/__tests__/project/project.remote.config.json +1 -2
- package/package.json +1 -1
- package/schemas/AndroidConfig.js +4 -1
- package/schemas/Heartbeat.js +9 -0
- package/schemas/IosConfig.js +4 -7
- package/schemas/SfmcIntegration.js +1 -1
- package/yarn.lock +2796 -0
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/package.json
CHANGED
package/schemas/AndroidConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
let mongoose = require('mongoose')
|
|
2
2
|
let TempoConfigSchema = require('./TempoConfig')
|
|
3
|
+
let heartbeatSchema = require('./Heartbeat')
|
|
3
4
|
|
|
4
5
|
let useCaseTypeEnum = {
|
|
5
6
|
values: ['Default', 'Retail', 'Automotive'],
|
|
@@ -24,7 +25,9 @@ let AndroidSchema = new mongoose.Schema({
|
|
|
24
25
|
useCaseType : {type: String, enum: useCaseTypeEnum, default: "Default"},
|
|
25
26
|
maximumPageSize: {type: Number},
|
|
26
27
|
enableAlarmClock: {type: Boolean, default: false},
|
|
27
|
-
tempo: TempoConfigSchema
|
|
28
|
+
tempo: TempoConfigSchema,
|
|
29
|
+
heartbeat: heartbeatSchema,
|
|
30
|
+
remoteConfigUpdateInterval: {type: Number, default: 86400}
|
|
28
31
|
}, {
|
|
29
32
|
_id: false
|
|
30
33
|
})
|
package/schemas/IosConfig.js
CHANGED
|
@@ -4,6 +4,7 @@ let telemetrySchema = require('./Telemetry')
|
|
|
4
4
|
let accuracySuppressionSchema = require('./AccuracySuppression')
|
|
5
5
|
let starvationDetectionSchema = require('./StarvationDetection')
|
|
6
6
|
let TempoConfigSchema = require('./TempoConfig')
|
|
7
|
+
let heartbeatSchema = require('./Heartbeat')
|
|
7
8
|
|
|
8
9
|
let useCaseTypeEnum = {
|
|
9
10
|
values: ['Default', 'Retail', 'Automotive'],
|
|
@@ -15,11 +16,6 @@ let triggerEngineEnum = {
|
|
|
15
16
|
message: 'enum validator failed for path `{PATH}` with value `{VALUE}`'
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
let disableBackgroundLocationEnum = {
|
|
19
|
-
values: ['None', 'BD'],
|
|
20
|
-
message: 'enum validator failed for path `{PATH}` with value `{VALUE}`'
|
|
21
|
-
}
|
|
22
|
-
|
|
23
19
|
let IosSchema = new mongoose.Schema({
|
|
24
20
|
triggeringOnWifiAccuracyThreshold : {type: Number, required: true},
|
|
25
21
|
triggeringOnGpsAccuracyThreshold : {type: Number, required: true},
|
|
@@ -40,9 +36,10 @@ let IosSchema = new mongoose.Schema({
|
|
|
40
36
|
accuracySuppression: accuracySuppressionSchema,
|
|
41
37
|
starvationDetector: starvationDetectionSchema,
|
|
42
38
|
triggerEngine: {type: String, enum: triggerEngineEnum, default: "BD"},
|
|
43
|
-
disableBackgroundLocation: {type: String, enum: disableBackgroundLocationEnum, default: "None"},
|
|
44
39
|
maximumPageSize: {type: Number},
|
|
45
|
-
tempo: TempoConfigSchema
|
|
40
|
+
tempo: TempoConfigSchema,
|
|
41
|
+
heartbeat: heartbeatSchema,
|
|
42
|
+
remoteConfigUpdateInterval: {type: Number, default: 86400}
|
|
46
43
|
}, {
|
|
47
44
|
_id: false
|
|
48
45
|
})
|