SellerService

SellerService

Contains methods relating to Seller entities.

Signature

class SellerService {
  constructor(connection: TransactionalConnection, listQueryBuilder: ListQueryBuilder, eventBus: EventBus, customFieldRelationService: CustomFieldRelationService)
  async initSellers() => ;
  findAll(ctx: RequestContext, options?: ListQueryOptions<Seller>) => Promise<PaginatedList<Seller>>;
  findOne(ctx: RequestContext, sellerId: ID) => Promise<Seller | undefined>;
  async create(ctx: RequestContext, input: CreateSellerInput) => ;
  async update(ctx: RequestContext, input: UpdateSellerInput) => ;
  async delete(ctx: RequestContext, id: ID) => Promise<DeletionResponse>;
}

Members

constructor

method
type:
(connection: TransactionalConnection, listQueryBuilder: ListQueryBuilder, eventBus: EventBus, customFieldRelationService: CustomFieldRelationService) => SellerService

initSellers

method
type:
() =>

findAll

method
type:
(ctx: RequestContext, options?: ListQueryOptions<Seller>) => Promise<PaginatedList<Seller>>

findOne

method
type:
(ctx: RequestContext, sellerId: ID) => Promise<Seller | undefined>

create

method
type:
(ctx: RequestContext, input: CreateSellerInput) =>

update

method
type:
(ctx: RequestContext, input: UpdateSellerInput) =>

delete

method
type:
(ctx: RequestContext, id: ID) => Promise<DeletionResponse>