graphql_model

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: May 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"`
	Filename    string `json:"filename"`
	ContentType string `json:"contentType"`
	URL         string `json:"url"`
}

type Connection added in v0.1.9

type Connection interface {
	IsConnection()
	GetPageInfo() *PageInfo
	GetTotalCount() int
}

type EmailBody added in v0.1.6

type EmailBody struct {
	Text *string `json:"text,omitempty"`
	HTML *string `json:"html,omitempty"`
}

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 ImapConfig struct {
	ImapServer   *string             `json:"imapServer,omitempty"`
	ImapPort     *int                `json:"imapPort,omitempty"`
	ImapUsername *string             `json:"imapUsername,omitempty"`
	ImapPassword *string             `json:"imapPassword,omitempty"`
	ImapSecurity *enum.EmailSecurity `json:"imapSecurity,omitempty"`
}

type ImapConfigInput added in v0.1.3

type ImapConfigInput struct {
	ImapServer   *string             `json:"imapServer,omitempty"`
	ImapPort     *int                `json:"imapPort,omitempty"`
	ImapUsername *string             `json:"imapUsername,omitempty"`
	ImapPassword *string             `json:"imapPassword,omitempty"`
	ImapSecurity *enum.EmailSecurity `json:"imapSecurity,omitempty"`
}

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 Mutation added in v0.1.3

type Mutation struct {
}

type PageInfo added in v0.1.9

type PageInfo struct {
	HasNextPage     bool    `json:"hasNextPage"`
	HasPreviousPage bool    `json:"hasPreviousPage"`
	StartCursor     *string `json:"startCursor,omitempty"`
	EndCursor       *string `json:"endCursor,omitempty"`
}

type PaginationInput added in v0.1.9

type PaginationInput struct {
	Offset *int `json:"offset,omitempty"`
	Limit  *int `json:"limit,omitempty"`
}

type Query

type Query struct {
}

type SMTPConfig added in v0.1.3

type SMTPConfig struct {
	SMTPServer   *string             `json:"smtpServer,omitempty"`
	SMTPPort     *int                `json:"smtpPort,omitempty"`
	SMTPUsername *string             `json:"smtpUsername,omitempty"`
	SMTPPassword *string             `json:"smtpPassword,omitempty"`
	SMTPSecurity *enum.EmailSecurity `json:"smtpSecurity,omitempty"`
}

type SMTPConfigInput added in v0.1.3

type SMTPConfigInput struct {
	SMTPServer   *string             `json:"smtpServer,omitempty"`
	SMTPPort     *int                `json:"smtpPort,omitempty"`
	SMTPUsername *string             `json:"smtpUsername,omitempty"`
	SMTPPassword *string             `json:"smtpPassword,omitempty"`
	SMTPSecurity *enum.EmailSecurity `json:"smtpSecurity,omitempty"`
}

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