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 |
|---|---|---|---|---|---|---|---|---|
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user/user.service.ts | packages/hoppscotch-backend/src/user/user.service.ts | import { Injectable } from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
import * as O from 'fp-ts/Option';
import * as E from 'fp-ts/Either';
import * as TO from 'fp-ts/TaskOption';
import * as TE from 'fp-ts/TaskEither';
import * as T from 'fp-ts/Task';
import * as A from 'fp-ts/Array';... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user/user.module.ts | packages/hoppscotch-backend/src/user/user.module.ts | import { Module } from '@nestjs/common';
import { UserResolver } from './user.resolver';
import { UserService } from './user.service';
@Module({
providers: [UserResolver, UserService],
exports: [UserService],
})
export class UserModule {}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user/user.service.spec.ts | packages/hoppscotch-backend/src/user/user.service.spec.ts | import {
JSON_INVALID,
USERS_NOT_FOUND,
USER_NOT_FOUND,
USER_SHORT_DISPLAY_NAME,
} from 'src/errors';
import { mockDeep, mockReset } from 'jest-mock-extended';
import { PrismaService } from 'src/prisma/prisma.service';
import { AuthUser } from 'src/types/AuthUser';
import { User } from './user.model';
import { ... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/health/health.module.ts | packages/hoppscotch-backend/src/health/health.module.ts | import { Module } from '@nestjs/common';
import { HealthController } from './health.controller';
import { TerminusModule } from '@nestjs/terminus';
@Module({
imports: [TerminusModule],
controllers: [HealthController],
})
export class HealthModule {}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/health/health.controller.ts | packages/hoppscotch-backend/src/health/health.controller.ts | import { Controller, Get } from '@nestjs/common';
import {
HealthCheck,
HealthCheckService,
PrismaHealthIndicator,
} from '@nestjs/terminus';
import { PrismaService } from 'src/prisma/prisma.service';
@Controller('health')
export class HealthController {
constructor(
private health: HealthCheckService,
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/guards/throttler-behind-proxy.guard.ts | packages/hoppscotch-backend/src/guards/throttler-behind-proxy.guard.ts | import { ThrottlerGuard } from '@nestjs/throttler';
import { Injectable } from '@nestjs/common';
@Injectable()
export class ThrottlerBehindProxyGuard extends ThrottlerGuard {
protected async getTracker(req: Record<string, any>): Promise<string> {
return req.ips.length ? req.ips[0] : req.ip; // individualize IP e... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/guards/rest-pat-auth.guard.ts | packages/hoppscotch-backend/src/guards/rest-pat-auth.guard.ts | import {
BadRequestException,
CanActivate,
ExecutionContext,
Injectable,
} from '@nestjs/common';
import { Request } from 'express';
import { AccessTokenService } from 'src/access-token/access-token.service';
import * as E from 'fp-ts/Either';
import { ACCESS_TOKEN_EXPIRED, ACCESS_TOKEN_INVALID } from 'src/erro... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/guards/gql-throttler.guard.ts | packages/hoppscotch-backend/src/guards/gql-throttler.guard.ts | import { ExecutionContext, Injectable } from '@nestjs/common';
import { GqlExecutionContext } from '@nestjs/graphql';
import { ThrottlerGuard } from '@nestjs/throttler';
@Injectable()
export class GqlThrottlerGuard extends ThrottlerGuard {
getRequestResponse(context: ExecutionContext) {
const gqlCtx = GqlExecuti... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/guards/infra-token.guard.ts | packages/hoppscotch-backend/src/guards/infra-token.guard.ts | import {
CanActivate,
ExecutionContext,
Injectable,
UnauthorizedException,
} from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
import {
INFRA_TOKEN_EXPIRED,
INFRA_TOKEN_HEADER_MISSING,
INFRA_TOKEN_INVALID_TOKEN,
} from 'src/errors';
@Injectable()
export class InfraTokenGua... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/guards/gql-auth.guard.ts | packages/hoppscotch-backend/src/guards/gql-auth.guard.ts | import { Injectable, ExecutionContext } from '@nestjs/common';
import { GqlExecutionContext } from '@nestjs/graphql';
import { AuthGuard } from '@nestjs/passport';
@Injectable()
export class GqlAuthGuard extends AuthGuard('jwt') {
getRequest(context: ExecutionContext) {
const ctx = GqlExecutionContext.create(con... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/infra.model.ts | packages/hoppscotch-backend/src/admin/infra.model.ts | import { Field, ObjectType } from '@nestjs/graphql';
import { Admin } from './admin.model';
@ObjectType()
export class Infra {
@Field(() => Admin, {
description: 'Admin who executed the action',
})
executedBy: Admin;
}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/invited-user.model.ts | packages/hoppscotch-backend/src/admin/invited-user.model.ts | import { ObjectType, ID, Field } from '@nestjs/graphql';
@ObjectType()
export class InvitedUser {
@Field(() => ID, {
description: 'Admin UID',
})
adminUid: string;
@Field({
description: 'Admin email',
})
adminEmail: string;
@Field({
description: 'Invitee email',
})
inviteeEmail: string;... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/admin.service.ts | packages/hoppscotch-backend/src/admin/admin.service.ts | import { Injectable } from '@nestjs/common';
import { UserService } from '../user/user.service';
import { PubSubService } from '../pubsub/pubsub.service';
import { PrismaService } from '../prisma/prisma.service';
import * as E from 'fp-ts/Either';
import * as O from 'fp-ts/Option';
import { validateEmail } from '../uti... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/admin.service.spec.ts | packages/hoppscotch-backend/src/admin/admin.service.spec.ts | import { AdminService } from './admin.service';
import { PubSubService } from '../pubsub/pubsub.service';
import { mockDeep } from 'jest-mock-extended';
import { InvitedUsers, User as DbUser } from 'src/generated/prisma/client';
import { UserService } from '../user/user.service';
import { TeamService } from '../team/te... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/input-types.args.ts | packages/hoppscotch-backend/src/admin/input-types.args.ts | import { Field, ID, ArgsType } from '@nestjs/graphql';
import { TeamAccessRole } from '../team/team.model';
@ArgsType()
export class ChangeUserRoleInTeamArgs {
@Field(() => ID, {
name: 'userUID',
description: 'users UID',
})
userUID: string;
@Field(() => ID, {
name: 'teamID',
description: 'team... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/infra.resolver.ts | packages/hoppscotch-backend/src/admin/infra.resolver.ts | import { UseGuards } from '@nestjs/common';
import {
Args,
ID,
Mutation,
Query,
ResolveField,
Resolver,
} from '@nestjs/graphql';
import { GqlThrottlerGuard } from 'src/guards/gql-throttler.guard';
import { Infra } from './infra.model';
import { AdminService } from './admin.service';
import { GqlAuthGuard }... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/admin.module.ts | packages/hoppscotch-backend/src/admin/admin.module.ts | import { Module } from '@nestjs/common';
import { AdminResolver } from './admin.resolver';
import { AdminService } from './admin.service';
import { UserModule } from '../user/user.module';
import { TeamModule } from '../team/team.module';
import { TeamInvitationModule } from '../team-invitation/team-invitation.module';... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/admin.resolver.ts | packages/hoppscotch-backend/src/admin/admin.resolver.ts | import {
Args,
ID,
Mutation,
Query,
Resolver,
Subscription,
} from '@nestjs/graphql';
import { Admin } from './admin.model';
import { UseGuards } from '@nestjs/common';
import { GqlAuthGuard } from '../guards/gql-auth.guard';
import { GqlAdminGuard } from './guards/gql-admin.guard';
import { GqlAdmin } from... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/admin.model.ts | packages/hoppscotch-backend/src/admin/admin.model.ts | import { ObjectType, OmitType } from '@nestjs/graphql';
import { User } from 'src/user/user.model';
@ObjectType()
export class Admin extends OmitType(User, [
'isAdmin',
'currentRESTSession',
'currentGQLSession',
]) {}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/decorators/gql-admin.decorator.ts | packages/hoppscotch-backend/src/admin/decorators/gql-admin.decorator.ts | import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import { GqlExecutionContext } from '@nestjs/graphql';
export const GqlAdmin = createParamDecorator(
(data: unknown, context: ExecutionContext) => {
const ctx = GqlExecutionContext.create(context);
return ctx.getContext().req.user;
},... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/guards/rest-admin.guard.ts | packages/hoppscotch-backend/src/admin/guards/rest-admin.guard.ts | import { Injectable, ExecutionContext, CanActivate } from '@nestjs/common';
@Injectable()
export class RESTAdminGuard implements CanActivate {
canActivate(context: ExecutionContext): boolean {
const request = context.switchToHttp().getRequest();
const user = request.user;
return user.isAdmin;
}
}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/admin/guards/gql-admin.guard.ts | packages/hoppscotch-backend/src/admin/guards/gql-admin.guard.ts | import { Injectable, ExecutionContext, CanActivate } from '@nestjs/common';
import { GqlExecutionContext } from '@nestjs/graphql';
@Injectable()
export class GqlAdminGuard implements CanActivate {
canActivate(context: ExecutionContext): boolean {
const ctx = GqlExecutionContext.create(context);
const { req, ... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server.service.ts | packages/hoppscotch-backend/src/mock-server/mock-server.service.ts | import { Injectable } from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
import {
CreateMockServerInput,
UpdateMockServerInput,
MockServerResponse,
MockServer,
MockServerCollection,
MockServerLog,
} from './mock-server.model';
import * as E from 'fp-ts/Either';
import {
MOCK... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | true |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server.resolver.ts | packages/hoppscotch-backend/src/mock-server/mock-server.resolver.ts | import {
Resolver,
Query,
Mutation,
Args,
ID,
ResolveField,
Parent,
} from '@nestjs/graphql';
import { UseGuards } from '@nestjs/common';
import { GqlAuthGuard } from 'src/guards/gql-auth.guard';
import { GqlUser } from 'src/decorators/gql-user.decorator';
import { User } from 'src/user/user.model';
impor... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server.controller.ts | packages/hoppscotch-backend/src/mock-server/mock-server.controller.ts | import {
Controller,
All,
Req,
Res,
HttpStatus,
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import { Request, Response } from 'express';
import { MockServerService } from './mock-server.service';
import { MockServerLoggingInterceptor } from './mock-server-logging.interceptor';
import * as E from ... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server.service.spec.ts | packages/hoppscotch-backend/src/mock-server/mock-server.service.spec.ts | import { MockServerService } from './mock-server.service';
import { PrismaService } from '../prisma/prisma.service';
import { ConfigService } from '@nestjs/config';
import { MockServerAnalyticsService } from './mock-server-analytics.service';
import { TeamCollectionService } from '../team-collection/team-collection.ser... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | true |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server.module.ts | packages/hoppscotch-backend/src/mock-server/mock-server.module.ts | import { Module } from '@nestjs/common';
import { PrismaModule } from 'src/prisma/prisma.module';
import { MockServerService } from './mock-server.service';
import { MockServerAnalyticsService } from './mock-server-analytics.service';
import { MockServerLoggingInterceptor } from './mock-server-logging.interceptor';
imp... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server.model.ts | packages/hoppscotch-backend/src/mock-server/mock-server.model.ts | import {
Field,
ID,
ObjectType,
ArgsType,
InputType,
registerEnumType,
} from '@nestjs/graphql';
import {
IsNumber,
IsOptional,
IsString,
Matches,
Max,
MaxLength,
MinLength,
} from 'class-validator';
import { WorkspaceType } from 'src/types/WorkspaceTypes';
// Regex pattern for mock server na... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-request.guard.ts | packages/hoppscotch-backend/src/mock-server/mock-request.guard.ts | import {
CanActivate,
ExecutionContext,
Injectable,
BadRequestException,
NotFoundException,
UnauthorizedException,
} from '@nestjs/common';
import { Request } from 'express';
import { MockServerService } from './mock-server.service';
import * as E from 'fp-ts/Either';
import { AccessTokenService } from 'src... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server-logging.interceptor.ts | packages/hoppscotch-backend/src/mock-server/mock-server-logging.interceptor.ts | import {
Injectable,
NestInterceptor,
ExecutionContext,
CallHandler,
} from '@nestjs/common';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { Request, Response } from 'express';
import { MockServer } from 'src/generated/prisma/client';
import { MockServerService } from './mock-... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/mock-server-analytics.service.ts | packages/hoppscotch-backend/src/mock-server/mock-server-analytics.service.ts | import { Injectable } from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
import {
MockServer as dbMockServer,
MockServerAction,
} from 'src/generated/prisma/client';
@Injectable()
export class MockServerAnalyticsService {
constructor(private readonly prisma: PrismaService) {}
/*... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/mock-server/constants/mock-server-coll-request-example.ts | packages/hoppscotch-backend/src/mock-server/constants/mock-server-coll-request-example.ts | import { randomUUID } from 'crypto';
const generateRefId = () => `${Date.now().toString(36)}_${randomUUID()}`;
export const mockServerCollRequestExample = (
collectionName: string = 'Hoppscotch API Mock example',
) => {
const baseEnv = '<<mockUrl>>';
return [
{
v: 10,
name: collectionName,
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/posthog/posthog.module.ts | packages/hoppscotch-backend/src/posthog/posthog.module.ts | import { Module } from '@nestjs/common';
import { PostHogService } from './posthog.service';
@Module({
providers: [PostHogService],
})
export class PostHogModule {}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/posthog/posthog.service.ts | packages/hoppscotch-backend/src/posthog/posthog.service.ts | import { Injectable } from '@nestjs/common';
import { PostHog } from 'posthog-node';
import { Cron, CronExpression } from '@nestjs/schedule';
import { ConfigService } from '@nestjs/config';
import { PrismaService } from 'src/prisma/prisma.service';
import { POSTHOG_CLIENT_NOT_INITIALIZED } from 'src/errors';
import { t... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/team.service.spec.ts | packages/hoppscotch-backend/src/team/team.service.spec.ts | import { TeamService } from './team.service';
import { PrismaService } from '../prisma/prisma.service';
import { Team, TeamMember, TeamAccessRole } from './team.model';
import { TeamMember as DbTeamMember } from 'src/generated/prisma/client';
import {
USER_NOT_FOUND,
TEAM_INVALID_ID,
TEAM_NAME_INVALID,
TEAM_ONL... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/team.service.ts | packages/hoppscotch-backend/src/team/team.service.ts | import { Injectable, OnModuleInit } from '@nestjs/common';
import { TeamMember, TeamAccessRole, Team } from './team.model';
import { PrismaService } from '../prisma/prisma.service';
import { TeamMember as DbTeamMember } from 'src/generated/prisma/client';
import { UserService } from '../user/user.service';
import { Use... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/team.model.ts | packages/hoppscotch-backend/src/team/team.model.ts | import { ObjectType, Field, ID, registerEnumType } from '@nestjs/graphql';
@ObjectType()
export class Team {
@Field(() => ID, {
description: 'ID of the team',
})
id: string;
@Field(() => String, {
description: 'Displayed name of the team',
})
name: string;
}
@ObjectType()
export class TeamMember ... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/team.module.ts | packages/hoppscotch-backend/src/team/team.module.ts | import { Module } from '@nestjs/common';
import { TeamService } from './team.service';
import { TeamResolver } from './team.resolver';
import { UserModule } from '../user/user.module';
import { TeamMemberResolver } from './team-member.resolver';
import { GqlTeamMemberGuard } from './guards/gql-team-member.guard';
@Mod... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/team.resolver.ts | packages/hoppscotch-backend/src/team/team.resolver.ts | import { Team, TeamMember, TeamAccessRole } from './team.model';
import {
Resolver,
ResolveField,
Args,
Parent,
Query,
Mutation,
Int,
Subscription,
ID,
} from '@nestjs/graphql';
import { TeamService } from './team.service';
import { GqlAuthGuard } from '../guards/gql-auth.guard';
import { GqlUser } fr... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/team-member.resolver.ts | packages/hoppscotch-backend/src/team/team-member.resolver.ts | import { Resolver, ResolveField, Parent } from '@nestjs/graphql';
import { TeamMember } from './team.model';
import { UserService } from 'src/user/user.service';
import { User } from '../user/user.model';
import { throwErr } from 'src/utils';
import { USER_NOT_FOUND } from 'src/errors';
import * as O from 'fp-ts/Option... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/decorators/requires-team-role.decorator.ts | packages/hoppscotch-backend/src/team/decorators/requires-team-role.decorator.ts | import { TeamAccessRole } from 'src/generated/prisma/client';
import { SetMetadata } from '@nestjs/common';
export const RequiresTeamRole = (...roles: TeamAccessRole[]) =>
SetMetadata('requiresTeamRole', roles);
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/guards/rest-team-member.guard.ts | packages/hoppscotch-backend/src/team/guards/rest-team-member.guard.ts | import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { TeamService } from '../../team/team.service';
import { TeamAccessRole } from '../../team/team.model';
import {
BUG_TEAM_NO_REQUIRE_TEAM_ROLE,
BUG_AUTH_NO_USER_CTX,
BUG_TEAM_NO_TEAM_ID,
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team/guards/gql-team-member.guard.ts | packages/hoppscotch-backend/src/team/guards/gql-team-member.guard.ts | import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { TeamService } from '../team.service';
import { TeamAccessRole } from '../team.model';
import { GqlExecutionContext } from '@nestjs/graphql';
import {
TEAM_NOT_REQUIRED_ROLE,
BUG_AUTH_NO_USE... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/plugins/GQLComplexityPlugin.ts | packages/hoppscotch-backend/src/plugins/GQLComplexityPlugin.ts | import { GraphQLSchemaHost } from '@nestjs/graphql';
import {
ApolloServerPlugin,
BaseContext,
GraphQLRequestListener,
} from '@apollo/server';
import { Plugin } from '@nestjs/apollo';
import { GraphQLError } from 'graphql';
import {
ComplexityEstimatorArgs,
fieldExtensionsEstimator,
getComplexity,
simple... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/RequestTypes.ts | packages/hoppscotch-backend/src/types/RequestTypes.ts | export enum ReqType {
REST = 'REST',
GQL = 'GQL',
}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/AccessToken.ts | packages/hoppscotch-backend/src/types/AccessToken.ts | export type AccessToken = {
id: string;
label: string;
createdOn: Date;
lastUsedOn: Date;
expiresOn: null | Date;
};
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/SortOptions.ts | packages/hoppscotch-backend/src/types/SortOptions.ts | import { registerEnumType } from '@nestjs/graphql';
export enum SortOptions {
TITLE_ASC = 'TITLE_ASC',
TITLE_DESC = 'TITLE_DESC',
}
registerEnumType(SortOptions, {
name: 'SortOptions',
});
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/Email.ts | packages/hoppscotch-backend/src/types/Email.ts | import * as t from 'io-ts';
interface EmailBrand {
readonly Email: unique symbol;
}
// The validation branded type for an email
export const EmailCodec = t.brand(
t.string,
(x): x is t.Branded<string, EmailBrand> =>
/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/WorkspaceTypes.ts | packages/hoppscotch-backend/src/types/WorkspaceTypes.ts | export enum WorkspaceType {
USER = 'USER',
TEAM = 'TEAM',
}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/CollectionFolder.ts | packages/hoppscotch-backend/src/types/CollectionFolder.ts | import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
// This class defines how data will be received from the app when we are importing Hoppscotch collections
export class CollectionFolder {
@ApiPropertyOptional({
description: 'Unique identifier for the collection folder',
example: 'folder_123... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/Passwordless.ts | packages/hoppscotch-backend/src/types/Passwordless.ts | export type DeviceIdentifierToken = {
deviceIdentifier: string;
};
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/CollectionSearchNode.ts | packages/hoppscotch-backend/src/types/CollectionSearchNode.ts | // Response type of results from the search query
export type CollectionSearchNode = {
/** Encodes the hierarchy of where the node is **/
path: CollectionSearchNode[];
} & (
| {
type: 'request';
title: string;
method: string;
id: string;
}
| {
type: 'collection';
title: s... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/input-types.args.ts | packages/hoppscotch-backend/src/types/input-types.args.ts | import { ArgsType, Field, ID, InputType } from '@nestjs/graphql';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import { IsNotEmpty, IsOptional } from 'class-validator';
@ArgsType()
@InputType()
export class PaginationArgs {
@Field(() => ID, {
nullable: true,
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/InfraConfig.ts | packages/hoppscotch-backend/src/types/InfraConfig.ts | export enum InfraConfigEnum {
ONBOARDING_COMPLETED = 'ONBOARDING_COMPLETED',
ONBOARDING_RECOVERY_TOKEN = 'ONBOARDING_RECOVERY_TOKEN',
JWT_SECRET = 'JWT_SECRET',
SESSION_SECRET = 'SESSION_SECRET',
SESSION_COOKIE_NAME = 'SESSION_COOKIE_NAME',
TOKEN_SALT_COMPLEXITY = 'TOKEN_SALT_COMPLEXITY',
MAGIC_LINK_TOKE... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/RESTError.ts | packages/hoppscotch-backend/src/types/RESTError.ts | import { HttpStatus } from '@nestjs/common';
/**
** Custom interface to handle errors for REST modules such as Auth, Admin modules
** Since its REST we need to return the HTTP status code along with the error message
*/
export type RESTError = {
message: string | Record<string, string>;
statusCode: HttpStatus;
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/AuthUser.ts | packages/hoppscotch-backend/src/types/AuthUser.ts | import { User } from 'src/generated/prisma/client';
export type AuthUser = User;
export interface SSOProviderProfile {
provider: string;
id: string;
}
export type IsAdmin = {
isAdmin: boolean;
};
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/types/AuthTokens.ts | packages/hoppscotch-backend/src/types/AuthTokens.ts | /**
* @see https://auth0.com/docs/secure/tokens/json-web-tokens/json-web-token-claims#registered-claims
**/
export interface AccessTokenPayload {
iss: string; // iss:issuer
sub: string; // sub:subject
aud: [string]; // aud:audience
iat?: number; // iat:issued at time
}
export interface RefreshTokenPayload {
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-collection/user-collection.resolver.ts | packages/hoppscotch-backend/src/user-collection/user-collection.resolver.ts | import { UseGuards } from '@nestjs/common';
import {
Resolver,
Mutation,
Args,
ID,
Query,
ResolveField,
Parent,
Subscription,
} from '@nestjs/graphql';
import { GqlUser } from 'src/decorators/gql-user.decorator';
import { GqlAuthGuard } from 'src/guards/gql-auth.guard';
import { PubSubService } from 'sr... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-collection/user-collection.service.spec.ts | packages/hoppscotch-backend/src/user-collection/user-collection.service.spec.ts | import { UserCollection as DBUserCollection } from 'src/generated/prisma/client';
import { mockDeep, mockReset } from 'jest-mock-extended';
import {
USER_COLL_DEST_SAME,
USER_COLL_IS_PARENT_COLL,
USER_COLL_NOT_FOUND,
USER_COLL_NOT_SAME_TYPE,
USER_COLL_NOT_SAME_USER,
USER_COLL_REORDERING_FAILED,
USER_COLL_... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | true |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-collection/input-type.args.ts | packages/hoppscotch-backend/src/user-collection/input-type.args.ts | import { Field, ID, ArgsType } from '@nestjs/graphql';
import { ReqType } from 'src/types/RequestTypes';
import { PaginationArgs } from 'src/types/input-types.args';
@ArgsType()
export class CreateRootUserCollectionArgs {
@Field({ name: 'title', description: 'Title of the new user collection' })
title: string;
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-collection/user-collection.service.ts | packages/hoppscotch-backend/src/user-collection/user-collection.service.ts | import { ConflictException, Injectable } from '@nestjs/common';
import {
USER_COLL_DEST_SAME,
USER_COLL_IS_PARENT_COLL,
USER_COLL_NOT_FOUND,
USER_COLL_NOT_SAME_TYPE,
USER_COLL_NOT_SAME_USER,
USER_COLL_REORDERING_FAILED,
USER_COLL_SAME_NEXT_COLL,
USER_COLL_SHORT_TITLE,
USER_COLL_ALREADY_ROOT,
USER_NO... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | true |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-collection/user-collection.module.ts | packages/hoppscotch-backend/src/user-collection/user-collection.module.ts | import { Module } from '@nestjs/common';
import { UserCollectionService } from './user-collection.service';
import { UserCollectionResolver } from './user-collection.resolver';
import { UserModule } from 'src/user/user.module';
@Module({
imports: [UserModule],
providers: [UserCollectionService, UserCollectionResol... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-collection/user-collections.model.ts | packages/hoppscotch-backend/src/user-collection/user-collections.model.ts | import { ObjectType, Field, ID } from '@nestjs/graphql';
import { ReqType } from 'src/types/RequestTypes';
import { UserRequest } from 'src/user-request/user-request.model';
@ObjectType()
export class UserCollection {
@Field(() => ID, {
description: 'ID of the user collection',
})
id: string;
@Field({
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/shortcode/shortcode.module.ts | packages/hoppscotch-backend/src/shortcode/shortcode.module.ts | import { Module } from '@nestjs/common';
import { UserModule } from 'src/user/user.module';
import { ShortcodeResolver } from './shortcode.resolver';
import { ShortcodeService } from './shortcode.service';
@Module({
imports: [UserModule],
providers: [ShortcodeService, ShortcodeResolver],
exports: [ShortcodeServi... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/shortcode/shortcode.model.ts | packages/hoppscotch-backend/src/shortcode/shortcode.model.ts | import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class Shortcode {
@Field(() => ID, {
description: 'The 12 digit alphanumeric code',
})
id: string;
@Field({
description: 'JSON string representing the request data',
})
request: string;
@Field({
description: 'JSON... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts | packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts | import {
Args,
ID,
Mutation,
Query,
Resolver,
Subscription,
} from '@nestjs/graphql';
import * as E from 'fp-ts/Either';
import { UseGuards } from '@nestjs/common';
import { Shortcode } from './shortcode.model';
import { ShortcodeService } from './shortcode.service';
import { throwErr } from 'src/utils';
im... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts | packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts | import { mockDeep, mockReset } from 'jest-mock-extended';
import { PrismaService } from '../prisma/prisma.service';
import {
SHORTCODE_INVALID_PROPERTIES_JSON,
SHORTCODE_INVALID_REQUEST_JSON,
SHORTCODE_NOT_FOUND,
SHORTCODE_PROPERTIES_NOT_FOUND,
} from 'src/errors';
import { Shortcode, ShortcodeWithUserEmail } f... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/shortcode/shortcode.service.ts | packages/hoppscotch-backend/src/shortcode/shortcode.service.ts | import { Injectable, OnModuleInit } from '@nestjs/common';
import * as T from 'fp-ts/Task';
import * as TO from 'fp-ts/TaskOption';
import * as E from 'fp-ts/Either';
import { PrismaService } from 'src/prisma/prisma.service';
import {
SHORTCODE_INVALID_PROPERTIES_JSON,
SHORTCODE_INVALID_REQUEST_JSON,
SHORTCODE_NO... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-environment/user.resolver.ts | packages/hoppscotch-backend/src/user-environment/user.resolver.ts | import { Parent, ResolveField, Resolver } from '@nestjs/graphql';
import { User } from 'src/user/user.model';
import { UserEnvironment } from './user-environments.model';
import { UserEnvironmentsService } from './user-environments.service';
import * as E from 'fp-ts/Either';
import { throwErr } from '../utils';
@Reso... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-environment/user-environments.model.ts | packages/hoppscotch-backend/src/user-environment/user-environments.model.ts | import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class UserEnvironment {
@Field(() => ID, {
description: 'ID of the User Environment',
})
id: string;
@Field(() => ID, {
description: 'ID of the user this environment belongs to',
})
userUid: string;
@Field(() => Strin... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-environment/user-environments.service.spec.ts | packages/hoppscotch-backend/src/user-environment/user-environments.service.spec.ts | import { UserEnvironment } from './user-environments.model';
import { mockDeep, mockReset } from 'jest-mock-extended';
import { PrismaService } from '../prisma/prisma.service';
import { UserEnvironmentsService } from './user-environments.service';
import {
USER_ENVIRONMENT_ENV_DOES_NOT_EXISTS,
USER_ENVIRONMENT_GLOB... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-environment/user-environments.resolver.ts | packages/hoppscotch-backend/src/user-environment/user-environments.resolver.ts | import { Args, ID, Mutation, Resolver, Subscription } from '@nestjs/graphql';
import { PubSubService } from '../pubsub/pubsub.service';
import { UserEnvironment } from './user-environments.model';
import { UseGuards } from '@nestjs/common';
import { GqlAuthGuard } from '../guards/gql-auth.guard';
import { GqlUser } fro... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-environment/user-environments.module.ts | packages/hoppscotch-backend/src/user-environment/user-environments.module.ts | import { Module } from '@nestjs/common';
import { UserModule } from '../user/user.module';
import { UserEnvsUserResolver } from './user.resolver';
import { UserEnvironmentsResolver } from './user-environments.resolver';
import { UserEnvironmentsService } from './user-environments.service';
@Module({
imports: [UserMo... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/user-environment/user-environments.service.ts | packages/hoppscotch-backend/src/user-environment/user-environments.service.ts | import { Injectable } from '@nestjs/common';
import { UserEnvironment } from './user-environments.model';
import { PrismaService } from '../prisma/prisma.service';
import { PubSubService } from '../pubsub/pubsub.service';
import * as E from 'fp-ts/Either';
import * as O from 'fp-ts/Option';
import {
USER_ENVIRONMENT_... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/infra-config.resolver.ts | packages/hoppscotch-backend/src/infra-config/infra-config.resolver.ts | import { UseGuards } from '@nestjs/common';
import { Args, Query, Resolver, Subscription } from '@nestjs/graphql';
import { GqlThrottlerGuard } from 'src/guards/gql-throttler.guard';
import { InfraConfig } from './infra-config.model';
import { InfraConfigService } from './infra-config.service';
import { GqlAuthGuard } ... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/infra-config.model.ts | packages/hoppscotch-backend/src/infra-config/infra-config.model.ts | import { Field, ObjectType, registerEnumType } from '@nestjs/graphql';
import { AuthProvider } from 'src/auth/helper';
import { InfraConfigEnum } from 'src/types/InfraConfig';
import { ServiceStatus } from './helper';
@ObjectType()
export class InfraConfig {
@Field({
description: 'Infra Config Name',
})
name... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/input-args.ts | packages/hoppscotch-backend/src/infra-config/input-args.ts | import { Field, InputType } from '@nestjs/graphql';
import { InfraConfigEnum } from 'src/types/InfraConfig';
import { ServiceStatus } from './helper';
import { AuthProvider } from 'src/auth/helper';
@InputType()
export class InfraConfigArgs {
@Field(() => InfraConfigEnum, {
description: 'Infra Config Name',
})... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/helper.ts | packages/hoppscotch-backend/src/infra-config/helper.ts | import { AuthProvider } from 'src/auth/helper';
import { ENV_INVALID_DATA_ENCRYPTION_KEY } from 'src/errors';
import { PrismaService } from 'src/prisma/prisma.service';
import { InfraConfigEnum } from 'src/types/InfraConfig';
import { decrypt, encrypt } from 'src/utils';
import { randomBytes } from 'crypto';
export en... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/infra-config.controller.ts | packages/hoppscotch-backend/src/infra-config/infra-config.controller.ts | import { Controller, Get, HttpStatus, Put, UseGuards } from '@nestjs/common';
import { ThrottlerBehindProxyGuard } from 'src/guards/throttler-behind-proxy.guard';
import { InfraConfigService } from './infra-config.service';
import * as E from 'fp-ts/Either';
import { JwtAuthGuard } from 'src/auth/guards/jwt-auth.guard'... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/infra-config.service.ts | packages/hoppscotch-backend/src/infra-config/infra-config.service.ts | import { Injectable, OnModuleInit } from '@nestjs/common';
import { InfraConfig } from './infra-config.model';
import { PrismaService } from 'src/prisma/prisma.service';
import { InfraConfig as DBInfraConfig } from 'src/generated/prisma/client';
import * as E from 'fp-ts/Either';
import { InfraConfigEnum } from 'src/ty... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/infra-config.module.ts | packages/hoppscotch-backend/src/infra-config/infra-config.module.ts | import { Module } from '@nestjs/common';
import { InfraConfigService } from './infra-config.service';
import { SiteController } from './infra-config.controller';
import { InfraConfigResolver } from './infra-config.resolver';
import { UserModule } from 'src/user/user.module';
import { OnboardingController } from './onbo... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/onboarding.controller.ts | packages/hoppscotch-backend/src/infra-config/onboarding.controller.ts | import { Body, Controller, Get, HttpStatus, Post, Query } from '@nestjs/common';
import { InfraConfigService } from './infra-config.service';
import { RESTError } from 'src/types/RESTError';
import { throwHTTPErr } from 'src/utils';
import * as E from 'fp-ts/Either';
import {
GetOnboardingConfigResponse,
GetOnboard... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/infra-config.service.spec.ts | packages/hoppscotch-backend/src/infra-config/infra-config.service.spec.ts | import { mockDeep, mockReset } from 'jest-mock-extended';
import { PrismaService } from 'src/prisma/prisma.service';
import { InfraConfigService } from './infra-config.service';
import { InfraConfigEnum } from 'src/types/InfraConfig';
import {
INFRA_CONFIG_NOT_FOUND,
INFRA_CONFIG_OPERATION_NOT_ALLOWED,
INFRA_CONF... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/infra-config/dto/onboarding.dto.ts | packages/hoppscotch-backend/src/infra-config/dto/onboarding.dto.ts | import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { Expose } from 'class-transformer';
import { IsOptional, IsString } from 'class-validator';
import { InfraConfigEnum } from 'src/types/InfraConfig';
export class GetOnboardingStatusResponse {
@ApiProperty()
@Expose()
onboardingCompleted:... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/access-token/access-token.controller.ts | packages/hoppscotch-backend/src/access-token/access-token.controller.ts | import {
BadRequestException,
Body,
Controller,
Delete,
Get,
Param,
ParseIntPipe,
Post,
Query,
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import { AccessTokenService } from './access-token.service';
import { CreateAccessTokenDto } from './dto/create-access-token.dto';
import { JwtAuthGua... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/access-token/access-token.module.ts | packages/hoppscotch-backend/src/access-token/access-token.module.ts | import { Module } from '@nestjs/common';
import { AccessTokenController } from './access-token.controller';
import { AccessTokenService } from './access-token.service';
import { TeamCollectionModule } from 'src/team-collection/team-collection.module';
import { TeamEnvironmentsModule } from 'src/team-environments/team-e... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/access-token/helper.ts | packages/hoppscotch-backend/src/access-token/helper.ts | import { AccessToken } from 'src/types/AccessToken';
// Response type of PAT creation method
export type CreateAccessTokenResponse = {
token: string;
info: AccessToken;
};
// Response type of any error in PAT module
export type CLIErrorResponse = {
reason: string;
};
// Return a CLIErrorResponse object
export ... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/access-token/access-token.service.spec.ts | packages/hoppscotch-backend/src/access-token/access-token.service.spec.ts | import { AccessTokenService } from './access-token.service';
import { mockDeep, mockReset } from 'jest-mock-extended';
import { PrismaService } from 'src/prisma/prisma.service';
import {
ACCESS_TOKEN_EXPIRY_INVALID,
ACCESS_TOKEN_LABEL_SHORT,
ACCESS_TOKEN_NOT_FOUND,
} from 'src/errors';
import { AuthUser } from 's... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/access-token/access-token.service.ts | packages/hoppscotch-backend/src/access-token/access-token.service.ts | import { HttpStatus, Injectable } from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
import { CreateAccessTokenDto } from './dto/create-access-token.dto';
import { AuthUser } from 'src/types/AuthUser';
import { calculateExpirationDate, isValidLength } from 'src/utils';
import * as E from ... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/access-token/dto/create-access-token.dto.ts | packages/hoppscotch-backend/src/access-token/dto/create-access-token.dto.ts | // Inputs to create a new PAT
export class CreateAccessTokenDto {
label: string;
expiryInDays: number | null;
}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/prisma/prisma.service.ts | packages/hoppscotch-backend/src/prisma/prisma.service.ts | import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common';
import { PrismaClient, Prisma } from 'src/generated/prisma/client';
import { PrismaPg } from '@prisma/adapter-pg';
import pg from 'pg';
import { parseIntSafe } from 'src/utils';
@Injectable()
export class PrismaService
extends PrismaClient
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/prisma/prisma-error-codes.ts | packages/hoppscotch-backend/src/prisma/prisma-error-codes.ts | export enum PrismaError {
DATABASE_UNREACHABLE = 'P1001',
TABLE_DOES_NOT_EXIST = 'P2021',
UNIQUE_CONSTRAINT_VIOLATION = 'P2002',
TRANSACTION_TIMEOUT = 'P2028',
TRANSACTION_DEADLOCK = 'P2034', // write conflict or a deadlock
}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/prisma/prisma.module.ts | packages/hoppscotch-backend/src/prisma/prisma.module.ts | import { Global, Module } from '@nestjs/common/decorators';
import { PrismaService } from './prisma.service';
@Global()
@Module({
providers: [PrismaService],
exports: [PrismaService],
})
export class PrismaModule {}
| typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team-environments/team-environments.module.ts | packages/hoppscotch-backend/src/team-environments/team-environments.module.ts | import { Module } from '@nestjs/common';
import { TeamEnvironmentsService } from './team-environments.service';
import { TeamEnvironmentsResolver } from './team-environments.resolver';
import { UserModule } from 'src/user/user.module';
import { TeamModule } from 'src/team/team.module';
import { GqlTeamEnvTeamGuard } fr... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team-environments/team-environments.service.ts | packages/hoppscotch-backend/src/team-environments/team-environments.service.ts | import { Injectable } from '@nestjs/common';
import {
TeamEnvironment as DBTeamEnvironment,
Prisma,
} from 'src/generated/prisma/client';
import { PrismaService } from 'src/prisma/prisma.service';
import { PubSubService } from 'src/pubsub/pubsub.service';
import { TeamEnvironment } from './team-environments.model';... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team-environments/input-type.args.ts | packages/hoppscotch-backend/src/team-environments/input-type.args.ts | import { ArgsType, Field, ID } from '@nestjs/graphql';
@ArgsType()
export class CreateTeamEnvironmentArgs {
@Field({
name: 'name',
description: 'Name of the Team Environment',
})
name: string;
@Field(() => ID, {
name: 'teamID',
description: 'ID of the Team',
})
teamID: string;
@Field({
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team-environments/team-environments.resolver.ts | packages/hoppscotch-backend/src/team-environments/team-environments.resolver.ts | import { UseGuards } from '@nestjs/common';
import { Resolver, Mutation, Args, Subscription, ID } from '@nestjs/graphql';
import { SkipThrottle } from '@nestjs/throttler';
import { GqlAuthGuard } from 'src/guards/gql-auth.guard';
import { GqlThrottlerGuard } from 'src/guards/gql-throttler.guard';
import { PubSubService... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team-environments/team-environments.model.ts | packages/hoppscotch-backend/src/team-environments/team-environments.model.ts | import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class TeamEnvironment {
@Field(() => ID, {
description: 'ID of the Team Environment',
})
id: string;
@Field(() => ID, {
description: 'ID of the team this environment belongs to',
})
teamID: string;
@Field({
descri... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team-environments/team.resolver.ts | packages/hoppscotch-backend/src/team-environments/team.resolver.ts | import { Parent, ResolveField, Resolver } from '@nestjs/graphql';
import { Team } from 'src/team/team.model';
import { TeamEnvironment } from './team-environments.model';
import { TeamEnvironmentsService } from './team-environments.service';
@Resolver(() => Team)
export class TeamEnvsTeamResolver {
constructor(priva... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
hoppscotch/hoppscotch | https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-backend/src/team-environments/team-environments.service.spec.ts | packages/hoppscotch-backend/src/team-environments/team-environments.service.spec.ts | import { mockDeep, mockReset } from 'jest-mock-extended';
import { PrismaService } from 'src/prisma/prisma.service';
import { TeamEnvironment } from './team-environments.model';
import { TeamEnvironmentsService } from './team-environments.service';
import {
TEAM_ENVIRONMENT_NOT_FOUND,
TEAM_ENVIRONMENT_SHORT_NAME,
... | typescript | MIT | 67dff5fe0f99312690c1cb0059388aee804b30e0 | 2026-01-04T15:25:31.920196Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.