-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#303): Update restful services graphql queries and mutations for…
… contact and user services. And also enabling email trigger service
- Loading branch information
Showing
12 changed files
with
270 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,92 @@ | ||
"User ID info for user query resolver" | ||
""" | ||
Verify user input payload | ||
""" | ||
input userIdInput { | ||
"The user's unique ID" | ||
""" | ||
Unique ID of the user | ||
""" | ||
_id: ID! | ||
} | ||
|
||
"Page and page size info for users query resolver" | ||
""" | ||
Delete user input payload | ||
""" | ||
input deleteUsersInput { | ||
""" | ||
List of user's unique ID | ||
""" | ||
ids: [ID!]! | ||
} | ||
|
||
""" | ||
Get user list input payload | ||
""" | ||
input usersQueryInput { | ||
"Page number of users to find" | ||
""" | ||
Page number of users to find | ||
""" | ||
pageNumber: Int | ||
|
||
"Total number of users per page" | ||
""" | ||
Total number of users per page | ||
""" | ||
pageSize: Int | ||
} | ||
|
||
"Input schema for createUser Mutation resolver" | ||
input createUserInput { | ||
"User alias from auth service" | ||
alias: String! | ||
|
||
"User first name info" | ||
givenName: String! | ||
|
||
"User last name info" | ||
surName: String! | ||
|
||
"Name displayed on user profile, e.g. username" | ||
displayName: String! | ||
"User email address" | ||
email: String! | ||
""" | ||
Optional field to find users base on userName | ||
""" | ||
displayName: String | ||
} | ||
"Update user mutation resolver schema" | ||
|
||
""" | ||
User modification input payload | ||
""" | ||
input updateUserInput { | ||
"Unique ID of user to update" | ||
""" | ||
Unique ID of user to update | ||
""" | ||
_id: ID! | ||
"User alias e.g. username" | ||
|
||
""" | ||
User alias e.g. username | ||
""" | ||
alias: String | ||
"User ID from auth service" | ||
|
||
""" | ||
User ID from auth service | ||
""" | ||
userid: String | ||
"User first name info" | ||
|
||
""" | ||
User first name info | ||
""" | ||
givenName: String | ||
"User last name info" | ||
|
||
""" | ||
User last name info | ||
""" | ||
surName: String | ||
"name displayed on user profile similar to username" | ||
|
||
""" | ||
Name displayed on user profile similar to username | ||
""" | ||
displayName: String | ||
"User email" | ||
|
||
""" | ||
User email email address | ||
""" | ||
email: String | ||
|
||
""" | ||
User priviledge options | ||
""" | ||
roles: Roles | ||
} | ||
|
||
""" | ||
Available user priviledge options | ||
""" | ||
enum Roles { | ||
isAdmin | ||
member | ||
} |
Oops, something went wrong.