-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor _legacy into individual typeDefs
Signed-off-by: Matt Krick <[email protected]>
- Loading branch information
Showing
598 changed files
with
11,196 additions
and
12,727 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/server/graphql/private/typeDefs/ChangeEmailDomainPayload.graphql
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,4 @@ | ||
""" | ||
Return value for changeEmailDomain, which could be an error | ||
""" | ||
union ChangeEmailDomainPayload = ErrorPayload | ChangeEmailDomainSuccess |
11 changes: 11 additions & 0 deletions
11
packages/server/graphql/private/typeDefs/ChangeEmailDomainSuccess.graphql
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 @@ | ||
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!]! | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/server/graphql/private/typeDefs/DomainCountPayload.graphql
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 @@ | ||
type DomainCountPayload { | ||
""" | ||
the email domain | ||
""" | ||
domain: ID! | ||
|
||
""" | ||
the sum total | ||
""" | ||
total: Int! | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/server/graphql/private/typeDefs/DraftEnterpriseInvoicePayload.graphql
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,8 @@ | ||
type DraftEnterpriseInvoicePayload { | ||
error: StandardMutationError | ||
|
||
""" | ||
The updated organization | ||
""" | ||
organization: Organization | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/server/graphql/private/typeDefs/EndTrialPayload.graphql
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,4 @@ | ||
""" | ||
Return value for endTrial, which could be an error | ||
""" | ||
union EndTrialPayload = ErrorPayload | EndTrialSuccess |
11 changes: 11 additions & 0 deletions
11
packages/server/graphql/private/typeDefs/EndTrialSuccess.graphql
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 @@ | ||
type EndTrialSuccess { | ||
""" | ||
The updated organization | ||
""" | ||
organization: Organization! | ||
|
||
""" | ||
The start time of the ended trial | ||
""" | ||
trialStartDate: DateTime | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/server/graphql/private/typeDefs/FlagConversionModalPayload.graphql
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,8 @@ | ||
type FlagConversionModalPayload { | ||
error: StandardMutationError | ||
|
||
""" | ||
the org with the limit added or removed | ||
""" | ||
org: Organization | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/server/graphql/private/typeDefs/FlagOverLimitPayload.graphql
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,8 @@ | ||
type FlagOverLimitPayload { | ||
error: StandardMutationError | ||
|
||
""" | ||
the users with the limit added or removed | ||
""" | ||
users: [User!] | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/server/graphql/private/typeDefs/LoginsPayload.graphql
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 @@ | ||
type LoginsPayload { | ||
""" | ||
the total number of records | ||
""" | ||
total: Int! | ||
|
||
""" | ||
The total broken down by email domain | ||
""" | ||
byDomain: [DomainCountPayload!]! | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/server/graphql/private/typeDefs/MessageAllSlackUsersPayload.graphql
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,4 @@ | ||
""" | ||
Return object for MessageAllSlackUsersPayload | ||
""" | ||
union MessageAllSlackUsersPayload = ErrorPayload | MessageAllSlackUsersSuccess |
11 changes: 11 additions & 0 deletions
11
packages/server/graphql/private/typeDefs/MessageAllSlackUsersSuccess.graphql
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 @@ | ||
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!] | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/server/graphql/private/typeDefs/MessageSlackUserError.graphql
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 @@ | ||
""" | ||
An error from sending a message to a Slack user | ||
""" | ||
type MessageSlackUserError { | ||
userId: ID! | ||
|
||
""" | ||
The error message received from Slack | ||
""" | ||
error: String! | ||
} |
Oops, something went wrong.