Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(SDL): refactor _legacy.graphql into individual typeDefs #10019

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading