MCPcopy Create free account

hub / github.com/Braineanear/EcommerceAPI / functions

Functions293 in github.com/Braineanear/EcommerceAPI

↓ 48 callersMethodfindById
(id: string | Types.ObjectId)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:7
↓ 37 callersMethodcreate
(doc: Partial<T>)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:6
↓ 29 callersFunctionRoles
(...roles: RoleTypeEnum[])
monolithic/src/app/shared/decorators/roles.decorator.ts:6
↓ 22 callersMethoddeleteById
(id: string | Types.ObjectId)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:13
↓ 18 callersMethodfindOne
(filter: object)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:8
↓ 17 callersMethodupdateById
(id: string | Types.ObjectId, update: Partial<T>)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:10
↓ 13 callersFunctionAllowAnonymous
()
monolithic/src/app/shared/decorators/public.decorator.ts:5
↓ 13 callersMethodsave
(doc: T)
monolithic/src/app/shared/repositories/base.repository.ts:15
↓ 10 callersMethodfindPaginated
( filter: object, paginateOptions: IPaginateOptions, )
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:16
↓ 8 callersMethodhandleError
(e: any, methodName: string)
monolithic/src/app/shared/aws/aws.service.ts:56
↓ 7 callersMethoddeleteOne
(filter: object)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:14
↓ 6 callersMethodfind
(filter: object)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:9
↓ 6 callersMethods3DeleteItemInBucket
(filename: string)
monolithic/src/app/shared/aws/aws.service.ts:134
↓ 5 callersMethods3PutItemInBucket
( filename: string, content: Buffer | string, options: { path?: string; acl?: ObjectCa
monolithic/src/app/shared/aws/aws.service.ts:109
↓ 4 callersFunctionUploadFileSingle
(field: string, type: ENUM_FILE_TYPE)
monolithic/src/app/shared/decorators/file.decorator.ts:6
↓ 4 callersMethodfindById
(id: string | Types.ObjectId, user?: any)
monolithic/src/app/modules/product/product.service.ts:175
↓ 4 callersMethodgenerateToken
( user: UserDocument, expires: moment.Moment, type: TokenTypes, secret: string, )
monolithic/src/app/modules/auth/auth.service.ts:50
↓ 4 callersMethodsendEmail
(to: string, subject: string, text: string)
monolithic/src/app/shared/services/mail.service.ts:48
↓ 3 callersMethodgenerateAuthTokens
(user: UserDocument)
monolithic/src/app/modules/auth/auth.service.ts:80
↓ 3 callersMethodpaginate
( filter: object, paginateOptions: IPaginateOptions, )
monolithic/src/app/shared/interfaces/i-base-repository.interface.ts:16
↓ 3 callersMethodsaveToken
( token: string, userId: Types.ObjectId, expires: moment.Moment, type: TokenTypes, )
monolithic/src/app/modules/auth/auth.service.ts:66
↓ 3 callersMethodverifyToken
(token: string, type: TokenTypes)
monolithic/src/app/modules/auth/auth.service.ts:126
↓ 2 callersMethoddebug
({ description, user, tags, }: CreateLoggerDto)
monolithic/src/app/shared/logger/logger.service.ts:36
↓ 2 callersMethoddeleteMany
(filter: object)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:15
↓ 2 callersMethodrefreshTokenExistance
(user: UserDocument)
monolithic/src/app/modules/auth/auth.service.ts:35
↓ 2 callersMethodremoveTranslations
(doc: any)
monolithic/src/app/shared/services/translation.service.ts:50
↓ 2 callersMethodtranslate
(doc: ITranslationDocument | any, language: string)
monolithic/src/app/shared/services/translation.service.ts:9
↓ 2 callersMethodupdateMany
(filter: object, update: Partial<T>)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:12
↓ 2 callersMethodupdateOne
(filter: object, update: Partial<T>)
monolithic/src/app/shared/interfaces/i-base-service.interface.ts:11
↓ 2 callersMethodvalidateFile
(file: Express.Multer.File)
monolithic/src/app/shared/interceptors/file-image.interceptor.ts:49
↓ 1 callersFunctionUploadFileMultiple
(field: string, type: ENUM_FILE_TYPE)
monolithic/src/app/shared/decorators/file.decorator.ts:16
↓ 1 callersMethodaddProductToCart
(doc: CreateCartDto, user: string)
monolithic/src/app/modules/cart/cart.service.ts:30
↓ 1 callersFunctionbootstrap
()
monolithic/src/main.ts:11
↓ 1 callersMethodcachePayment
( createOrderDTO: Partial<OrderDocument>, cart: CartDocument, userID: Types.ObjectId, )
monolithic/src/app/modules/order/order.service.ts:38
↓ 1 callersMethodcartProductCount
(productId: string, user: string)
monolithic/src/app/modules/cart/cart.service.ts:219
↓ 1 callersMethodcreateTransport
()
monolithic/src/app/shared/services/mail.service.ts:24
↓ 1 callersMethoddeleteCart
(user: string | Types.ObjectId)
monolithic/src/app/modules/cart/cart.service.ts:207
↓ 1 callersMethoddetermineLanguage
(request: any)
monolithic/src/app/shared/interceptors/translate.interceptor.ts:20
↓ 1 callersMethoderror
({ description, user, tags, }: CreateLoggerDto)
monolithic/src/app/shared/logger/logger.service.ts:72
↓ 1 callersMethodextractTokenFromHeader
(request: Request)
monolithic/src/app/shared/guards/auth.guard.ts:46
↓ 1 callersMethodfindFavorites
( filter: object, paginateOptions: IPaginateOptions, user: UserDocument, )
monolithic/src/app/modules/favorite/favorite.service.ts:23
↓ 1 callersMethodformatErrors
(errors: any[])
monolithic/src/app/shared/pipes/validation.pipe.ts:30
↓ 1 callersMethodgenerateResetPasswordToken
(email: string)
monolithic/src/app/modules/auth/auth.service.ts:151
↓ 1 callersMethodgenerateVerifyEmailToken
(user: UserDocument)
monolithic/src/app/modules/auth/auth.service.ts:209
↓ 1 callersMethodgetAuthenticatedUser
( email: string, plainTextPassword: string, )
monolithic/src/app/modules/auth/auth.service.ts:192
↓ 1 callersMethodgetTranslation
(doc: any, language: string)
monolithic/src/app/shared/services/translation.service.ts:42
↓ 1 callersMethodhasKeyPattern
(error: MongoError)
monolithic/src/app/shared/filters/mongo-driver-error.filter.ts:58
↓ 1 callersMethodisValidMimeType
(mimetype: string)
monolithic/src/app/shared/interceptors/file-image.interceptor.ts:75
↓ 1 callersMethodparseError
(error: MongoErrorWithDetails)
monolithic/src/app/shared/filters/mongoose-error.filter.ts:49
↓ 1 callersMethodparseError
(error: MongoError)
monolithic/src/app/shared/filters/mongo-driver-error.filter.ts:40
↓ 1 callersMethodqueryCart
(user: string)
monolithic/src/app/modules/cart/cart.service.ts:197
↓ 1 callersMethods3CreateBucket
()
monolithic/src/app/shared/aws/aws.service.ts:162
↓ 1 callersMethods3ListBucket
()
monolithic/src/app/shared/aws/aws.service.ts:61
↓ 1 callersMethodsendAfterResetPasswordEmail
(to: string)
monolithic/src/app/shared/services/mail.service.ts:71
↓ 1 callersMethodsendResetPasswordEmail
(to: string, token: string)
monolithic/src/app/shared/services/mail.service.ts:61
↓ 1 callersMethodsendVerifyEmail
(to: string, token: string)
monolithic/src/app/shared/services/mail.service.ts:79
↓ 1 callersMethodstreamToBuffer
(stream: Readable)
monolithic/src/app/shared/aws/aws.service.ts:100
↓ 1 callersMethodstripePayment
( createOrderDTO: Partial<OrderDocument>, cart: CartDocument, userID: Types.ObjectId, )
monolithic/src/app/modules/order/order.service.ts:85
↓ 1 callersMethodtoValidate
(metatype: Function)
monolithic/src/app/shared/pipes/validation.pipe.ts:38
↓ 1 callersMethodtranslateDocs
( docs: ITranslationDocument[] | ITranslationModel[], language: string, )
monolithic/src/app/shared/services/translation.service.ts:28
↓ 1 callersMethodtranslateResponse
(data: any, language: string)
monolithic/src/app/shared/interceptors/translate.interceptor.ts:35
↓ 1 callersMethoduploadImage
( id: string | Types.ObjectId, file: Express.Multer.File, )
monolithic/src/app/modules/user/user.service.ts:45
↓ 1 callersMethoduploadImage
( id: string | Types.ObjectId, file: Express.Multer.File, )
monolithic/src/app/modules/category/category.service.ts:32
↓ 1 callersMethoduploadImages
( id: string | Types.ObjectId, files: Express.Multer.File[], )
monolithic/src/app/modules/product/product.service.ts:98
↓ 1 callersMethoduse
(request: Request, response: Response, next: NextFunction)
monolithic/src/app/shared/middlewares/http-logger.middleware.ts:8
↓ 1 callersMethoduserExistance
(email: string)
monolithic/src/app/modules/auth/auth.service.ts:42
↓ 1 callersFunctionvalidate
(value: any, _args: ValidationArguments)
monolithic/src/app/shared/decorators/validators.decorator.ts:12
↓ 1 callersMethodvalidateFiles
(files: Express.Multer.File[])
monolithic/src/app/shared/interceptors/file-image.interceptor.ts:34
↓ 1 callersMethodverifyPassword
( plainTextPassword: string, hashedPassword: string, )
monolithic/src/app/modules/auth/auth.service.ts:181
FunctionIsPassword
(validationOptions?: ValidationOptions)
monolithic/src/app/shared/decorators/validators.decorator.ts:3
MethodaddItemToCart
(@Body() data: CreateCartDto, @AuthUser() user: any)
monolithic/src/app/modules/cart/cart.controller.ts:57
Methodaggregate
(pipeline: any[])
monolithic/src/app/shared/repositories/base.repository.ts:70
MethodcanActivate
(context: ExecutionContext)
monolithic/src/app/shared/guards/auth.guard.ts:19
MethodcanActivate
(context: ExecutionContext)
monolithic/src/app/shared/guards/roles.guard.ts:9
MethodcancelOrder
(user: UserDocument, id: Types.ObjectId | string)
monolithic/src/app/modules/order/order.service.ts:262
MethodcancelOrder
(@Param('id') id: string, @AuthUser() user: any)
monolithic/src/app/modules/order/order.controller.ts:58
Methodcatch
(exception: MongoError, host: ArgumentsHost)
monolithic/src/app/shared/filters/mongoose-error.filter.ts:27
Methodcatch
(exception: MongoError, host: ArgumentsHost)
monolithic/src/app/shared/filters/mongo-driver-error.filter.ts:25
Methodcatch
(exception: HttpException, host: ArgumentsHost)
monolithic/src/app/shared/filters/http-exception.filter.ts:19
MethodchangeOrderStatus
(id: Types.ObjectId | string, status: ORDER_STATUS)
monolithic/src/app/modules/order/order.service.ts:174
MethodchangeOrderStatus
(@Param('id') id: string, @Body() data: { status: ORDER_STATUS })
monolithic/src/app/modules/order/order.controller.ts:43
Methodconfigure
(consumer: MiddlewareConsumer)
monolithic/src/app/app.module.ts:117
Methodconstructor
(private readonly service: BrandService)
monolithic/src/app/modules/brand/brand.controller.ts:41
Methodconstructor
(protected readonly repository: BrandRepository)
monolithic/src/app/modules/brand/brand.service.ts:9
Methodconstructor
( @InjectModel(Brand.name) protected readonly model: PaginateModel<BrandDocument>, )
monolithic/src/app/modules/brand/repositories/brand.repository.ts:11
Methodconstructor
(protected repository: ImageRepository)
monolithic/src/app/modules/image/image.service.ts:9
Methodconstructor
( @InjectModel(Image.name) protected readonly model: PaginateModel<ImageDocument>, )
monolithic/src/app/modules/image/repositories/image.repository.ts:11
Methodconstructor
( private readonly userRepository: UserRepository, private readonly tokenRepository: TokenRepository,
monolithic/src/app/modules/auth/auth.service.ts:27
Methodconstructor
(private authService: AuthService)
monolithic/src/app/modules/auth/auth.controller.ts:32
Methodconstructor
(private readonly service: ProductService)
monolithic/src/app/modules/product/product.controller.ts:48
Methodconstructor
( protected readonly repository: ProductRepository, protected readonly awsService: AwsS3Service, p
monolithic/src/app/modules/product/product.service.ts:24
Methodconstructor
( @InjectModel(Product.name) protected readonly model: PaginateModel<ProductDocument>, )
monolithic/src/app/modules/product/repositories/product.repository.ts:9
Methodconstructor
(private readonly service: UserService)
monolithic/src/app/modules/user/user.controller.ts:51
Methodconstructor
( protected readonly repository: UserRepository, protected readonly awsService: AwsS3Service, prot
monolithic/src/app/modules/user/user.service.ts:16
Methodconstructor
( @InjectModel(User.name) protected readonly model: PaginateModel<UserDocument>, )
monolithic/src/app/modules/user/repositories/user.repository.ts:11
Methodconstructor
( @InjectModel(Token.name) protected readonly model: PaginateModel<TokenDocument>, )
monolithic/src/app/modules/token/repositories/token.repository.ts:11
Methodconstructor
(protected readonly repository: SizeRepository)
monolithic/src/app/modules/size/size.service.ts:9
Methodconstructor
(private readonly service: SizeService)
monolithic/src/app/modules/size/size.controller.ts:17
Methodconstructor
( @InjectModel(Size.name) protected readonly model: PaginateModel<SizeDocument>, )
monolithic/src/app/modules/size/repositories/size.repository.ts:11
Methodconstructor
(private readonly service: CategoryService)
monolithic/src/app/modules/category/category.controller.ts:43
next →1–100 of 293, ranked by callers