feat: auth self-registration config + gql grouping
This commit is contained in:
		
							
								
								
									
										12
									
								
								client/graph/admin/groups/groups-mutation-assign.gql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								client/graph/admin/groups/groups-mutation-assign.gql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| mutation ($groupId: Int!, $userId: Int!) { | ||||
|   groups { | ||||
|     assignUser(groupId: $groupId, userId: $userId) { | ||||
|       responseResult { | ||||
|         succeeded | ||||
|         errorCode | ||||
|         slug | ||||
|         message | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
							
								
								
									
										18
									
								
								client/graph/admin/groups/groups-mutation-create.gql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								client/graph/admin/groups/groups-mutation-create.gql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| mutation ($name: String!) { | ||||
|   groups { | ||||
|     create(name: $name) { | ||||
|       responseResult { | ||||
|         succeeded | ||||
|         errorCode | ||||
|         slug | ||||
|         message | ||||
|       } | ||||
|       group { | ||||
|         id | ||||
|         name | ||||
|         createdAt | ||||
|         updatedAt | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
							
								
								
									
										12
									
								
								client/graph/admin/groups/groups-mutation-delete.gql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								client/graph/admin/groups/groups-mutation-delete.gql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| mutation ($id: Int!) { | ||||
|   groups { | ||||
|     delete(id: $id) { | ||||
|       responseResult { | ||||
|         succeeded | ||||
|         errorCode | ||||
|         slug | ||||
|         message | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
							
								
								
									
										12
									
								
								client/graph/admin/groups/groups-mutation-unassign.gql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								client/graph/admin/groups/groups-mutation-unassign.gql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| mutation ($groupId: Int!, $userId: Int!) { | ||||
|   groups { | ||||
|     unassignUser(groupId: $groupId, userId: $userId) { | ||||
|       responseResult { | ||||
|         succeeded | ||||
|         errorCode | ||||
|         slug | ||||
|         message | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
							
								
								
									
										12
									
								
								client/graph/admin/groups/groups-mutation-update.gql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								client/graph/admin/groups/groups-mutation-update.gql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| mutation ($id: Int!, $name: String!) { | ||||
|   groups { | ||||
|     update(id: $id, name: $name) { | ||||
|       responseResult { | ||||
|         succeeded | ||||
|         errorCode | ||||
|         slug | ||||
|         message | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
							
								
								
									
										11
									
								
								client/graph/admin/groups/groups-query-list.gql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								client/graph/admin/groups/groups-query-list.gql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| query { | ||||
|   groups { | ||||
|     list { | ||||
|       id | ||||
|       name | ||||
|       userCount | ||||
|       createdAt | ||||
|       updatedAt | ||||
|     } | ||||
|   } | ||||
| } | ||||
							
								
								
									
										22
									
								
								client/graph/admin/groups/groups-query-single.gql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								client/graph/admin/groups/groups-query-single.gql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| query ($id: Int!) { | ||||
|   groups { | ||||
|     single(id: $id) { | ||||
|       id | ||||
|       name | ||||
|       rights { | ||||
|         id | ||||
|         path | ||||
|         role | ||||
|         exact | ||||
|         allow | ||||
|       } | ||||
|       users { | ||||
|         id | ||||
|         name | ||||
|         email | ||||
|       } | ||||
|       createdAt | ||||
|       updatedAt | ||||
|     } | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user