@bluedot-innovation/models 10.12.1 → 10.12.2

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,6 @@
1
+ ## 10.12.2
2
+ - Fix APNs environment enum: change 'sandbox' to 'development' to match Apple's APNs environment values
3
+
1
4
  ## 10.12.1
2
5
  - Add Push Notification Campaign schemas (Campaign, CampaignNotification, CampaignZone)
3
6
  - Add Push Configuration schemas (PushConfiguration, ApnsConfiguration, FcmConfiguration)
@@ -1361,8 +1361,8 @@ describe('Project', () => {
1361
1361
  assert.notExists(res)
1362
1362
  })
1363
1363
 
1364
- it('should validate APNs with sandbox environment', async () => {
1365
- project.push.apns.environment = 'sandbox'
1364
+ it('should validate APNs with development environment', async () => {
1365
+ project.push.apns.environment = 'development'
1366
1366
  let Project = new ProjectModel(project)
1367
1367
  const res = await Project.validate()
1368
1368
  assert.notExists(res)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "10.12.1",
3
+ "version": "10.12.2",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",
@@ -4,7 +4,7 @@ let ApnsConfigurationSchema = new mongoose.Schema({
4
4
  environment: {
5
5
  type: String,
6
6
  required: [true, 'APNs environment is required'],
7
- enum: ['production', 'sandbox']
7
+ enum: ['production', 'development']
8
8
  },
9
9
  teamId: {
10
10
  type: String,