Skip to content

Commit

Permalink
Use DomainName in the remaining GraphQL commands
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Nov 18, 2022
1 parent 2c8ac74 commit b2007a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion priv/graphql/schemas/admin/domain.gql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type DomainAdminQuery @use(services: ["service_domain_db"]) @protected{
"Get all enabled domains by hostType. Only for global admin"
domainsByHostType(hostType: String!): [String!]
domainsByHostType(hostType: String!): [DomainName!]
@protected(type: GLOBAL) @use
"Get information about the domain"
domainDetails(domain: DomainName!): Domain
Expand Down
8 changes: 4 additions & 4 deletions priv/graphql/schemas/admin/session.gql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Allow admin to get information about sessions.
"""
type SessionAdminQuery @protected{
"Get the list of established sessions for a specified domain or globally"
listSessions(domain: String): [Session!]
listSessions(domain: DomainName): [Session!]
@protected(type: DOMAIN, args: ["domain"])
"Get the number of established sessions for a specified domain or globally"
countSessions(domain: String): Int
countSessions(domain: DomainName): Int
@protected(type: DOMAIN, args: ["domain"])
"Get information about all sessions of a user"
listUserSessions(user: JID!): [Session!]
Expand All @@ -18,10 +18,10 @@ type SessionAdminQuery @protected{
getUserResource(user: JID!, number: Int): String
@protected(type: DOMAIN, args: ["user"])
"Get the list of logged users with this status for a specified domain or globally"
listUsersWithStatus(domain: String, status: String!): [UserStatus!]
listUsersWithStatus(domain: DomainName, status: String!): [UserStatus!]
@protected(type: DOMAIN, args: ["domain"])
"Get the number of logged users with this status for a specified domain or globally"
countUsersWithStatus(domain: String, status: String!): Int
countUsersWithStatus(domain: DomainName, status: String!): Int
@protected(type: DOMAIN, args: ["domain"])
}

Expand Down
2 changes: 1 addition & 1 deletion priv/graphql/schemas/admin/stats.gql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type StatsAdminQuery @protected{
globalStats: GlobalStats
@protected(type: GLOBAL)
"Get statistics from a specific domain"
domainStats(domain: String!): DomainStats
domainStats(domain: DomainName!): DomainStats
@protected(type: DOMAIN, args: ["domain"])
}

Expand Down

0 comments on commit b2007a7

Please sign in to comment.