repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/security/authorization-checker/index.ts
src/app/security/authorization-checker/index.ts
export * from './authorization-checker.interface'; export * from './authorization-checker';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/security/authorization-checker/authorization-checker.interface.ts
src/app/security/authorization-checker/authorization-checker.interface.ts
export interface AuthorizationCheckerInterface { isGranted(attributes: any[], subject?: any): Promise<boolean>; }
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/request-context.ts
src/app/_helpers/request-context.ts
import {Response, Request} from 'express'; import uuid from 'uuid'; import cls from 'cls-hooked'; import {UserEntity} from '../user/entity'; export class RequestContext { public static nsid = uuid.v4(); public readonly id: number; public request: Request; public response: Response; constructor(request: Request,...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/index.ts
src/app/_helpers/index.ts
import * as crypto from 'crypto'; import {config} from '../../config'; export * from './mail'; export * from './sms'; export * from './sms/sms-options.interface'; export * from './entity'; export * from './filters'; export * from './database'; export * from './graphql'; export * from './rest.exception'; export * from ...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/rest.exception.ts
src/app/_helpers/rest.exception.ts
import {HttpException, HttpStatus} from '@nestjs/common'; export interface RestExceptionResponse { error: string; message: string; condition: number; } export class RestException extends HttpException { constructor(response: RestExceptionResponse, status: number = HttpStatus.BAD_REQUEST) { super(response, statu...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/push/index.ts
src/app/_helpers/push/index.ts
import admin from 'firebase-admin'; import {config} from '../../../config'; import {AppLogger} from '../../app.logger'; import MessagingPayload = admin.messaging.MessagingPayload; const logger = new AppLogger(`FirebasePush`); admin.initializeApp({ credential: admin.credential.cert(config.firebase as any) }); export...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/decorators/user.decorator.ts
src/app/_helpers/decorators/user.decorator.ts
import { createParamDecorator } from '@nestjs/common'; export const User = createParamDecorator((data, req) => { return req.user; });
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/decorators/profile.decorator.ts
src/app/_helpers/decorators/profile.decorator.ts
import { createParamDecorator } from '@nestjs/common'; export const Profile = createParamDecorator((data, req) => { return req.user; });
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/decorators/index.ts
src/app/_helpers/decorators/index.ts
export * from './profile.decorator'; export * from './user.decorator';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/mail/index.ts
src/app/_helpers/mail/index.ts
import {createTransport, SendMailOptions, SentMessageInfo} from 'nodemailer'; import {TwingEnvironment, TwingLoaderFilesystem} from 'twing'; import {config} from '../../../config'; export async function mail(options: SendMailOptions): Promise<SentMessageInfo> { const transporter = createTransport({ host: config.aws...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/middleware/request-context.middleware.ts
src/app/_helpers/middleware/request-context.middleware.ts
import {Injectable, MiddlewareFunction, NestMiddleware} from '@nestjs/common'; import cls from 'cls-hooked'; import {RequestContext} from '../request-context'; @Injectable() export class RequestContextMiddleware implements NestMiddleware { resolve(): MiddlewareFunction { return(req, res, next) => { const request...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/graphql/user.decorator.ts
src/app/_helpers/graphql/user.decorator.ts
import { createParamDecorator } from '@nestjs/common'; export const User = createParamDecorator((data, [root, args, ctx, info]) => { return ctx.req.user; });
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/graphql/gql-config.service.ts
src/app/_helpers/graphql/gql-config.service.ts
import {Injectable} from '@nestjs/common'; import {GqlModuleOptions, GqlOptionsFactory} from '@nestjs/graphql'; import auth_hdr from 'passport-jwt/lib/auth_header'; import {join} from 'path'; import {has} from 'lodash'; import {config} from '../../../config'; import {AppLogger} from '../../app.logger'; import {TokenDto...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/graphql/graphql.guard.ts
src/app/_helpers/graphql/graphql.guard.ts
import {ExecutionContext, Injectable} from '@nestjs/common'; import {GqlExecutionContext} from '@nestjs/graphql'; import {AuthGuard} from '@nestjs/passport'; import {ExecutionContextHost} from '@nestjs/core/helpers/execution-context.host'; import {Observable} from 'rxjs'; @Injectable() export class GraphqlGuard extend...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/graphql/index.ts
src/app/_helpers/graphql/index.ts
export * from './graphql.guard'; export * from './user.decorator'; export * from './gql-config.service';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/entity/extended-entity.ts
src/app/_helpers/entity/extended-entity.ts
import {ApiModelProperty} from '@nestjs/swagger'; import {BaseEntity, Column} from 'typeorm'; import {DateTime} from 'luxon'; export class ExtendedEntity extends BaseEntity { public id?: string; @Column() public isDeleted = false; @ApiModelProperty() @Column() public createdAt: DateTime; @ApiModelProperty() ...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/entity/index.ts
src/app/_helpers/entity/index.ts
export * from './extended-entity';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/filters/http-exception.filter.ts
src/app/_helpers/filters/http-exception.filter.ts
import {ArgumentsHost, Catch, ExceptionFilter, HttpException, HttpStatus} from '@nestjs/common'; import {AppLogger} from '../../app.logger'; @Catch(HttpException) export class HttpExceptionFilter implements ExceptionFilter { private logger = new AppLogger(HttpExceptionFilter.name); catch(exception: HttpException, h...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/filters/twig-exception.filter.ts
src/app/_helpers/filters/twig-exception.filter.ts
import {ArgumentsHost, Catch, ExceptionFilter, HttpException, HttpStatus} from '@nestjs/common'; import {AppLogger} from '../../app.logger'; import {TwingError, TwingErrorLoader} from 'twing'; @Catch(TwingErrorLoader) export class TwigExceptionFilter implements ExceptionFilter { private logger = new AppLogger(TwingEr...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/filters/index.ts
src/app/_helpers/filters/index.ts
export * from './http-exception.filter'; export * from './twig-exception.filter';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/database/deep-partial.ts
src/app/_helpers/database/deep-partial.ts
export type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]>; };
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/database/typeorm-filter.mapper.ts
src/app/_helpers/database/typeorm-filter.mapper.ts
import {FindManyOptions} from 'typeorm'; const arrayToObject = (arr) => Object.assign({}, ...arr.map(item => ({...item}))); export function typeormFilterMapper(options: FindManyOptions) { const filters = options.where; const where = {}; Object.keys(filters).forEach(filterName => { const operators = filters[filte...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/database/index.ts
src/app/_helpers/database/index.ts
export * from './deep-partial'; export * from './repository.interface'; export * from './typeorm-filter.mapper';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/database/repository.interface.ts
src/app/_helpers/database/repository.interface.ts
import {DeepPartial} from './deep-partial'; export interface Repository<T> { find(options): Promise<T[]>; findOneOrFail(id: string|number): Promise<T>; findOne(cond): Promise<T>; create(model: DeepPartial<T>): T; save(model: T): Promise<T>; bulkSave(models: DeepPartial<T[]>): Promise<T[]>; delete(id: string): P...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/sms/SMSType.enum.ts
src/app/_helpers/sms/SMSType.enum.ts
export enum SMSTypeEnum { PROMOTIONAL = 'Promotional', TRANSACTIONAL = 'Transactional' }
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/sms/sms-options.interface.ts
src/app/_helpers/sms/sms-options.interface.ts
import {SMSTypeEnum} from './SMSType.enum'; export interface SmsOptionsInterface { sender: string; message: string; phoneNumber: string; smsType: SMSTypeEnum; }
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/_helpers/sms/index.ts
src/app/_helpers/sms/index.ts
import SNS from 'aws-sdk/clients/sns'; import {SmsOptionsInterface} from './sms-options.interface'; export async function sms(options: SmsOptionsInterface) { return new Promise((resolve, reject) => { const sns = new SNS(); sns.setSMSAttributes({ attributes: { DefaultSenderID: options.sender, DefaultSMS...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.controller.ts
src/app/home-favorite/home-favorite.controller.ts
import {Controller} from '@nestjs/common'; import {Client, ClientProxy, MessagePattern, Transport} from '@nestjs/microservices'; import {AppLogger} from '../app.logger'; import {HOME_CMD_DELETE} from '../home/home.constants'; import {HomeFavoriteService} from './home-favorite.service'; import {HomeEntity} from '../home...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.constants.ts
src/app/home-favorite/home-favorite.constants.ts
export const HOME_FAVORITE_TOKEN = 'HomeFavoriteRepositoryToken';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.providers.ts
src/app/home-favorite/home-favorite.providers.ts
import {DB_CON_TOKEN} from '../database/database.constants'; import {HomeFavoriteEntity} from './entity'; import {HOME_FAVORITE_TOKEN} from './home-favorite.constants'; import {Connection} from 'typeorm'; export const homeFavoriteProviders = [ { provide: HOME_FAVORITE_TOKEN, useFactory: (connection: Connection) =...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.module.ts
src/app/home-favorite/home-favorite.module.ts
import {forwardRef, Module} from '@nestjs/common'; import {HomeModule} from '../home/home.module'; import {HomeFavoriteService} from './home-favorite.service'; import {HomeFavoriteResolver} from './home-favorite.resolver'; import {homeFavoriteProviders} from './home-favorite.providers'; import {DatabaseModule} from '.....
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.guard.ts
src/app/home-favorite/home-favorite.guard.ts
import {CanActivate, ExecutionContext, Injectable} from '@nestjs/common'; import {GqlExecutionContext} from '@nestjs/graphql'; @Injectable() export class HomeFavoriteGuard implements CanActivate { canActivate(context: ExecutionContext): boolean { const ctx = GqlExecutionContext.create(context); return true; } }
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.resolver.ts
src/app/home-favorite/home-favorite.resolver.ts
import {UseGuards} from '@nestjs/common'; import {Args, Mutation, Query, Resolver, Subscription, ResolveProperty, Parent} from '@nestjs/graphql'; import {PubSub} from 'graphql-subscriptions'; import {GraphqlGuard} from '../_helpers'; import {User as CurrentUser} from '../_helpers/graphql/user.decorator'; import {Home, ...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.validator.ts
src/app/home-favorite/home-favorite.validator.ts
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/home-favorite.service.ts
src/app/home-favorite/home-favorite.service.ts
import {Inject, Injectable} from '@nestjs/common'; import {MongoRepository} from 'typeorm'; import {CrudService} from '../../base'; import {HomeFavoriteEntity} from './entity'; import {HOME_FAVORITE_TOKEN} from './home-favorite.constants'; @Injectable() export class HomeFavoriteService extends CrudService<HomeFavorite...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/dto/delete-home-favorites.dto.ts
src/app/home-favorite/dto/delete-home-favorites.dto.ts
import {DeleteHomeFavoriteInput} from '../../graphql.schema'; export class DeleteHomeFavoriteDto extends DeleteHomeFavoriteInput {}
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/dto/create-home-favorites.dto.ts
src/app/home-favorite/dto/create-home-favorites.dto.ts
import {CreateHomeFavoriteInput} from '../../graphql.schema'; export class CreateHomeFavoriteDto extends CreateHomeFavoriteInput {}
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/dto/index.ts
src/app/home-favorite/dto/index.ts
import {CreateHomeFavoriteDto} from './create-home-favorites.dto'; import {DeleteHomeFavoriteDto} from './delete-home-favorites.dto'; export { CreateHomeFavoriteDto, DeleteHomeFavoriteDto };
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/entity/home-favorite.entity.ts
src/app/home-favorite/entity/home-favorite.entity.ts
import {ApiModelProperty} from '@nestjs/swagger'; import {IsString} from 'class-validator'; import {Column, Entity, ObjectIdColumn} from 'typeorm'; import {ExtendedEntity} from '../../_helpers'; @Entity() export class HomeFavoriteEntity extends ExtendedEntity { @ApiModelProperty() @ObjectIdColumn() public id: stri...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/entity/index.ts
src/app/home-favorite/entity/index.ts
export * from './home-favorite.entity';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-favorite/security/home-favorite.voter.ts
src/app/home-favorite/security/home-favorite.voter.ts
import {Injectable} from '@nestjs/common'; import {RestVoterActionEnum, Voter} from '../../security'; import {UserEntity} from '../../user/entity'; import {AppLogger} from '../../app.logger'; import {HomeFavoriteEntity} from '../entity'; @Injectable() export class HomeFavoriteVoter extends Voter { private logger = n...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/message.buffer.ts
src/app/message/message.buffer.ts
import {Injectable, OnModuleInit} from '@nestjs/common'; import {UserEntity} from '../user/entity'; import {MessageEntity} from './entity'; @Injectable() export class MessageBuffer { private messages = new Map<string, Set<MessageEntity>>(); constructor() { } public addMessage(userId: string, message: MessageEnt...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/message.module.ts
src/app/message/message.module.ts
import {HttpModule, Module} from '@nestjs/common'; import {DatabaseModule} from '../database/database.module'; import {HomeModule} from '../home/home.module'; import {UserModule} from '../user/user.module'; import {DateScalar} from './date.scalar'; import {MessageBuffer} from './message.buffer'; import {MessageCron} fr...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/message.constants.ts
src/app/message/message.constants.ts
export const MESSAGE_TOKEN = 'MessageRepositoryToken'; export const CONVERSATION_TOKEN = 'ConversationRepositoryToken'; export const USER_CONVERSATION_TOKEN = 'UserConversationRepositoryToken'; export const MESSAGE_CMD_NEW = 'onMessageNewCmd'; export const OFFLINE_MESSAGE_CMD_NEW = 'whenOfflineMessageNewCmd';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/message.providers.ts
src/app/message/message.providers.ts
import {DB_CON_TOKEN} from '../database/database.constants'; import {CONVERSATION_TOKEN, MESSAGE_TOKEN, USER_CONVERSATION_TOKEN} from './message.constants'; import {MessageEntity, ConversationEntity, UserConversationEntity} from './entity'; import {Connection} from 'typeorm'; export const messageProviders = [ { pro...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/message.cron.ts
src/app/message/message.cron.ts
import {Injectable, OnModuleInit} from '@nestjs/common'; import {config} from '../../config'; import {mail, renderTemplate} from '../_helpers/mail'; import {push} from '../_helpers/push'; import {AppLogger} from '../app.logger'; import {UserService} from '../user/user.service'; import {MessageEntity} from './entity'; i...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/date.scalar.ts
src/app/message/date.scalar.ts
import {Scalar} from '@nestjs/graphql'; import {Kind} from 'graphql'; import {DateTime} from 'luxon'; @Scalar('Date') export class DateScalar { description = 'Date custom scalar type'; parseValue(value) { return new Date(value); // value from the client } serialize(value: Date|DateTime) { if (value instanceo...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/message.controller.ts
src/app/message/message.controller.ts
import {Controller} from '@nestjs/common'; import {MessagePattern} from '@nestjs/microservices'; import {DateTime} from 'luxon'; import {AppLogger} from '../app.logger'; import {UserEntity} from '../user/entity'; import {OnlineService} from '../user/online.service'; import {MessageEntity} from './entity'; import {Messa...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/services/user-conversation.service.ts
src/app/message/services/user-conversation.service.ts
import {CrudService} from '../../../base'; import {Inject, Injectable} from '@nestjs/common'; import {MongoRepository} from 'typeorm'; import {USER_CONVERSATION_TOKEN} from '../message.constants'; import {UserConversationEntity} from '../entity'; import {ConversationService} from './conversation.service'; import {UserE...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/services/conversation.service.ts
src/app/message/services/conversation.service.ts
import {CrudService} from '../../../base'; import {Inject, Injectable} from '@nestjs/common'; import {MongoRepository} from 'typeorm'; import {CONVERSATION_TOKEN} from '../message.constants'; import {ConversationEntity} from '../entity'; @Injectable() export class ConversationService extends CrudService<ConversationEn...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/services/subscriptions.service.ts
src/app/message/services/subscriptions.service.ts
import {Injectable} from '@nestjs/common'; import {AppLogger} from '../../app.logger'; import {UserConversationService} from './user-conversation.service'; @Injectable() export class SubscriptionsService { private logger = new AppLogger(SubscriptionsService.name); constructor(private readonly userConversationServi...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/services/message.service.ts
src/app/message/services/message.service.ts
import {Inject, Injectable} from '@nestjs/common'; import {MongoRepository} from 'typeorm'; import {CrudService} from '../../../base'; import {RestVoterActionEnum} from '../../security/voter'; import {MessageEntity} from '../entity'; import {MESSAGE_TOKEN} from '../message.constants'; @Injectable() export class Messag...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/entity/message.entity.ts
src/app/message/entity/message.entity.ts
import {ApiModelProperty} from '@nestjs/swagger'; import {IsBoolean, IsString} from 'class-validator'; import {Column, Entity, ObjectIdColumn} from 'typeorm'; import {ExtendedEntity} from '../../_helpers'; @Entity() export class MessageEntity extends ExtendedEntity { @ApiModelProperty() @ObjectIdColumn() public id...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/entity/conversation.entity.ts
src/app/message/entity/conversation.entity.ts
import {ApiModelProperty} from '@nestjs/swagger'; import {IsString} from 'class-validator'; import {Column, Entity, ObjectIdColumn} from 'typeorm'; import {ExtendedEntity} from '../../_helpers'; @Entity() export class ConversationEntity extends ExtendedEntity { @ApiModelProperty() @ObjectIdColumn() public id: stri...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/entity/user-conversation.entity.ts
src/app/message/entity/user-conversation.entity.ts
import {ApiModelProperty} from '@nestjs/swagger'; import {IsString} from 'class-validator'; import {Column, Entity, ObjectIdColumn} from 'typeorm'; import {ExtendedEntity} from '../../_helpers'; @Entity() export class UserConversationEntity extends ExtendedEntity { @ApiModelProperty() @ObjectIdColumn() public id: ...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/entity/index.ts
src/app/message/entity/index.ts
export * from './conversation.entity'; export * from './message.entity'; export * from './user-conversation.entity';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/security/message.voter.ts
src/app/message/security/message.voter.ts
import {Injectable} from '@nestjs/common'; import {AppLogger} from '../../app.logger'; import {RestVoterActionEnum, Voter} from '../../security'; import {UserEntity} from '../../user/entity'; import {MessageEntity} from '../entity'; import {UserConversationService} from '../services/user-conversation.service'; @Inject...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/security/user-conversation.voter.ts
src/app/message/security/user-conversation.voter.ts
import {Injectable} from '@nestjs/common'; import {AppLogger} from '../../app.logger'; import {RestVoterActionEnum, Voter} from '../../security'; import {UserEntity} from '../../user/entity'; import {UserConversationEntity} from '../entity'; @Injectable() export class UserConversationVoter extends Voter { private lo...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/resolvers/user-conversation.resolver.ts
src/app/message/resolvers/user-conversation.resolver.ts
import {HttpException, HttpStatus, UseGuards} from '@nestjs/common'; import {Args, Mutation, Parent, Query, ResolveProperty, Resolver, Subscription} from '@nestjs/graphql'; import {PubSub, withFilter} from 'graphql-subscriptions'; import {GraphqlGuard, User as CurrentUser} from '../../_helpers/graphql'; import {CreateC...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/resolvers/conversation.resolver.ts
src/app/message/resolvers/conversation.resolver.ts
import {Parent, ResolveProperty, Resolver} from '@nestjs/graphql'; import {HomeEntity} from '../../home/entity'; import {HomeService} from '../../home/home.service'; import {ConversationEntity} from '../entity'; import {Conversation} from '../../graphql.schema'; import {MessageService} from '../services/message.service...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/message/resolvers/message.resolver.ts
src/app/message/resolvers/message.resolver.ts
import {UseGuards} from '@nestjs/common'; import {Args, Mutation, Parent, Query, ResolveProperty, Resolver, Subscription} from '@nestjs/graphql'; import {Client, ClientProxy, Transport} from '@nestjs/microservices'; import {PubSub, withFilter} from 'graphql-subscriptions'; import {GraphqlGuard, User as CurrentUser} fro...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/media/media.constants.ts
src/app/media/media.constants.ts
export const MEDIA_CMD_DELETE = 'MediaCmdOnDelete';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/media/media.module.ts
src/app/media/media.module.ts
import {Module, MulterModule} from '@nestjs/common'; import {MulterConfigService} from './multer-config.service'; import {DatabaseModule} from '../database/database.module'; import {MediaController} from './media.controller'; @Module({ controllers: [MediaController], imports: [ DatabaseModule, MulterModule.regis...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/media/media.controller.ts
src/app/media/media.controller.ts
import {Controller, FileInterceptor, Inject, Post, UploadedFile, UseGuards, UseInterceptors} from '@nestjs/common'; import {MessagePattern} from '@nestjs/microservices'; import {AuthGuard} from '@nestjs/passport'; import {ApiBearerAuth, ApiConsumes, ApiImplicitFile, ApiResponse, ApiUseTags} from '@nestjs/swagger'; impo...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/media/multer-config.service.ts
src/app/media/multer-config.service.ts
import S3 from 'aws-sdk/clients/s3'; import {Injectable, MulterModuleOptions, MulterOptionsFactory} from '@nestjs/common'; import {v4} from 'uuid'; import s3Storage, {AUTO_CONTENT_TYPE} from 'multer-s3'; import {config} from '../../config'; @Injectable() export class MulterConfigService implements MulterOptionsFactory...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/media/dto/media-upload.dto.ts
src/app/media/dto/media-upload.dto.ts
import { ApiModelProperty } from '@nestjs/swagger'; export class MediaMetadataDto { @ApiModelProperty() fieldname: string; @ApiModelProperty() originalname: string; @ApiModelProperty() encoding: string; @ApiModelProperty() mimetype: string; } export class MediaUploadDto { @ApiModelProperty() public fiel...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/database/database.constants.ts
src/app/database/database.constants.ts
export const DB_CON_TOKEN = 'DbConnectionToken'; export const AWS_CON_TOKEN = 'AwsConnectionToken';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/database/database.providers.ts
src/app/database/database.providers.ts
import {config} from '../../config'; import {AWS_CON_TOKEN, DB_CON_TOKEN} from './database.constants'; import AWS from 'aws-sdk'; import {createConnection} from 'typeorm'; export const databaseProviders = [ { provide: AWS_CON_TOKEN, useFactory: async () => { AWS.config.update({ accessKeyId: config.aws.api_...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/database/database.module.ts
src/app/database/database.module.ts
import { Global, Module } from '@nestjs/common'; import { databaseProviders } from './database.providers'; @Global() @Module({ providers: [...databaseProviders], exports: [...databaseProviders] }) export class DatabaseModule { }
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/home-media.resolver.ts
src/app/home-media/home-media.resolver.ts
import {UseGuards} from '@nestjs/common'; import {Args, Mutation, Query, Resolver, Subscription} from '@nestjs/graphql'; import {Client, ClientProxy, Transport} from '@nestjs/microservices'; import {PubSub} from 'graphql-subscriptions'; import {MEDIA_CMD_DELETE} from '../media/media.constants'; import {HomeMediaService...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/home-media.controller.ts
src/app/home-media/home-media.controller.ts
import {Controller} from '@nestjs/common'; import {Client, ClientProxy, MessagePattern, Transport} from '@nestjs/microservices'; import {AppLogger} from '../app.logger'; import {HomeEntity} from '../home/entity'; import {HOME_CMD_DELETE} from '../home/home.constants'; import {MEDIA_CMD_DELETE} from '../media/media.cons...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/home-media.service.ts
src/app/home-media/home-media.service.ts
import {CrudService} from '../../base'; import {Inject, Injectable} from '@nestjs/common'; import {HomeMediaEntity} from './entity'; import {HOME_MEDIA_TOKEN} from './home-media.constants'; import {MongoRepository, Repository} from 'typeorm'; @Injectable() export class HomeMediaService extends CrudService<HomeMediaEnt...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/home-media.module.ts
src/app/home-media/home-media.module.ts
import {Module} from '@nestjs/common'; import {DatabaseModule} from '../database/database.module'; import {homeMediaProviders} from './home-media.providers'; import {HomeMediaService} from './home-media.service'; import {HomeMediaResolver} from './home-media.resolver'; import {HomeMediaController} from './home-media.co...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/home-media.providers.ts
src/app/home-media/home-media.providers.ts
import {DB_CON_TOKEN} from '../database/database.constants'; import {HomeMediaEntity} from './entity'; import {HOME_MEDIA_TOKEN} from './home-media.constants'; import {Connection} from 'typeorm'; export const homeMediaProviders = [ { provide: HOME_MEDIA_TOKEN, useFactory: (connection: Connection) => connection.ge...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/home-media.constants.ts
src/app/home-media/home-media.constants.ts
export const HOME_MEDIA_TOKEN = 'HomeMediaToken';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/entity/home-media.entity.ts
src/app/home-media/entity/home-media.entity.ts
import {ApiModelProperty} from '@nestjs/swagger'; import {IsNumber, IsString} from 'class-validator'; import {ExtendedEntity} from '../../_helpers/entity'; import {Column, Entity, ObjectIdColumn} from 'typeorm'; @Entity() export class HomeMediaEntity extends ExtendedEntity { @ApiModelProperty() @ObjectIdColumn() i...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/entity/index.ts
src/app/home-media/entity/index.ts
export * from './home-media.entity';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/home-media/security/home-media.voter.ts
src/app/home-media/security/home-media.voter.ts
import {Injectable} from '@nestjs/common'; import {RestVoterActionEnum, Voter} from '../../security'; import {UserEntity} from '../../user/entity'; import {AppLogger} from '../../app.logger'; import {HomeMediaService} from '../home-media.service'; import {HomeMediaEntity} from '../entity'; import {HomeService} from '.....
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/healtcheck/healthcheck.module.ts
src/app/healtcheck/healthcheck.module.ts
import {Module} from '@nestjs/common'; import {HealthCheckController} from './healthcheck.controller'; @Module({ controllers: [HealthCheckController] }) export class HealthCheckModule {}
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/healtcheck/healthcheck.controller.ts
src/app/healtcheck/healthcheck.controller.ts
import {Controller, Get} from '@nestjs/common'; @Controller() export class HealthCheckController { private start: number; constructor() { this.start = Date.now(); } @Get('healthcheck') async get() { const now = Date.now(); return { status: 'API Online', uptime: Number((now - this.start) / 1000).toFi...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/contract.service.ts
src/app/contract/contract.service.ts
import {Inject, Injectable} from '@nestjs/common'; import {MongoRepository} from 'typeorm'; import {CrudService} from '../../base'; import {CONTRACT_TOKEN} from './contract.constants'; import {ContractEntity} from './entity'; @Injectable() export class ContractService extends CrudService<ContractEntity> { constructo...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/contract.constants.ts
src/app/contract/contract.constants.ts
export const CONTRACT_TOKEN = 'ContractToken';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/contract.providers.ts
src/app/contract/contract.providers.ts
import {DB_CON_TOKEN} from '../database/database.constants'; import {CONTRACT_TOKEN} from './contract.constants'; import {ContractEntity} from './entity'; import {Connection} from 'typeorm'; export const contractProviders = [ { provide: CONTRACT_TOKEN, useFactory: (connection: Connection) => connection.getReposit...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/contract.resolver.ts
src/app/contract/contract.resolver.ts
import {UseGuards} from '@nestjs/common'; import {Args, Mutation, Parent, Query, ResolveProperty, Resolver, Subscription} from '@nestjs/graphql'; import {PubSub} from 'graphql-subscriptions'; import {DeepPartial} from 'typeorm'; import {GraphqlGuard} from '../_helpers'; import {User} from '../_helpers/graphql'; import ...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/contract.module.ts
src/app/contract/contract.module.ts
import {forwardRef, Module} from '@nestjs/common'; import {DatabaseModule} from '../database/database.module'; import {HomeModule} from '../home/home.module'; import {UserModule} from '../user/user.module'; import {contractProviders} from './contract.providers'; import {ContractResolver} from './contract.resolver'; imp...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/entity/index.ts
src/app/contract/entity/index.ts
export * from './contract.entity';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/entity/contract.entity.ts
src/app/contract/entity/contract.entity.ts
import {ApiModelProperty} from '@nestjs/swagger'; import {IsBoolean, IsNumber, IsOptional, IsString} from 'class-validator'; import {Column, Entity, ObjectIdColumn} from 'typeorm'; import {ExtendedEntity} from '../../_helpers/entity'; @Entity() export class ContractEntity extends ExtendedEntity { @ApiModelProperty()...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/app/contract/security/contract.voter.ts
src/app/contract/security/contract.voter.ts
import {Injectable} from '@nestjs/common'; import {AppLogger} from '../../app.logger'; import {HomeService} from '../../home/home.service'; import {RestVoterActionEnum, Voter} from '../../security'; import {UserEntity} from '../../user/entity'; import {ContractEntity} from '../entity'; @Injectable() export class Contr...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/base/rest.controller.ts
src/base/rest.controller.ts
import {Body, Delete, Get, Param, Patch, Post, Put, Req} from '@nestjs/common'; import {DeepPartial} from 'typeorm'; import {CrudService} from './crud.service'; import {ExtendedEntity} from '../app/_helpers'; export class RestController<T extends ExtendedEntity> { protected service: CrudService<T>; @Get('/') publi...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/base/crud.service.ts
src/base/crud.service.ts
import {forwardRef, HttpException, HttpStatus, Inject} from '@nestjs/common'; import {validate, ValidatorOptions} from 'class-validator'; import {DateTime} from 'luxon'; import {DeepPartial, FindManyOptions, FindOneOptions, MongoRepository, ObjectLiteral} from 'typeorm'; import {ExtendedEntity, typeormFilterMapper} fro...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/base/index.ts
src/base/index.ts
export * from './crud.service'; export * from './rest.controller';
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/migrations/1554826342372-UserConversation.ts
src/migrations/1554826342372-UserConversation.ts
import {getMongoManager, MigrationInterface, QueryRunner} from 'typeorm'; import {UserConversationEntity} from '../app/message/entity'; export class UserConversation1554826342372 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<any> { const mm = getMongoManager(); await mm.updat...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/migrations/1555006376049-HomeFavorite.ts
src/migrations/1555006376049-HomeFavorite.ts
import {getMongoManager, MigrationInterface, QueryRunner} from 'typeorm'; import {HomeFavoriteEntity} from '../app/home-favorite/entity'; export class HomeFavorite1555006376049 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<any> { const mm = getMongoManager(); await mm.updateM...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/migrations/1555332883287-Conversation.ts
src/migrations/1555332883287-Conversation.ts
import {getMongoManager, MigrationInterface, QueryRunner} from 'typeorm'; import {ConversationEntity, UserConversationEntity} from '../app/message/entity'; import {ObjectId} from 'mongodb'; export class Conversation1555332883287 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<any> ...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/migrations/1555006181991-Home.ts
src/migrations/1555006181991-Home.ts
import {getMongoManager, MigrationInterface, QueryRunner} from 'typeorm'; import {HomeEntity} from '../app/home/entity'; export class Home1555006181991 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<any> { const mm = getMongoManager(); await mm.updateMany(HomeEntity, {}, {$set...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
neoteric-eu/nestjs-auth
https://github.com/neoteric-eu/nestjs-auth/blob/dc294e4ce2436579dea9958e24b90c0cc0ef2569/src/config/index.ts
src/config/index.ts
import {readFileSync} from 'fs'; import {MicroserviceOptions, Transport} from '@nestjs/microservices'; import {ConnectionOptions} from 'typeorm'; const appPackage = readFileSync(`${__dirname}/../../package.json`, { encoding: 'utf8' }); const appData = JSON.parse(appPackage); interface Config { appRootPath: string; ...
typescript
MIT
dc294e4ce2436579dea9958e24b90c0cc0ef2569
2026-01-05T05:01:27.913606Z
false
yestool/analytics_with_cloudflare
https://github.com/yestool/analytics_with_cloudflare/blob/33714c7c9ebb459fc9c4e36738de8e60a423c1c6/src/index.ts
src/index.ts
import { Hono } from 'hono'; import { cors } from 'hono/cors'; import {checkUrl, getUrlData} from './lib/util' import { insertAndReturnId , insert } from './lib/dbutil'; type Bindings = { DB: D1Database } const app = new Hono<{ Bindings: Bindings }>() app.get("/", (c) => c.text("Hello World-2023")); app.use('/api...
typescript
MIT
33714c7c9ebb459fc9c4e36738de8e60a423c1c6
2026-01-05T05:01:28.588653Z
false
yestool/analytics_with_cloudflare
https://github.com/yestool/analytics_with_cloudflare/blob/33714c7c9ebb459fc9c4e36738de8e60a423c1c6/src/lib/util.ts
src/lib/util.ts
export function checkUrl(url: string): boolean { try { new URL(url); return true; } catch (error) { return false; } } export function getUrlData(url: string): { pathname: string, hostname: string } { const { pathname, hostname } = new URL(url); return { pathname, hostname }; }
typescript
MIT
33714c7c9ebb459fc9c4e36738de8e60a423c1c6
2026-01-05T05:01:28.588653Z
false
yestool/analytics_with_cloudflare
https://github.com/yestool/analytics_with_cloudflare/blob/33714c7c9ebb459fc9c4e36738de8e60a423c1c6/src/lib/dbutil.ts
src/lib/dbutil.ts
export async function insertAndReturnId(db : D1Database, sql: string, bind:unknown[]): Promise<number> { try { let stmt = db.prepare(sql); if (stmt && bind.length > 0){ stmt = stmt.bind(...bind); } const { success } = await stmt.run() if (success){ let last_insert_rowid = await db.pr...
typescript
MIT
33714c7c9ebb459fc9c4e36738de8e60a423c1c6
2026-01-05T05:01:28.588653Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/tailwind.config.ts
tailwind.config.ts
import { fontFamily } from "tailwindcss/defaultTheme"; /** @type {import('tailwindcss').Config} */ module.exports = { darkMode: ["class"], content: [ "./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./app/**/*.{ts,tsx}", "./src/**/*.{ts,tsx}", ], theme: { screens: { xs: "500px",...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false