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

    Class BaseOrganizationsService<O>

    The organizations service is responsible for managing organizations.

    Type Parameters

    Index

    Constructors

    Properties

    dataSource: DataSource
    eventEmitter: EventEmitter2
    idService: IdService
    imagesService: BaseImagesService
    loggerFactory: WinstonLoggerFactory

    Accessors

    • get repository(): Repository<O>

      Returns Repository<O>

    Methods

    • Parameters

      Returns void

    • Soft delete organization by id.

      Parameters

      Returns Promise<void>

    • Get organizations list for user.

      Parameters

      • userId: string

        user id

      Returns Promise<O[]>

      organizations list for user

    • Returns string

    • Get one organization by id.

      Parameters

      • id: string

        The organization id.

      Returns Promise<MaybeNull<O>>

      The organization if exists or null.

    • Parameters

      Returns Promise<O>

    • Get organization by id or throw an error if not found.

      Parameters

      Returns Promise<O>

      The organization if exists or throws an error.

    • Returns void