File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,11 @@ PUSH_KEY - AWS key.
38
38
PUSH_SECRET - AWS secret.
39
39
PUSH_REGION - AWS SNS region.
40
40
PUSH_TITLE - Title for push notifications.
41
- GSM_APP_ARN - Android ARN for AWS SNS.
42
- APNS_APP_ARN - Apple iOS ARN for AWS SNS.
41
+ APPS_ARNS - Object with arn for every app. Example: {
42
+ "android": "arn:aws:sns:us-east-1:093525834944: app /GCM/android",
43
+ "ios": "arn:aws:sns:us-east-1:093525834944: app /APNS/ios"
44
+ }
45
+ DEFAULT_APP - default app from the list above.
43
46
44
47
SENTRY_DSN - DSN from getsentry.com
45
48
```
Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ Notification Microservice.
99
99
{
100
100
"recipientId": "1",
101
101
"message": "Hello",
102
- "payload": {}
102
+ "payload": {},
103
+ "app": { "name": "Enterprise" }
103
104
}
104
105
105
106
+ Response 201
@@ -108,6 +109,7 @@ Notification Microservice.
108
109
"message": "Hello",
109
110
"providerMessageId": "2",
110
111
"payload": {},
112
+ "app": { "name": "Enterprise" },
111
113
"sendDate": "2016- 05-20T17:19:15.602Z",
112
114
"platformApplicationArn":"arn:aws:sns:us-east-1:1:app/APNS_SANDBOX/1"
113
115
}]
@@ -120,7 +122,8 @@ Notification Microservice.
120
122
{
121
123
"token": "1",
122
124
"message": "Hello",
123
- "payload": {}
125
+ "payload": {},
126
+ "app": { "name": "Enterprise" }
124
127
}
125
128
126
129
+ Response 201
@@ -129,6 +132,7 @@ Notification Microservice.
129
132
"message": "Hello",
130
133
"providerMessageId": "2",
131
134
"payload": {},
135
+ "app": { "name": "Enterprise" },
132
136
"sendDate": "2016- 05-20T17:19:15.602Z",
133
137
"platformApplicationArn":"arn:aws:sns:us-east-1:1:app/APNS_SANDBOX/1"
134
138
}
@@ -151,6 +155,7 @@ Notification Microservice.
151
155
"payload": {
152
156
"link": "inspection://inspection/123567/#comment-1234567"
153
157
},
158
+ "app": { "name": "Enterprise" },
154
159
"tokens": ["1", "2"]
155
160
},
156
161
"pubsub": {
Original file line number Diff line number Diff line change 18
18
"node" : " 4.4.4"
19
19
},
20
20
"scripts" : {
21
- "test" : " npm run lint && npm run dredd && npm run mocha" ,
21
+ "test" : " npm run lint && npm run mocha" ,
22
22
"lint" : " eslint --ignore-path .gitignore ./" ,
23
23
"start" : " forever -m 5 --spinSleepTime 30000 --minUptime 1000 -af dist/" ,
24
24
"start:dev" : " DEBUG=app* babel-node src/" ,
28
28
"build" : " redrun clean babel" ,
29
29
"clean" : " del ./dist" ,
30
30
"babel" : " babel --source-maps --copy-files -d dist/ src/" ,
31
- "postinstall" : " if-env NODE_ENV=production && npm run build && npm prune --production || npm run build" ,
32
31
"deploy" : " node ./deploy.js" ,
33
32
"deploy:staging" : " docker build -t outfit/pingeon:staging . && docker push outfit/pingeon:staging" ,
34
33
"deploy:production" : " docker build -t outfit/pingeon:production . && docker push outfit/pingeon:production"
61
60
"promdash" : " 1.1.0" ,
62
61
"raven" : " 0.12.1" ,
63
62
"serve-favicon" : " 2.3.0" ,
64
- "smart-config" : " 0.7.2 " ,
63
+ "smart-config" : " 0.7.3 " ,
65
64
"source-map-support" : " 0.4.2" ,
66
65
"worque" : " 0.9.3"
67
66
},
77
76
"chai" : " 3.5.0" ,
78
77
"clear-require" : " 1.0.1" ,
79
78
"del-cli" : " 0.2.0" ,
80
- "dredd" : " 1.0.11" ,
81
79
"eslint" : " 2.6.0" ,
82
80
"eslint-config-airbnb" : " 6.2.0" ,
83
81
"hooks" : " 0.3.2" ,
Original file line number Diff line number Diff line change 1
1
require ( './test-env' ) ;
2
2
3
- const config = require ( 'smart-config' ) ;
4
3
const { toObject } = require ( 'node-helpers' ) ;
5
4
const Notification = require ( '../src/services/notification/model' ) ;
6
5
You can’t perform that action at this time.
0 commit comments