Class BaseBrandAssignmentsService<BA, U, R, B>

Service that provides methods to work with brand assignments Brand assignments are used to assign roles to users for specific brands

Type Parameters

Constructors

Properties

actionsService: BaseActionsService
appConfig: AppConfigType
brandAssignmentRepository: Repository<BA>
brandRepository: Repository<B>
idService: IdService
loggerFactory: WinstonLoggerFactory
roleRepository: Repository<R>
userRepository: Repository<U>

Methods

  • Returns string

  • Fetch brand assignment by id

    Parameters

    • id: string

      ID of the brand assignment

    Returns Promise<MaybeNull<BA>>

    • brand assignment if exists or null
  • Fetch brand assignment by id or throw an exception if not found

    Parameters

    Returns Promise<BA>

    • brand assignment if exists or throws an exception
  • Returns void