mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +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(),
|
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({
|
export const repositoryQuerySchema = z.object({
|
||||||
codeHostType: z.string(),
|
codeHostType: z.string(),
|
||||||
repoId: z.number(),
|
repoId: z.number(),
|
||||||
|
|
@ -163,7 +152,6 @@ export const repositoryQuerySchema = z.object({
|
||||||
webUrl: z.string().optional(),
|
webUrl: z.string().optional(),
|
||||||
imageUrl: z.string().optional(),
|
imageUrl: z.string().optional(),
|
||||||
indexedAt: z.coerce.date().optional(),
|
indexedAt: z.coerce.date().optional(),
|
||||||
repoIndexingStatus: z.nativeEnum(RepoIndexingStatus),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const listRepositoriesResponseSchema = repositoryQuerySchema.array();
|
export const listRepositoriesResponseSchema = repositoryQuerySchema.array();
|
||||||
|
|
|
||||||
|
|
@ -559,7 +559,6 @@ export const getRepos = async ({
|
||||||
webUrl: repo.webUrl ?? undefined,
|
webUrl: repo.webUrl ?? undefined,
|
||||||
imageUrl: repo.imageUrl ?? undefined,
|
imageUrl: repo.imageUrl ?? undefined,
|
||||||
indexedAt: repo.indexedAt ?? undefined,
|
indexedAt: repo.indexedAt ?? undefined,
|
||||||
repoIndexingStatus: repo.repoIndexingStatus,
|
|
||||||
}))
|
}))
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
@ -673,7 +672,6 @@ export const getRepoInfoByName = async (repoName: string) => sew(() =>
|
||||||
webUrl: repo.webUrl ?? undefined,
|
webUrl: repo.webUrl ?? undefined,
|
||||||
imageUrl: repo.imageUrl ?? undefined,
|
imageUrl: repo.imageUrl ?? undefined,
|
||||||
indexedAt: repo.indexedAt ?? 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 { env } from './env.mjs';
|
||||||
import { prisma } from "@/prisma";
|
import { prisma } from "@/prisma";
|
||||||
import { SINGLE_TENANT_ORG_ID, SINGLE_TENANT_ORG_DOMAIN, SOURCEBOT_GUEST_USER_ID, SINGLE_TENANT_ORG_NAME } from './lib/constants';
|
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 { checkIfOrgDomainExists } from "@/actions";
|
||||||
import { RepoIndexingStatus } from "@sourcebot/db";
|
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { isServiceError } from "./utils";
|
import { isServiceError } from "./utils";
|
||||||
import { serviceErrorSchema } from "./serviceError";
|
import { serviceErrorSchema } from "./serviceError";
|
||||||
|
|
@ -22,7 +21,6 @@ export const repositoryQuerySchema = z.object({
|
||||||
webUrl: z.string().optional(),
|
webUrl: z.string().optional(),
|
||||||
imageUrl: z.string().optional(),
|
imageUrl: z.string().optional(),
|
||||||
indexedAt: z.coerce.date().optional(),
|
indexedAt: z.coerce.date().optional(),
|
||||||
repoIndexingStatus: z.nativeEnum(RepoIndexingStatus),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const searchContextQuerySchema = z.object({
|
export const searchContextQuerySchema = z.object({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue