@bluedot-innovation/models 7.6.0 → 7.7.0
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/.gitlab-ci.yml
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
# Official framework image. Look for the different tagged releases at:
|
|
2
2
|
# https://hub.docker.com/r/library/node/tags/
|
|
3
|
-
image: node:
|
|
4
|
-
|
|
5
|
-
before_script:
|
|
6
|
-
- npm install
|
|
3
|
+
image: node:14
|
|
7
4
|
|
|
8
5
|
# This folder is cached between builds
|
|
9
6
|
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
|
|
@@ -11,6 +8,13 @@ cache:
|
|
|
11
8
|
paths:
|
|
12
9
|
- node_modules/
|
|
13
10
|
|
|
11
|
+
before_script:
|
|
12
|
+
- whoami
|
|
13
|
+
- node --version
|
|
14
|
+
- npm install
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
14
18
|
stages:
|
|
15
19
|
- test
|
|
16
20
|
- deploy
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/schemas/Integration.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
let mongoose = require("mongoose");
|
|
2
2
|
const oloIntegrationSchema = require('./OloIntegration')
|
|
3
|
+
const segmentIntegrationSchema = require('./SegmentIntegration')
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
const MParticleSchema = new mongoose.Schema({
|
|
@@ -48,7 +49,8 @@ const IntegrationSchema = new mongoose.Schema({
|
|
|
48
49
|
}
|
|
49
50
|
]
|
|
50
51
|
},
|
|
51
|
-
olo: { type: oloIntegrationSchema }
|
|
52
|
+
olo: { type: oloIntegrationSchema },
|
|
53
|
+
segment: { type: segmentIntegrationSchema }
|
|
52
54
|
},{ _id : false });
|
|
53
55
|
function apiKeyValidator(value){
|
|
54
56
|
// check if the value is a non-empty string
|