Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yuuki-Sakura/nest-shop
/ functions
Functions
152 in github.com/Yuuki-Sakura/nest-shop
⨍
Functions
152
◇
Types & classes
276
↓ 30 callers
Method
log
(level: 'log' | 'info' | 'warn', message: any)
packages/server/src/common/logger/type-orm.logger.ts:12
↓ 26 callers
Function
DecimalTransformer
(decimalPlaces = 2)
packages/common/src/transformer/decimal.transformer.ts:4
↓ 26 callers
Function
ToDecimal
()
packages/common/src/decorator/decimal.decorator.ts:4
↓ 23 callers
Method
create
(role: RoleCreateDto)
packages/server/src/role/role.service.ts:30
↓ 20 callers
Function
Timestamp
( options?: ColumnCommonOptions & ColumnWithWidthOptions, )
packages/common/src/decorator/timestamp.decorator.ts:8
↓ 17 callers
Function
Span
(typeName?: string)
packages/server/src/common/decorator/span.decorator.ts:7
↓ 15 callers
Function
Auth
(resource?: string, name?: string)
packages/server/src/auth/auth.utils.ts:77
↓ 12 callers
Method
save
(permission: PermissionCreateDto)
packages/server/src/permission/permission.service.ts:27
↓ 10 callers
Method
findOne
(conditions?: FindConditions<Permission>)
packages/server/src/permission/permission.service.ts:23
↓ 9 callers
Method
getRequest
(context: ExecutionContext)
packages/server/src/auth/guard/auth.guard.ts:53
↓ 9 callers
Function
warpResponse
( options: ApiResponseMetadata<T>, )
packages/server/src/common/utils/warp-response.ts:12
↓ 6 callers
Method
getResponse
(context: ExecutionContext)
packages/server/src/auth/guard/auth.guard.ts:61
↓ 5 callers
Function
Message
(successMessageKey: string)
packages/server/src/common/decorator/message.decorator.ts:8
↓ 5 callers
Function
buildLink
(p: number)
packages/common/src/utils/paginate/paginate.ts:300
↓ 5 callers
Function
isOperator
(value: unknown)
packages/common/src/utils/paginate/paginate.ts:69
↓ 5 callers
Method
use
(request: Request, response: Response, next: () => void)
packages/server/src/common/middlewares/origin.middleware.ts:24
↓ 4 callers
Function
Token
()
packages/server/src/auth/auth.utils.ts:132
↓ 4 callers
Function
create
(type: Type<T>, source: Partial<T>)
packages/server/src/common/utils/create.util.ts:4
↓ 4 callers
Method
findOneByPhoneOrEmail
(phoneOrEmail: string)
packages/server/src/user/user.service.ts:34
↓ 4 callers
Method
update
(role: RoleUpdateDto)
packages/server/src/role/role.service.ts:34
↓ 3 callers
Function
Paginate
(options?: PaginateOptions)
packages/common/src/utils/paginate/decorator.ts:19
↓ 3 callers
Method
catch
( exception: HttpException | CommonException | Error, host: ArgumentsHost, )
packages/server/src/common/filters/exception.filter.ts:29
↓ 3 callers
Function
createSwaggerPaginateQuery
( config: IPaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:212
↓ 3 callers
Function
getOperatorFn
( op: FilterOperator, )
packages/common/src/utils/paginate/paginate.ts:73
↓ 3 callers
Function
nanoid
(size: number)
packages/common/src/utils/nanoid.ts:2
↓ 3 callers
Function
paginate
( query: PaginateQuery, repo: Repository<T> | SelectQueryBuilder<T>, config: PaginateConfig<T>, )
packages/common/src/utils/paginate/paginate.ts:162
↓ 3 callers
Method
stringifyParams
* Converts parameters to a string. * Sometimes parameters can have circular objects and therefor we are handle this case too.
packages/server/src/common/logger/type-orm.logger.ts:139
↓ 3 callers
Function
warpPaginated
( options: ApiResponseMetadata<T>, config?: PaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:300
↓ 2 callers
Function
Permission
( resource: string, name?: string, type: 'HTTP' | 'GraphQL' = 'HTTP', )
packages/server/src/auth/auth.utils.ts:105
↓ 2 callers
Function
User
()
packages/server/src/auth/auth.utils.ts:126
↓ 2 callers
Method
find
( @Args('parentId', { type: () => GraphQLString, nullable: true, }) id: string, )
packages/server/src/district/district.resolver.ts:17
↓ 2 callers
Method
findChildren
(parentId?: number)
packages/server/src/district/district.service.ts:25
↓ 2 callers
Function
generateSn
(prefix = '')
packages/common/src/utils/gen-sn.ts:3
↓ 2 callers
Function
getFilterTokens
(raw: string)
packages/common/src/utils/paginate/paginate.ts:96
↓ 2 callers
Function
isEntityKey
( entityColumns: Column<T>[], column: string, )
packages/common/src/utils/paginate/paginate.ts:176
↓ 2 callers
Function
loadFile
()
packages/server/src/common/utils/watch-file-loader.ts:101
↓ 2 callers
Method
register
(@Args('input') registerDto: AuthRegisterDto, @Context() context)
packages/server/src/auth/auth.resolver.ts:26
↓ 2 callers
Method
remove
(idOrIds: string | string[])
packages/server/src/role/role.service.ts:38
↓ 1 callers
Function
GqlAuth
(resource?: string, name?: string)
packages/server/src/auth/auth.utils.ts:88
↓ 1 callers
Function
IsStrongPassword
( isStrongPasswordOption?: isStrongPasswordOption, validationOptions?: ValidationOptions, )
packages/server/src/common/vaildator/IsStrongPassword.ts:6
↓ 1 callers
Function
JexlExpression
()
packages/common/src/decorator/jexl-expression.decorator.ts:6
↓ 1 callers
Function
bootstrap
()
packages/server/src/main.ts:121
↓ 1 callers
Function
createDeviceHash
( req: Request, append?: Record<string, any>, )
packages/server/src/common/utils/create-device-hash.ts:6
↓ 1 callers
Function
createGraphQLPaginateQuery
( config: IPaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:430
↓ 1 callers
Function
createGraphQLPaginateQueryFilter
( config: PaginateConfig<T>, name: string, )
packages/server/src/common/utils/warp-paginated.ts:414
↓ 1 callers
Function
createPassportContext
(request, response)
packages/server/src/auth/guard/auth.guard.ts:100
↓ 1 callers
Method
delete
(@Param('id') id: string)
packages/server/src/role/role.controller.ts:77
↓ 1 callers
Function
encryptPassword
(password: string)
packages/server/src/auth/auth.utils.ts:20
↓ 1 callers
Method
find
(query: PaginateQuery = {})
packages/server/src/user/user.service.ts:26
↓ 1 callers
Method
find
()
packages/server/src/permission/permission.service.ts:15
↓ 1 callers
Method
findAncestors
(childrenId: number)
packages/server/src/district/district.service.ts:65
↓ 1 callers
Method
findById
(id: string)
packages/server/src/user/user.service.ts:22
↓ 1 callers
Method
findById
(id: string)
packages/server/src/role/role.service.ts:26
↓ 1 callers
Method
findDescendants
(parentId?: number)
packages/server/src/district/district.service.ts:40
↓ 1 callers
Method
getAuthenticateOptions
( context: ExecutionContext, )
packages/server/src/auth/guard/auth.guard.ts:93
↓ 1 callers
Function
getPermissions
( user: Pick<UserEntity, 'permissions' | 'roles'>, )
packages/server/src/auth/auth.utils.ts:58
↓ 1 callers
Method
getRequest
(context: ExecutionContext)
packages/server/src/auth/guard/permission.guard.ts:73
↓ 1 callers
Function
getSearchOptions
(options: FileLoaderOptions)
packages/server/src/common/utils/watch-file-loader.ts:51
↓ 1 callers
Method
handleRequest
(err, user, info, context, status)
packages/server/src/auth/guard/auth.guard.ts:78
↓ 1 callers
Function
init
(app: NestApplication)
packages/server/src/main.ts:42
↓ 1 callers
Method
login
( { phoneNumber, email, password, fingerprint }: AuthLoginDto, req: Request, )
packages/server/src/auth/service/auth.service.ts:72
↓ 1 callers
Function
parseFilter
(query: PaginateQuery, config: PaginateConfig<T>)
packages/common/src/utils/paginate/paginate.ts:127
↓ 1 callers
Function
redisProxyHandler
( logger: Logger, )
packages/server/src/common/utils/redis-proxy-handler.ts:5
↓ 1 callers
Function
schemaValidator
(rawConfig: T)
packages/server/src/common/utils/schema-validator.ts:6
↓ 1 callers
Method
signToken
({ id }: UserEntity)
packages/server/src/auth/service/auth.service.ts:68
↓ 1 callers
Function
validate
(password: any)
packages/server/src/common/vaildator/IsStrongPassword.ts:29
↓ 1 callers
Function
verifyPassword
(hashPwd: string, password: string)
packages/server/src/auth/auth.utils.ts:29
↓ 1 callers
Function
warpGqlPaginated
( type: Type<T>, config: PaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:516
↓ 1 callers
Function
watchFileLoader
( options: FileLoaderOptions = {}, )
packages/server/src/common/utils/watch-file-loader.ts:85
Function
Fingerprint
()
packages/server/src/auth/auth.utils.ts:144
Function
Info
(token: string)
packages/server/src/redis-key.constants.ts:8
Function
LoginFailCount
(user: UserEntity)
packages/server/src/redis-key.constants.ts:13
Function
LoginLock
(user: UserEntity)
packages/server/src/redis-key.constants.ts:16
Function
Permissions
(user: UserEntity)
packages/server/src/redis-key.constants.ts:21
Function
Sign
()
packages/server/src/auth/auth.utils.ts:150
Function
apply
(target, thisArg: IORedis.Redis, argArray: Command[])
packages/server/src/common/utils/redis-proxy-handler.ts:13
Method
canActivate
(context: ExecutionContext)
packages/server/src/auth/guard/auth.guard.ts:19
Method
canActivate
(context: ExecutionContext)
packages/server/src/auth/guard/permission.guard.ts:29
Method
checkHeader
(field)
packages/server/src/common/middlewares/origin.middleware.ts:28
Method
clear
()
packages/server/src/permission/permission.service.ts:31
Method
configure
(consumer: MiddlewareConsumer)
packages/server/src/app.module.ts:114
Method
constructor
( private readonly userService: UserService, private readonly appConfig: AppConfig, )
packages/server/src/auth/jwt.strategy.ts:10
Method
constructor
( @InjectConnection() connection: Connection, )
packages/server/src/district/district.service.ts:18
Method
constructor
(private options?: LoggerOptions)
packages/server/src/common/logger/type-orm.logger.ts:11
Method
constructor
( response: CommonResponseMessage, code?: number, statusCode?: HttpStatus, )
packages/common/src/exception/common.exception.ts:11
Method
constructor
(error?: any)
packages/common/src/exception/validation.exception.ts:16
Method
create
(@Body() role: RoleCreateDto)
packages/server/src/role/role.controller.ts:63
Method
deleteMany
(@Body() ids: string[])
packages/server/src/role/role.controller.ts:84
Method
enableOtpStep1
(@User() user: UserEntity)
packages/server/src/auth/controller/otp.controller.ts:28
Method
enableOtpStep1
(user: UserEntity)
packages/server/src/auth/service/otp.service.ts:27
Method
enableOtpStep2
(@User() user: UserEntity, @Body() dto: AuthEnableOtpStep2Dto)
packages/server/src/auth/controller/otp.controller.ts:44
Method
enableOtpStep2
(user: UserEntity, dto: AuthEnableOtpStep2Dto)
packages/server/src/auth/service/otp.service.ts:63
Method
find
(@Param('parentId') id?: string)
packages/server/src/district/district.controller.ts:19
Method
find
(@Paginate() query: PaginateQuery, @Req() req: Request)
packages/server/src/user/user.controller.ts:33
Method
find
( @Args('query', { type: () => findArgs, nullable: true, }) query: PaginateQuery, )
packages/server/src/user/user.resolver.ts:26
Method
find
()
packages/server/src/permission/permission.controller.ts:32
Method
find
(@Paginate() query: PaginateQuery)
packages/server/src/role/role.controller.ts:49
Method
find
(query: PaginateQuery = {})
packages/server/src/role/role.service.ts:22
Method
findAncestors
(@Param('childrenId') id: string)
packages/server/src/district/district.controller.ts:38
Method
findDescendants
(@Param('parentId') id?: string)
packages/server/src/district/district.controller.ts:29
next →
1–100 of 152, ranked by callers