mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
remove references to repoIndexingStatus
This commit is contained in:
parent
9f4fb8480a
commit
721b2420c4
4 changed files with 1 additions and 17 deletions
|
|
@ -143,17 +143,6 @@ export const searchResponseSchema = z.object({
|
|||
isSearchExhaustive: z.boolean(),
|
||||
});
|
||||
|
||||
enum RepoIndexingStatus {
|
||||
NEW = 'NEW',
|
||||
IN_INDEX_QUEUE = 'IN_INDEX_QUEUE',
|
||||
INDEXING = 'INDEXING',
|
||||
INDEXED = 'INDEXED',
|
||||
FAILED = 'FAILED',
|
||||
IN_GC_QUEUE = 'IN_GC_QUEUE',
|
||||
GARBAGE_COLLECTING = 'GARBAGE_COLLECTING',
|
||||
GARBAGE_COLLECTION_FAILED = 'GARBAGE_COLLECTION_FAILED'
|
||||
}
|
||||
|
||||
export const repositoryQuerySchema = z.object({
|
||||
codeHostType: z.string(),
|
||||
repoId: z.number(),
|
||||
|
|
@ -163,7 +152,6 @@ export const repositoryQuerySchema = z.object({
|
|||
webUrl: z.string().optional(),
|
||||
imageUrl: z.string().optional(),
|
||||
indexedAt: z.coerce.date().optional(),
|
||||
repoIndexingStatus: z.nativeEnum(RepoIndexingStatus),
|
||||
});
|
||||
|
||||
export const listRepositoriesResponseSchema = repositoryQuerySchema.array();
|
||||
|
|
|
|||
|
|
@ -559,7 +559,6 @@ export const getRepos = async ({
|
|||
webUrl: repo.webUrl ?? undefined,
|
||||
imageUrl: repo.imageUrl ?? undefined,
|
||||
indexedAt: repo.indexedAt ?? undefined,
|
||||
repoIndexingStatus: repo.repoIndexingStatus,
|
||||
}))
|
||||
}));
|
||||
|
||||
|
|
@ -673,7 +672,6 @@ export const getRepoInfoByName = async (repoName: string) => sew(() =>
|
|||
webUrl: repo.webUrl ?? undefined,
|
||||
imageUrl: repo.imageUrl ?? undefined,
|
||||
indexedAt: repo.indexedAt ?? undefined,
|
||||
repoIndexingStatus: repo.repoIndexingStatus,
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ConnectionSyncStatus, OrgRole, Prisma, RepoIndexingStatus } from '@sourcebot/db';
|
||||
import { ConnectionSyncStatus, OrgRole, Prisma } from '@sourcebot/db';
|
||||
import { env } from './env.mjs';
|
||||
import { prisma } from "@/prisma";
|
||||
import { SINGLE_TENANT_ORG_ID, SINGLE_TENANT_ORG_DOMAIN, SOURCEBOT_GUEST_USER_ID, SINGLE_TENANT_ORG_NAME } from './lib/constants';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { checkIfOrgDomainExists } from "@/actions";
|
||||
import { RepoIndexingStatus } from "@sourcebot/db";
|
||||
import { z } from "zod";
|
||||
import { isServiceError } from "./utils";
|
||||
import { serviceErrorSchema } from "./serviceError";
|
||||
|
|
@ -22,7 +21,6 @@ export const repositoryQuerySchema = z.object({
|
|||
webUrl: z.string().optional(),
|
||||
imageUrl: z.string().optional(),
|
||||
indexedAt: z.coerce.date().optional(),
|
||||
repoIndexingStatus: z.nativeEnum(RepoIndexingStatus),
|
||||
});
|
||||
|
||||
export const searchContextQuerySchema = z.object({
|
||||
|
|
|
|||
Loading…
Reference in a new issue