graphql_model

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	ID          string `json:"id"`
	EmailID     string `json:"emailId"`
	Filename    string `json:"filename"`
	ContentType string `json:"contentType"`
	URL         string `json:"url"`
}

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 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 Query

type Query struct {
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL