Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sairyss/domain-driven-hexagon
/ functions
Functions
150 in github.com/Sairyss/domain-driven-hexagon
⨍
Functions
150
◇
Types & classes
148
Method
error
(message: string, trace?: unknown, ...meta: unknown[])
src/libs/ports/logger.port.ts:3
Function
final
( target: T, )
src/libs/decorators/final.decorator.ts:7
Function
findAll
()
src/libs/db/sql-repository.base.ts:49
Method
findAll
()
src/libs/ddd/repository.port.ts:36
Function
findAllPaginated
( params: PaginatedQueryParams, )
src/libs/db/sql-repository.base.ts:59
Method
findAllPaginated
(params: PaginatedQueryParams)
src/libs/ddd/repository.port.ts:37
Method
findOneByEmail
(email: string)
src/modules/user/database/user.repository.ts:61
Method
findOneByEmail
(email: string)
src/modules/user/database/user.repository.port.ts:11
Function
findOneById
(id: string)
src/libs/db/sql-repository.base.ts:40
Method
findUsers
( @Body() request: FindUsersRequestDto, @Query() queryParams: PaginatedQueryRequestDto, )
src/modules/user/queries/find-users/find-users.http.controller.ts:24
Method
findUsers
( @Args('options', { type: () => String }) options: PaginatedParams<FindUsersQuery>, )
src/modules/user/queries/find-users/find-users.graphql-resolver.ts:15
Function
frozen
(constructor: Function)
src/libs/decorators/frozen.decorator.ts:8
Function
generateInsertQuery
* Utility method to generate insert query for any objects. * Use carefully and don't accept non-validated objects. * * Passing object with {
src/libs/db/sql-repository.base.ts:171
Function
getProps
* Returns entity properties. * @return {*} {Props & EntityProps} * @memberof Entity
src/libs/ddd/entity.base.ts:99
Function
id
()
src/libs/ddd/entity.base.ts:54
Function
insert
* Inserts an entity to a database * (also publishes domain events and waits for completion)
src/libs/db/sql-repository.base.ts:102
Method
intercept
(context: ExecutionContext, next: CallHandler)
src/libs/application/context/ContextInterceptor.ts:13
Method
intercept
( _context: ExecutionContext, next: CallHandler, )
src/libs/application/interceptors/exception.interceptor.ts:17
Function
isDomainPrimitive
( obj: unknown, )
src/libs/ddd/value-object.base.ts:63
Function
isEntity
(entity: unknown)
src/libs/ddd/entity.base.ts:70
Function
isValueObject
(obj: unknown)
src/libs/ddd/value-object.base.ts:26
Method
makeAdmin
()
src/modules/user/domain/user.entity.ts:57
Method
makeModerator
()
src/modules/user/domain/user.entity.ts:61
Function
pool
* Get database pool. * If global request transaction is started, * returns a transaction pool.
src/libs/db/sql-repository.base.ts:236
Method
postalCode
()
src/modules/user/domain/value-objects/address.value-object.ts:21
Function
publishEvents
( logger: LoggerPort, eventEmitter: EventEmitter2, )
src/libs/ddd/aggregate-root.base.ts:22
Method
role
()
src/modules/user/domain/user.entity.ts:41
Function
setId
(id: AggregateID)
src/libs/ddd/entity.base.ts:58
Method
street
()
src/modules/user/domain/value-objects/address.value-object.ts:25
Method
toDomain
(record: WalletModel)
src/modules/wallet/wallet.mapper.ts:20
Method
toDomain
(record: UserModel)
src/modules/user/user.mapper.ts:34
Function
toJSON
* By default in NodeJS Error objects are not * serialized properly when sending plain objects * to external processes. This method is a workarou
src/libs/exceptions/exception.base.ts:57
Function
toObject
* Convert an Entity and all sub-entities/Value Objects it * contains to a plain object with primitive types. Can be * useful when logging an ent
src/libs/ddd/entity.base.ts:114
Method
toPersistence
(entity: WalletEntity)
src/modules/wallet/wallet.mapper.ts:8
Method
toPersistence
(entity: UserEntity)
src/modules/user/user.mapper.ts:19
Method
toPersistence
(entity: DomainEntity)
src/libs/ddd/mapper.interface.ts:8
Method
toResponse
()
src/modules/wallet/wallet.mapper.ts:33
Method
toResponse
(entity: UserEntity)
src/modules/user/user.mapper.ts:52
Method
toResponse
(entity: DomainEntity)
src/libs/ddd/mapper.interface.ts:10
Function
transaction
* start a global transaction to save * results of all event handlers in one operation
src/libs/db/sql-repository.base.ts:205
Function
unpack
* Unpack a value object to get its raw properties
src/libs/ddd/value-object.base.ts:44
Method
updateAddress
(user: UserEntity)
src/modules/user/database/user.repository.ts:51
Method
updateAddress
(props: UpdateUserAddressProps)
src/modules/user/domain/user.entity.ts:77
Function
updatedAt
()
src/libs/ddd/entity.base.ts:66
Method
validate
* Protects wallet invariant. * This method is executed by a repository * before saving entity in a database.
src/modules/wallet/domain/wallet.entity.ts:48
Method
validate
* Note: This is a very simplified example of validation, * real world projects will have stricter rules. * You can avoid this type of validation
src/modules/user/domain/value-objects/address.value-object.ts:36
Function
validateProps
(props: EntityProps)
src/libs/ddd/entity.base.ts:133
Method
warn
(message: string, ...meta: unknown[])
src/libs/ports/logger.port.ts:4
Method
withdraw
(amount: number)
src/modules/wallet/domain/wallet.entity.ts:35
Function
writeQuery
* Utility method for write queries when you need to mutate an entity. * Executes entity validation, publishes events, * and does some debug logg
src/libs/db/sql-repository.base.ts:130
← previous
101–150 of 150, ranked by callers