gen

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyPrincipalID         key    = iota
	KeyLoaders             key    = iota
	KeyExecutableSchema    key    = iota
	KeyJWTClaims           key    = iota
	KeyMutationTransaction key    = iota
	KeyMutationEvents      key    = iota
	SchemaSDL              string = `` /* 21641-byte string literal not displayed */

)

Variables

Functions

func AddMutationEvent

func AddMutationEvent(ctx context.Context, e events.Event)

func ApplyChanges

func ApplyChanges(changes map[string]interface{}, to interface{}) error

used to convert map[string]interface{} to EntityChanges struct

func DeleteAllConfiguratorAttributeDefinitionsHandler

func DeleteAllConfiguratorAttributeDefinitionsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

func DeleteAllConfiguratorAttributesHandler

func DeleteAllConfiguratorAttributesHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

func DeleteAllConfiguratorItemDefinitionsHandler

func DeleteAllConfiguratorItemDefinitionsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

func DeleteAllConfiguratorItemsHandler

func DeleteAllConfiguratorItemsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

func DeleteAllConfiguratorSlotDefinitionsHandler

func DeleteAllConfiguratorSlotDefinitionsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

func DeleteAllConfiguratorSlotsHandler

func DeleteAllConfiguratorSlotsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

func EnrichContextWithMutations

func EnrichContextWithMutations(ctx context.Context, r *GeneratedResolver) context.Context

func FinishMutationContext

func FinishMutationContext(ctx context.Context, r *GeneratedResolver) (err error)

func GetHTTPServeMux

func GetHTTPServeMux(r ResolverRoot, db *DB) *http.ServeMux

func GetItem

func GetItem(ctx context.Context, db *gorm.DB, out interface{}, id *string) error

func GetItemForRelation

func GetItemForRelation(ctx context.Context, db *gorm.DB, obj interface{}, relation string, out interface{}) error

func GetLoaders

func GetLoaders(db *DB) map[string]*dataloader.Loader

func GetPrincipalIDFromContext

func GetPrincipalIDFromContext(ctx context.Context) *string

func GetTransaction added in v0.1.0

func GetTransaction(ctx context.Context) *gorm.DB

func Marshal_Any

func Marshal_Any(v interface{}) graphql.Marshaler

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

func TableName

func TableName(name string) string

func Unmarshal_Any

func Unmarshal_Any(v interface{}) (interface{}, error)

Types

type ComplexityRoot

type ComplexityRoot struct {
	ConfiguratorAssembly struct {
		ID   func(childComplexity int) int
		Item func(childComplexity int) int
	}

	ConfiguratorAssemblyAttribute struct {
		DefinitionID func(childComplexity int) int
		FloatValue   func(childComplexity int) int
		ID           func(childComplexity int) int
		IntValue     func(childComplexity int) int
		StringValue  func(childComplexity int) int
	}

	ConfiguratorAssemblyItem struct {
		Attributes   func(childComplexity int) int
		Code         func(childComplexity int) int
		DefinitionID func(childComplexity int) int
		ID           func(childComplexity int) int
		Name         func(childComplexity int) int
		Slots        func(childComplexity int) int
	}

	ConfiguratorAssemblySlot struct {
		DefinitionID func(childComplexity int) int
		ID           func(childComplexity int) int
		Item         func(childComplexity int) int
	}

	ConfiguratorAttribute struct {
		CreatedAt    func(childComplexity int) int
		CreatedBy    func(childComplexity int) int
		Definition   func(childComplexity int) int
		DefinitionID func(childComplexity int) int
		FloatValue   func(childComplexity int) int
		ID           func(childComplexity int) int
		IntValue     func(childComplexity int) int
		Item         func(childComplexity int) int
		ItemID       func(childComplexity int) int
		StringValue  func(childComplexity int) int
		UpdatedAt    func(childComplexity int) int
		UpdatedBy    func(childComplexity int) int
	}

	ConfiguratorAttributeDefinition struct {
		Attributes     func(childComplexity int) int
		AttributesIds  func(childComplexity int) int
		CreatedAt      func(childComplexity int) int
		CreatedBy      func(childComplexity int) int
		Definitions    func(childComplexity int) int
		DefinitionsIds func(childComplexity int) int
		ID             func(childComplexity int) int
		Name           func(childComplexity int) int
		Type           func(childComplexity int) int
		UpdatedAt      func(childComplexity int) int
		UpdatedBy      func(childComplexity int) int
	}

	ConfiguratorAttributeDefinitionResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	ConfiguratorAttributeResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	ConfiguratorItem struct {
		Attributes     func(childComplexity int) int
		AttributesIds  func(childComplexity int) int
		Code           func(childComplexity int) int
		CreatedAt      func(childComplexity int) int
		CreatedBy      func(childComplexity int) int
		Definition     func(childComplexity int) int
		DefinitionID   func(childComplexity int) int
		ID             func(childComplexity int) int
		Name           func(childComplexity int) int
		ParentSlots    func(childComplexity int) int
		ParentSlotsIds func(childComplexity int) int
		Slots          func(childComplexity int) int
		SlotsIds       func(childComplexity int) int
		StockItemID    func(childComplexity int) int
		UpdatedAt      func(childComplexity int) int
		UpdatedBy      func(childComplexity int) int
	}

	ConfiguratorItemDefinition struct {
		Attributes    func(childComplexity int) int
		AttributesIds func(childComplexity int) int
		CreatedAt     func(childComplexity int) int
		CreatedBy     func(childComplexity int) int
		ID            func(childComplexity int) int
		Items         func(childComplexity int) int
		ItemsIds      func(childComplexity int) int
		Name          func(childComplexity int) int
		Slots         func(childComplexity int) int
		SlotsIds      func(childComplexity int) int
		UpdatedAt     func(childComplexity int) int
		UpdatedBy     func(childComplexity int) int
	}

	ConfiguratorItemDefinitionResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	ConfiguratorItemResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	ConfiguratorSlot struct {
		CreatedAt    func(childComplexity int) int
		CreatedBy    func(childComplexity int) int
		Definition   func(childComplexity int) int
		DefinitionID func(childComplexity int) int
		ID           func(childComplexity int) int
		Item         func(childComplexity int) int
		ItemID       func(childComplexity int) int
		ParentItem   func(childComplexity int) int
		ParentItemID func(childComplexity int) int
		UpdatedAt    func(childComplexity int) int
		UpdatedBy    func(childComplexity int) int
	}

	ConfiguratorSlotDefinition struct {
		CreatedAt    func(childComplexity int) int
		CreatedBy    func(childComplexity int) int
		Definition   func(childComplexity int) int
		DefinitionID func(childComplexity int) int
		ID           func(childComplexity int) int
		MaxCount     func(childComplexity int) int
		MinCount     func(childComplexity int) int
		Name         func(childComplexity int) int
		Slots        func(childComplexity int) int
		SlotsIds     func(childComplexity int) int
		UpdatedAt    func(childComplexity int) int
		UpdatedBy    func(childComplexity int) int
	}

	ConfiguratorSlotDefinitionResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	ConfiguratorSlotResultType struct {
		Count func(childComplexity int) int
		Items func(childComplexity int) int
	}

	Mutation struct {
		CreateConfiguratorAssembly                func(childComplexity int, input ConfiguratorAssemblyCreateInput) int
		CreateConfiguratorAttribute               func(childComplexity int, input map[string]interface{}) int
		CreateConfiguratorAttributeDefinition     func(childComplexity int, input map[string]interface{}) int
		CreateConfiguratorItem                    func(childComplexity int, input map[string]interface{}) int
		CreateConfiguratorItemDefinition          func(childComplexity int, input map[string]interface{}) int
		CreateConfiguratorSlot                    func(childComplexity int, input map[string]interface{}) int
		CreateConfiguratorSlotDefinition          func(childComplexity int, input map[string]interface{}) int
		DeleteAllConfiguratorAttributeDefinitions func(childComplexity int) int
		DeleteAllConfiguratorAttributes           func(childComplexity int) int
		DeleteAllConfiguratorItemDefinitions      func(childComplexity int) int
		DeleteAllConfiguratorItems                func(childComplexity int) int
		DeleteAllConfiguratorSlotDefinitions      func(childComplexity int) int
		DeleteAllConfiguratorSlots                func(childComplexity int) int
		DeleteConfiguratorAttribute               func(childComplexity int, id string) int
		DeleteConfiguratorAttributeDefinition     func(childComplexity int, id string) int
		DeleteConfiguratorItem                    func(childComplexity int, id string) int
		DeleteConfiguratorItemDefinition          func(childComplexity int, id string) int
		DeleteConfiguratorSlot                    func(childComplexity int, id string) int
		DeleteConfiguratorSlotDefinition          func(childComplexity int, id string) int
		UpdateConfiguratorAssembly                func(childComplexity int, id string, input ConfiguratorAssemblyUpdateInput) int
		UpdateConfiguratorAttribute               func(childComplexity int, id string, input map[string]interface{}) int
		UpdateConfiguratorAttributeDefinition     func(childComplexity int, id string, input map[string]interface{}) int
		UpdateConfiguratorItem                    func(childComplexity int, id string, input map[string]interface{}) int
		UpdateConfiguratorItemDefinition          func(childComplexity int, id string, input map[string]interface{}) int
		UpdateConfiguratorSlot                    func(childComplexity int, id string, input map[string]interface{}) int
		UpdateConfiguratorSlotDefinition          func(childComplexity int, id string, input map[string]interface{}) int
	}

	Query struct {
		ConfiguratorAssembly             func(childComplexity int, id string) int
		ConfiguratorAttribute            func(childComplexity int, id *string, q *string, filter *ConfiguratorAttributeFilterType) int
		ConfiguratorAttributeDefinition  func(childComplexity int, id *string, q *string, filter *ConfiguratorAttributeDefinitionFilterType) int
		ConfiguratorAttributeDefinitions func(childComplexity int, offset *int, limit *int, q *string, sort []*ConfiguratorAttributeDefinitionSortType, filter *ConfiguratorAttributeDefinitionFilterType) int
		ConfiguratorAttributes           func(childComplexity int, offset *int, limit *int, q *string, sort []*ConfiguratorAttributeSortType, filter *ConfiguratorAttributeFilterType) int
		ConfiguratorItem                 func(childComplexity int, id *string, q *string, filter *ConfiguratorItemFilterType) int
		ConfiguratorItemDefinition       func(childComplexity int, id *string, q *string, filter *ConfiguratorItemDefinitionFilterType) int
		ConfiguratorItemDefinitions      func(childComplexity int, offset *int, limit *int, q *string, sort []*ConfiguratorItemDefinitionSortType, filter *ConfiguratorItemDefinitionFilterType) int
		ConfiguratorItems                func(childComplexity int, offset *int, limit *int, q *string, sort []*ConfiguratorItemSortType, filter *ConfiguratorItemFilterType) int
		ConfiguratorSlot                 func(childComplexity int, id *string, q *string, filter *ConfiguratorSlotFilterType) int
		ConfiguratorSlotDefinition       func(childComplexity int, id *string, q *string, filter *ConfiguratorSlotDefinitionFilterType) int
		ConfiguratorSlotDefinitions      func(childComplexity int, offset *int, limit *int, q *string, sort []*ConfiguratorSlotDefinitionSortType, filter *ConfiguratorSlotDefinitionFilterType) int
		ConfiguratorSlots                func(childComplexity int, offset *int, limit *int, q *string, sort []*ConfiguratorSlotSortType, filter *ConfiguratorSlotFilterType) int
		// contains filtered or unexported fields
	}
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type ConfiguratorAssembly

type ConfiguratorAssembly struct {
	ID   string                    `json:"id"`
	Item *ConfiguratorAssemblyItem `json:"item"`
}

type ConfiguratorAssemblyAttribute

type ConfiguratorAssemblyAttribute struct {
	ID           string   `json:"id"`
	DefinitionID string   `json:"definitionId"`
	StringValue  *string  `json:"stringValue"`
	IntValue     *int     `json:"intValue"`
	FloatValue   *float64 `json:"floatValue"`
}

type ConfiguratorAssemblyAttributeInput

type ConfiguratorAssemblyAttributeInput struct {
	ID           *string  `json:"id"`
	DefinitionID string   `json:"definitionId"`
	StringValue  *string  `json:"stringValue"`
	IntValue     *int     `json:"intValue"`
	FloatValue   *float64 `json:"floatValue"`
}

type ConfiguratorAssemblyCreateInput

type ConfiguratorAssemblyCreateInput struct {
	Item *ConfiguratorAssemblyItemInput `json:"item"`
}

type ConfiguratorAssemblyItem

type ConfiguratorAssemblyItem struct {
	ID           string                           `json:"id"`
	Code         *string                          `json:"code"`
	Name         *string                          `json:"name"`
	DefinitionID string                           `json:"definitionId"`
	Slots        []*ConfiguratorAssemblySlot      `json:"slots"`
	Attributes   []*ConfiguratorAssemblyAttribute `json:"attributes"`
}

type ConfiguratorAssemblyItemInput

type ConfiguratorAssemblyItemInput struct {
	ID           *string                               `json:"id"`
	Code         *string                               `json:"code"`
	Name         *string                               `json:"name"`
	DefinitionID string                                `json:"definitionId"`
	Slots        []*ConfiguratorAssemblySlotInput      `json:"slots"`
	Attributes   []*ConfiguratorAssemblyAttributeInput `json:"attributes"`
}

type ConfiguratorAssemblySlot

type ConfiguratorAssemblySlot struct {
	ID           string                    `json:"id"`
	DefinitionID string                    `json:"definitionId"`
	Item         *ConfiguratorAssemblyItem `json:"item"`
}

type ConfiguratorAssemblySlotInput

type ConfiguratorAssemblySlotInput struct {
	ID           *string                        `json:"id"`
	DefinitionID string                         `json:"definitionId"`
	Item         *ConfiguratorAssemblyItemInput `json:"item"`
}

type ConfiguratorAssemblyUpdateInput

type ConfiguratorAssemblyUpdateInput struct {
	Item *ConfiguratorAssemblyItemInput `json:"item"`
}

type ConfiguratorAttribute

type ConfiguratorAttribute struct {
	ID           string     `json:"id" gorm:"column:id;primary_key"`
	StringValue  *string    `json:"stringValue" gorm:"column:stringValue"`
	FloatValue   *float64   `json:"floatValue" gorm:"column:floatValue"`
	IntValue     *int       `json:"intValue" gorm:"column:intValue"`
	DefinitionID *string    `json:"definitionId" gorm:"column:definitionId"`
	ItemID       *string    `json:"itemId" gorm:"column:itemId"`
	UpdatedAt    *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt    time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy    *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy    *string    `json:"createdBy" gorm:"column:createdBy"`

	Definition *ConfiguratorAttributeDefinition `json:"definition"`

	Item *ConfiguratorItem `json:"item"`
}

func ConfiguratorAttributeDefinitionAttributesHandler

func ConfiguratorAttributeDefinitionAttributesHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorAttribute, err error)

