This commit is contained in:
Barry Low committed 2018-12-14 22:07:36 -08:00
1 parent 1e46138af9
commit 27a3daa257
2 files changed
+4 -27

No files matched your search

+4 -3
View File
@@ -3,7 +3,7 @@
## Architecture
Currently, this module is only a GraphQL server providing notification services to other platform modules. For example, it wraps the SendGrid API and allows other modules to send transactional emails or provides signup methods to campaign newsletter list.
There is no database or client for this module at this time.
There is no database or client for this module currently.
### GraqphQL schema
@@ -13,11 +13,12 @@ The Notifications Module graphql schema:
type Mutation {
Corporate_NewsletterSignup(email: String!): String
Corporate_NewsletterSignupVerify(token: String!): String
Corporate_Contact(email: String!, subject: String!, Message: String!, recaptcha: String!): String
Corporate_Contact(email: String!, name: String, message: String!, recaptcha: String!): String
Master_NewsletterSignup(email: String!): String
Master_NewsletterSignupVerify(token: String!): String
Master_Contact(email: String!, subject: String!, Message: String!, recaptcha: String!): String
Master_Feedback(email: String!, subject: String!, message: String!, recaptcha: String!): String
Teams_SendTeamMemberInvite(email: String!, teamName: String!): String
Teams_SendTeamCreateConfirmation(email: String!, teamName: String!, botName: String!): String
Teams_VerifyTeamMemberInviteToken(token: String!): String
}
```
-24
View File
@@ -1,24 +0,0 @@
export class AuthenticationError extends Error {
code = 401
message = 'Not Authenticated - you have to be authenticated to perform this action'
}
export class DatabaseError extends Error {
code = 404
message = `Resource Error: ${this.message}`
}
export class ApolloError extends Error {
code = 409
message = `Resource already exists: ${this.message}`
}
export class WrongArgumentsError extends Error {
code = 400
message = 'Wrong arguments : ' + this.message
}
export class ServiceUnavailableError extends Error {
code = 503
message = 'At least one service is unresponding ' + this.message
}