Documentation
¶
Index ¶
- Constants
- Variables
- func AddMutationEvent(ctx context.Context, e events.Event)
- func ApplyChanges(changes map[string]interface{}, to interface{}) error
- func DeleteAllConfiguratorAttributeDefinitionsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)
- func DeleteAllConfiguratorAttributesHandler(ctx context.Context, r *GeneratedResolver) (bool, error)
- func DeleteAllConfiguratorItemDefinitionsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)
- func DeleteAllConfiguratorItemsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)
- func DeleteAllConfiguratorSlotDefinitionsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)
- func DeleteAllConfiguratorSlotsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)
- func EnrichContextWithMutations(ctx context.Context, r *GeneratedResolver) context.Context
- func FinishMutationContext(ctx context.Context, r *GeneratedResolver) (err error)
- func GetHTTPServeMux(r ResolverRoot, db *DB) *http.ServeMux
- func GetItem(ctx context.Context, db *gorm.DB, out interface{}, id *string) error
- func GetItemForRelation(ctx context.Context, db *gorm.DB, obj interface{}, relation string, ...) error
- func GetLoaders(db *DB) map[string]*dataloader.Loader
- func GetPrincipalIDFromContext(ctx context.Context) *string
- func GetTransaction(ctx context.Context) *gorm.DB
- func Marshal_Any(v interface{}) graphql.Marshaler
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func TableName(name string) string
- func Unmarshal_Any(v interface{}) (interface{}, error)
- type ComplexityRoot
- type Config
- type ConfiguratorAssembly
- type ConfiguratorAssemblyAttribute
- type ConfiguratorAssemblyAttributeInput
- type ConfiguratorAssemblyCreateInput
- type ConfiguratorAssemblyItem
- type ConfiguratorAssemblyItemInput
- type ConfiguratorAssemblySlot
- type ConfiguratorAssemblySlotInput
- type ConfiguratorAssemblyUpdateInput
- type ConfiguratorAttribute
- func ConfiguratorAttributeDefinitionAttributesHandler(ctx context.Context, r *GeneratedResolver, ...) (res []*ConfiguratorAttribute, err error)
- func ConfiguratorItemAttributesHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorAttribute, err error)
- func CreateConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorAttribute, err error)
- func DeleteConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorAttribute, err error)
- func QueryConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, ...) (*ConfiguratorAttribute, error)
- func UpdateConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, id string, ...) (item *ConfiguratorAttribute, err error)
- type ConfiguratorAttributeChanges
- type ConfiguratorAttributeDefinition
- func ConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttribute) (res *ConfiguratorAttributeDefinition, err error)
- func ConfiguratorItemDefinitionAttributesHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorAttributeDefinition, err error)
- func CreateConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)
- func DeleteConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorAttributeDefinition, err error)
- func QueryConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, ...) (*ConfiguratorAttributeDefinition, error)
- func UpdateConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string, ...) (item *ConfiguratorAttributeDefinition, err error)
- type ConfiguratorAttributeDefinitionChanges
- type ConfiguratorAttributeDefinitionFilterType
- func (f *ConfiguratorAttributeDefinitionFilterType) AndWith(f2 ...*ConfiguratorAttributeDefinitionFilterType) *ConfiguratorAttributeDefinitionFilterType
- func (f *ConfiguratorAttributeDefinitionFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, ...) error
- func (f *ConfiguratorAttributeDefinitionFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, ...) error
- func (f *ConfiguratorAttributeDefinitionFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool
- func (f *ConfiguratorAttributeDefinitionFilterType) OrWith(f2 ...*ConfiguratorAttributeDefinitionFilterType) *ConfiguratorAttributeDefinitionFilterType
- func (f *ConfiguratorAttributeDefinitionFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})
- type ConfiguratorAttributeDefinitionQueryFilter
- type ConfiguratorAttributeDefinitionResolver
- type ConfiguratorAttributeDefinitionResultType
- type ConfiguratorAttributeDefinitionResultTypeResolver
- type ConfiguratorAttributeDefinitionSortType
- type ConfiguratorAttributeFilterType
- func (f *ConfiguratorAttributeFilterType) AndWith(f2 ...*ConfiguratorAttributeFilterType) *ConfiguratorAttributeFilterType
- func (f *ConfiguratorAttributeFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, ...) error
- func (f *ConfiguratorAttributeFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, ...) error
- func (f *ConfiguratorAttributeFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool
- func (f *ConfiguratorAttributeFilterType) OrWith(f2 ...*ConfiguratorAttributeFilterType) *ConfiguratorAttributeFilterType
- func (f *ConfiguratorAttributeFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})
- type ConfiguratorAttributeQueryFilter
- type ConfiguratorAttributeResolver
- type ConfiguratorAttributeResultType
- type ConfiguratorAttributeResultTypeResolver
- type ConfiguratorAttributeSortType
- type ConfiguratorAttributeType
- type ConfiguratorItem
- func ConfiguratorAttributeItemHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttribute) (res *ConfiguratorItem, err error)
- func ConfiguratorItemDefinitionItemsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorItem, err error)
- func ConfiguratorSlotItemHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)
- func ConfiguratorSlotParentItemHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)
- func CreateConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorItem, err error)
- func DeleteConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorItem, err error)
- func QueryConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, ...) (*ConfiguratorItem, error)
- func UpdateConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, id string, ...) (item *ConfiguratorItem, err error)
- type ConfiguratorItemChanges
- type ConfiguratorItemDefinition
- func ConfiguratorAttributeDefinitionDefinitionsHandler(ctx context.Context, r *GeneratedResolver, ...) (res []*ConfiguratorItemDefinition, err error)
- func ConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res *ConfiguratorItemDefinition, err error)
- func ConfiguratorSlotDefinitionDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlotDefinition) (res *ConfiguratorItemDefinition, err error)
- func CreateConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)
- func DeleteConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorItemDefinition, err error)
- func QueryConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, ...) (*ConfiguratorItemDefinition, error)
- func UpdateConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string, ...) (item *ConfiguratorItemDefinition, err error)
- type ConfiguratorItemDefinitionChanges
- type ConfiguratorItemDefinitionFilterType
- func (f *ConfiguratorItemDefinitionFilterType) AndWith(f2 ...*ConfiguratorItemDefinitionFilterType) *ConfiguratorItemDefinitionFilterType
- func (f *ConfiguratorItemDefinitionFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, ...) error
- func (f *ConfiguratorItemDefinitionFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, ...) error
- func (f *ConfiguratorItemDefinitionFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool
- func (f *ConfiguratorItemDefinitionFilterType) OrWith(f2 ...*ConfiguratorItemDefinitionFilterType) *ConfiguratorItemDefinitionFilterType
- func (f *ConfiguratorItemDefinitionFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})
- type ConfiguratorItemDefinitionQueryFilter
- type ConfiguratorItemDefinitionResolver
- type ConfiguratorItemDefinitionResultType
- type ConfiguratorItemDefinitionResultTypeResolver
- type ConfiguratorItemDefinitionSortType
- type ConfiguratorItemFilterType
- func (f *ConfiguratorItemFilterType) AndWith(f2 ...*ConfiguratorItemFilterType) *ConfiguratorItemFilterType
- func (f *ConfiguratorItemFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, ...) error
- func (f *ConfiguratorItemFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, ...) error
- func (f *ConfiguratorItemFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool
- func (f *ConfiguratorItemFilterType) OrWith(f2 ...*ConfiguratorItemFilterType) *ConfiguratorItemFilterType
- func (f *ConfiguratorItemFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})
- type ConfiguratorItemQueryFilter
- type ConfiguratorItemResolver
- type ConfiguratorItemResultType
- type ConfiguratorItemResultTypeResolver
- type ConfiguratorItemSortType
- type ConfiguratorSlot
- func ConfiguratorItemParentSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)
- func ConfiguratorItemSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)
- func ConfiguratorSlotDefinitionSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlotDefinition) (res []*ConfiguratorSlot, err error)
- func CreateConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorSlot, err error)
- func DeleteConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorSlot, err error)
- func QueryConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, ...) (*ConfiguratorSlot, error)
- func UpdateConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, id string, ...) (item *ConfiguratorSlot, err error)
- type ConfiguratorSlotChanges
- type ConfiguratorSlotDefinition
- func ConfiguratorItemDefinitionSlotsHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorItemDefinition) (res []*ConfiguratorSlotDefinition, err error)
- func ConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorSlot) (res *ConfiguratorSlotDefinition, err error)
- func CreateConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)
- func DeleteConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ConfiguratorSlotDefinition, err error)
- func QueryConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, ...) (*ConfiguratorSlotDefinition, error)
- func UpdateConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, id string, ...) (item *ConfiguratorSlotDefinition, err error)
- type ConfiguratorSlotDefinitionChanges
- type ConfiguratorSlotDefinitionFilterType
- func (f *ConfiguratorSlotDefinitionFilterType) AndWith(f2 ...*ConfiguratorSlotDefinitionFilterType) *ConfiguratorSlotDefinitionFilterType
- func (f *ConfiguratorSlotDefinitionFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, ...) error
- func (f *ConfiguratorSlotDefinitionFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, ...) error
- func (f *ConfiguratorSlotDefinitionFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool
- func (f *ConfiguratorSlotDefinitionFilterType) OrWith(f2 ...*ConfiguratorSlotDefinitionFilterType) *ConfiguratorSlotDefinitionFilterType
- func (f *ConfiguratorSlotDefinitionFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})
- type ConfiguratorSlotDefinitionQueryFilter
- type ConfiguratorSlotDefinitionResolver
- type ConfiguratorSlotDefinitionResultType
- type ConfiguratorSlotDefinitionResultTypeResolver
- type ConfiguratorSlotDefinitionSortType
- type ConfiguratorSlotFilterType
- func (f *ConfiguratorSlotFilterType) AndWith(f2 ...*ConfiguratorSlotFilterType) *ConfiguratorSlotFilterType
- func (f *ConfiguratorSlotFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, ...) error
- func (f *ConfiguratorSlotFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, ...) error
- func (f *ConfiguratorSlotFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool
- func (f *ConfiguratorSlotFilterType) OrWith(f2 ...*ConfiguratorSlotFilterType) *ConfiguratorSlotFilterType
- func (f *ConfiguratorSlotFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})
- type ConfiguratorSlotQueryFilter
- type ConfiguratorSlotResolver
- type ConfiguratorSlotResultType
- type ConfiguratorSlotResultTypeResolver
- type ConfiguratorSlotSortType
- type DB
- type DirectiveRoot
- type EntityFilter
- type EntityFilterQuery
- type EntityResultType
- type EntitySort
- type GeneratedConfiguratorAttributeDefinitionResolver
- func (r *GeneratedConfiguratorAttributeDefinitionResolver) Attributes(ctx context.Context, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorAttribute, err error)
- func (r *GeneratedConfiguratorAttributeDefinitionResolver) AttributesIds(ctx context.Context, obj *ConfiguratorAttributeDefinition) (ids []string, err error)
- func (r *GeneratedConfiguratorAttributeDefinitionResolver) Definitions(ctx context.Context, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorItemDefinition, err error)
- func (r *GeneratedConfiguratorAttributeDefinitionResolver) DefinitionsIds(ctx context.Context, obj *ConfiguratorAttributeDefinition) (ids []string, err error)
- type GeneratedConfiguratorAttributeDefinitionResultTypeResolver
- func (r *GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorAttributeDefinitionResultType) (count int, err error)
- func (r *GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorAttributeDefinitionResultType) (items []*ConfiguratorAttributeDefinition, err error)
- type GeneratedConfiguratorAttributeResolver
- type GeneratedConfiguratorAttributeResultTypeResolver
- func (r *GeneratedConfiguratorAttributeResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorAttributeResultType) (count int, err error)
- func (r *GeneratedConfiguratorAttributeResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorAttributeResultType) (items []*ConfiguratorAttribute, err error)
- type GeneratedConfiguratorItemDefinitionResolver
- func (r *GeneratedConfiguratorItemDefinitionResolver) Attributes(ctx context.Context, obj *ConfiguratorItemDefinition) (res []*ConfiguratorAttributeDefinition, err error)
- func (r *GeneratedConfiguratorItemDefinitionResolver) AttributesIds(ctx context.Context, obj *ConfiguratorItemDefinition) (ids []string, err error)
- func (r *GeneratedConfiguratorItemDefinitionResolver) Items(ctx context.Context, obj *ConfiguratorItemDefinition) (res []*ConfiguratorItem, err error)
- func (r *GeneratedConfiguratorItemDefinitionResolver) ItemsIds(ctx context.Context, obj *ConfiguratorItemDefinition) (ids []string, err error)
- func (r *GeneratedConfiguratorItemDefinitionResolver) Slots(ctx context.Context, obj *ConfiguratorItemDefinition) (res []*ConfiguratorSlotDefinition, err error)
- func (r *GeneratedConfiguratorItemDefinitionResolver) SlotsIds(ctx context.Context, obj *ConfiguratorItemDefinition) (ids []string, err error)
- type GeneratedConfiguratorItemDefinitionResultTypeResolver
- func (r *GeneratedConfiguratorItemDefinitionResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorItemDefinitionResultType) (count int, err error)
- func (r *GeneratedConfiguratorItemDefinitionResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorItemDefinitionResultType) (items []*ConfiguratorItemDefinition, err error)
- type GeneratedConfiguratorItemResolver
- func (r *GeneratedConfiguratorItemResolver) Attributes(ctx context.Context, obj *ConfiguratorItem) (res []*ConfiguratorAttribute, err error)
- func (r *GeneratedConfiguratorItemResolver) AttributesIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)
- func (r *GeneratedConfiguratorItemResolver) Definition(ctx context.Context, obj *ConfiguratorItem) (res *ConfiguratorItemDefinition, err error)
- func (r *GeneratedConfiguratorItemResolver) ParentSlots(ctx context.Context, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)
- func (r *GeneratedConfiguratorItemResolver) ParentSlotsIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)
- func (r *GeneratedConfiguratorItemResolver) Slots(ctx context.Context, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)
- func (r *GeneratedConfiguratorItemResolver) SlotsIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)
- type GeneratedConfiguratorItemResultTypeResolver
- type GeneratedConfiguratorSlotDefinitionResolver
- func (r *GeneratedConfiguratorSlotDefinitionResolver) Definition(ctx context.Context, obj *ConfiguratorSlotDefinition) (res *ConfiguratorItemDefinition, err error)
- func (r *GeneratedConfiguratorSlotDefinitionResolver) Slots(ctx context.Context, obj *ConfiguratorSlotDefinition) (res []*ConfiguratorSlot, err error)
- func (r *GeneratedConfiguratorSlotDefinitionResolver) SlotsIds(ctx context.Context, obj *ConfiguratorSlotDefinition) (ids []string, err error)
- type GeneratedConfiguratorSlotDefinitionResultTypeResolver
- func (r *GeneratedConfiguratorSlotDefinitionResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorSlotDefinitionResultType) (count int, err error)
- func (r *GeneratedConfiguratorSlotDefinitionResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorSlotDefinitionResultType) (items []*ConfiguratorSlotDefinition, err error)
- type GeneratedConfiguratorSlotResolver
- func (r *GeneratedConfiguratorSlotResolver) Definition(ctx context.Context, obj *ConfiguratorSlot) (res *ConfiguratorSlotDefinition, err error)
- func (r *GeneratedConfiguratorSlotResolver) Item(ctx context.Context, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)
- func (r *GeneratedConfiguratorSlotResolver) ParentItem(ctx context.Context, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)
- type GeneratedConfiguratorSlotResultTypeResolver
- type GeneratedMutationResolver
- func (r *GeneratedMutationResolver) CreateConfiguratorAttribute(ctx context.Context, input map[string]interface{}) (item *ConfiguratorAttribute, err error)
- func (r *GeneratedMutationResolver) CreateConfiguratorAttributeDefinition(ctx context.Context, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)
- func (r *GeneratedMutationResolver) CreateConfiguratorItem(ctx context.Context, input map[string]interface{}) (item *ConfiguratorItem, err error)
- func (r *GeneratedMutationResolver) CreateConfiguratorItemDefinition(ctx context.Context, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)
- func (r *GeneratedMutationResolver) CreateConfiguratorSlot(ctx context.Context, input map[string]interface{}) (item *ConfiguratorSlot, err error)
- func (r *GeneratedMutationResolver) CreateConfiguratorSlotDefinition(ctx context.Context, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)
- func (r *GeneratedMutationResolver) DeleteAllConfiguratorAttributeDefinitions(ctx context.Context) (bool, error)
- func (r *GeneratedMutationResolver) DeleteAllConfiguratorAttributes(ctx context.Context) (bool, error)
- func (r *GeneratedMutationResolver) DeleteAllConfiguratorItemDefinitions(ctx context.Context) (bool, error)
- func (r *GeneratedMutationResolver) DeleteAllConfiguratorItems(ctx context.Context) (bool, error)
- func (r *GeneratedMutationResolver) DeleteAllConfiguratorSlotDefinitions(ctx context.Context) (bool, error)
- func (r *GeneratedMutationResolver) DeleteAllConfiguratorSlots(ctx context.Context) (bool, error)
- func (r *GeneratedMutationResolver) DeleteConfiguratorAttribute(ctx context.Context, id string) (item *ConfiguratorAttribute, err error)
- func (r *GeneratedMutationResolver) DeleteConfiguratorAttributeDefinition(ctx context.Context, id string) (item *ConfiguratorAttributeDefinition, err error)
- func (r *GeneratedMutationResolver) DeleteConfiguratorItem(ctx context.Context, id string) (item *ConfiguratorItem, err error)
- func (r *GeneratedMutationResolver) DeleteConfiguratorItemDefinition(ctx context.Context, id string) (item *ConfiguratorItemDefinition, err error)
- func (r *GeneratedMutationResolver) DeleteConfiguratorSlot(ctx context.Context, id string) (item *ConfiguratorSlot, err error)
- func (r *GeneratedMutationResolver) DeleteConfiguratorSlotDefinition(ctx context.Context, id string) (item *ConfiguratorSlotDefinition, err error)
- func (r *GeneratedMutationResolver) UpdateConfiguratorAttribute(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorAttribute, err error)
- func (r *GeneratedMutationResolver) UpdateConfiguratorAttributeDefinition(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorAttributeDefinition, err error)
- func (r *GeneratedMutationResolver) UpdateConfiguratorItem(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorItem, err error)
- func (r *GeneratedMutationResolver) UpdateConfiguratorItemDefinition(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorItemDefinition, err error)
- func (r *GeneratedMutationResolver) UpdateConfiguratorSlot(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorSlot, err error)
- func (r *GeneratedMutationResolver) UpdateConfiguratorSlotDefinition(ctx context.Context, id string, input map[string]interface{}) (item *ConfiguratorSlotDefinition, err error)
- type GeneratedQueryResolver
- func (r *GeneratedQueryResolver) ConfiguratorAttribute(ctx context.Context, id *string, q *string, ...) (*ConfiguratorAttribute, error)
- func (r *GeneratedQueryResolver) ConfiguratorAttributeDefinition(ctx context.Context, id *string, q *string, ...) (*ConfiguratorAttributeDefinition, error)
- func (r *GeneratedQueryResolver) ConfiguratorAttributeDefinitions(ctx context.Context, offset *int, limit *int, q *string, ...) (*ConfiguratorAttributeDefinitionResultType, error)
- func (r *GeneratedQueryResolver) ConfiguratorAttributes(ctx context.Context, offset *int, limit *int, q *string, ...) (*ConfiguratorAttributeResultType, error)
- func (r *GeneratedQueryResolver) ConfiguratorItem(ctx context.Context, id *string, q *string, filter *ConfiguratorItemFilterType) (*ConfiguratorItem, error)
- func (r *GeneratedQueryResolver) ConfiguratorItemDefinition(ctx context.Context, id *string, q *string, ...) (*ConfiguratorItemDefinition, error)
- func (r *GeneratedQueryResolver) ConfiguratorItemDefinitions(ctx context.Context, offset *int, limit *int, q *string, ...) (*ConfiguratorItemDefinitionResultType, error)
- func (r *GeneratedQueryResolver) ConfiguratorItems(ctx context.Context, offset *int, limit *int, q *string, ...) (*ConfiguratorItemResultType, error)
- func (r *GeneratedQueryResolver) ConfiguratorSlot(ctx context.Context, id *string, q *string, filter *ConfiguratorSlotFilterType) (*ConfiguratorSlot, error)
- func (r *GeneratedQueryResolver) ConfiguratorSlotDefinition(ctx context.Context, id *string, q *string, ...) (*ConfiguratorSlotDefinition, error)
- func (r *GeneratedQueryResolver) ConfiguratorSlotDefinitions(ctx context.Context, offset *int, limit *int, q *string, ...) (*ConfiguratorSlotDefinitionResultType, error)
- func (r *GeneratedQueryResolver) ConfiguratorSlots(ctx context.Context, offset *int, limit *int, q *string, ...) (*ConfiguratorSlotResultType, error)
- type GeneratedResolver
- type GetItemsOptions
- type JWTClaims
- type MutationEvents
- type MutationResolver
- type NotFoundError
- type ObjectSortType
- type QueryConfiguratorAttributeDefinitionHandlerOptions
- type QueryConfiguratorAttributeDefinitionsHandlerOptions
- type QueryConfiguratorAttributeHandlerOptions
- type QueryConfiguratorAttributesHandlerOptions
- type QueryConfiguratorItemDefinitionHandlerOptions
- type QueryConfiguratorItemDefinitionsHandlerOptions
- type QueryConfiguratorItemHandlerOptions
- type QueryConfiguratorItemsHandlerOptions
- type QueryConfiguratorSlotDefinitionHandlerOptions
- type QueryConfiguratorSlotDefinitionsHandlerOptions
- type QueryConfiguratorSlotHandlerOptions
- type QueryConfiguratorSlotsHandlerOptions
- type QueryResolver
- type ResolutionHandlers
- type ResolverRoot
Constants ¶
Variables ¶
var AllConfiguratorAttributeType = []ConfiguratorAttributeType{ ConfiguratorAttributeTypeString, ConfiguratorAttributeTypeFloat, ConfiguratorAttributeTypeInt, }
var AllObjectSortType = []ObjectSortType{ ObjectSortTypeAsc, ObjectSortTypeDesc, }
Functions ¶
func ApplyChanges ¶
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 GetItemForRelation ¶
func GetLoaders ¶
func GetLoaders(db *DB) map[string]*dataloader.Loader
func Marshal_Any ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
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 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 QueryConfiguratorAttributeHandler ¶
func QueryConfiguratorAttributeHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributeHandlerOptions) (*ConfiguratorAttribute, 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 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 ConfiguratorAttributeDefinitionHandler ¶
func ConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, obj *ConfiguratorAttribute) (res *ConfiguratorAttributeDefinition, err error)
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 QueryConfiguratorAttributeDefinitionHandler ¶
func QueryConfiguratorAttributeDefinitionHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributeDefinitionHandlerOptions) (*ConfiguratorAttributeDefinition, 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 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 ¶
func (f *ConfiguratorAttributeDefinitionFilterType) AndWith(f2 ...*ConfiguratorAttributeDefinitionFilterType) *ConfiguratorAttributeDefinitionFilterType
AndWith convenience method for combining two or more filters with AND statement
func (*ConfiguratorAttributeDefinitionFilterType) ApplyWithAlias ¶
func (*ConfiguratorAttributeDefinitionFilterType) OrWith ¶
func (f *ConfiguratorAttributeDefinitionFilterType) OrWith(f2 ...*ConfiguratorAttributeDefinitionFilterType) *ConfiguratorAttributeDefinitionFilterType
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
}
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 ConfiguratorAttributeDefinitionResultType ¶
type ConfiguratorAttributeDefinitionResultType struct {
EntityResultType
}
func QueryConfiguratorAttributeDefinitionsHandler ¶
func QueryConfiguratorAttributeDefinitionsHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributeDefinitionsHandlerOptions) (*ConfiguratorAttributeDefinitionResultType, error)
type ConfiguratorAttributeDefinitionResultTypeResolver ¶
type ConfiguratorAttributeDefinitionResultTypeResolver interface { Items(ctx context.Context, obj *ConfiguratorAttributeDefinitionResultType) ([]*ConfiguratorAttributeDefinition, error) Count(ctx context.Context, obj *ConfiguratorAttributeDefinitionResultType) (int, 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"` }
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 ¶
func (f *ConfiguratorAttributeFilterType) AndWith(f2 ...*ConfiguratorAttributeFilterType) *ConfiguratorAttributeFilterType
AndWith convenience method for combining two or more filters with AND statement
func (*ConfiguratorAttributeFilterType) ApplyWithAlias ¶
func (*ConfiguratorAttributeFilterType) OrWith ¶
func (f *ConfiguratorAttributeFilterType) OrWith(f2 ...*ConfiguratorAttributeFilterType) *ConfiguratorAttributeFilterType
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
}
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
}
func QueryConfiguratorAttributesHandler ¶
func QueryConfiguratorAttributesHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorAttributesHandlerOptions) (*ConfiguratorAttributeResultType, error)
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"` }
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 QueryConfiguratorItemHandler ¶
func QueryConfiguratorItemHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemHandlerOptions) (*ConfiguratorItem, 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 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 QueryConfiguratorItemDefinitionHandler ¶
func QueryConfiguratorItemDefinitionHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemDefinitionHandlerOptions) (*ConfiguratorItemDefinition, 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 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 ¶
func (f *ConfiguratorItemDefinitionFilterType) AndWith(f2 ...*ConfiguratorItemDefinitionFilterType) *ConfiguratorItemDefinitionFilterType
AndWith convenience method for combining two or more filters with AND statement
func (*ConfiguratorItemDefinitionFilterType) ApplyWithAlias ¶
func (*ConfiguratorItemDefinitionFilterType) OrWith ¶
func (f *ConfiguratorItemDefinitionFilterType) OrWith(f2 ...*ConfiguratorItemDefinitionFilterType) *ConfiguratorItemDefinitionFilterType
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
}
type ConfiguratorItemDefinitionResolver ¶
type ConfiguratorItemDefinitionResolver interface { Attributes(ctx context.Context, obj *ConfiguratorItemDefinition) ([]*ConfiguratorAttributeDefinition, error) Slots(ctx context.Context, obj *ConfiguratorItemDefinition) ([]*ConfiguratorSlotDefinition, error) Items(ctx context.Context, obj *ConfiguratorItemDefinition) ([]*ConfiguratorItem, error) AttributesIds(ctx context.Context, obj *ConfiguratorItemDefinition) ([]string, error) SlotsIds(ctx context.Context, obj *ConfiguratorItemDefinition) ([]string, error) ItemsIds(ctx context.Context, obj *ConfiguratorItemDefinition) ([]string, error) }
type ConfiguratorItemDefinitionResultType ¶
type ConfiguratorItemDefinitionResultType struct {
EntityResultType
}
func QueryConfiguratorItemDefinitionsHandler ¶
func QueryConfiguratorItemDefinitionsHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemDefinitionsHandlerOptions) (*ConfiguratorItemDefinitionResultType, 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"` }
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 ¶
func (f *ConfiguratorItemFilterType) AndWith(f2 ...*ConfiguratorItemFilterType) *ConfiguratorItemFilterType
AndWith convenience method for combining two or more filters with AND statement
func (*ConfiguratorItemFilterType) ApplyWithAlias ¶
func (*ConfiguratorItemFilterType) OrWith ¶
func (f *ConfiguratorItemFilterType) OrWith(f2 ...*ConfiguratorItemFilterType) *ConfiguratorItemFilterType
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
}
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
}
func QueryConfiguratorItemsHandler ¶
func QueryConfiguratorItemsHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorItemsHandlerOptions) (*ConfiguratorItemResultType, error)
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"` }
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 QueryConfiguratorSlotHandler ¶
func QueryConfiguratorSlotHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotHandlerOptions) (*ConfiguratorSlot, 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 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 QueryConfiguratorSlotDefinitionHandler ¶
func QueryConfiguratorSlotDefinitionHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotDefinitionHandlerOptions) (*ConfiguratorSlotDefinition, 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 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 ¶
func (f *ConfiguratorSlotDefinitionFilterType) AndWith(f2 ...*ConfiguratorSlotDefinitionFilterType) *ConfiguratorSlotDefinitionFilterType
AndWith convenience method for combining two or more filters with AND statement
func (*ConfiguratorSlotDefinitionFilterType) ApplyWithAlias ¶
func (*ConfiguratorSlotDefinitionFilterType) OrWith ¶
func (f *ConfiguratorSlotDefinitionFilterType) OrWith(f2 ...*ConfiguratorSlotDefinitionFilterType) *ConfiguratorSlotDefinitionFilterType
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
}
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 ConfiguratorSlotDefinitionResultType ¶
type ConfiguratorSlotDefinitionResultType struct {
EntityResultType
}
func QueryConfiguratorSlotDefinitionsHandler ¶
func QueryConfiguratorSlotDefinitionsHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotDefinitionsHandlerOptions) (*ConfiguratorSlotDefinitionResultType, 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"` }
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 ¶
func (f *ConfiguratorSlotFilterType) AndWith(f2 ...*ConfiguratorSlotFilterType) *ConfiguratorSlotFilterType
AndWith convenience method for combining two or more filters with AND statement
func (*ConfiguratorSlotFilterType) ApplyWithAlias ¶
func (*ConfiguratorSlotFilterType) OrWith ¶
func (f *ConfiguratorSlotFilterType) OrWith(f2 ...*ConfiguratorSlotFilterType) *ConfiguratorSlotFilterType
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
}
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
}
func QueryConfiguratorSlotsHandler ¶
func QueryConfiguratorSlotsHandler(ctx context.Context, r *GeneratedResolver, opts QueryConfiguratorSlotsHandlerOptions) (*ConfiguratorSlotResultType, error)
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"` }
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB ...
func NewDBFromEnvVars ¶
func NewDBFromEnvVars() *DB
NewDBFromEnvVars Create database client using DATABASE_URL environment variable
func NewDBWithString ¶
NewDBWithString creates database instance with database URL string
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EntityFilter ¶
type EntityFilterQuery ¶
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 GeneratedConfiguratorAttributeDefinitionResolver ¶
type GeneratedConfiguratorAttributeDefinitionResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorAttributeDefinitionResolver) Attributes ¶
func (r *GeneratedConfiguratorAttributeDefinitionResolver) Attributes(ctx context.Context, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorAttribute, err error)
func (*GeneratedConfiguratorAttributeDefinitionResolver) AttributesIds ¶
func (r *GeneratedConfiguratorAttributeDefinitionResolver) AttributesIds(ctx context.Context, obj *ConfiguratorAttributeDefinition) (ids []string, err error)
func (*GeneratedConfiguratorAttributeDefinitionResolver) Definitions ¶
func (r *GeneratedConfiguratorAttributeDefinitionResolver) Definitions(ctx context.Context, obj *ConfiguratorAttributeDefinition) (res []*ConfiguratorItemDefinition, err error)
func (*GeneratedConfiguratorAttributeDefinitionResolver) DefinitionsIds ¶
func (r *GeneratedConfiguratorAttributeDefinitionResolver) DefinitionsIds(ctx context.Context, obj *ConfiguratorAttributeDefinition) (ids []string, err error)
type GeneratedConfiguratorAttributeDefinitionResultTypeResolver ¶
type GeneratedConfiguratorAttributeDefinitionResultTypeResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Count ¶
func (r *GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorAttributeDefinitionResultType) (count int, err error)
func (*GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Items ¶
func (r *GeneratedConfiguratorAttributeDefinitionResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorAttributeDefinitionResultType) (items []*ConfiguratorAttributeDefinition, err error)
type GeneratedConfiguratorAttributeResolver ¶
type GeneratedConfiguratorAttributeResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorAttributeResolver) Definition ¶
func (r *GeneratedConfiguratorAttributeResolver) Definition(ctx context.Context, obj *ConfiguratorAttribute) (res *ConfiguratorAttributeDefinition, err error)
func (*GeneratedConfiguratorAttributeResolver) Item ¶
func (r *GeneratedConfiguratorAttributeResolver) Item(ctx context.Context, obj *ConfiguratorAttribute) (res *ConfiguratorItem, err error)
type GeneratedConfiguratorAttributeResultTypeResolver ¶
type GeneratedConfiguratorAttributeResultTypeResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorAttributeResultTypeResolver) Count ¶
func (r *GeneratedConfiguratorAttributeResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorAttributeResultType) (count int, err error)
func (*GeneratedConfiguratorAttributeResultTypeResolver) Items ¶
func (r *GeneratedConfiguratorAttributeResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorAttributeResultType) (items []*ConfiguratorAttribute, err error)
type GeneratedConfiguratorItemDefinitionResolver ¶
type GeneratedConfiguratorItemDefinitionResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorItemDefinitionResolver) Attributes ¶
func (r *GeneratedConfiguratorItemDefinitionResolver) Attributes(ctx context.Context, obj *ConfiguratorItemDefinition) (res []*ConfiguratorAttributeDefinition, err error)
func (*GeneratedConfiguratorItemDefinitionResolver) AttributesIds ¶
func (r *GeneratedConfiguratorItemDefinitionResolver) AttributesIds(ctx context.Context, obj *ConfiguratorItemDefinition) (ids []string, err error)
func (*GeneratedConfiguratorItemDefinitionResolver) Items ¶
func (r *GeneratedConfiguratorItemDefinitionResolver) Items(ctx context.Context, obj *ConfiguratorItemDefinition) (res []*ConfiguratorItem, err error)
func (*GeneratedConfiguratorItemDefinitionResolver) ItemsIds ¶
func (r *GeneratedConfiguratorItemDefinitionResolver) ItemsIds(ctx context.Context, obj *ConfiguratorItemDefinition) (ids []string, err error)
func (*GeneratedConfiguratorItemDefinitionResolver) Slots ¶
func (r *GeneratedConfiguratorItemDefinitionResolver) Slots(ctx context.Context, obj *ConfiguratorItemDefinition) (res []*ConfiguratorSlotDefinition, err error)
func (*GeneratedConfiguratorItemDefinitionResolver) SlotsIds ¶
func (r *GeneratedConfiguratorItemDefinitionResolver) SlotsIds(ctx context.Context, obj *ConfiguratorItemDefinition) (ids []string, err error)
type GeneratedConfiguratorItemDefinitionResultTypeResolver ¶
type GeneratedConfiguratorItemDefinitionResultTypeResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorItemDefinitionResultTypeResolver) Count ¶
func (r *GeneratedConfiguratorItemDefinitionResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorItemDefinitionResultType) (count int, err error)
func (*GeneratedConfiguratorItemDefinitionResultTypeResolver) Items ¶
func (r *GeneratedConfiguratorItemDefinitionResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorItemDefinitionResultType) (items []*ConfiguratorItemDefinition, err error)
type GeneratedConfiguratorItemResolver ¶
type GeneratedConfiguratorItemResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorItemResolver) Attributes ¶
func (r *GeneratedConfiguratorItemResolver) Attributes(ctx context.Context, obj *ConfiguratorItem) (res []*ConfiguratorAttribute, err error)
func (*GeneratedConfiguratorItemResolver) AttributesIds ¶
func (r *GeneratedConfiguratorItemResolver) AttributesIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)
func (*GeneratedConfiguratorItemResolver) Definition ¶
func (r *GeneratedConfiguratorItemResolver) Definition(ctx context.Context, obj *ConfiguratorItem) (res *ConfiguratorItemDefinition, err error)
func (*GeneratedConfiguratorItemResolver) ParentSlots ¶
func (r *GeneratedConfiguratorItemResolver) ParentSlots(ctx context.Context, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)
func (*GeneratedConfiguratorItemResolver) ParentSlotsIds ¶
func (r *GeneratedConfiguratorItemResolver) ParentSlotsIds(ctx context.Context, obj *ConfiguratorItem) (ids []string, err error)
func (*GeneratedConfiguratorItemResolver) Slots ¶
func (r *GeneratedConfiguratorItemResolver) Slots(ctx context.Context, obj *ConfiguratorItem) (res []*ConfiguratorSlot, err error)
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 (r *GeneratedConfiguratorItemResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorItemResultType) (count int, err error)
func (*GeneratedConfiguratorItemResultTypeResolver) Items ¶
func (r *GeneratedConfiguratorItemResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorItemResultType) (items []*ConfiguratorItem, err error)
type GeneratedConfiguratorSlotDefinitionResolver ¶
type GeneratedConfiguratorSlotDefinitionResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorSlotDefinitionResolver) Definition ¶
func (r *GeneratedConfiguratorSlotDefinitionResolver) Definition(ctx context.Context, obj *ConfiguratorSlotDefinition) (res *ConfiguratorItemDefinition, err error)
func (*GeneratedConfiguratorSlotDefinitionResolver) Slots ¶
func (r *GeneratedConfiguratorSlotDefinitionResolver) Slots(ctx context.Context, obj *ConfiguratorSlotDefinition) (res []*ConfiguratorSlot, err error)
func (*GeneratedConfiguratorSlotDefinitionResolver) SlotsIds ¶
func (r *GeneratedConfiguratorSlotDefinitionResolver) SlotsIds(ctx context.Context, obj *ConfiguratorSlotDefinition) (ids []string, err error)
type GeneratedConfiguratorSlotDefinitionResultTypeResolver ¶
type GeneratedConfiguratorSlotDefinitionResultTypeResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorSlotDefinitionResultTypeResolver) Count ¶
func (r *GeneratedConfiguratorSlotDefinitionResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorSlotDefinitionResultType) (count int, err error)
func (*GeneratedConfiguratorSlotDefinitionResultTypeResolver) Items ¶
func (r *GeneratedConfiguratorSlotDefinitionResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorSlotDefinitionResultType) (items []*ConfiguratorSlotDefinition, err error)
type GeneratedConfiguratorSlotResolver ¶
type GeneratedConfiguratorSlotResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorSlotResolver) Definition ¶
func (r *GeneratedConfiguratorSlotResolver) Definition(ctx context.Context, obj *ConfiguratorSlot) (res *ConfiguratorSlotDefinition, err error)
func (*GeneratedConfiguratorSlotResolver) Item ¶
func (r *GeneratedConfiguratorSlotResolver) Item(ctx context.Context, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)
func (*GeneratedConfiguratorSlotResolver) ParentItem ¶
func (r *GeneratedConfiguratorSlotResolver) ParentItem(ctx context.Context, obj *ConfiguratorSlot) (res *ConfiguratorItem, err error)
type GeneratedConfiguratorSlotResultTypeResolver ¶
type GeneratedConfiguratorSlotResultTypeResolver struct{ *GeneratedResolver }
func (*GeneratedConfiguratorSlotResultTypeResolver) Count ¶
func (r *GeneratedConfiguratorSlotResultTypeResolver) Count(ctx context.Context, obj *ConfiguratorSlotResultType) (count int, err error)
func (*GeneratedConfiguratorSlotResultTypeResolver) Items ¶
func (r *GeneratedConfiguratorSlotResultTypeResolver) Items(ctx context.Context, obj *ConfiguratorSlotResultType) (items []*ConfiguratorSlot, err error)
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 (r *GeneratedQueryResolver) ConfiguratorAttribute(ctx context.Context, id *string, q *string, filter *ConfiguratorAttributeFilterType) (*ConfiguratorAttribute, error)
func (*GeneratedQueryResolver) ConfiguratorAttributeDefinition ¶
func (r *GeneratedQueryResolver) ConfiguratorAttributeDefinition(ctx context.Context, id *string, q *string, filter *ConfiguratorAttributeDefinitionFilterType) (*ConfiguratorAttributeDefinition, error)
func (*GeneratedQueryResolver) ConfiguratorAttributeDefinitions ¶
func (r *GeneratedQueryResolver) ConfiguratorAttributeDefinitions(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorAttributeDefinitionSortType, filter *ConfiguratorAttributeDefinitionFilterType) (*ConfiguratorAttributeDefinitionResultType, error)
func (*GeneratedQueryResolver) ConfiguratorAttributes ¶
func (r *GeneratedQueryResolver) ConfiguratorAttributes(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorAttributeSortType, filter *ConfiguratorAttributeFilterType) (*ConfiguratorAttributeResultType, error)
func (*GeneratedQueryResolver) ConfiguratorItem ¶
func (r *GeneratedQueryResolver) ConfiguratorItem(ctx context.Context, id *string, q *string, filter *ConfiguratorItemFilterType) (*ConfiguratorItem, error)
func (*GeneratedQueryResolver) ConfiguratorItemDefinition ¶
func (r *GeneratedQueryResolver) ConfiguratorItemDefinition(ctx context.Context, id *string, q *string, filter *ConfiguratorItemDefinitionFilterType) (*ConfiguratorItemDefinition, error)
func (*GeneratedQueryResolver) ConfiguratorItemDefinitions ¶
func (r *GeneratedQueryResolver) ConfiguratorItemDefinitions(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorItemDefinitionSortType, filter *ConfiguratorItemDefinitionFilterType) (*ConfiguratorItemDefinitionResultType, error)
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 (r *GeneratedQueryResolver) ConfiguratorSlot(ctx context.Context, id *string, q *string, filter *ConfiguratorSlotFilterType) (*ConfiguratorSlot, error)
func (*GeneratedQueryResolver) ConfiguratorSlotDefinition ¶
func (r *GeneratedQueryResolver) ConfiguratorSlotDefinition(ctx context.Context, id *string, q *string, filter *ConfiguratorSlotDefinitionFilterType) (*ConfiguratorSlotDefinition, error)
func (*GeneratedQueryResolver) ConfiguratorSlotDefinitions ¶
func (r *GeneratedQueryResolver) ConfiguratorSlotDefinitions(ctx context.Context, offset *int, limit *int, q *string, sort []*ConfiguratorSlotDefinitionSortType, filter *ConfiguratorSlotDefinitionFilterType) (*ConfiguratorSlotDefinitionResultType, error)
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 JWTClaims ¶
type JWTClaims struct { jwtgo.StandardClaims Scope *string }
func GetJWTClaimsFromContext ¶
type MutationEvents ¶
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 }