contact

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactCallbackWithBuilder

type ContactCallbackWithBuilder interface {
	SetBuilder(*ContactMutationBuilder)
}

type ContactMutationBuilder

type ContactMutationBuilder struct {
	// contains filtered or unexported fields
}

func NewMutationBuilder

func NewMutationBuilder(
	v viewer.ViewerContext,
	operation ent.WriteOperation,
	requiredFields []string,
	opts ...func(*actions.EntMutationBuilder),
) *ContactMutationBuilder

func (*ContactMutationBuilder) AddAllowList

func (b *ContactMutationBuilder) AddAllowList(users ...*models.User) *ContactMutationBuilder

AddAllowList adds one or more instances of User to the AllowList edge while editing the User ent

func (*ContactMutationBuilder) AddAllowListID

func (b *ContactMutationBuilder) AddAllowListID(userID string, options ...func(*ent.EdgeOperation)) *ContactMutationBuilder

AddAllowListID adds an instance of User to the AllowList edge while editing the User ent

func (*ContactMutationBuilder) AddAllowListIDs

func (b *ContactMutationBuilder) AddAllowListIDs(userIDs ...string) *ContactMutationBuilder

AddAllowListIDs adds an instance of User to the AllowList edge while editing the User ent

func (*ContactMutationBuilder) Entity

func (b *ContactMutationBuilder) Entity() ent.Entity

func (*ContactMutationBuilder) ExistingEnt

func (b *ContactMutationBuilder) ExistingEnt() ent.Entity

func (*ContactMutationBuilder) GetChangeset

func (b *ContactMutationBuilder) GetChangeset() (ent.Changeset, error)

TODO rename from GetChangeset to Build() A Builder builds.

func (*ContactMutationBuilder) GetContact

func (b *ContactMutationBuilder) GetContact() *models.Contact

func (*ContactMutationBuilder) GetEmailAddress

func (b *ContactMutationBuilder) GetEmailAddress() string

func (*ContactMutationBuilder) GetFavorite

func (b *ContactMutationBuilder) GetFavorite() *bool

func (*ContactMutationBuilder) GetFields

func (b *ContactMutationBuilder) GetFields() ent.FieldMap

GetFields returns the field configuration for this mutation builder

func (*ContactMutationBuilder) GetFirstName

func (b *ContactMutationBuilder) GetFirstName() string

func (*ContactMutationBuilder) GetLastName

func (b *ContactMutationBuilder) GetLastName() string

func (*ContactMutationBuilder) GetNumberOfCalls

func (b *ContactMutationBuilder) GetNumberOfCalls() *int

func (*ContactMutationBuilder) GetOperation

func (b *ContactMutationBuilder) GetOperation() ent.WriteOperation

func (*ContactMutationBuilder) GetPi

func (b *ContactMutationBuilder) GetPi() *float64

func (*ContactMutationBuilder) GetPlaceholderID

func (b *ContactMutationBuilder) GetPlaceholderID() string

func (*ContactMutationBuilder) GetUserID

func (b *ContactMutationBuilder) GetUserID() string

func (*ContactMutationBuilder) GetUserIDBuilder

func (b *ContactMutationBuilder) GetUserIDBuilder() ent.MutationBuilder

func (*ContactMutationBuilder) GetViewer

func (*ContactMutationBuilder) RemoveAllowList

func (b *ContactMutationBuilder) RemoveAllowList(users ...*models.User) *ContactMutationBuilder

RemoveAllowList removes an instance of User from the AllowList edge while editing the User ent

func (*ContactMutationBuilder) RemoveAllowListID

func (b *ContactMutationBuilder) RemoveAllowListID(userID string) *ContactMutationBuilder

RemoveAllowListID removes an instance of User from the AllowList edge while editing the User ent

func (*ContactMutationBuilder) RemoveAllowListIDs

func (b *ContactMutationBuilder) RemoveAllowListIDs(userIDs ...string) *ContactMutationBuilder

RemoveAllowListIDs removes an instance of User from the AllowList edge while editing the User ent

func (*ContactMutationBuilder) SetEmailAddress

func (b *ContactMutationBuilder) SetEmailAddress(emailAddress string) *ContactMutationBuilder

func (*ContactMutationBuilder) SetFavorite

func (b *ContactMutationBuilder) SetFavorite(favorite bool) *ContactMutationBuilder

func (*ContactMutationBuilder) SetFirstName

func (b *ContactMutationBuilder) SetFirstName(firstName string) *ContactMutationBuilder

func (*ContactMutationBuilder) SetLastName

func (b *ContactMutationBuilder) SetLastName(lastName string) *ContactMutationBuilder

func (*ContactMutationBuilder) SetNilableFavorite

func (b *ContactMutationBuilder) SetNilableFavorite(favorite *bool) *ContactMutationBuilder

func (*ContactMutationBuilder) SetNilableNumberOfCalls

func (b *ContactMutationBuilder) SetNilableNumberOfCalls(numberOfCalls *int) *ContactMutationBuilder

func (*ContactMutationBuilder) SetNilablePi

func (*ContactMutationBuilder) SetNumberOfCalls

func (b *ContactMutationBuilder) SetNumberOfCalls(numberOfCalls int) *ContactMutationBuilder

func (*ContactMutationBuilder) SetObservers

func (b *ContactMutationBuilder) SetObservers(observers []actions.Observer)

SetObservers sets the builder on the observers.

func (*ContactMutationBuilder) SetPi

func (*ContactMutationBuilder) SetTriggers

func (b *ContactMutationBuilder) SetTriggers(triggers []actions.Trigger)

SetTriggers sets the builder on the triggers.

func (*ContactMutationBuilder) SetUserID

func (*ContactMutationBuilder) SetUserIDBuilder

func (b *ContactMutationBuilder) SetUserIDBuilder(builder ent.MutationBuilder) *ContactMutationBuilder

func (*ContactMutationBuilder) SetValidators

func (b *ContactMutationBuilder) SetValidators(validators []actions.Validator)

SetValidators sets the builder on validators.

func (*ContactMutationBuilder) Validate

func (b *ContactMutationBuilder) Validate() error

Call Validate (should be Valid) at any point to validate that builder is valid

type ContactMutationCallback

type ContactMutationCallback struct {
	Builder *ContactMutationBuilder
}

func (*ContactMutationCallback) SetBuilder

func (callback *ContactMutationCallback) SetBuilder(b *ContactMutationBuilder)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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