@deep/nest-kit
    Preparing search index...

    Class BaseBrandsService<B>

    Brand service. Contains all the business logic for brands

    Type Parameters

    Index

    Constructors

    Properties

    actionsService: BaseActionsService
    appConfig: AppConfigType
    categoriesService: BaseCategoriesService
    dataSource: DataSource
    idService: IdService
    imagesService: BaseImagesService
    loggerFactory: WinstonLoggerFactory

    Accessors

    • get repository(): Repository<B>

      Returns Repository<B>

    Methods

    • Delete brand

      Parameters

      Returns Promise<void>

    • Returns string

    • Get brand by ID

      Parameters

      • brand: B

        Brand entity

      Returns string

      String

    • Get brand by ID

      Parameters

      • id: string

        Brand ID

      Returns Promise<MaybeNull<B>>

      Brand entity or null if not found

    • Get brand by ID or throw an exception if not found

      Parameters

      Returns Promise<B>

      Brand entity or throws an exception if not found

    • Returns void