Documentation
¶
Index ¶
- type Attachment
- type Connection
- type EmailBody
- type EmailInput
- type EmailMessage
- type EmailResult
- type EmailThread
- type EmailThreadConnection
- type ImapConfig
- type ImapConfigInput
- type Mailbox
- type MailboxInput
- type Mutation
- type PageInfo
- type PaginationInput
- type Query
- type SMTPConfig
- type SMTPConfigInput
- type ThreadMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Connection ¶ added in v0.1.9
type EmailInput ¶ added in v0.1.6
type EmailInput struct { MailboxID *string `json:"mailboxId,omitempty"` FromAddress string `json:"fromAddress"` FromName *string `json:"fromName,omitempty"` ToAddresses []string `json:"toAddresses"` CcAddresses []string `json:"ccAddresses,omitempty"` BccAddresses []string `json:"bccAddresses,omitempty"` ReplyTo *string `json:"replyTo,omitempty"` Subject string `json:"subject"` Body *EmailBody `json:"body"` AttachmentIds []string `json:"attachmentIds,omitempty"` ScheduleFor *time.Time `json:"scheduleFor,omitempty"` TrackClicks *bool `json:"trackClicks,omitempty"` }
type EmailMessage ¶
type EmailMessage struct { ID string `json:"id"` ThreadID string `json:"threadId"` MailboxID string `json:"mailboxId"` Direction enum.EmailDirection `json:"direction"` From string `json:"from"` FromName string `json:"fromName"` To []string `json:"to"` Cc []string `json:"cc,omitempty"` Bcc []string `json:"bcc,omitempty"` Subject string `json:"subject"` Body string `json:"body"` AttachmentCount int `json:"attachmentCount"` ReceivedAt time.Time `json:"receivedAt"` }
type EmailResult ¶ added in v0.1.6
type EmailResult struct { EmailID string `json:"emailId"` Status enum.EmailStatus `json:"status"` Error *string `json:"error,omitempty"` }
type EmailThread ¶
type EmailThread struct { ID string `json:"id"` UserID string `json:"userId"` MailboxID string `json:"mailboxId"` Subject string `json:"subject"` Summary string `json:"summary"` IsViewed bool `json:"isViewed"` IsDone bool `json:"isDone"` LastSender string `json:"lastSender"` LastSenderDomain string `json:"lastSenderDomain"` LastMessageAt *time.Time `json:"lastMessageAt,omitempty"` }
type EmailThreadConnection ¶ added in v0.1.9
type EmailThreadConnection struct { Edges []*EmailThread `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
func (EmailThreadConnection) GetPageInfo ¶ added in v0.1.9
func (this EmailThreadConnection) GetPageInfo() *PageInfo
func (EmailThreadConnection) GetTotalCount ¶ added in v0.1.9
func (this EmailThreadConnection) GetTotalCount() int
func (EmailThreadConnection) IsConnection ¶ added in v0.1.9
func (EmailThreadConnection) IsConnection()
type ImapConfig ¶ added in v0.1.3
type ImapConfigInput ¶ added in v0.1.3
type Mailbox ¶ added in v0.1.3
type Mailbox struct { ID string `json:"id"` Provider enum.EmailProvider `json:"provider"` EmailAddress string `json:"emailAddress"` SenderID *string `json:"senderId,omitempty"` InboundEnabled bool `json:"inboundEnabled"` OutboundEnabled bool `json:"outboundEnabled"` ReplyToAddress *string `json:"replyToAddress,omitempty"` ConnectionStatus enum.ConnectionStatus `json:"connectionStatus"` LastConnectionCheck *time.Time `json:"lastConnectionCheck,omitempty"` ConnectionErrorMessage *string `json:"connectionErrorMessage,omitempty"` }
type MailboxInput ¶ added in v0.1.3
type MailboxInput struct { ID *string `json:"id,omitempty"` Provider enum.EmailProvider `json:"provider"` EmailAddress string `json:"emailAddress"` SenderID *string `json:"senderId,omitempty"` InboundEnabled *bool `json:"inboundEnabled,omitempty"` OutboundEnabled *bool `json:"outboundEnabled,omitempty"` ImapConfig *ImapConfigInput `json:"imapConfig,omitempty"` SMTPConfig *SMTPConfigInput `json:"smtpConfig,omitempty"` ReplyToAddress *string `json:"replyToAddress,omitempty"` SyncFolders []*string `json:"syncFolders,omitempty"` OauthRefreshToken *string `json:"oauthRefreshToken,omitempty"` OauthAccessToken *string `json:"oauthAccessToken,omitempty"` OauthTokenExpiry *time.Time `json:"oauthTokenExpiry,omitempty"` OauthScope *string `json:"oauthScope,omitempty"` OauthTokenID *string `json:"oauthTokenId,omitempty"` }
type PaginationInput ¶ added in v0.1.9
type SMTPConfig ¶ added in v0.1.3
type SMTPConfigInput ¶ added in v0.1.3
type ThreadMetadata ¶
type ThreadMetadata struct { ID string `json:"id"` Summary string `json:"summary"` Participants []string `json:"participants"` HasAttachments bool `json:"hasAttachments"` Attachments []*Attachment `json:"attachments,omitempty"` }
Click to show internal directories.
Click to hide internal directories.