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(graphql): update schema #162

Merged
merged 1 commit into from
Jan 30, 2025
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sync-pocket/src/main/graphql/notes.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mutation createNote($input: CreateNoteMarkdownInput!) {

mutation updateNote(
$id: ID!,
$title: String!,
$title: String,
$docMarkdown: Markdown!,
$updatedAt: ISOString
) {
Expand Down
96 changes: 6 additions & 90 deletions sync-pocket/src/main/graphql/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -758,18 +758,6 @@ type Mutation {
createHighlightByUrl(input: CreateHighlightByUrlInput!): Highlight!
"Create a new note, optionally with title and content"
createNote(input: CreateNoteInput!): Note!
"""

Create a new note, with a pre-populated block that contains the quoted and cited text
selected by a user.
"""
createNoteFromQuote(input: CreateNoteFromQuoteInput!): Note!
"""

Create a new note, with a pre-populated block that contains the quoted and cited text
selected by a user.
"""
createNoteFromQuoteMarkdown(input: CreateNoteFromQuoteMarkdownInput!): Note!
"Create a new note, optionally with title and markdown content"
createNoteMarkdown(input: CreateNoteMarkdownInput!): Note!
"Create new highlight note. Returns the data for the created Highlight note."
Expand Down Expand Up @@ -2792,82 +2780,6 @@ input CreateHighlightInput {
version: Int!
}

"""

Input to create a new Note seeded with copied content from a page.
The entire content becomes editable and is not able to be "reattached"
like a traditional highlight.
"""
input CreateNoteFromQuoteInput {
"""

When this note was created. If not provided, defaults to server time upon
receiving request.
"""
createdAt: ISOString
"""

Client-provided UUID for the new Note.
If not provided, will be generated on the server.
"""
id: ID
"""

JSON representation of a ProseMirror document, which
contains the formatted snipped text. This is used to seed
the initial Note document state, and will become editable.
"""
quote: ProseMirrorJson!
"""

The Web Resource where the quote is taken from.
This should always be sent by the client where possible,
but in some cases (e.g. copying from mobile apps) there may
not be an accessible source url.
"""
source: ValidUrl
"Optional title for this Note"
title: String
}

"""

Input to create a new Note seeded with copied content from a page.
The entire content becomes editable and is not able to be "reattached"
like a traditional highlight.
"""
input CreateNoteFromQuoteMarkdownInput {
"""

When this note was created. If not provided, defaults to server time upon
receiving request.
"""
createdAt: ISOString
"""

Client-provided UUID for the new Note.
If not provided, will be generated on the server.
"""
id: ID
"""

Commonmark Markdown document, which contains the formatted
snipped text. This is used to seed the initial Note
document state, and will become editable.
"""
quote: Markdown!
"""

The Web Resource where the quote is taken from.
This should always be sent by the client where possible,
but in some cases (e.g. copying from mobile apps) there may
not be an accessible source url.
"""
source: ValidUrl
"Optional title for this Note"
title: String
}

"Input to create a new Note"
input CreateNoteInput {
"""
Expand Down Expand Up @@ -3008,8 +2920,12 @@ input EditNoteContentMarkdownInput {
input EditNoteTitleInput {
"The ID of the note to edit"
id: ID!
"The new title for the note (can be an empty string)"
title: String!
"""

The new title for the note. If null, sets the title
field to null (deletes it).
"""
title: String
"""

When the update was made. If not provided, defaults to the server
Expand Down
2 changes: 0 additions & 2 deletions sync-pocket/sync-pocket-usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3384,8 +3384,6 @@ enum VideoType.9 9
- thing SyndicatedArticle.preview
- thing ArchiveNoteInput
- thing BatchImportInput
- thing CreateNoteFromQuoteInput
- thing CreateNoteFromQuoteMarkdownInput
- thing CreateNoteInput
- thing EditNoteContentInput
- thing EditNoteContentMarkdownInput
Expand Down