ProductOptionGroupService

ProductOptionGroupService

Contains methods relating to ProductOptionGroup entities.

Signature

class ProductOptionGroupService {
  constructor(connection: TransactionalConnection, translatableSaver: TranslatableSaver, customFieldRelationService: CustomFieldRelationService)
  findAll(ctx: RequestContext, filterTerm?: string) => Promise<Array<Translated<ProductOptionGroup>>>;
  findOne(ctx: RequestContext, id: ID) => Promise<Translated<ProductOptionGroup> | undefined>;
  getOptionGroupsByProductId(ctx: RequestContext, id: ID) => Promise<Array<Translated<ProductOptionGroup>>>;
  async create(ctx: RequestContext, input: CreateProductOptionGroupInput) => Promise<Translated<ProductOptionGroup>>;
  async update(ctx: RequestContext, input: UpdateProductOptionGroupInput) => Promise<Translated<ProductOptionGroup>>;
}

Members

constructor

method
type:
(connection: TransactionalConnection, translatableSaver: TranslatableSaver, customFieldRelationService: CustomFieldRelationService) => ProductOptionGroupService

findAll

method
type:
(ctx: RequestContext, filterTerm?: string) => Promise<Array<Translated<ProductOptionGroup>>>

findOne

method
type:
(ctx: RequestContext, id: ID) => Promise<Translated<ProductOptionGroup> | undefined>

getOptionGroupsByProductId

method
type:
(ctx: RequestContext, id: ID) => Promise<Array<Translated<ProductOptionGroup>>>

create

async method
type:
(ctx: RequestContext, input: CreateProductOptionGroupInput) => Promise<Translated<ProductOptionGroup>>

update

async method
type:
(ctx: RequestContext, input: UpdateProductOptionGroupInput) => Promise<Translated<ProductOptionGroup>>