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

    Class BaseServiceAccountsService<U, UTR, O>Abstract

    A Service Accounts is an interface that allows you to create, manage, and use service accounts within your application. Service accounts are special accounts that are used to perform automated tasks on behalf of your application, such as accessing APIs, managing resources, or performing background tasks. With a Service Accounts API, you can create and manage service accounts, assign roles and permissions to those accounts, and generate credentials that can be used to authenticate and authorize API calls. This API provides a secure and scalable way to automate tasks within your application, while ensuring that only authorized users and processes can access sensitive data and resources.

    Type Parameters

    Index

    Constructors

    Properties

    dataSource: DataSource
    idService: IdService
    jwtConfig: JwtConfigType
    loggerFactory: WinstonLoggerFactory
    organizationsService: BaseOrganizationsService<O>
    saEmailDomain: string = 'serviceaccount.hope.cloud'
    serviceTokensService: BaseServiceTokensService<U>
    usersService: BaseUsersService<U>
    userToRolesService: BaseUserToRolesService<UTR>

    Accessors

    • get repository(): Repository<U>

      Returns Repository<U>

    Methods

    • Deletes service account by id

      Parameters

      Returns Promise<void>

    • Returns string

    • Checks if service account with specified alias exists

      Parameters

      • alias: string

        alias of service account (e.g. "backoffice")

      Returns Promise<boolean>

      true if service account exists

    • Checks if service account with specified alias exists

      Parameters

      • email: string

        email of service account (e.g. "

      Returns Promise<boolean>

      true if service account exists

    • Returns void