Skip to content

Commit

Permalink
feat(deprecated): remove deprecated fields and mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Sep 21, 2020
1 parent 317bebd commit 0130165
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 1,025 deletions.
85 changes: 0 additions & 85 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ enum AppreciationPurpose {
systemSubsidy
}

input ArchiveArticleInput {
id: ID!
}

"""
This type contains metadata, content, hash and related data of an article. If you
want information about article's comments. Please check Comment type.
Expand Down Expand Up @@ -449,7 +445,6 @@ type ArticleTagHasBeenUnselectedNotice implements Notice {
}

type ArticleTranslation {
originalLanguage: String! @deprecated(reason: "Use `Article.language` instead")
title: String
content: String
}
Expand Down Expand Up @@ -509,10 +504,6 @@ type Balance {
HKD: Float!
}

input BlockUserInput {
id: ID!
}

enum BoostTypes {
Article
User
Expand Down Expand Up @@ -879,10 +870,6 @@ type FolloweeDonatedArticleEdge {
node: FolloweeDonatedArticle!
}

input FollowUserInput {
id: ID!
}

input FrequentSearchInput {
key: String
first: Int
Expand All @@ -893,18 +880,8 @@ enum GrantType {
refresh_token
}

input ImportArticlesInput {
platform: String
token: String
}

scalar JSON

type LIKE {
total: NonNegativeFloat!
rateUSD: NonNegativeFloat
}

type Liker {
"""Liker ID of LikeCoin"""
likerId: String
Expand Down Expand Up @@ -992,24 +969,6 @@ type Mutation {
renameTag(input: RenameTagInput!): Tag!
mergeTags(input: MergeTagsInput!): Tag!

"""Subscribe an artcile."""
subscribeArticle(input: SubscribeArticleInput!): Article! @deprecated(reason: "Use `toggleSubscribeArticle`.")

"""Unsubscribe an article."""
unsubscribeArticle(input: UnsubscribeArticleInput!): Article! @deprecated(reason: "Use `toggleSubscribeArticle`.")

"""Archive an article and users won't be able to view this article."""
archiveArticle(input: ArchiveArticleInput!): Article! @deprecated(reason: "Use `editArticle`.")

"""Set collection of an article."""
setCollection(input: SetCollectionInput!): Article!

"""Update article information."""
updateArticleInfo(input: UpdateArticleInfoInput!): Article!

"""Recall while publishing."""
recallPublish(input: RecallPublishInput!): Draft!

"""Publish a comment."""
putComment(input: PutCommentInput!): Comment!

Expand Down Expand Up @@ -1048,9 +1007,6 @@ type Mutation {

"""Upload a single file."""
singleFileUpload(input: SingleFileUploadInput!): Asset!

"""Delete a uploaded file."""
singleFileDelete(input: SingleFileDeleteInput!): Boolean!
feedback(input: FeedbackInput!): Boolean

"""Add specific user behavior record."""
Expand Down Expand Up @@ -1123,18 +1079,6 @@ type Mutation {
"""Update state of a user, used in OSS."""
updateUserRole(input: UpdateUserRoleInput!): User!

"""Block a given user."""
blockUser(input: BlockUserInput!): User! @deprecated(reason: "Use `toggleBlockUser`.")

"""Unblock a given user."""
unblockUser(input: BlockUserInput!): User! @deprecated(reason: "Use `toggleBlockUser`.")

"""Follow a given user."""
followUser(input: FollowUserInput!): User! @deprecated(reason: "Use `toggleFollowUser`.")

"""Unfollow curent user."""
unfollowUser(input: FollowUserInput!): User! @deprecated(reason: "Use `toggleFollowUser`.")

"""Add Credit to User Wallet"""
addCredit(input: AddCreditInput!): AddCreditResult!

Expand Down Expand Up @@ -1532,10 +1476,6 @@ type ReadHistoryEdge {
node: ReadHistory!
}

input RecallPublishInput {
id: ID!
}

type RecentSearchConnection implements Connection {
totalCount: Int!
pageInfo: PageInfo!
Expand Down Expand Up @@ -1795,20 +1735,11 @@ input SetBoostInput {
type: BoostTypes!
}

input SetCollectionInput {
id: ID!
collection: [ID!]!
}

input SetFeatureInput {
name: FeatureName!
flag: FeatureFlag!
}

input SingleFileDeleteInput {
id: ID!
}

input SingleFileUploadInput {
type: AssetType!
file: Upload
Expand Down Expand Up @@ -1856,10 +1787,6 @@ type StripeAccount {
loginUrl: URL!
}

input SubscribeArticleInput {
id: ID!
}

"""
This notice type contains info about current user's subscribed article has new comment.
"""
Expand Down Expand Up @@ -2063,19 +1990,10 @@ input UnpinCommentInput {
id: ID!
}

input UnsubscribeArticleInput {
id: ID!
}

input UnvoteCommentInput {
id: ID!
}

input UpdateArticleInfoInput {
id: ID!
sticky: Boolean
}

input UpdateArticlesTagsInput {
id: ID!
articles: [ID!]
Expand Down Expand Up @@ -2368,9 +2286,6 @@ type UserStatus {
"""User role and access level."""
role: UserRole!

"""Total LIKE left in wallet."""
LIKE: LIKE! @deprecated(reason: "Use `liker.total` and `liker.rateUSD`.")

"""Number of articles published by user"""
articleCount: Int!

Expand Down
Loading

0 comments on commit 0130165

Please sign in to comment.