chore: format files using prettier (#7364)

* chore: format files using prettier

* chore: api server files formatted
This commit is contained in:
sriram veeraghanta 2025-07-08 20:41:11 +05:30 committed by GitHub
parent 0225d806cc
commit 6ce700fd5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
149 changed files with 1518 additions and 919 deletions

View file

@ -1,7 +1,4 @@
export type TBaseActivity<
TFieldKey extends string = string,
TVerbKey extends string = string,
> = {
export type TBaseActivity<TFieldKey extends string = string, TVerbKey extends string = string> = {
id: string;
field: TFieldKey | undefined;
epoch: number;
@ -19,17 +16,14 @@ export type TBaseActivity<
updated_at: string;
};
export type TWorkspaceBaseActivity<
K extends string = string,
V extends string = string,
> = TBaseActivity<K, V> & {
export type TWorkspaceBaseActivity<K extends string = string, V extends string = string> = TBaseActivity<K, V> & {
workspace: string;
};
export type TProjectBaseActivity<
K extends string = string,
V extends string = string,
> = TWorkspaceBaseActivity<K, V> & {
export type TProjectBaseActivity<K extends string = string, V extends string = string> = TWorkspaceBaseActivity<
K,
V
> & {
project: string;
};

View file

@ -30,7 +30,6 @@ export enum ChartYAxisMetric {
BLOCKED_WORK_ITEM_COUNT = "BLOCKED_WORK_ITEM_COUNT",
}
export type TAnalyticsTabsBase = "overview" | "work-items";
export type TAnalyticsGraphsBase = "projects" | "work-items" | "custom-work-items";
export interface AnalyticsTab {

View file

@ -1,5 +1,3 @@
export type TChartColorScheme = "modern" | "horizon" | "earthen";
export type TChartDatum = {
@ -12,5 +10,3 @@ export type TChart = {
data: TChartDatum[];
schema: Record<string, string>;
};

View file

@ -1,7 +1,4 @@
export type TCommandPaletteActionList = Record<
string,
{ title: string; description: string; action: () => void }
>;
export type TCommandPaletteActionList = Record<string, { title: string; description: string; action: () => void }>;
export type TCommandPaletteShortcutList = {
key: string;

View file

@ -15,9 +15,7 @@ export type TInstanceAuthenticationMethodKeys =
| "IS_GITHUB_ENABLED"
| "IS_GITLAB_ENABLED";
export type TInstanceGoogleAuthenticationConfigurationKeys =
| "GOOGLE_CLIENT_ID"
| "GOOGLE_CLIENT_SECRET";
export type TInstanceGoogleAuthenticationConfigurationKeys = "GOOGLE_CLIENT_ID" | "GOOGLE_CLIENT_SECRET";
export type TInstanceGithubAuthenticationConfigurationKeys =
| "GITHUB_CLIENT_ID"
@ -34,9 +32,7 @@ export type TInstanceAuthenticationConfigurationKeys =
| TInstanceGithubAuthenticationConfigurationKeys
| TInstanceGitlabAuthenticationConfigurationKeys;
export type TInstanceAuthenticationKeys =
| TInstanceAuthenticationMethodKeys
| TInstanceAuthenticationConfigurationKeys;
export type TInstanceAuthenticationKeys = TInstanceAuthenticationMethodKeys | TInstanceAuthenticationConfigurationKeys;
export type TGetBaseAuthenticationModeProps = {
disabled: boolean;

View file

@ -1 +1 @@
export type TInstanceImageConfigurationKeys = "UNSPLASH_ACCESS_KEY";
export type TInstanceImageConfigurationKeys = "UNSPLASH_ACCESS_KEY";

View file

@ -7,13 +7,7 @@ export * from "./issue_relation";
export * from "./issue_sub_issues";
export * from "./activity/base";
export type TLoader =
| "init-loader"
| "mutation"
| "pagination"
| "loaded"
| undefined;
export type TLoader = "init-loader" | "mutation" | "pagination" | "loaded" | undefined;
export type TGroupedIssues = {
[group_id: string]: string[];

View file

@ -207,4 +207,4 @@ export interface IWorkItemPeekOverview {
embedRemoveCurrentNotification?: () => void;
is_draft?: boolean;
storeType?: EIssuesStoreType;
}
}

View file

@ -15,7 +15,7 @@ export type TIssueAttachment = {
};
export type TIssueAttachmentUploadResponse = TFileSignedURLResponse & {
attachment: TIssueAttachment
attachment: TIssueAttachment;
};
export type TIssueAttachmentMap = {

View file

@ -2,13 +2,7 @@ import type { TIssue } from "../issues/issue";
import type { IIssueFilterOptions } from "../view-props";
import type { ILinkDetails } from "../issues";
export type TModuleStatus =
| "backlog"
| "planned"
| "in-progress"
| "paused"
| "completed"
| "cancelled";
export type TModuleStatus = "backlog" | "planned" | "in-progress" | "paused" | "completed" | "cancelled";
export type TModuleCompletionChartDistribution = {
[key: string]: number | null;
@ -114,9 +108,7 @@ export type ModuleLink = {
url: string;
};
export type SelectModuleType =
| (IModule & { actionType: "edit" | "delete" | "create-issue" })
| undefined;
export type SelectModuleType = (IModule & { actionType: "edit" | "delete" | "create-issue" }) | undefined;
export type TModulePlotType = "burndown" | "points";

View file

@ -26,9 +26,4 @@ export interface IPragmaticDropPayload {
self: TDropTarget & TDropTargetMiscellaneousData;
}
export type InstructionType =
| "reparent"
| "reorder-above"
| "reorder-below"
| "make-child"
| "instruction-blocked";
export type InstructionType = "reparent" | "reorder-above" | "reorder-below" | "make-child" | "instruction-blocked";

View file

@ -13,9 +13,7 @@ export type TProjectDisplayFilters = {
order_by?: TProjectOrderByOptions;
};
export type TProjectAppliedDisplayFilterKeys =
| "my_projects"
| "archived_projects";
export type TProjectAppliedDisplayFilterKeys = "my_projects" | "archived_projects";
export type TProjectFilters = {
access?: string[] | null;

View file

@ -152,4 +152,4 @@ export interface ISearchIssueResponse {
export type TPartialProject = IPartialProject;
export type TProject = TPartialProject & IProject;
export type TProject = TPartialProject & IProject;

View file

@ -1,9 +1,5 @@
import { TLogoProps } from "./common";
import {
IIssueDisplayFilterOptions,
IIssueDisplayProperties,
IIssueFilterOptions,
} from "./view-props";
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "./view-props";
export enum EViewAccess {
PRIVATE,

View file

@ -32,8 +32,4 @@ export interface IWorkspaceView {
};
}
export type TStaticViewTypes =
| "all-issues"
| "assigned"
| "created"
| "subscribed";
export type TStaticViewTypes = "all-issues" | "assigned" | "created" | "subscribed";