-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5da23ce
commit 619a191
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
frontend/graphql/mutations/service-accounts/createServiceAccount.gql
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
mutation CreateServiceAccount( | ||
$name: String! | ||
$orgId: ID! | ||
$roleId: ID! | ||
$identityKey: String! | ||
$handlers: [ServiceAccountHandlerInput] | ||
$serverWrappedKeyring: String | ||
$serverWrappedRecovery: String | ||
) { | ||
createServiceAccount( | ||
name: $name | ||
organisationId: $orgId | ||
roleId: $roleId | ||
identityKey: $identityKey | ||
handlers: $handlers | ||
serverWrappedKeyring: $serverWrappedKeyring | ||
serverWrappedRecovery: $serverWrappedRecovery | ||
) { | ||
serviceAccount { | ||
id | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
frontend/graphql/mutations/service-accounts/deleteServiceAccount.gql
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutation DeleteServiceAccount($id: ID!) { | ||
deleteServiceAccount(serviceAccountId: $id) { | ||
ok | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
frontend/graphql/queries/service-accounts/getServiceAccountHandlers.gql
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
query GetServiceAccountHandlers($orgId: ID!) { | ||
serviceAccountHandlers(orgId: $orgId) { | ||
id | ||
role { | ||
name | ||
permissions | ||
} | ||
identityKey | ||
self | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
frontend/graphql/queries/service-accounts/getServiceAccounts.gql
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query GetServiceAccounts($orgId: ID!) { | ||
serviceAccounts(orgId: $orgId) { | ||
id | ||
name | ||
role { | ||
id | ||
name | ||
permissions | ||
} | ||
createdAt | ||
} | ||
} |