Skip to content

Commit

Permalink
Probably a good idea to add back the schema changes...
Browse files Browse the repository at this point in the history
  • Loading branch information
Podginator authored and jacksonh committed Jan 23, 2024
1 parent 995fa61 commit 54049c0
Showing 1 changed file with 216 additions and 1 deletion.
217 changes: 216 additions & 1 deletion packages/api/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2646,6 +2646,112 @@ const schema = gql`
email: String!
}
# Query: GetDiscoverTopic
union GetDiscoverTopicResults =
GetDiscoverTopicSuccess
| GetDiscoverTopicError
enum GetDiscoverTopicErrorCode {
UNAUTHORIZED
}
type GetDiscoverTopicError {
errorCodes: [GetDiscoverTopicErrorCode!]!
}
type GetDiscoverTopicSuccess {
discoverTopics: [DiscoverTopic!]
}
type DiscoverTopic {
name: String!
description: String!
}
# Query: GetDiscoverFeedArticle
union GetDiscoverFeedArticleResults =
GetDiscoverFeedArticleSuccess
| GetDiscoverFeedArticleError
enum GetDiscoverFeedArticleErrorCode {
UNAUTHORIZED
NOT_FOUND
BAD_REQUEST
}
type GetDiscoverFeedArticleError {
errorCodes: [GetDiscoverFeedArticleErrorCode!]!
}
type GetDiscoverFeedArticleSuccess {
discoverArticles: [DiscoverFeedArticle]
pageInfo: PageInfo!
}
type DiscoverFeedArticle {
id: ID!
feed: String!
title: String!
url: String!
image: String
publishedDate: Date
description: String!
siteName: String
slug: String!
author: String
savedLinkUrl: String
savedId: String
}
# Mutation: SaveDiscoverArticle
input SaveDiscoverArticleInput {
discoverArticleId: ID!
locale: String
timezone: String
}
union SaveDiscoverArticleResult =
SaveDiscoverArticleSuccess
| SaveDiscoverArticleError
type SaveDiscoverArticleSuccess {
url: String!
saveId: String!
}
type SaveDiscoverArticleError {
errorCodes: [SaveDiscoverArticleErrorCode!]!
}
enum SaveDiscoverArticleErrorCode {
UNAUTHORIZED
BAD_REQUEST
NOT_FOUND
}
# Mutation: DeleteDiscoverArticle
input DeleteDiscoverArticleInput {
discoverArticleId: ID!
}
union DeleteDiscoverArticleResult =
DeleteDiscoverArticleSuccess
| DeleteDiscoverArticleError
type DeleteDiscoverArticleSuccess {
id: ID!
}
type DeleteDiscoverArticleError {
errorCodes: [DeleteDiscoverArticleErrorCode!]!
}
enum DeleteDiscoverArticleErrorCode {
UNAUTHORIZED
BAD_REQUEST
NOT_FOUND
}
input FeedsInput {
after: String
first: Int
Expand Down Expand Up @@ -2775,6 +2881,96 @@ const schema = gql`
UNAUTHORIZED
}
type DiscoverFeed {
id: ID!
title: String!
link: String!
description: String
image: String
type: String!
visibleName: String
}
union DiscoverFeedResult = DiscoverFeedSuccess | DiscoverFeedError
type DiscoverFeedSuccess {
feeds: [DiscoverFeed]!
}
type DiscoverFeedError {
errorCodes: [DiscoverFeedErrorCode!]!
}
enum DiscoverFeedErrorCode {
UNAUTHORIZED
BAD_REQUEST
}
input AddDiscoverFeedInput {
url: String!
}
union AddDiscoverFeedResult = AddDiscoverFeedSuccess | AddDiscoverFeedError
type AddDiscoverFeedSuccess {
feed: DiscoverFeed!
}
type AddDiscoverFeedError {
errorCodes: [AddDiscoverFeedErrorCode!]!
}
enum AddDiscoverFeedErrorCode {
UNAUTHORIZED
BAD_REQUEST
CONFLICT
NOT_FOUND
}
union DeleteDiscoverFeedResult =
DeleteDiscoverFeedSuccess
| DeleteDiscoverFeedError
type DeleteDiscoverFeedSuccess {
id: String!
}
type DeleteDiscoverFeedError {
errorCodes: [DeleteDiscoverFeedErrorCode!]!
}
enum DeleteDiscoverFeedErrorCode {
UNAUTHORIZED
BAD_REQUEST
CONFLICT
NOT_FOUND
}
input DeleteDiscoverFeedInput {
feedId: ID!
}
union EditDiscoverFeedResult = EditDiscoverFeedSuccess | EditDiscoverFeedError
type EditDiscoverFeedSuccess {
id: ID!
}
type EditDiscoverFeedError {
errorCodes: [EditDiscoverFeedErrorCode!]!
}
enum EditDiscoverFeedErrorCode {
UNAUTHORIZED
BAD_REQUEST
NOT_FOUND
}
input EditDiscoverFeedInput {
feedId: ID!
name: String!
}
# Mutations
type Mutation {
googleLogin(input: GoogleLoginInput!): LoginResult!
Expand Down Expand Up @@ -2842,6 +3038,12 @@ const schema = gql`
unsubscribe(name: String!, subscriptionId: ID): UnsubscribeResult!
subscribe(input: SubscribeInput!): SubscribeResult!
addPopularRead(name: String!): AddPopularReadResult!
saveDiscoverArticle(
input: SaveDiscoverArticleInput!
): SaveDiscoverArticleResult!
deleteDiscoverArticle(
input: DeleteDiscoverArticleInput!
): DeleteDiscoverArticleResult!
setWebhook(input: SetWebhookInput!): SetWebhookResult!
deleteWebhook(id: ID!): DeleteWebhookResult!
revokeApiKey(id: ID!): RevokeApiKeyResult!
Expand Down Expand Up @@ -2886,6 +3088,11 @@ const schema = gql`
updateNewsletterEmail(
input: UpdateNewsletterEmailInput!
): UpdateNewsletterEmailResult!
addDiscoverFeed(input: AddDiscoverFeedInput!): AddDiscoverFeedResult!
deleteDiscoverFeed(
input: DeleteDiscoverFeedInput!
): DeleteDiscoverFeedResult!
editDiscoverFeed(input: EditDiscoverFeedInput!): EditDiscoverFeedResult!
emptyTrash: EmptyTrashResult!
}
Expand Down Expand Up @@ -2923,6 +3130,13 @@ const schema = gql`
includeContent: Boolean
format: String
): SearchResult!
getDiscoverFeedArticles(
discoverTopicId: String!
feedId: ID
after: String
first: Int
): GetDiscoverFeedArticleResults!
discoverTopics: GetDiscoverTopicResults!
subscriptions(
sort: SortParams
type: SubscriptionType
Expand All @@ -2947,8 +3161,9 @@ const schema = gql`
groups: GroupsResult!
recentEmails: RecentEmailsResult!
feeds(input: FeedsInput!): FeedsResult!
discoverFeeds: DiscoverFeedResult!
scanFeeds(input: ScanFeedsInput!): ScanFeedsResult!
}
`

export default schema
export default schema

0 comments on commit 54049c0

Please sign in to comment.