func ConfiguratorItemAttributesHandler

func ConfiguratorItemAttributesHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorAttribute, err error)

func CreateConfiguratorAttributeHandler

func CreateConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorAttribute, err error)

func DeleteConfiguratorAttributeHandler

func DeleteConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorAttribute, err error)

func UpdateConfiguratorAttributeHandler

func UpdateConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorAttribute, err error)

func (*ConfiguratorAttribute) Is_Entity

func (m *ConfiguratorAttribute) Is_Entity()

type ConfiguratorAttributeChanges

type ConfiguratorAttributeChanges struct {
	ID           string
	StringValue  *string
	FloatValue   *float64
	IntValue     *int
	DefinitionID *string
	ItemID       *string
	UpdatedAt    *time.Time
	CreatedAt    time.Time
	UpdatedBy    *string
	CreatedBy    *string
}

type ConfiguratorAttributeDefinition

type ConfiguratorAttributeDefinition struct {
	ID        string                     `json:"id" gorm:"column:id;primary_key"`
	Name      *string                    `json:"name" gorm:"column:name"`
	Type      *ConfiguratorAttributeType `json:"type" gorm:"column:type"`
	UpdatedAt *time.Time                 `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt time.Time                  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy *string                    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy *string                    `json:"createdBy" gorm:"column:createdBy"`

	Definitions []*ConfiguratorItemDefinition `` /* 160-byte string literal not displayed */

	Attributes []*ConfiguratorAttribute `json:"attributes" gorm:"foreignkey:DefinitionID"`
}

func ConfiguratorItemDefinitionAttributesHandler

func ConfiguratorItemDefinitionAttributesHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorAttributeDefinition, err error)

func CreateConfiguratorAttributeDefinitionHandler

func CreateConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)

func DeleteConfiguratorAttributeDefinitionHandler

func DeleteConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorAttributeDefinition, err error)

func UpdateConfiguratorAttributeDefinitionHandler

func UpdateConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)

func (*ConfiguratorAttributeDefinition) Is_Entity

func (m *ConfiguratorAttributeDefinition) Is_Entity()

type ConfiguratorAttributeDefinitionChanges

type ConfiguratorAttributeDefinitionChanges struct {
	ID        string
	Name      *string
	Type      *ConfiguratorAttributeType
	UpdatedAt *time.Time
	CreatedAt time.Time
	UpdatedBy *string
	CreatedBy *string

	DefinitionsIDs []*string
	AttributesIDs  []*string
}

type ConfiguratorAttributeDefinitionFilterType

type ConfiguratorAttributeDefinitionFilterType struct {
	And           []*ConfiguratorAttributeDefinitionFilterType `json:"AND"`
	Or            []*ConfiguratorAttributeDefinitionFilterType `json:"OR"`
	ID            *string                                      `json:"id"`
	IDNe          *string                                      `json:"id_ne"`
	IDGt          *string                                      `json:"id_gt"`
	IDLt          *string                                      `json:"id_lt"`
	IDGte         *string                                      `json:"id_gte"`
	IDLte         *string                                      `json:"id_lte"`
	IDIn          []string                                     `json:"id_in"`
	IDNull        *bool                                        `json:"id_null"`
	Name          *string                                      `json:"name"`
	NameNe        *string                                      `json:"name_ne"`
	NameGt        *string                                      `json:"name_gt"`
	NameLt        *string                                      `json:"name_lt"`
	NameGte       *string                                      `json:"name_gte"`
	NameLte       *string                                      `json:"name_lte"`
	NameIn        []string                                     `json:"name_in"`
	NameLike      *string                                      `json:"name_like"`
	NamePrefix    *string                                      `json:"name_prefix"`
	NameSuffix    *string                                      `json:"name_suffix"`
	NameNull      *bool                                        `json:"name_null"`
	Type          *ConfiguratorAttributeType                   `json:"type"`
	TypeNe        *ConfiguratorAttributeType                   `json:"type_ne"`
	TypeGt        *ConfiguratorAttributeType                   `json:"type_gt"`
	TypeLt        *ConfiguratorAttributeType                   `json:"type_lt"`
	TypeGte       *ConfiguratorAttributeType                   `json:"type_gte"`
	TypeLte       *ConfiguratorAttributeType                   `json:"type_lte"`
	TypeIn        []ConfiguratorAttributeType                  `json:"type_in"`
	TypeNull      *bool                                        `json:"type_null"`
	UpdatedAt     *time.Time                                   `json:"updatedAt"`
	UpdatedAtNe   *time.Time                                   `json:"updatedAt_ne"`
	UpdatedAtGt   *time.Time                                   `json:"updatedAt_gt"`
	UpdatedAtLt   *time.Time                                   `json:"updatedAt_lt"`
	UpdatedAtGte  *time.Time                                   `json:"updatedAt_gte"`
	UpdatedAtLte  *time.Time                                   `json:"updatedAt_lte"`
	UpdatedAtIn   []*time.Time                                 `json:"updatedAt_in"`
	UpdatedAtNull *bool                                        `json:"updatedAt_null"`
	CreatedAt     *time.Time                                   `json:"createdAt"`
	CreatedAtNe   *time.Time                                   `json:"createdAt_ne"`
	CreatedAtGt   *time.Time                                   `json:"createdAt_gt"`
	CreatedAtLt   *time.Time                                   `json:"createdAt_lt"`
	CreatedAtGte  *time.Time                                   `json:"createdAt_gte"`
	CreatedAtLte  *time.Time                                   `json:"createdAt_lte"`
	CreatedAtIn   []*time.Time                                 `json:"createdAt_in"`
	CreatedAtNull *bool                                        `json:"createdAt_null"`
	UpdatedBy     *string                                      `json:"updatedBy"`
	UpdatedByNe   *string                                      `json:"updatedBy_ne"`
	UpdatedByGt   *string                                      `json:"updatedBy_gt"`
	UpdatedByLt   *string                                      `json:"updatedBy_lt"`
	UpdatedByGte  *string                                      `json:"updatedBy_gte"`
	UpdatedByLte  *string                                      `json:"updatedBy_lte"`
	UpdatedByIn   []string                                     `json:"updatedBy_in"`
	UpdatedByNull *bool                                        `json:"updatedBy_null"`
	CreatedBy     *string                                      `json:"createdBy"`
	CreatedByNe   *string                                      `json:"createdBy_ne"`
	CreatedByGt   *string                                      `json:"createdBy_gt"`
	CreatedByLt   *string                                      `json:"createdBy_lt"`
	CreatedByGte  *string                                      `json:"createdBy_gte"`
	CreatedByLte  *string                                      `json:"createdBy_lte"`
	CreatedByIn   []string                                     `json:"createdBy_in"`
	CreatedByNull *bool                                        `json:"createdBy_null"`
	Definitions   *ConfiguratorItemDefinitionFilterType        `json:"definitions"`
	Attributes    *ConfiguratorAttributeFilterType             `json:"attributes"`
}

func (*ConfiguratorAttributeDefinitionFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ConfiguratorAttributeDefinitionFilterType) Apply

func (f *ConfiguratorAttributeDefinitionFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorAttributeDefinitionFilterType) ApplyWithAlias

func (f *ConfiguratorAttributeDefinitionFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorAttributeDefinitionFilterType) IsEmpty

func (*ConfiguratorAttributeDefinitionFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ConfiguratorAttributeDefinitionFilterType) WhereContent

func (f *ConfiguratorAttributeDefinitionFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

type ConfiguratorAttributeDefinitionQueryFilter

type ConfiguratorAttributeDefinitionQueryFilter struct {
	Query *string
}

func (*ConfiguratorAttributeDefinitionQueryFilter) Apply

func (qf *ConfiguratorAttributeDefinitionQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

type ConfiguratorAttributeDefinitionResolver

type ConfiguratorAttributeDefinitionResolver interface {
	Definitions(ctx context.Context, obj *ConfiguratorAttributeDefinition) ([]*ConfiguratorItemDefinition, error)
	Attributes(ctx context.Context, obj *ConfiguratorAttributeDefinition) ([]*ConfiguratorAttribute, error)

	DefinitionsIds(ctx context.Context, obj *ConfiguratorAttributeDefinition) ([]string, error)
	AttributesIds(ctx context.Context, obj *ConfiguratorAttributeDefinition) ([]string, error)
}

type ConfiguratorAttributeDefinitionSortType

type ConfiguratorAttributeDefinitionSortType struct {
	ID             *ObjectSortType                     `json:"id"`
	Name           *ObjectSortType                     `json:"name"`
	Type           *ObjectSortType                     `json:"type"`
	UpdatedAt      *ObjectSortType                     `json:"updatedAt"`
	CreatedAt      *ObjectSortType                     `json:"createdAt"`
	UpdatedBy      *ObjectSortType                     `json:"updatedBy"`
	CreatedBy      *ObjectSortType                     `json:"createdBy"`
	DefinitionsIds *ObjectSortType                     `json:"definitionsIds"`
	AttributesIds  *ObjectSortType                     `json:"attributesIds"`
	Definitions    *ConfiguratorItemDefinitionSortType `json:"definitions"`
	Attributes     *ConfiguratorAttributeSortType      `json:"attributes"`
}

func (ConfiguratorAttributeDefinitionSortType) Apply

func (s ConfiguratorAttributeDefinitionSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]string, joins *[]string) error

func (ConfiguratorAttributeDefinitionSortType) ApplyWithAlias

func (s ConfiguratorAttributeDefinitionSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]string, joins *[]string) error

type ConfiguratorAttributeFilterType

type ConfiguratorAttributeFilterType struct {
	And               []*ConfiguratorAttributeFilterType         `json:"AND"`
	Or                []*ConfiguratorAttributeFilterType         `json:"OR"`
	ID                *string                                    `json:"id"`
	IDNe              *string                                    `json:"id_ne"`
	IDGt              *string                                    `json:"id_gt"`
	IDLt              *string                                    `json:"id_lt"`
	IDGte             *string                                    `json:"id_gte"`
	IDLte             *string                                    `json:"id_lte"`
	IDIn              []string                                   `json:"id_in"`
	IDNull            *bool                                      `json:"id_null"`
	StringValue       *string                                    `json:"stringValue"`
	StringValueNe     *string                                    `json:"stringValue_ne"`
	StringValueGt     *string                                    `json:"stringValue_gt"`
	StringValueLt     *string                                    `json:"stringValue_lt"`
	StringValueGte    *string                                    `json:"stringValue_gte"`
	StringValueLte    *string                                    `json:"stringValue_lte"`
	StringValueIn     []string                                   `json:"stringValue_in"`
	StringValueLike   *string                                    `json:"stringValue_like"`
	StringValuePrefix *string                                    `json:"stringValue_prefix"`
	StringValueSuffix *string                                    `json:"stringValue_suffix"`
	StringValueNull   *bool                                      `json:"stringValue_null"`
	FloatValue        *float64                                   `json:"floatValue"`
	FloatValueNe      *float64                                   `json:"floatValue_ne"`
	FloatValueGt      *float64                                   `json:"floatValue_gt"`
	FloatValueLt      *float64                                   `json:"floatValue_lt"`
	FloatValueGte     *float64                                   `json:"floatValue_gte"`
	FloatValueLte     *float64                                   `json:"floatValue_lte"`
	FloatValueIn      []float64                                  `json:"floatValue_in"`
	FloatValueNull    *bool                                      `json:"floatValue_null"`
	IntValue          *int                                       `json:"intValue"`
	IntValueNe        *int                                       `json:"intValue_ne"`
	IntValueGt        *int                                       `json:"intValue_gt"`
	IntValueLt        *int                                       `json:"intValue_lt"`
	IntValueGte       *int                                       `json:"intValue_gte"`
	IntValueLte       *int                                       `json:"intValue_lte"`
	IntValueIn        []int                                      `json:"intValue_in"`
	IntValueNull      *bool                                      `json:"intValue_null"`
	DefinitionID      *string                                    `json:"definitionId"`
	DefinitionIDNe    *string                                    `json:"definitionId_ne"`
	DefinitionIDGt    *string                                    `json:"definitionId_gt"`
	DefinitionIDLt    *string                                    `json:"definitionId_lt"`
	DefinitionIDGte   *string                                    `json:"definitionId_gte"`
	DefinitionIDLte   *string                                    `json:"definitionId_lte"`
	DefinitionIDIn    []string                                   `json:"definitionId_in"`
	DefinitionIDNull  *bool                                      `json:"definitionId_null"`
	ItemID            *string                                    `json:"itemId"`
	ItemIDNe          *string                                    `json:"itemId_ne"`
	ItemIDGt          *string                                    `json:"itemId_gt"`
	ItemIDLt          *string                                    `json:"itemId_lt"`
	ItemIDGte         *string                                    `json:"itemId_gte"`
	ItemIDLte         *string                                    `json:"itemId_lte"`
	ItemIDIn          []string                                   `json:"itemId_in"`
	ItemIDNull        *bool                                      `json:"itemId_null"`
	UpdatedAt         *time.Time                                 `json:"updatedAt"`
	UpdatedAtNe       *time.Time                                 `json:"updatedAt_ne"`
	UpdatedAtGt       *time.Time                                 `json:"updatedAt_gt"`
	UpdatedAtLt       *time.Time                                 `json:"updatedAt_lt"`
	UpdatedAtGte      *time.Time                                 `json:"updatedAt_gte"`
	UpdatedAtLte      *time.Time                                 `json:"updatedAt_lte"`
	UpdatedAtIn       []*time.Time                               `json:"updatedAt_in"`
	UpdatedAtNull     *bool                                      `json:"updatedAt_null"`
	CreatedAt         *time.Time                                 `json:"createdAt"`
	CreatedAtNe       *time.Time                                 `json:"createdAt_ne"`
	CreatedAtGt       *time.Time                                 `json:"createdAt_gt"`
	CreatedAtLt       *time.Time                                 `json:"createdAt_lt"`
	CreatedAtGte      *time.Time                                 `json:"createdAt_gte"`
	CreatedAtLte      *time.Time                                 `json:"createdAt_lte"`
	CreatedAtIn       []*time.Time                               `json:"createdAt_in"`
	CreatedAtNull     *bool                                      `json:"createdAt_null"`
	UpdatedBy         *string                                    `json:"updatedBy"`
	UpdatedByNe       *string                                    `json:"updatedBy_ne"`
	UpdatedByGt       *string                                    `json:"updatedBy_gt"`
	UpdatedByLt       *string                                    `json:"updatedBy_lt"`
	UpdatedByGte      *string                                    `json:"updatedBy_gte"`
	UpdatedByLte      *string                                    `json:"updatedBy_lte"`
	UpdatedByIn       []string                                   `json:"updatedBy_in"`
	UpdatedByNull     *bool                                      `json:"updatedBy_null"`
	CreatedBy         *string                                    `json:"createdBy"`
	CreatedByNe       *string                                    `json:"createdBy_ne"`
	CreatedByGt       *string                                    `json:"createdBy_gt"`
	CreatedByLt       *string                                    `json:"createdBy_lt"`
	CreatedByGte      *string                                    `json:"createdBy_gte"`
	CreatedByLte      *string                                    `json:"createdBy_lte"`
	CreatedByIn       []string                                   `json:"createdBy_in"`
	CreatedByNull     *bool                                      `json:"createdBy_null"`
	Definition        *ConfiguratorAttributeDefinitionFilterType `json:"definition"`
	Item              *ConfiguratorItemFilterType                `json:"item"`
}

func (*ConfiguratorAttributeFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ConfiguratorAttributeFilterType) Apply

func (f *ConfiguratorAttributeFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorAttributeFilterType) ApplyWithAlias

func (f *ConfiguratorAttributeFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorAttributeFilterType) IsEmpty

func (*ConfiguratorAttributeFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ConfiguratorAttributeFilterType) WhereContent

func (f *ConfiguratorAttributeFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

type ConfiguratorAttributeQueryFilter

type ConfiguratorAttributeQueryFilter struct {
	Query *string
}

func (*ConfiguratorAttributeQueryFilter) Apply

func (qf *ConfiguratorAttributeQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

type ConfiguratorAttributeResolver

type ConfiguratorAttributeResolver interface {
	Definition(ctx context.Context, obj *ConfiguratorAttribute) (*ConfiguratorAttributeDefinition, error)
	Item(ctx context.Context, obj *ConfiguratorAttribute) (*ConfiguratorItem, error)
}

type ConfiguratorAttributeResultType

type ConfiguratorAttributeResultType struct {
	EntityResultType
}

type ConfiguratorAttributeResultTypeResolver

type ConfiguratorAttributeResultTypeResolver interface {
	Items(ctx context.Context, obj *ConfiguratorAttributeResultType) ([]*ConfiguratorAttribute, error)
	Count(ctx context.Context, obj *ConfiguratorAttributeResultType) (int, error)
}

type ConfiguratorAttributeSortType

type ConfiguratorAttributeSortType struct {
	ID           *ObjectSortType                          `json:"id"`
	StringValue  *ObjectSortType                          `json:"stringValue"`
	FloatValue   *ObjectSortType                          `json:"floatValue"`
	IntValue     *ObjectSortType                          `json:"intValue"`
	DefinitionID *ObjectSortType                          `json:"definitionId"`
	ItemID       *ObjectSortType                          `json:"itemId"`
	UpdatedAt    *ObjectSortType                          `json:"updatedAt"`
	CreatedAt    *ObjectSortType                          `json:"createdAt"`
	UpdatedBy    *ObjectSortType                          `json:"updatedBy"`
	CreatedBy    *ObjectSortType                          `json:"createdBy"`
	Definition   *ConfiguratorAttributeDefinitionSortType `json:"definition"`
	Item         *ConfiguratorItemSortType                `json:"item"`
}

func (ConfiguratorAttributeSortType) Apply

func (s ConfiguratorAttributeSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]string, joins *[]string) error

func (ConfiguratorAttributeSortType) ApplyWithAlias

func (s ConfiguratorAttributeSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]string, joins *[]string) error

type ConfiguratorAttributeType

type ConfiguratorAttributeType string
const (
	ConfiguratorAttributeTypeString ConfiguratorAttributeType = "STRING"
	ConfiguratorAttributeTypeFloat  ConfiguratorAttributeType = "FLOAT"
	ConfiguratorAttributeTypeInt    ConfiguratorAttributeType = "INT"
)

func (ConfiguratorAttributeType) IsValid

func (e ConfiguratorAttributeType) IsValid() bool

func (ConfiguratorAttributeType) MarshalGQL

func (e ConfiguratorAttributeType) MarshalGQL(w io.Writer)

func (ConfiguratorAttributeType) String

func (e ConfiguratorAttributeType) String() string

func (*ConfiguratorAttributeType) UnmarshalGQL

func (e *ConfiguratorAttributeType) UnmarshalGQL(v interface{}) error

type ConfiguratorItem

type ConfiguratorItem struct {
	ID           string     `json:"id" gorm:"column:id;primary_key"`
	Code         *string    `json:"code" gorm:"column:code"`
	Name         *string    `json:"name" gorm:"column:name"`
	StockItemID  *string    `json:"stockItemID" gorm:"column:stockItemID"`
	DefinitionID *string    `json:"definitionId" gorm:"column:definitionId"`
	UpdatedAt    *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt    time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy    *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy    *string    `json:"createdBy" gorm:"column:createdBy"`

	Definition *ConfiguratorItemDefinition `json:"definition"`

	Attributes []*ConfiguratorAttribute `json:"attributes" gorm:"foreignkey:ItemID"`

	Slots []*ConfiguratorSlot `json:"slots" gorm:"foreignkey:ParentItemID"`

	ParentSlots []*ConfiguratorSlot `json:"parentSlots" gorm:"foreignkey:ItemID"`
}

func ConfiguratorAttributeItemHandler

func ConfiguratorAttributeItemHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttribute) (res *ConfiguratorItem, err error)

func ConfiguratorItemDefinitionItemsHandler

func ConfiguratorItemDefinitionItemsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorItem, err error)

func ConfiguratorSlotItemHandler

func ConfiguratorSlotItemHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)

func ConfiguratorSlotParentItemHandler

func ConfiguratorSlotParentItemHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)

func CreateConfiguratorItemHandler

func CreateConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorItem, err error)

func DeleteConfiguratorItemHandler

func DeleteConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorItem, err error)

func UpdateConfiguratorItemHandler

func UpdateConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorItem, err error)

func (*ConfiguratorItem) Is_Entity

func (m *ConfiguratorItem) Is_Entity()

type ConfiguratorItemChanges

type ConfiguratorItemChanges struct {
	ID           string
	Code         *string
	Name         *string
	StockItemID  *string
	DefinitionID *string
	UpdatedAt    *time.Time
	CreatedAt    time.Time
	UpdatedBy    *string
	CreatedBy    *string

	AttributesIDs  []*string
	SlotsIDs       []*string
	ParentSlotsIDs []*string
}

type ConfiguratorItemDefinition

type ConfiguratorItemDefinition struct {
	ID        string     `json:"id" gorm:"column:id;primary_key"`
	Name      *string    `json:"name" gorm:"column:name"`
	UpdatedAt *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy *string    `json:"createdBy" gorm:"column:createdBy"`

	Attributes []*ConfiguratorAttributeDefinition `` /* 159-byte string literal not displayed */

	Slots []*ConfiguratorSlotDefinition `json:"slots" gorm:"foreignkey:DefinitionID"`

	Items []*ConfiguratorItem `json:"items" gorm:"foreignkey:DefinitionID"`
}

func ConfiguratorAttributeDefinitionDefinitionsHandler

func ConfiguratorAttributeDefinitionDefinitionsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorItemDefinition, err error)

func ConfiguratorItemDefinitionHandler

func ConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res *ConfiguratorItemDefinition, err error)

func ConfiguratorSlotDefinitionDefinitionHandler

func ConfiguratorSlotDefinitionDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlotDefinition) (res *ConfiguratorItemDefinition, err error)

func CreateConfiguratorItemDefinitionHandler

func CreateConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)

func DeleteConfiguratorItemDefinitionHandler

func DeleteConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorItemDefinition, err error)

func UpdateConfiguratorItemDefinitionHandler

func UpdateConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)

func (*ConfiguratorItemDefinition) Is_Entity

func (m *ConfiguratorItemDefinition) Is_Entity()

type ConfiguratorItemDefinitionChanges

type ConfiguratorItemDefinitionChanges struct {
	ID        string
	Name      *string
	UpdatedAt *time.Time
	CreatedAt time.Time
	UpdatedBy *string
	CreatedBy *string

	AttributesIDs []*string
	SlotsIDs      []*string
	ItemsIDs      []*string
}

type ConfiguratorItemDefinitionFilterType

type ConfiguratorItemDefinitionFilterType struct {
	And           []*ConfiguratorItemDefinitionFilterType    `json:"AND"`
	Or            []*ConfiguratorItemDefinitionFilterType    `json:"OR"`
	ID            *string                                    `json:"id"`
	IDNe          *string                                    `json:"id_ne"`
	IDGt          *string                                    `json:"id_gt"`
	IDLt          *string                                    `json:"id_lt"`
	IDGte         *string                                    `json:"id_gte"`
	IDLte         *string                                    `json:"id_lte"`
	IDIn          []string                                   `json:"id_in"`
	IDNull        *bool                                      `json:"id_null"`
	Name          *string                                    `json:"name"`
	NameNe        *string                                    `json:"name_ne"`
	NameGt        *string                                    `json:"name_gt"`
	NameLt        *string                                    `json:"name_lt"`
	NameGte       *string                                    `json:"name_gte"`
	NameLte       *string                                    `json:"name_lte"`
	NameIn        []string                                   `json:"name_in"`
	NameLike      *string                                    `json:"name_like"`
	NamePrefix    *string                                    `json:"name_prefix"`
	NameSuffix    *string                                    `json:"name_suffix"`
	NameNull      *bool                                      `json:"name_null"`
	UpdatedAt     *time.Time                                 `json:"updatedAt"`
	UpdatedAtNe   *time.Time                                 `json:"updatedAt_ne"`
	UpdatedAtGt   *time.Time                                 `json:"updatedAt_gt"`
	UpdatedAtLt   *time.Time                                 `json:"updatedAt_lt"`
	UpdatedAtGte  *time.Time                                 `json:"updatedAt_gte"`
	UpdatedAtLte  *time.Time                                 `json:"updatedAt_lte"`
	UpdatedAtIn   []*time.Time                               `json:"updatedAt_in"`
	UpdatedAtNull *bool                                      `json:"updatedAt_null"`
	CreatedAt     *time.Time                                 `json:"createdAt"`
	CreatedAtNe   *time.Time                                 `json:"createdAt_ne"`
	CreatedAtGt   *time.Time                                 `json:"createdAt_gt"`
	CreatedAtLt   *time.Time                                 `json:"createdAt_lt"`
	CreatedAtGte  *time.Time                                 `json:"createdAt_gte"`
	CreatedAtLte  *time.Time                                 `json:"createdAt_lte"`
	CreatedAtIn   []*time.Time                               `json:"createdAt_in"`
	CreatedAtNull *bool                                      `json:"createdAt_null"`
	UpdatedBy     *string                                    `json:"updatedBy"`
	UpdatedByNe   *string                                    `json:"updatedBy_ne"`
	UpdatedByGt   *string                                    `json:"updatedBy_gt"`
	UpdatedByLt   *string                                    `json:"updatedBy_lt"`
	UpdatedByGte  *string                                    `json:"updatedBy_gte"`
	UpdatedByLte  *string                                    `json:"updatedBy_lte"`
	UpdatedByIn   []string                                   `json:"updatedBy_in"`
	UpdatedByNull *bool                                      `json:"updatedBy_null"`
	CreatedBy     *string                                    `json:"createdBy"`
	CreatedByNe   *string                                    `json:"createdBy_ne"`
	CreatedByGt   *string                                    `json:"createdBy_gt"`
	CreatedByLt   *string                                    `json:"createdBy_lt"`
	CreatedByGte  *string                                    `json:"createdBy_gte"`
	CreatedByLte  *string                                    `json:"createdBy_lte"`
	CreatedByIn   []string                                   `json:"createdBy_in"`
	CreatedByNull *bool                                      `json:"createdBy_null"`
	Attributes    *ConfiguratorAttributeDefinitionFilterType `json:"attributes"`
	Slots         *ConfiguratorSlotDefinitionFilterType      `json:"slots"`
	Items         *ConfiguratorItemFilterType                `json:"items"`
}

func (*ConfiguratorItemDefinitionFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ConfiguratorItemDefinitionFilterType) Apply

func (f *ConfiguratorItemDefinitionFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorItemDefinitionFilterType) ApplyWithAlias

func (f *ConfiguratorItemDefinitionFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorItemDefinitionFilterType) IsEmpty

func (*ConfiguratorItemDefinitionFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ConfiguratorItemDefinitionFilterType) WhereContent

func (f *ConfiguratorItemDefinitionFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

type ConfiguratorItemDefinitionQueryFilter

type ConfiguratorItemDefinitionQueryFilter struct {
	Query *string
}

func (*ConfiguratorItemDefinitionQueryFilter) Apply

func (qf *ConfiguratorItemDefinitionQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

type ConfiguratorItemDefinitionResultTypeResolver

type ConfiguratorItemDefinitionResultTypeResolver interface {
	Items(ctx context.Context, obj *ConfiguratorItemDefinitionResultType) ([]*ConfiguratorItemDefinition, error)
	Count(ctx context.Context, obj *ConfiguratorItemDefinitionResultType) (int, error)
}

type ConfiguratorItemDefinitionSortType

type ConfiguratorItemDefinitionSortType struct {
	ID            *ObjectSortType                          `json:"id"`
	Name          *ObjectSortType                          `json:"name"`
	UpdatedAt     *ObjectSortType                          `json:"updatedAt"`
	CreatedAt     *ObjectSortType                          `json:"createdAt"`
	UpdatedBy     *ObjectSortType                          `json:"updatedBy"`
	CreatedBy     *ObjectSortType                          `json:"createdBy"`
	AttributesIds *ObjectSortType                          `json:"attributesIds"`
	SlotsIds      *ObjectSortType                          `json:"slotsIds"`
	ItemsIds      *ObjectSortType                          `json:"itemsIds"`
	Attributes    *ConfiguratorAttributeDefinitionSortType `json:"attributes"`
	Slots         *ConfiguratorSlotDefinitionSortType      `json:"slots"`
	Items         *ConfiguratorItemSortType                `json:"items"`
}

func (ConfiguratorItemDefinitionSortType) Apply

func (s ConfiguratorItemDefinitionSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]string, joins *[]string) error

func (ConfiguratorItemDefinitionSortType) ApplyWithAlias

func (s ConfiguratorItemDefinitionSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]string, joins *[]string) error

type ConfiguratorItemFilterType

type ConfiguratorItemFilterType struct {
	And              []*ConfiguratorItemFilterType         `json:"AND"`
	Or               []*ConfiguratorItemFilterType         `json:"OR"`
	ID               *string                               `json:"id"`
	IDNe             *string                               `json:"id_ne"`
	IDGt             *string                               `json:"id_gt"`
	IDLt             *string                               `json:"id_lt"`
	IDGte            *string                               `json:"id_gte"`
	IDLte            *string                               `json:"id_lte"`
	IDIn             []string                              `json:"id_in"`
	IDNull           *bool                                 `json:"id_null"`
	Code             *string                               `json:"code"`
	CodeNe           *string                               `json:"code_ne"`
	CodeGt           *string                               `json:"code_gt"`
	CodeLt           *string                               `json:"code_lt"`
	CodeGte          *string                               `json:"code_gte"`
	CodeLte          *string                               `json:"code_lte"`
	CodeIn           []string                              `json:"code_in"`
	CodeLike         *string                               `json:"code_like"`
	CodePrefix       *string                               `json:"code_prefix"`
	CodeSuffix       *string                               `json:"code_suffix"`
	CodeNull         *bool                                 `json:"code_null"`
	Name             *string                               `json:"name"`
	NameNe           *string                               `json:"name_ne"`
	NameGt           *string                               `json:"name_gt"`
	NameLt           *string                               `json:"name_lt"`
	NameGte          *string                               `json:"name_gte"`
	NameLte          *string                               `json:"name_lte"`
	NameIn           []string                              `json:"name_in"`
	NameLike         *string                               `json:"name_like"`
	NamePrefix       *string                               `json:"name_prefix"`
	NameSuffix       *string                               `json:"name_suffix"`
	NameNull         *bool                                 `json:"name_null"`
	StockItemID      *string                               `json:"stockItemID"`
	StockItemIDNe    *string                               `json:"stockItemID_ne"`
	StockItemIDGt    *string                               `json:"stockItemID_gt"`
	StockItemIDLt    *string                               `json:"stockItemID_lt"`
	StockItemIDGte   *string                               `json:"stockItemID_gte"`
	StockItemIDLte   *string                               `json:"stockItemID_lte"`
	StockItemIDIn    []string                              `json:"stockItemID_in"`
	StockItemIDNull  *bool                                 `json:"stockItemID_null"`
	DefinitionID     *string                               `json:"definitionId"`
	DefinitionIDNe   *string                               `json:"definitionId_ne"`
	DefinitionIDGt   *string                               `json:"definitionId_gt"`
	DefinitionIDLt   *string                               `json:"definitionId_lt"`
	DefinitionIDGte  *string                               `json:"definitionId_gte"`
	DefinitionIDLte  *string                               `json:"definitionId_lte"`
	DefinitionIDIn   []string                              `json:"definitionId_in"`
	DefinitionIDNull *bool                                 `json:"definitionId_null"`
	UpdatedAt        *time.Time                            `json:"updatedAt"`
	UpdatedAtNe      *time.Time                            `json:"updatedAt_ne"`
	UpdatedAtGt      *time.Time                            `json:"updatedAt_gt"`
	UpdatedAtLt      *time.Time                            `json:"updatedAt_lt"`
	UpdatedAtGte     *time.Time                            `json:"updatedAt_gte"`
	UpdatedAtLte     *time.Time                            `json:"updatedAt_lte"`
	UpdatedAtIn      []*time.Time                          `json:"updatedAt_in"`
	UpdatedAtNull    *bool                                 `json:"updatedAt_null"`
	CreatedAt        *time.Time                            `json:"createdAt"`
	CreatedAtNe      *time.Time                            `json:"createdAt_ne"`
	CreatedAtGt      *time.Time                            `json:"createdAt_gt"`
	CreatedAtLt      *time.Time                            `json:"createdAt_lt"`
	CreatedAtGte     *time.Time                            `json:"createdAt_gte"`
	CreatedAtLte     *time.Time                            `json:"createdAt_lte"`
	CreatedAtIn      []*time.Time                          `json:"createdAt_in"`
	CreatedAtNull    *bool                                 `json:"createdAt_null"`
	UpdatedBy        *string                               `json:"updatedBy"`
	UpdatedByNe      *string                               `json:"updatedBy_ne"`
	UpdatedByGt      *string                               `json:"updatedBy_gt"`
	UpdatedByLt      *string                               `json:"updatedBy_lt"`
	UpdatedByGte     *string                               `json:"updatedBy_gte"`
	UpdatedByLte     *string                               `json:"updatedBy_lte"`
	UpdatedByIn      []string                              `json:"updatedBy_in"`
	UpdatedByNull    *bool                                 `json:"updatedBy_null"`
	CreatedBy        *string                               `json:"createdBy"`
	CreatedByNe      *string                               `json:"createdBy_ne"`
	CreatedByGt      *string                               `json:"createdBy_gt"`
	CreatedByLt      *string                               `json:"createdBy_lt"`
	CreatedByGte     *string                               `json:"createdBy_gte"`
	CreatedByLte     *string                               `json:"createdBy_lte"`
	CreatedByIn      []string                              `json:"createdBy_in"`
	CreatedByNull    *bool                                 `json:"createdBy_null"`
	Definition       *ConfiguratorItemDefinitionFilterType `json:"definition"`
	Attributes       *ConfiguratorAttributeFilterType      `json:"attributes"`
	Slots            *ConfiguratorSlotFilterType           `json:"slots"`
	ParentSlots      *ConfiguratorSlotFilterType           `json:"parentSlots"`
}

func (*ConfiguratorItemFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ConfiguratorItemFilterType) Apply

func (f *ConfiguratorItemFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorItemFilterType) ApplyWithAlias

func (f *ConfiguratorItemFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorItemFilterType) IsEmpty

func (f *ConfiguratorItemFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

func (*ConfiguratorItemFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ConfiguratorItemFilterType) WhereContent

func (f *ConfiguratorItemFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

type ConfiguratorItemQueryFilter

type ConfiguratorItemQueryFilter struct {
	Query *string
}

func (*ConfiguratorItemQueryFilter) Apply

func (qf *ConfiguratorItemQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

type ConfiguratorItemResolver

type ConfiguratorItemResolver interface {
	Definition(ctx context.Context, obj *ConfiguratorItem) (*ConfiguratorItemDefinition, error)
	Attributes(ctx context.Context, obj *ConfiguratorItem) ([]*ConfiguratorAttribute, error)
	Slots(ctx context.Context, obj *ConfiguratorItem) ([]*ConfiguratorSlot, error)
	ParentSlots(ctx context.Context, obj *ConfiguratorItem) ([]*ConfiguratorSlot, error)

	AttributesIds(ctx context.Context, obj *ConfiguratorItem) ([]string, error)
	SlotsIds(ctx context.Context, obj *ConfiguratorItem) ([]string, error)
	ParentSlotsIds(ctx context.Context, obj *ConfiguratorItem) ([]string, error)
}

type ConfiguratorItemResultType

type ConfiguratorItemResultType struct {
	EntityResultType
}

type ConfiguratorItemResultTypeResolver

type ConfiguratorItemResultTypeResolver interface {
	Items(ctx context.Context, obj *ConfiguratorItemResultType) ([]*ConfiguratorItem, error)
	Count(ctx context.Context, obj *ConfiguratorItemResultType) (int, error)
}

type ConfiguratorItemSortType

type ConfiguratorItemSortType struct {
	ID             *ObjectSortType                     `json:"id"`
	Code           *ObjectSortType                     `json:"code"`
	Name           *ObjectSortType                     `json:"name"`
	StockItemID    *ObjectSortType                     `json:"stockItemID"`
	DefinitionID   *ObjectSortType                     `json:"definitionId"`
	UpdatedAt      *ObjectSortType                     `json:"updatedAt"`
	CreatedAt      *ObjectSortType                     `json:"createdAt"`
	UpdatedBy      *ObjectSortType                     `json:"updatedBy"`
	CreatedBy      *ObjectSortType                     `json:"createdBy"`
	AttributesIds  *ObjectSortType                     `json:"attributesIds"`
	SlotsIds       *ObjectSortType                     `json:"slotsIds"`
	ParentSlotsIds *ObjectSortType                     `json:"parentSlotsIds"`
	Definition     *ConfiguratorItemDefinitionSortType `json:"definition"`
	Attributes     *ConfiguratorAttributeSortType      `json:"attributes"`
	Slots          *ConfiguratorSlotSortType           `json:"slots"`
	ParentSlots    *ConfiguratorSlotSortType           `json:"parentSlots"`
}

func (ConfiguratorItemSortType) Apply

func (s ConfiguratorItemSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]string, joins *[]string) error

func (ConfiguratorItemSortType) ApplyWithAlias

func (s ConfiguratorItemSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]string, joins *[]string) error

type ConfiguratorSlot

type ConfiguratorSlot struct {
	ID           string     `json:"id" gorm:"column:id;primary_key"`
	ItemID       *string    `json:"itemId" gorm:"column:itemId"`
	DefinitionID *string    `json:"definitionId" gorm:"column:definitionId"`
	ParentItemID *string    `json:"parentItemId" gorm:"column:parentItemId"`
	UpdatedAt    *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt    time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy    *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy    *string    `json:"createdBy" gorm:"column:createdBy"`

	Item *ConfiguratorItem `json:"item"`

	Definition *ConfiguratorSlotDefinition `json:"definition"`

	ParentItem *ConfiguratorItem `json:"parentItem"`
}

func ConfiguratorItemParentSlotsHandler

func ConfiguratorItemParentSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)

func ConfiguratorItemSlotsHandler

func ConfiguratorItemSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)

func ConfiguratorSlotDefinitionSlotsHandler

func ConfiguratorSlotDefinitionSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlotDefinition) (res []*ConfiguratorSlot, err error)

func CreateConfiguratorSlotHandler

func CreateConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorSlot, err error)

func DeleteConfiguratorSlotHandler

func DeleteConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorSlot, err error)

func UpdateConfiguratorSlotHandler

func UpdateConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorSlot, err error)

func (*ConfiguratorSlot) Is_Entity

func (m *ConfiguratorSlot) Is_Entity()

type ConfiguratorSlotChanges

type ConfiguratorSlotChanges struct {
	ID           string
	ItemID       *string
	DefinitionID *string
	ParentItemID *string
	UpdatedAt    *time.Time
	CreatedAt    time.Time
	UpdatedBy    *string
	CreatedBy    *string
}

type ConfiguratorSlotDefinition

type ConfiguratorSlotDefinition struct {
	ID           string     `json:"id" gorm:"column:id;primary_key"`
	Name         *string    `json:"name" gorm:"column:name"`
	MinCount     *int       `json:"minCount" gorm:"column:minCount"`
	MaxCount     *int       `json:"maxCount" gorm:"column:maxCount"`
	DefinitionID *string    `json:"definitionId" gorm:"column:definitionId"`
	UpdatedAt    *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt    time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy    *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy    *string    `json:"createdBy" gorm:"column:createdBy"`

	Definition *ConfiguratorItemDefinition `json:"definition"`

	Slots []*ConfiguratorSlot `json:"slots" gorm:"foreignkey:DefinitionID"`
}

func ConfiguratorItemDefinitionSlotsHandler

func ConfiguratorItemDefinitionSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorSlotDefinition, err error)

func ConfiguratorSlotDefinitionHandler

func ConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorSlotDefinition, err error)

func CreateConfiguratorSlotDefinitionHandler

func CreateConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)

func DeleteConfiguratorSlotDefinitionHandler

func DeleteConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorSlotDefinition, err error)

func UpdateConfiguratorSlotDefinitionHandler

func UpdateConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)

func (*ConfiguratorSlotDefinition) Is_Entity

func (m *ConfiguratorSlotDefinition) Is_Entity()

type ConfiguratorSlotDefinitionChanges

type ConfiguratorSlotDefinitionChanges struct {
	ID           string
	Name         *string
	MinCount     *int
	MaxCount     *int
	DefinitionID *string
	UpdatedAt    *time.Time
	CreatedAt    time.Time
	UpdatedBy    *string
	CreatedBy    *string

	SlotsIDs []*string
}

type ConfiguratorSlotDefinitionFilterType

type ConfiguratorSlotDefinitionFilterType struct {
	And              []*ConfiguratorSlotDefinitionFilterType `json:"AND"`
	Or               []*ConfiguratorSlotDefinitionFilterType `json:"OR"`
	ID               *string                                 `json:"id"`
	IDNe             *string                                 `json:"id_ne"`
	IDGt             *string                                 `json:"id_gt"`
	IDLt             *string                                 `json:"id_lt"`
	IDGte            *string                                 `json:"id_gte"`
	IDLte            *string                                 `json:"id_lte"`
	IDIn             []string                                `json:"id_in"`
	IDNull           *bool                                   `json:"id_null"`
	Name             *string                                 `json:"name"`
	NameNe           *string                                 `json:"name_ne"`
	NameGt           *string                                 `json:"name_gt"`
	NameLt           *string                                 `json:"name_lt"`
	NameGte          *string                                 `json:"name_gte"`
	NameLte          *string                                 `json:"name_lte"`
	NameIn           []string                                `json:"name_in"`
	NameLike         *string                                 `json:"name_like"`
	NamePrefix       *string                                 `json:"name_prefix"`
	NameSuffix       *string                                 `json:"name_suffix"`
	NameNull         *bool                                   `json:"name_null"`
	MinCount         *int                                    `json:"minCount"`
	MinCountNe       *int                                    `json:"minCount_ne"`
	MinCountGt       *int                                    `json:"minCount_gt"`
	MinCountLt       *int                                    `json:"minCount_lt"`
	MinCountGte      *int                                    `json:"minCount_gte"`
	MinCountLte      *int                                    `json:"minCount_lte"`
	MinCountIn       []int                                   `json:"minCount_in"`
	MinCountNull     *bool                                   `json:"minCount_null"`
	MaxCount         *int                                    `json:"maxCount"`
	MaxCountNe       *int                                    `json:"maxCount_ne"`
	MaxCountGt       *int                                    `json:"maxCount_gt"`
	MaxCountLt       *int                                    `json:"maxCount_lt"`
	MaxCountGte      *int                                    `json:"maxCount_gte"`
	MaxCountLte      *int                                    `json:"maxCount_lte"`
	MaxCountIn       []int                                   `json:"maxCount_in"`
	MaxCountNull     *bool                                   `json:"maxCount_null"`
	DefinitionID     *string                                 `json:"definitionId"`
	DefinitionIDNe   *string                                 `json:"definitionId_ne"`
	DefinitionIDGt   *string                                 `json:"definitionId_gt"`
	DefinitionIDLt   *string                                 `json:"definitionId_lt"`
	DefinitionIDGte  *string                                 `json:"definitionId_gte"`
	DefinitionIDLte  *string                                 `json:"definitionId_lte"`
	DefinitionIDIn   []string                                `json:"definitionId_in"`
	DefinitionIDNull *bool                                   `json:"definitionId_null"`
	UpdatedAt        *time.Time                              `json:"updatedAt"`
	UpdatedAtNe      *time.Time                              `json:"updatedAt_ne"`
	UpdatedAtGt      *time.Time                              `json:"updatedAt_gt"`
	UpdatedAtLt      *time.Time                              `json:"updatedAt_lt"`
	UpdatedAtGte     *time.Time                              `json:"updatedAt_gte"`
	UpdatedAtLte     *time.Time                              `json:"updatedAt_lte"`
	UpdatedAtIn      []*time.Time                            `json:"updatedAt_in"`
	UpdatedAtNull    *bool                                   `json:"updatedAt_null"`
	CreatedAt        *time.Time                              `json:"createdAt"`
	CreatedAtNe      *time.Time                              `json:"createdAt_ne"`
	CreatedAtGt      *time.Time                              `json:"createdAt_gt"`
	CreatedAtLt      *time.Time                              `json:"createdAt_lt"`
	CreatedAtGte     *time.Time                              `json:"createdAt_gte"`
	CreatedAtLte     *time.Time                              `json:"createdAt_lte"`
	CreatedAtIn      []*time.Time                            `json:"createdAt_in"`
	CreatedAtNull    *bool                                   `json:"createdAt_null"`
	UpdatedBy        *string                                 `json:"updatedBy"`
	UpdatedByNe      *string                                 `json:"updatedBy_ne"`
	UpdatedByGt      *string                                 `json:"updatedBy_gt"`
	UpdatedByLt      *string                                 `json:"updatedBy_lt"`
	UpdatedByGte     *string                                 `json:"updatedBy_gte"`
	UpdatedByLte     *string                                 `json:"updatedBy_lte"`
	UpdatedByIn      []string                                `json:"updatedBy_in"`
	UpdatedByNull    *bool                                   `json:"updatedBy_null"`
	CreatedBy        *string                                 `json:"createdBy"`
	CreatedByNe      *string                                 `json:"createdBy_ne"`
	CreatedByGt      *string                                 `json:"createdBy_gt"`
	CreatedByLt      *string                                 `json:"createdBy_lt"`
	CreatedByGte     *string                                 `json:"createdBy_gte"`
	CreatedByLte     *string                                 `json:"createdBy_lte"`
	CreatedByIn      []string                                `json:"createdBy_in"`
	CreatedByNull    *bool                                   `json:"createdBy_null"`
	Definition       *ConfiguratorItemDefinitionFilterType   `json:"definition"`
	Slots            *ConfiguratorSlotFilterType             `json:"slots"`
}

func (*ConfiguratorSlotDefinitionFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ConfiguratorSlotDefinitionFilterType) Apply

func (f *ConfiguratorSlotDefinitionFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorSlotDefinitionFilterType) ApplyWithAlias

func (f *ConfiguratorSlotDefinitionFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorSlotDefinitionFilterType) IsEmpty

func (*ConfiguratorSlotDefinitionFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ConfiguratorSlotDefinitionFilterType) WhereContent

func (f *ConfiguratorSlotDefinitionFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

type ConfiguratorSlotDefinitionQueryFilter

type ConfiguratorSlotDefinitionQueryFilter struct {
	Query *string
}

func (*ConfiguratorSlotDefinitionQueryFilter) Apply

func (qf *ConfiguratorSlotDefinitionQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

type ConfiguratorSlotDefinitionResolver

type ConfiguratorSlotDefinitionResolver interface {
	Definition(ctx context.Context, obj *ConfiguratorSlotDefinition) (*ConfiguratorItemDefinition, error)
	Slots(ctx context.Context, obj *ConfiguratorSlotDefinition) ([]*ConfiguratorSlot, error)

	SlotsIds(ctx context.Context, obj *ConfiguratorSlotDefinition) ([]string, error)
}

type ConfiguratorSlotDefinitionResultTypeResolver

type ConfiguratorSlotDefinitionResultTypeResolver interface {
	Items(ctx context.Context, obj *ConfiguratorSlotDefinitionResultType) ([]*ConfiguratorSlotDefinition, error)
	Count(ctx context.Context, obj *ConfiguratorSlotDefinitionResultType) (int, error)
}

type ConfiguratorSlotDefinitionSortType

type ConfiguratorSlotDefinitionSortType struct {
	ID           *ObjectSortType                     `json:"id"`
	Name         *ObjectSortType                     `json:"name"`
	MinCount     *ObjectSortType                     `json:"minCount"`
	MaxCount     *ObjectSortType                     `json:"maxCount"`
	DefinitionID *ObjectSortType                     `json:"definitionId"`
	UpdatedAt    *ObjectSortType                     `json:"updatedAt"`
	CreatedAt    *ObjectSortType                     `json:"createdAt"`
	UpdatedBy    *ObjectSortType                     `json:"updatedBy"`
	CreatedBy    *ObjectSortType                     `json:"createdBy"`
	SlotsIds     *ObjectSortType                     `json:"slotsIds"`
	Definition   *ConfiguratorItemDefinitionSortType `json:"definition"`
	Slots        *ConfiguratorSlotSortType           `json:"slots"`
}

func (ConfiguratorSlotDefinitionSortType) Apply

func (s ConfiguratorSlotDefinitionSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]string, joins *[]string) error

func (ConfiguratorSlotDefinitionSortType) ApplyWithAlias

func (s ConfiguratorSlotDefinitionSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]string, joins *[]string) error

type ConfiguratorSlotFilterType

type ConfiguratorSlotFilterType struct {
	And              []*ConfiguratorSlotFilterType         `json:"AND"`
	Or               []*ConfiguratorSlotFilterType         `json:"OR"`
	ID               *string                               `json:"id"`
	IDNe             *string                               `json:"id_ne"`
	IDGt             *string                               `json:"id_gt"`
	IDLt             *string                               `json:"id_lt"`
	IDGte            *string                               `json:"id_gte"`
	IDLte            *string                               `json:"id_lte"`
	IDIn             []string                              `json:"id_in"`
	IDNull           *bool                                 `json:"id_null"`
	ItemID           *string                               `json:"itemId"`
	ItemIDNe         *string                               `json:"itemId_ne"`
	ItemIDGt         *string                               `json:"itemId_gt"`
	ItemIDLt         *string                               `json:"itemId_lt"`
	ItemIDGte        *string                               `json:"itemId_gte"`
	ItemIDLte        *string                               `json:"itemId_lte"`
	ItemIDIn         []string                              `json:"itemId_in"`
	ItemIDNull       *bool                                 `json:"itemId_null"`
	DefinitionID     *string                               `json:"definitionId"`
	DefinitionIDNe   *string                               `json:"definitionId_ne"`
	DefinitionIDGt   *string                               `json:"definitionId_gt"`
	DefinitionIDLt   *string                               `json:"definitionId_lt"`
	DefinitionIDGte  *string                               `json:"definitionId_gte"`
	DefinitionIDLte  *string                               `json:"definitionId_lte"`
	DefinitionIDIn   []string                              `json:"definitionId_in"`
	DefinitionIDNull *bool                                 `json:"definitionId_null"`
	ParentItemID     *string                               `json:"parentItemId"`
	ParentItemIDNe   *string                               `json:"parentItemId_ne"`
	ParentItemIDGt   *string                               `json:"parentItemId_gt"`
	ParentItemIDLt   *string                               `json:"parentItemId_lt"`
	ParentItemIDGte  *string                               `json:"parentItemId_gte"`
	ParentItemIDLte  *string                               `json:"parentItemId_lte"`
	ParentItemIDIn   []string                              `json:"parentItemId_in"`
	ParentItemIDNull *bool                                 `json:"parentItemId_null"`
	UpdatedAt        *time.Time                            `json:"updatedAt"`
	UpdatedAtNe      *time.Time                            `json:"updatedAt_ne"`
	UpdatedAtGt      *time.Time                            `json:"updatedAt_gt"`
	UpdatedAtLt      *time.Time                            `json:"updatedAt_lt"`
	UpdatedAtGte     *time.Time                            `json:"updatedAt_gte"`
	UpdatedAtLte     *time.Time                            `json:"updatedAt_lte"`
	UpdatedAtIn      []*time.Time                          `json:"updatedAt_in"`
	UpdatedAtNull    *bool                                 `json:"updatedAt_null"`
	CreatedAt        *time.Time                            `json:"createdAt"`
	CreatedAtNe      *time.Time                            `json:"createdAt_ne"`
	CreatedAtGt      *time.Time                            `json:"createdAt_gt"`
	CreatedAtLt      *time.Time                            `json:"createdAt_lt"`
	CreatedAtGte     *time.Time                            `json:"createdAt_gte"`
	CreatedAtLte     *time.Time                            `json:"createdAt_lte"`
	CreatedAtIn      []*time.Time                          `json:"createdAt_in"`
	CreatedAtNull    *bool                                 `json:"createdAt_null"`
	UpdatedBy        *string                               `json:"updatedBy"`
	UpdatedByNe      *string                               `json:"updatedBy_ne"`
	UpdatedByGt      *string                               `json:"updatedBy_gt"`
	UpdatedByLt      *string                               `json:"updatedBy_lt"`
	UpdatedByGte     *string                               `json:"updatedBy_gte"`
	UpdatedByLte     *string                               `json:"updatedBy_lte"`
	UpdatedByIn      []string                              `json:"updatedBy_in"`
	UpdatedByNull    *bool                                 `json:"updatedBy_null"`
	CreatedBy        *string                               `json:"createdBy"`
	CreatedByNe      *string                               `json:"createdBy_ne"`
	CreatedByGt      *string                               `json:"createdBy_gt"`
	CreatedByLt      *string                               `json:"createdBy_lt"`
	CreatedByGte     *string                               `json:"createdBy_gte"`
	CreatedByLte     *string                               `json:"createdBy_lte"`
	CreatedByIn      []string                              `json:"createdBy_in"`
	CreatedByNull    *bool                                 `json:"createdBy_null"`
	Item             *ConfiguratorItemFilterType           `json:"item"`
	Definition       *ConfiguratorSlotDefinitionFilterType `json:"definition"`
	ParentItem       *ConfiguratorItemFilterType           `json:"parentItem"`
}

func (*ConfiguratorSlotFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ConfiguratorSlotFilterType) Apply

func (f *ConfiguratorSlotFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorSlotFilterType) ApplyWithAlias

func (f *ConfiguratorSlotFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, values *[]interface{}, joins *[]string) error

func (*ConfiguratorSlotFilterType) IsEmpty

func (f *ConfiguratorSlotFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

func (*ConfiguratorSlotFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ConfiguratorSlotFilterType) WhereContent

func (f *ConfiguratorSlotFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

type ConfiguratorSlotQueryFilter

type ConfiguratorSlotQueryFilter struct {
	Query *string
}

func (*ConfiguratorSlotQueryFilter) Apply

func (qf *ConfiguratorSlotQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

type ConfiguratorSlotResolver

type ConfiguratorSlotResolver interface {
	Item(ctx context.Context, obj *ConfiguratorSlot) (*ConfiguratorItem, error)
	Definition(ctx context.Context, obj *ConfiguratorSlot) (*ConfiguratorSlotDefinition, error)
	ParentItem(ctx context.Context, obj *ConfiguratorSlot) (*ConfiguratorItem, error)
}

type ConfiguratorSlotResultType

type ConfiguratorSlotResultType struct {
	EntityResultType
}

type ConfiguratorSlotResultTypeResolver

type ConfiguratorSlotResultTypeResolver interface {
	Items(ctx context.Context, obj *ConfiguratorSlotResultType) ([]*ConfiguratorSlot, error)
	Count(ctx context.Context, obj *ConfiguratorSlotResultType) (int, error)
}

type ConfiguratorSlotSortType

type ConfiguratorSlotSortType struct {
	ID           *ObjectSortType                     `json:"id"`
	ItemID       *ObjectSortType                     `json:"itemId"`
	DefinitionID *ObjectSortType                     `json:"definitionId"`
	ParentItemID *ObjectSortType                     `json:"parentItemId"`
	UpdatedAt    *ObjectSortType                     `json:"updatedAt"`
	CreatedAt    *ObjectSortType                     `json:"createdAt"`
	UpdatedBy    *ObjectSortType                     `json:"updatedBy"`
	CreatedBy    *ObjectSortType                     `json:"createdBy"`
	Item         *ConfiguratorItemSortType           `json:"item"`
	Definition   *ConfiguratorSlotDefinitionSortType `json:"definition"`
	ParentItem   *ConfiguratorItemSortType           `json:"parentItem"`
}

func (ConfiguratorSlotSortType) Apply

func (s ConfiguratorSlotSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]string, joins *[]string) error

func (ConfiguratorSlotSortType) ApplyWithAlias

func (s ConfiguratorSlotSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]string, joins *[]string) error

type DB

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

DB ...

func NewDB

func NewDB(db *gorm.DB) *DB

NewDB ...

func NewDBFromEnvVars

func NewDBFromEnvVars() *DB

NewDBFromEnvVars Create database client using DATABASE_URL environment variable

func NewDBWithString

func NewDBWithString(urlString string) *DB

NewDBWithString creates database instance with database URL string

func (*DB) AutoMigrate

func (db *DB) AutoMigrate() *gorm.DB

AutoMigrate ...

func (*DB) Close

func (db *DB) Close() error

Close ...

func (*DB) Ping

func (db *DB) Ping() error

func (*DB) Query

func (db *DB) Query() *gorm.DB

Query ...

type DirectiveRoot

type DirectiveRoot struct {
}

type EntityFilter

type EntityFilter interface {
	Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, values *[]interface{}, joins *[]string) error
}

type EntityFilterQuery

type EntityFilterQuery interface {
	Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error
}

type EntityResultType

type EntityResultType struct {
	Offset       *int
	Limit        *int
	Query        EntityFilterQuery
	Sort         []EntitySort
	Filter       EntityFilter
	Fields       []*ast.Field
	SelectionSet *ast.SelectionSet
}

func (*EntityResultType) GetCount

func (r *EntityResultType) GetCount(ctx context.Context, db *gorm.DB, out interface{}) (count int, err error)

GetCount ...

func (*EntityResultType) GetItems

func (r *EntityResultType) GetItems(ctx context.Context, db *gorm.DB, opts GetItemsOptions, out interface{}) error

GetResultTypeItems ...

func (*EntityResultType) GetSortStrings

func (r *EntityResultType) GetSortStrings() []string

type EntitySort

type EntitySort interface {
	Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]string, joins *[]string) error
}

type GeneratedConfiguratorAttributeDefinitionResolver

type GeneratedConfiguratorAttributeDefinitionResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorAttributeDefinitionResolver) Attributes

func (*GeneratedConfiguratorAttributeDefinitionResolver) AttributesIds

func (*GeneratedConfiguratorAttributeDefinitionResolver) Definitions

func (*GeneratedConfiguratorAttributeDefinitionResolver) DefinitionsIds

type GeneratedConfiguratorAttributeDefinitionResultTypeResolver

type GeneratedConfiguratorAttributeDefinitionResultTypeResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Count

func (*GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Items

type GeneratedConfiguratorAttributeResolver

type GeneratedConfiguratorAttributeResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorAttributeResolver) Definition

func (*GeneratedConfiguratorAttributeResolver) Item

type GeneratedConfiguratorAttributeResultTypeResolver

type GeneratedConfiguratorAttributeResultTypeResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorAttributeResultTypeResolver) Count

func (*GeneratedConfiguratorAttributeResultTypeResolver) Items

type GeneratedConfiguratorItemDefinitionResolver

type GeneratedConfiguratorItemDefinitionResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorItemDefinitionResolver) Attributes

func (*GeneratedConfiguratorItemDefinitionResolver) AttributesIds

func (*GeneratedConfiguratorItemDefinitionResolver) Items

func (*GeneratedConfiguratorItemDefinitionResolver) ItemsIds

func (*GeneratedConfiguratorItemDefinitionResolver) Slots

func (*GeneratedConfiguratorItemDefinitionResolver) SlotsIds

type GeneratedConfiguratorItemDefinitionResultTypeResolver

type GeneratedConfiguratorItemDefinitionResultTypeResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorItemDefinitionResultTypeResolver) Count

func (*GeneratedConfiguratorItemDefinitionResultTypeResolver) Items

type GeneratedConfiguratorItemResolver

type GeneratedConfiguratorItemResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorItemResolver) Attributes

func (*GeneratedConfiguratorItemResolver) AttributesIds

func (r *GeneratedConfiguratorItemResolver) AttributesIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)

func (*GeneratedConfiguratorItemResolver) Definition

func (*GeneratedConfiguratorItemResolver) ParentSlots

func (*GeneratedConfiguratorItemResolver) ParentSlotsIds

func (r *GeneratedConfiguratorItemResolver) ParentSlotsIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)

func (*GeneratedConfiguratorItemResolver) Slots

func (*GeneratedConfiguratorItemResolver) SlotsIds

func (r *GeneratedConfiguratorItemResolver) SlotsIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)

type GeneratedConfiguratorItemResultTypeResolver

type GeneratedConfiguratorItemResultTypeResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorItemResultTypeResolver) Count

func (*GeneratedConfiguratorItemResultTypeResolver) Items

type GeneratedConfiguratorSlotDefinitionResolver

type GeneratedConfiguratorSlotDefinitionResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorSlotDefinitionResolver) Definition

func (*GeneratedConfiguratorSlotDefinitionResolver) Slots

func (*GeneratedConfiguratorSlotDefinitionResolver) SlotsIds

type GeneratedConfiguratorSlotDefinitionResultTypeResolver

type GeneratedConfiguratorSlotDefinitionResultTypeResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorSlotDefinitionResultTypeResolver) Count

func (*GeneratedConfiguratorSlotDefinitionResultTypeResolver) Items

type GeneratedConfiguratorSlotResolver

type GeneratedConfiguratorSlotResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorSlotResolver) Definition

func (*GeneratedConfiguratorSlotResolver) Item

func (*GeneratedConfiguratorSlotResolver) ParentItem

type GeneratedConfiguratorSlotResultTypeResolver

type GeneratedConfiguratorSlotResultTypeResolver struct{ *GeneratedResolver }

func (*GeneratedConfiguratorSlotResultTypeResolver) Count

func (*GeneratedConfiguratorSlotResultTypeResolver) Items

type GeneratedMutationResolver

type GeneratedMutationResolver struct{ *GeneratedResolver }

func (*GeneratedMutationResolver) CreateConfiguratorAttribute

func (r *GeneratedMutationResolver) CreateConfiguratorAttribute(ctx context.Context, input map[string]interface{}) (item *ConfiguratorAttribute, err error)

func (*GeneratedMutationResolver) CreateConfiguratorAttributeDefinition

func (r *GeneratedMutationResolver) CreateConfiguratorAttributeDefinition(ctx context.Context, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)

func (*GeneratedMutationResolver) CreateConfiguratorItem

func (r *GeneratedMutationResolver) CreateConfiguratorItem(ctx context.Context, input map[string]interface{}) (item *ConfiguratorItem, err error)

func (*GeneratedMutationResolver) CreateConfiguratorItemDefinition

func (r *GeneratedMutationResolver) CreateConfiguratorItemDefinition(ctx context.Context, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)

func (*GeneratedMutationResolver) CreateConfiguratorSlot

func (r *GeneratedMutationResolver) CreateConfiguratorSlot(ctx context.Context, input map[string]interface{}) (item *ConfiguratorSlot, err error)

func (*GeneratedMutationResolver) CreateConfiguratorSlotDefinition

func (r *GeneratedMutationResolver) CreateConfiguratorSlotDefinition(ctx context.Context, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)

func (*GeneratedMutationResolver) DeleteAllConfiguratorAttributeDefinitions

func (r *GeneratedMutationResolver) DeleteAllConfiguratorAttributeDefinitions(ctx context.Context) (bool, error)

func (*GeneratedMutationResolver) DeleteAllConfiguratorAttributes

func (r *GeneratedMutationResolver) DeleteAllConfiguratorAttributes(ctx context.Context) (bool, error)

func (*GeneratedMutationResolver) DeleteAllConfiguratorItemDefinitions

func (r *GeneratedMutationResolver) DeleteAllConfiguratorItemDefinitions(ctx context.Context) (bool, error)

func (*GeneratedMutationResolver) DeleteAllConfiguratorItems

func (r *GeneratedMutationResolver) DeleteAllConfiguratorItems(ctx context.Context) (bool, error)

func (*GeneratedMutationResolver) DeleteAllConfiguratorSlotDefinitions

func (r *GeneratedMutationResolver) DeleteAllConfiguratorSlotDefinitions(ctx context.Context) (bool, error)

func (*GeneratedMutationResolver) DeleteAllConfiguratorSlots

func (r *GeneratedMutationResolver) DeleteAllConfiguratorSlots(ctx context.Context) (bool, error)

func (*GeneratedMutationResolver) DeleteConfiguratorAttribute

func (r *GeneratedMutationResolver) DeleteConfiguratorAttribute(ctx context.Context, id string) (item *ConfiguratorAttribute, err error)

func (*GeneratedMutationResolver) DeleteConfiguratorAttributeDefinition

func (r *GeneratedMutationResolver) DeleteConfiguratorAttributeDefinition(ctx context.Context, id string) (item *ConfiguratorAttributeDefinition, err error)

func (*GeneratedMutationResolver) DeleteConfiguratorItem

func (r *GeneratedMutationResolver) DeleteConfiguratorItem(ctx context.Context, id string) (item *ConfiguratorItem, err error)

func (*GeneratedMutationResolver) DeleteConfiguratorItemDefinition

func (r *GeneratedMutationResolver) DeleteConfiguratorItemDefinition(ctx context.Context, id string) (item *ConfiguratorItemDefinition, err error)

func (*GeneratedMutationResolver) DeleteConfiguratorSlot

func (r *GeneratedMutationResolver) DeleteConfiguratorSlot(ctx context.Context, id string) (item *ConfiguratorSlot, err error)

func (*GeneratedMutationResolver) DeleteConfiguratorSlotDefinition

func (r *GeneratedMutationResolver) DeleteConfiguratorSlotDefinition(ctx context.Context, id string) (item *ConfiguratorSlotDefinition, err error)

func (*GeneratedMutationResolver) UpdateConfiguratorAttribute

func (r *GeneratedMutationResolver) UpdateConfiguratorAttribute(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorAttribute, err error)

func (*GeneratedMutationResolver) UpdateConfiguratorAttributeDefinition

func (r *GeneratedMutationResolver) UpdateConfiguratorAttributeDefinition(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)

func (*GeneratedMutationResolver) UpdateConfiguratorItem

func (r *GeneratedMutationResolver) UpdateConfiguratorItem(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorItem, err error)

func (*GeneratedMutationResolver) UpdateConfiguratorItemDefinition

func (r *GeneratedMutationResolver) UpdateConfiguratorItemDefinition(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)

func (*GeneratedMutationResolver) UpdateConfiguratorSlot

func (r *GeneratedMutationResolver) UpdateConfiguratorSlot(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorSlot, err error)

func (*GeneratedMutationResolver) UpdateConfiguratorSlotDefinition

func (r *GeneratedMutationResolver) UpdateConfiguratorSlotDefinition(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)

type GeneratedQueryResolver

type GeneratedQueryResolver struct{ *GeneratedResolver }

func (*GeneratedQueryResolver) ConfiguratorAttribute

func (*GeneratedQueryResolver) ConfiguratorAttributeDefinition

func (*GeneratedQueryResolver) ConfiguratorAttributes

func (*GeneratedQueryResolver) ConfiguratorItem

func (*GeneratedQueryResolver) ConfiguratorItemDefinition

func (*GeneratedQueryResolver) ConfiguratorItemDefinitions

func (*GeneratedQueryResolver) ConfiguratorItems

func (r *GeneratedQueryResolver) ConfiguratorItems(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorItemSortType, filter *ConfiguratorItemFilterType) (*ConfiguratorItemResultType, error)

func (*GeneratedQueryResolver) ConfiguratorSlot

func (*GeneratedQueryResolver) ConfiguratorSlotDefinition

func (*GeneratedQueryResolver) ConfiguratorSlotDefinitions

func (*GeneratedQueryResolver) ConfiguratorSlots

func (r *GeneratedQueryResolver) ConfiguratorSlots(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorSlotSortType, filter *ConfiguratorSlotFilterType) (*ConfiguratorSlotResultType, error)

type GeneratedResolver

type GeneratedResolver struct {
	Handlers        ResolutionHandlers
	DB              *DB
	EventController *events.EventController
}

type GetItemsOptions

type GetItemsOptions struct {
	Alias      string
	Preloaders []string
}

type JWTClaims

type JWTClaims struct {
	jwtgo.StandardClaims
	Scope *string
}

func GetJWTClaimsFromContext

func GetJWTClaimsFromContext(ctx context.Context) *JWTClaims

func (*JWTClaims) HasScope

func (c *JWTClaims) HasScope(scope string) bool

func (*JWTClaims) Scopes

func (c *JWTClaims) Scopes() []string

type MutationEvents

type MutationEvents struct {
	Events []events.Event
}

func GetMutationEventStore

func GetMutationEventStore(ctx context.Context) *MutationEvents

type MutationResolver

type MutationResolver interface {
	CreateConfiguratorItemDefinition(ctx context.Context, input map[string]interface{}) (*ConfiguratorItemDefinition, error)
	UpdateConfiguratorItemDefinition(ctx context.Context, id string, input map[string]interface{}) (*ConfiguratorItemDefinition, error)
	DeleteConfiguratorItemDefinition(ctx context.Context, id string) (*ConfiguratorItemDefinition, error)
	DeleteAllConfiguratorItemDefinitions(ctx context.Context) (bool, error)
	CreateConfiguratorAttributeDefinition(ctx context.Context, input map[string]interface{}) (*ConfiguratorAttributeDefinition, error)
	UpdateConfiguratorAttributeDefinition(ctx context.Context, id string, input map[string]interface{}) (*ConfiguratorAttributeDefinition, error)
	DeleteConfiguratorAttributeDefinition(ctx context.Context, id string) (*ConfiguratorAttributeDefinition, error)
	DeleteAllConfiguratorAttributeDefinitions(ctx context.Context) (bool, error)
	CreateConfiguratorSlotDefinition(ctx context.Context, input map[string]interface{}) (*ConfiguratorSlotDefinition, error)
	UpdateConfiguratorSlotDefinition(ctx context.Context, id string, input map[string]interface{}) (*ConfiguratorSlotDefinition, error)
	DeleteConfiguratorSlotDefinition(ctx context.Context, id string) (*ConfiguratorSlotDefinition, error)
	DeleteAllConfiguratorSlotDefinitions(ctx context.Context) (bool, error)
	CreateConfiguratorItem(ctx context.Context, input map[string]interface{}) (*ConfiguratorItem, error)
	UpdateConfiguratorItem(ctx context.Context, id string, input map[string]interface{}) (*ConfiguratorItem, error)
	DeleteConfiguratorItem(ctx context.Context, id string) (*ConfiguratorItem, error)
	DeleteAllConfiguratorItems(ctx context.Context) (bool, error)
	CreateConfiguratorAttribute(ctx context.Context, input map[string]interface{}) (*ConfiguratorAttribute, error)
	UpdateConfiguratorAttribute(ctx context.Context, id string, input map[string]interface{}) (*ConfiguratorAttribute, error)
	DeleteConfiguratorAttribute(ctx context.Context, id string) (*ConfiguratorAttribute, error)
	DeleteAllConfiguratorAttributes(ctx context.Context) (bool, error)
	CreateConfiguratorSlot(ctx context.Context, input map[string]interface{}) (*ConfiguratorSlot, error)
	UpdateConfiguratorSlot(ctx context.Context, id string, input map[string]interface{}) (*ConfiguratorSlot, error)
	DeleteConfiguratorSlot(ctx context.Context, id string) (*ConfiguratorSlot, error)
	DeleteAllConfiguratorSlots(ctx context.Context) (bool, error)
	CreateConfiguratorAssembly(ctx context.Context, input ConfiguratorAssemblyCreateInput) (*ConfiguratorAssembly, error)
	UpdateConfiguratorAssembly(ctx context.Context, id string, input ConfiguratorAssemblyUpdateInput) (*ConfiguratorAssembly, error)
}

type NotFoundError added in v0.1.0

type NotFoundError struct {
	Entity string
}

func (*NotFoundError) Error added in v0.1.0

func (e *NotFoundError) Error() string

type ObjectSortType

type ObjectSortType string
const (
	ObjectSortTypeAsc  ObjectSortType = "ASC"
	ObjectSortTypeDesc ObjectSortType = "DESC"
)

func (ObjectSortType) IsValid

func (e ObjectSortType) IsValid() bool

func (ObjectSortType) MarshalGQL

func (e ObjectSortType) MarshalGQL(w io.Writer)

func (ObjectSortType) String

func (e ObjectSortType) String() string

func (*ObjectSortType) UnmarshalGQL

func (e *ObjectSortType) UnmarshalGQL(v interface{}) error

type QueryConfiguratorAttributeDefinitionHandlerOptions

type QueryConfiguratorAttributeDefinitionHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ConfiguratorAttributeDefinitionFilterType
}

type QueryConfiguratorAttributeDefinitionsHandlerOptions

type QueryConfiguratorAttributeDefinitionsHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ConfiguratorAttributeDefinitionSortType
	Filter *ConfiguratorAttributeDefinitionFilterType
}

type QueryConfiguratorAttributeHandlerOptions

type QueryConfiguratorAttributeHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ConfiguratorAttributeFilterType
}

type QueryConfiguratorAttributesHandlerOptions

type QueryConfiguratorAttributesHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ConfiguratorAttributeSortType
	Filter *ConfiguratorAttributeFilterType
}

type QueryConfiguratorItemDefinitionHandlerOptions

type QueryConfiguratorItemDefinitionHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ConfiguratorItemDefinitionFilterType
}

type QueryConfiguratorItemDefinitionsHandlerOptions

type QueryConfiguratorItemDefinitionsHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ConfiguratorItemDefinitionSortType
	Filter *ConfiguratorItemDefinitionFilterType
}

type QueryConfiguratorItemHandlerOptions

type QueryConfiguratorItemHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ConfiguratorItemFilterType
}

type QueryConfiguratorItemsHandlerOptions

type QueryConfiguratorItemsHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ConfiguratorItemSortType
	Filter *ConfiguratorItemFilterType
}

type QueryConfiguratorSlotDefinitionHandlerOptions

type QueryConfiguratorSlotDefinitionHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ConfiguratorSlotDefinitionFilterType
}

type QueryConfiguratorSlotDefinitionsHandlerOptions

type QueryConfiguratorSlotDefinitionsHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ConfiguratorSlotDefinitionSortType
	Filter *ConfiguratorSlotDefinitionFilterType
}

type QueryConfiguratorSlotHandlerOptions

type QueryConfiguratorSlotHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ConfiguratorSlotFilterType
}

type QueryConfiguratorSlotsHandlerOptions

type QueryConfiguratorSlotsHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ConfiguratorSlotSortType
	Filter *ConfiguratorSlotFilterType
}

type QueryResolver

type QueryResolver interface {
	ConfiguratorItemDefinition(ctx context.Context, id *string, q *string, filter *ConfiguratorItemDefinitionFilterType) (*ConfiguratorItemDefinition, error)
	ConfiguratorItemDefinitions(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorItemDefinitionSortType, filter *ConfiguratorItemDefinitionFilterType) (*ConfiguratorItemDefinitionResultType, error)
	ConfiguratorAttributeDefinition(ctx context.Context, id *string, q *string, filter *ConfiguratorAttributeDefinitionFilterType) (*ConfiguratorAttributeDefinition, error)
	ConfiguratorAttributeDefinitions(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorAttributeDefinitionSortType, filter *ConfiguratorAttributeDefinitionFilterType) (*ConfiguratorAttributeDefinitionResultType, error)
	ConfiguratorSlotDefinition(ctx context.Context, id *string, q *string, filter *ConfiguratorSlotDefinitionFilterType) (*ConfiguratorSlotDefinition, error)
	ConfiguratorSlotDefinitions(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorSlotDefinitionSortType, filter *ConfiguratorSlotDefinitionFilterType) (*ConfiguratorSlotDefinitionResultType, error)
	ConfiguratorItem(ctx context.Context, id *string, q *string, filter *ConfiguratorItemFilterType) (*ConfiguratorItem, error)
	ConfiguratorItems(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorItemSortType, filter *ConfiguratorItemFilterType) (*ConfiguratorItemResultType, error)
	ConfiguratorAttribute(ctx context.Context, id *string, q *string, filter *ConfiguratorAttributeFilterType) (*ConfiguratorAttribute, error)
	ConfiguratorAttributes(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorAttributeSortType, filter *ConfiguratorAttributeFilterType) (*ConfiguratorAttributeResultType, error)
	ConfiguratorSlot(ctx context.Context, id *string, q *string, filter *ConfiguratorSlotFilterType) (*ConfiguratorSlot, error)
	ConfiguratorSlots(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorSlotSortType, filter *ConfiguratorSlotFilterType) (*ConfiguratorSlotResultType, error)
	ConfiguratorAssembly(ctx context.Context, id string) (*ConfiguratorAssembly, error)
	// contains filtered or unexported methods
}

type ResolutionHandlers

type ResolutionHandlers struct {
	OnEvent func(ctx context.Context, r *GeneratedResolver, e *events.Event) error

	CreateConfiguratorItemDefinition     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)
	UpdateConfiguratorItemDefinition     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)
	DeleteConfiguratorItemDefinition     func(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorItemDefinition, err error)
	DeleteAllConfiguratorItemDefinitions func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryConfiguratorItemDefinition      func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemDefinitionHandlerOptions) (*ConfiguratorItemDefinition, error)
	QueryConfiguratorItemDefinitions     func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemDefinitionsHandlerOptions) (*ConfiguratorItemDefinitionResultType, error)

	ConfiguratorItemDefinitionAttributes func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorAttributeDefinition, err error)

	ConfiguratorItemDefinitionSlots func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorSlotDefinition, err error)

	ConfiguratorItemDefinitionItems func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorItem, err error)

	CreateConfiguratorAttributeDefinition     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)
	UpdateConfiguratorAttributeDefinition     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)
	DeleteConfiguratorAttributeDefinition     func(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorAttributeDefinition, err error)
	DeleteAllConfiguratorAttributeDefinitions func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryConfiguratorAttributeDefinition      func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributeDefinitionHandlerOptions) (*ConfiguratorAttributeDefinition, error)
	QueryConfiguratorAttributeDefinitions     func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributeDefinitionsHandlerOptions) (*ConfiguratorAttributeDefinitionResultType, error)

	ConfiguratorAttributeDefinitionDefinitions func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorItemDefinition, err error)

	ConfiguratorAttributeDefinitionAttributes func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorAttribute, err error)

	CreateConfiguratorSlotDefinition     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)
	UpdateConfiguratorSlotDefinition     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)
	DeleteConfiguratorSlotDefinition     func(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorSlotDefinition, err error)
	DeleteAllConfiguratorSlotDefinitions func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryConfiguratorSlotDefinition      func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotDefinitionHandlerOptions) (*ConfiguratorSlotDefinition, error)
	QueryConfiguratorSlotDefinitions     func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotDefinitionsHandlerOptions) (*ConfiguratorSlotDefinitionResultType, error)

	ConfiguratorSlotDefinitionDefinition func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlotDefinition) (res *ConfiguratorItemDefinition, err error)

	ConfiguratorSlotDefinitionSlots func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlotDefinition) (res []*ConfiguratorSlot, err error)

	CreateConfiguratorItem     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorItem, err error)
	UpdateConfiguratorItem     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorItem, err error)
	DeleteConfiguratorItem     func(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorItem, err error)
	DeleteAllConfiguratorItems func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryConfiguratorItem      func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemHandlerOptions) (*ConfiguratorItem, error)
	QueryConfiguratorItems     func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemsHandlerOptions) (*ConfiguratorItemResultType, error)

	ConfiguratorItemDefinition func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res *ConfiguratorItemDefinition, err error)

	ConfiguratorItemAttributes func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorAttribute, err error)

	ConfiguratorItemSlots func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)

	ConfiguratorItemParentSlots func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)

	CreateConfiguratorAttribute     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorAttribute, err error)
	UpdateConfiguratorAttribute     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorAttribute, err error)
	DeleteConfiguratorAttribute     func(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorAttribute, err error)
	DeleteAllConfiguratorAttributes func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryConfiguratorAttribute      func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributeHandlerOptions) (*ConfiguratorAttribute, error)
	QueryConfiguratorAttributes     func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributesHandlerOptions) (*ConfiguratorAttributeResultType, error)

	ConfiguratorAttributeDefinition func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttribute) (res *ConfiguratorAttributeDefinition, err error)

	ConfiguratorAttributeItem func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttribute) (res *ConfiguratorItem, err error)

	CreateConfiguratorSlot     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorSlot, err error)
	UpdateConfiguratorSlot     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ConfiguratorSlot, err error)
	DeleteConfiguratorSlot     func(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorSlot, err error)
	DeleteAllConfiguratorSlots func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryConfiguratorSlot      func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotHandlerOptions) (*ConfiguratorSlot, error)
	QueryConfiguratorSlots     func(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotsHandlerOptions) (*ConfiguratorSlotResultType, error)

	ConfiguratorSlotItem func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)

	ConfiguratorSlotDefinition func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorSlotDefinition, err error)

	ConfiguratorSlotParentItem func(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)
}

func DefaultResolutionHandlers

func DefaultResolutionHandlers() ResolutionHandlers

type ResolverRoot

type ResolverRoot interface {
	ConfiguratorAttribute() ConfiguratorAttributeResolver
	ConfiguratorAttributeDefinition() ConfiguratorAttributeDefinitionResolver
	ConfiguratorAttributeDefinitionResultType() ConfiguratorAttributeDefinitionResultTypeResolver
	ConfiguratorAttributeResultType() ConfiguratorAttributeResultTypeResolver
	ConfiguratorItem() ConfiguratorItemResolver
	ConfiguratorItemDefinition() ConfiguratorItemDefinitionResolver
	ConfiguratorItemDefinitionResultType() ConfiguratorItemDefinitionResultTypeResolver
	ConfiguratorItemResultType() ConfiguratorItemResultTypeResolver
	ConfiguratorSlot() ConfiguratorSlotResolver
	ConfiguratorSlotDefinition() ConfiguratorSlotDefinitionResolver
	ConfiguratorSlotDefinitionResultType() ConfiguratorSlotDefinitionResultTypeResolver
	ConfiguratorSlotResultType() ConfiguratorSlotResultTypeResolver
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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