Skip to main content

NoteDraft

No description

type NoteDraft implements Draft {
agent: Agent!
assignment: Assignment
attachments(
after: String
before: String
first: Int
last: Int
): AttachmentConnection!
body: String!
contextId: ID
conversation: Conversation!
conversationId: ID!
createdAt: DateTime!
draftId: String
draftType: DraftType
id: ID!
lastSyncedAt: DateTime!
metadata: JSON!
payload: JSON
updatedAt: DateTime!
version: Int!
}

Fields

NoteDraft.agent ● Agent! non-null object common

The agent who created the draft

NoteDraft.assignment ● Assignment object common

The agents and/or teams that are assigned to the draft.

NoteDraft.attachments ● AttachmentConnection! non-null object common

All attachments on this draft.

NoteDraft.attachments.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

NoteDraft.attachments.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

NoteDraft.attachments.first ● Int scalar common

Returns the first n elements from the list.

NoteDraft.attachments.last ● Int scalar common

Returns the last n elements from the list.

NoteDraft.body ● String! non-null scalar common

The draft body.

NoteDraft.contextId ● ID scalar common

The ID of the context within the conversation.

NoteDraft.conversation ● Conversation! non-null interface common

The conversation this draft belongs to

NoteDraft.conversationId ● ID! non-null scalar common

The conversation ID this draft belongs to

NoteDraft.createdAt ● DateTime! non-null scalar common

The date and time that the object was created.

NoteDraft.draftId ● String scalar common

The UUID used to identify the draft.

NoteDraft.draftType ● DraftType enum common

The type of the draft

NoteDraft.id ● ID! non-null scalar common

NoteDraft.lastSyncedAt ● DateTime! non-null scalar common

The datetime when the draft was last synced.

NoteDraft.metadata ● JSON! non-null scalar common

Metadata related to the draft

NoteDraft.payload ● JSON scalar common

The payload of the draft, which is a schemaless JSON object

NoteDraft.updatedAt ● DateTime! non-null scalar common

The date and time that the object was last updated.

NoteDraft.version ● Int! non-null scalar common

The draft version

Interfaces

Draft interface common

An object with timestamp fields for when it was created and last updated.

Implemented by

DraftTypeUnion union