@bluedot-innovation/models 2.0.0-beta.10 → 2.0.0-beta.12

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
@@ -40,4 +40,4 @@ publish:
40
40
  - /^(?!.*(master)$).*$/
41
41
  script:
42
42
  - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
43
- - npm publish
43
+ - npm publish
package/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ ## 2.0.0-beta.12
2
+ - User model: `emailAddress` changed to `email`
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_id" : "bf93ddd2-e7e9-4a89-9bcb-0b2164c17e45",
3
- "appplicationId" : "fd150b63-08dc-4114-aaf9-359cef30def6",
3
+ "applicationId" : "fd150b63-08dc-4114-aaf9-359cef30def6",
4
4
  "customerId" : "f944c7e9-63cc-4c0a-8ad3-acf3c30415fc",
5
5
  "iosCount" : 9,
6
6
  "androidCount" : 0,
@@ -36,11 +36,11 @@ testCase('RuleRequestAggregation', () => {
36
36
  done()
37
37
  })
38
38
  })
39
- assertions('should not accept a invalid appplicationId', (done) => {
40
- ruleRequestAggregation.appplicationId = 'invalid-applicationId'
39
+ assertions('should not accept a invalid applicationId', (done) => {
40
+ ruleRequestAggregation.applicationId = 'invalid-applicationId'
41
41
  let RuleRequestAggregation = new RuleRequestAggregationModel(ruleRequestAggregation)
42
42
  RuleRequestAggregation.validate((err, res) => {
43
- assert.exists(err, 'invalid aplicationId')
43
+ assert.exists(err, 'invalid applicationId')
44
44
  assert.isObject(err)
45
45
  done()
46
46
  })
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  username: 'test@bluedot.io',
3
- emailAddress: 'test@bluedot.io',
3
+ email: 'test@bluedot.io',
4
4
  password: 'jfmamjasond',
5
5
  firstName: 'John',
6
6
  lastName: 'Citizen',
@@ -9,7 +9,7 @@ const helpers = require('../helpers')
9
9
 
10
10
  const schema = {
11
11
  _id: { type: String, default: uuidv4 },
12
- appplicationId: {type: String, required: [true, 'applicationId is required'], validate: {isAsync: false, validator: helpers.validateUUIDv4, msg: 'invalid applicationId'}},
12
+ applicationId: {type: String, required: [true, 'applicationId is required'], validate: {isAsync: false, validator: helpers.validateUUIDv4, msg: 'invalid applicationId'}},
13
13
  customerId: {type: String, required: [true, 'customerId is required'], validate: {isAsync: false, validator: helpers.validateUUIDv4, msg: 'invalid customerId'}},
14
14
  iosCount: {type: Number, required: [true, 'iosCount is required'], min: 0},
15
15
  androidCount: {type: Number, required: [true, 'androidCount is required'], min: 0},
package/models/User.js CHANGED
@@ -15,7 +15,7 @@ let UserSchema = new mongoose.Schema({
15
15
  maxlength: 100,
16
16
  unique: true
17
17
  },
18
- emailAddress: {
18
+ email: {
19
19
  type: String,
20
20
  required: true,
21
21
  validate: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.12",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {