Skip to content

@sourceloop/oidc-service / Exports / UserLevelPermissionRepository

Class: UserLevelPermissionRepository

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new UserLevelPermissionRepository(dataSource, getCurrentUser, userTenantRepositoryGetter)

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<undefined | IAuthUserWithPermissions<string, string, string>>
userTenantRepositoryGetter Getter<UserTenantRepository>

Overrides

DefaultUserModifyCrudRepository< UserLevelPermission, typeof UserLevelPermission.prototype.id \>.constructor

Defined in

services/oidc-service/src/repositories/user-level-permission.repository.ts:27

Properties

getCurrentUser

Protected Readonly getCurrentUser: Getter<undefined | IAuthUserWithPermissions<string, string, string>>

Inherited from

DefaultUserModifyCrudRepository.getCurrentUser

Defined in

services/oidc-service/src/repositories/user-level-permission.repository.ts:31


userTenant

Readonly userTenant: BelongsToAccessor<UserTenant, undefined | string>

Defined in

services/oidc-service/src/repositories/user-level-permission.repository.ts:22


userTenantRepositoryGetter

Protected userTenantRepositoryGetter: Getter<UserTenantRepository>

Defined in

services/oidc-service/src/repositories/user-level-permission.repository.ts:35

Methods

create

create(entity, options?): Promise<UserLevelPermission>

Parameters

Name Type
entity DataObject<UserLevelPermission>
options? Options

Returns

Promise<UserLevelPermission>

Inherited from

DefaultUserModifyCrudRepository.create

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11


createAll

createAll(entities, options?): Promise<UserLevelPermission[]>

Parameters

Name Type
entities DataObject<UserLevelPermission>[]
options? Options

Returns

Promise<UserLevelPermission[]>

Inherited from

DefaultUserModifyCrudRepository.createAll

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:12


replaceById

replaceById(id, data, options?): Promise<void>

Parameters

Name Type
id undefined | string
data DataObject<UserLevelPermission>
options? Options

Returns

Promise<void>

Inherited from

DefaultUserModifyCrudRepository.replaceById

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:17


save

save(entity, options?): Promise<UserLevelPermission>

Parameters

Name Type
entity UserLevelPermission
options? Options

Returns

Promise<UserLevelPermission>

Inherited from

DefaultUserModifyCrudRepository.save

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13


update

update(entity, options?): Promise<void>

Parameters

Name Type
entity UserLevelPermission
options? Options

Returns

Promise<void>

Inherited from

DefaultUserModifyCrudRepository.update

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:14


updateAll

updateAll(data, where?, options?): Promise<Count>

Parameters

Name Type
data DataObject<UserLevelPermission>
where? Where<UserLevelPermission>
options? Options

Returns

Promise<Count>

Inherited from

DefaultUserModifyCrudRepository.updateAll

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:15


updateById

updateById(id, data, options?): Promise<void>

Parameters

Name Type
id undefined | string
data DataObject<UserLevelPermission>
options? Options

Returns

Promise<void>

Inherited from

DefaultUserModifyCrudRepository.updateById

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16