MCPcopy Create free account

hub / github.com/Yuuki-Sakura/nest-shop / functions

Functions152 in github.com/Yuuki-Sakura/nest-shop

↓ 30 callersMethodlog
(level: 'log' | 'info' | 'warn', message: any)
packages/server/src/common/logger/type-orm.logger.ts:12
↓ 26 callersFunctionDecimalTransformer
(decimalPlaces = 2)
packages/common/src/transformer/decimal.transformer.ts:4
↓ 26 callersFunctionToDecimal
()
packages/common/src/decorator/decimal.decorator.ts:4
↓ 23 callersMethodcreate
(role: RoleCreateDto)
packages/server/src/role/role.service.ts:30
↓ 20 callersFunctionTimestamp
( options?: ColumnCommonOptions & ColumnWithWidthOptions, )
packages/common/src/decorator/timestamp.decorator.ts:8
↓ 17 callersFunctionSpan
(typeName?: string)
packages/server/src/common/decorator/span.decorator.ts:7
↓ 15 callersFunctionAuth
(resource?: string, name?: string)
packages/server/src/auth/auth.utils.ts:77
↓ 12 callersMethodsave
(permission: PermissionCreateDto)
packages/server/src/permission/permission.service.ts:27
↓ 10 callersMethodfindOne
(conditions?: FindConditions<Permission>)
packages/server/src/permission/permission.service.ts:23
↓ 9 callersMethodgetRequest
(context: ExecutionContext)
packages/server/src/auth/guard/auth.guard.ts:53
↓ 9 callersFunctionwarpResponse
( options: ApiResponseMetadata<T>, )
packages/server/src/common/utils/warp-response.ts:12
↓ 6 callersMethodgetResponse
(context: ExecutionContext)
packages/server/src/auth/guard/auth.guard.ts:61
↓ 5 callersFunctionMessage
(successMessageKey: string)
packages/server/src/common/decorator/message.decorator.ts:8
↓ 5 callersFunctionbuildLink
(p: number)
packages/common/src/utils/paginate/paginate.ts:300
↓ 5 callersFunctionisOperator
(value: unknown)
packages/common/src/utils/paginate/paginate.ts:69
↓ 5 callersMethoduse
(request: Request, response: Response, next: () => void)
packages/server/src/common/middlewares/origin.middleware.ts:24
↓ 4 callersFunctionToken
()
packages/server/src/auth/auth.utils.ts:132
↓ 4 callersFunctioncreate
(type: Type<T>, source: Partial<T>)
packages/server/src/common/utils/create.util.ts:4
↓ 4 callersMethodfindOneByPhoneOrEmail
(phoneOrEmail: string)
packages/server/src/user/user.service.ts:34
↓ 4 callersMethodupdate
(role: RoleUpdateDto)
packages/server/src/role/role.service.ts:34
↓ 3 callersFunctionPaginate
(options?: PaginateOptions)
packages/common/src/utils/paginate/decorator.ts:19
↓ 3 callersMethodcatch
( exception: HttpException | CommonException | Error, host: ArgumentsHost, )
packages/server/src/common/filters/exception.filter.ts:29
↓ 3 callersFunctioncreateSwaggerPaginateQuery
( config: IPaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:212
↓ 3 callersFunctiongetOperatorFn
( op: FilterOperator, )
packages/common/src/utils/paginate/paginate.ts:73
↓ 3 callersFunctionnanoid
(size: number)
packages/common/src/utils/nanoid.ts:2
↓ 3 callersFunctionpaginate
( query: PaginateQuery, repo: Repository<T> | SelectQueryBuilder<T>, config: PaginateConfig<T>, )
packages/common/src/utils/paginate/paginate.ts:162
↓ 3 callersMethodstringifyParams
* 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 callersFunctionwarpPaginated
( options: ApiResponseMetadata<T>, config?: PaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:300
↓ 2 callersFunctionPermission
( resource: string, name?: string, type: 'HTTP' | 'GraphQL' = 'HTTP', )
packages/server/src/auth/auth.utils.ts:105
↓ 2 callersFunctionUser
()
packages/server/src/auth/auth.utils.ts:126
↓ 2 callersMethodfind
( @Args('parentId', { type: () => GraphQLString, nullable: true, }) id: string, )
packages/server/src/district/district.resolver.ts:17
↓ 2 callersMethodfindChildren
(parentId?: number)
packages/server/src/district/district.service.ts:25
↓ 2 callersFunctiongenerateSn
(prefix = '')
packages/common/src/utils/gen-sn.ts:3
↓ 2 callersFunctiongetFilterTokens
(raw: string)
packages/common/src/utils/paginate/paginate.ts:96
↓ 2 callersFunctionisEntityKey
( entityColumns: Column<T>[], column: string, )
packages/common/src/utils/paginate/paginate.ts:176
↓ 2 callersFunctionloadFile
()
packages/server/src/common/utils/watch-file-loader.ts:101
↓ 2 callersMethodregister
(@Args('input') registerDto: AuthRegisterDto, @Context() context)
packages/server/src/auth/auth.resolver.ts:26
↓ 2 callersMethodremove
(idOrIds: string | string[])
packages/server/src/role/role.service.ts:38
↓ 1 callersFunctionGqlAuth
(resource?: string, name?: string)
packages/server/src/auth/auth.utils.ts:88
↓ 1 callersFunctionIsStrongPassword
( isStrongPasswordOption?: isStrongPasswordOption, validationOptions?: ValidationOptions, )
packages/server/src/common/vaildator/IsStrongPassword.ts:6
↓ 1 callersFunctionJexlExpression
()
packages/common/src/decorator/jexl-expression.decorator.ts:6
↓ 1 callersFunctionbootstrap
()
packages/server/src/main.ts:121
↓ 1 callersFunctioncreateDeviceHash
( req: Request, append?: Record<string, any>, )
packages/server/src/common/utils/create-device-hash.ts:6
↓ 1 callersFunctioncreateGraphQLPaginateQuery
( config: IPaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:430
↓ 1 callersFunctioncreateGraphQLPaginateQueryFilter
( config: PaginateConfig<T>, name: string, )
packages/server/src/common/utils/warp-paginated.ts:414
↓ 1 callersFunctioncreatePassportContext
(request, response)
packages/server/src/auth/guard/auth.guard.ts:100
↓ 1 callersMethoddelete
(@Param('id') id: string)
packages/server/src/role/role.controller.ts:77
↓ 1 callersFunctionencryptPassword
(password: string)
packages/server/src/auth/auth.utils.ts:20
↓ 1 callersMethodfind
(query: PaginateQuery = {})
packages/server/src/user/user.service.ts:26
↓ 1 callersMethodfind
()
packages/server/src/permission/permission.service.ts:15
↓ 1 callersMethodfindAncestors
(childrenId: number)
packages/server/src/district/district.service.ts:65
↓ 1 callersMethodfindById
(id: string)
packages/server/src/user/user.service.ts:22
↓ 1 callersMethodfindById
(id: string)
packages/server/src/role/role.service.ts:26
↓ 1 callersMethodfindDescendants
(parentId?: number)
packages/server/src/district/district.service.ts:40
↓ 1 callersMethodgetAuthenticateOptions
( context: ExecutionContext, )
packages/server/src/auth/guard/auth.guard.ts:93
↓ 1 callersFunctiongetPermissions
( user: Pick<UserEntity, 'permissions' | 'roles'>, )
packages/server/src/auth/auth.utils.ts:58
↓ 1 callersMethodgetRequest
(context: ExecutionContext)
packages/server/src/auth/guard/permission.guard.ts:73
↓ 1 callersFunctiongetSearchOptions
(options: FileLoaderOptions)
packages/server/src/common/utils/watch-file-loader.ts:51
↓ 1 callersMethodhandleRequest
(err, user, info, context, status)
packages/server/src/auth/guard/auth.guard.ts:78
↓ 1 callersFunctioninit
(app: NestApplication)
packages/server/src/main.ts:42
↓ 1 callersMethodlogin
( { phoneNumber, email, password, fingerprint }: AuthLoginDto, req: Request, )
packages/server/src/auth/service/auth.service.ts:72
↓ 1 callersFunctionparseFilter
(query: PaginateQuery, config: PaginateConfig<T>)
packages/common/src/utils/paginate/paginate.ts:127
↓ 1 callersFunctionredisProxyHandler
( logger: Logger, )
packages/server/src/common/utils/redis-proxy-handler.ts:5
↓ 1 callersFunctionschemaValidator
(rawConfig: T)
packages/server/src/common/utils/schema-validator.ts:6
↓ 1 callersMethodsignToken
({ id }: UserEntity)
packages/server/src/auth/service/auth.service.ts:68
↓ 1 callersFunctionvalidate
(password: any)
packages/server/src/common/vaildator/IsStrongPassword.ts:29
↓ 1 callersFunctionverifyPassword
(hashPwd: string, password: string)
packages/server/src/auth/auth.utils.ts:29
↓ 1 callersFunctionwarpGqlPaginated
( type: Type<T>, config: PaginateConfig<T>, )
packages/server/src/common/utils/warp-paginated.ts:516
↓ 1 callersFunctionwatchFileLoader
( options: FileLoaderOptions = {}, )
packages/server/src/common/utils/watch-file-loader.ts:85
FunctionFingerprint
()
packages/server/src/auth/auth.utils.ts:144
FunctionInfo
(token: string)
packages/server/src/redis-key.constants.ts:8
FunctionLoginFailCount
(user: UserEntity)
packages/server/src/redis-key.constants.ts:13
FunctionLoginLock
(user: UserEntity)
packages/server/src/redis-key.constants.ts:16
FunctionPermissions
(user: UserEntity)
packages/server/src/redis-key.constants.ts:21
FunctionSign
()
packages/server/src/auth/auth.utils.ts:150
Functionapply
(target, thisArg: IORedis.Redis, argArray: Command[])
packages/server/src/common/utils/redis-proxy-handler.ts:13
MethodcanActivate
(context: ExecutionContext)
packages/server/src/auth/guard/auth.guard.ts:19
MethodcanActivate
(context: ExecutionContext)
packages/server/src/auth/guard/permission.guard.ts:29
MethodcheckHeader
(field)
packages/server/src/common/middlewares/origin.middleware.ts:28
Methodclear
()
packages/server/src/permission/permission.service.ts:31
Methodconfigure
(consumer: MiddlewareConsumer)
packages/server/src/app.module.ts:114
Methodconstructor
( private readonly userService: UserService, private readonly appConfig: AppConfig, )
packages/server/src/auth/jwt.strategy.ts:10
Methodconstructor
( @InjectConnection() connection: Connection, )
packages/server/src/district/district.service.ts:18
Methodconstructor
(private options?: LoggerOptions)
packages/server/src/common/logger/type-orm.logger.ts:11
Methodconstructor
( response: CommonResponseMessage, code?: number, statusCode?: HttpStatus, )
packages/common/src/exception/common.exception.ts:11
Methodconstructor
(error?: any)
packages/common/src/exception/validation.exception.ts:16
Methodcreate
(@Body() role: RoleCreateDto)
packages/server/src/role/role.controller.ts:63
MethoddeleteMany
(@Body() ids: string[])
packages/server/src/role/role.controller.ts:84
MethodenableOtpStep1
(@User() user: UserEntity)
packages/server/src/auth/controller/otp.controller.ts:28
MethodenableOtpStep1
(user: UserEntity)
packages/server/src/auth/service/otp.service.ts:27
MethodenableOtpStep2
(@User() user: UserEntity, @Body() dto: AuthEnableOtpStep2Dto)
packages/server/src/auth/controller/otp.controller.ts:44
MethodenableOtpStep2
(user: UserEntity, dto: AuthEnableOtpStep2Dto)
packages/server/src/auth/service/otp.service.ts:63
Methodfind
(@Param('parentId') id?: string)
packages/server/src/district/district.controller.ts:19
Methodfind
(@Paginate() query: PaginateQuery, @Req() req: Request)
packages/server/src/user/user.controller.ts:33
Methodfind
( @Args('query', { type: () => findArgs, nullable: true, }) query: PaginateQuery, )
packages/server/src/user/user.resolver.ts:26
Methodfind
()
packages/server/src/permission/permission.controller.ts:32
Methodfind
(@Paginate() query: PaginateQuery)
packages/server/src/role/role.controller.ts:49
Methodfind
(query: PaginateQuery = {})
packages/server/src/role/role.service.ts:22
MethodfindAncestors
(@Param('childrenId') id: string)
packages/server/src/district/district.controller.ts:38
MethodfindDescendants
(@Param('parentId') id?: string)
packages/server/src/district/district.controller.ts:29
next →1–100 of 152, ranked by callers