Skip to content

Commit

Permalink
refactor _legacy into individual typeDefs
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <[email protected]>
  • Loading branch information
mattkrick committed Jul 23, 2024
1 parent eceb7af commit ddab75f
Show file tree
Hide file tree
Showing 598 changed files with 11,196 additions and 12,727 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Return value for changeEmailDomain, which could be an error
"""
union ChangeEmailDomainPayload = ErrorPayload | ChangeEmailDomainSuccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type ChangeEmailDomainSuccess {
"""
The users whose domains were changed
"""
usersUpdated: [User!]!

"""
Users whose domains were not changed as they were already in the new domain
"""
usersNotUpdated: [User!]!
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type DomainCountPayload {
"""
the email domain
"""
domain: ID!

"""
the sum total
"""
total: Int!
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type DraftEnterpriseInvoicePayload {
error: StandardMutationError

"""
The updated organization
"""
organization: Organization
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Return value for endTrial, which could be an error
"""
union EndTrialPayload = ErrorPayload | EndTrialSuccess
11 changes: 11 additions & 0 deletions packages/server/graphql/private/typeDefs/EndTrialSuccess.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type EndTrialSuccess {
"""
The updated organization
"""
organization: Organization!

"""
The start time of the ended trial
"""
trialStartDate: DateTime
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type FlagConversionModalPayload {
error: StandardMutationError

"""
the org with the limit added or removed
"""
org: Organization
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type FlagOverLimitPayload {
error: StandardMutationError

"""
the users with the limit added or removed
"""
users: [User!]
}
11 changes: 11 additions & 0 deletions packages/server/graphql/private/typeDefs/LoginsPayload.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type LoginsPayload {
"""
the total number of records
"""
total: Int!

"""
The total broken down by email domain
"""
byDomain: [DomainCountPayload!]!
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Return object for MessageAllSlackUsersPayload
"""
union MessageAllSlackUsersPayload = ErrorPayload | MessageAllSlackUsersSuccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type MessageAllSlackUsersSuccess {
"""
A list of the Parabol user ids that have been sent a direct message in Slack
"""
messagedUserIds: [ID!]!

"""
Slack messages that failed to send
"""
errors: [MessageSlackUserError!]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""
An error from sending a message to a Slack user
"""
type MessageSlackUserError {
userId: ID!

"""
The error message received from Slack
"""
error: String!
}
Loading

0 comments on commit ddab75f

Please sign in to comment.