[WEB-5416] fix: Use proper import syntax (#8105)
This commit is contained in:
parent
34c0e81d8e
commit
95c742244e
526 changed files with 1002 additions and 923 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { IProjectLite } from "./project";
|
||||
import { IWorkspaceLite } from "./workspace";
|
||||
import type { IProjectLite } from "./project";
|
||||
import type { IWorkspaceLite } from "./workspace";
|
||||
|
||||
export interface IGptResponse {
|
||||
response: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TChartData } from "./charts";
|
||||
import type { TChartData } from "./charts";
|
||||
|
||||
export enum ChartXAxisProperty {
|
||||
STATES = "STATES",
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { EDurationFilters } from "./enums";
|
||||
import { IIssueActivity, TIssuePriorities } from "./issues";
|
||||
import { TIssue } from "./issues/issue";
|
||||
import { TIssueRelationTypes } from "./issues/issue_relation";
|
||||
import { TStateGroups } from "./state";
|
||||
import type { EDurationFilters } from "./enums";
|
||||
import type { IIssueActivity, TIssuePriorities } from "./issues";
|
||||
import type { TIssue } from "./issues/issue";
|
||||
import type { TIssueRelationTypes } from "./issues/issue_relation";
|
||||
import type { TStateGroups } from "./state";
|
||||
|
||||
export type TWidgetKeys =
|
||||
| "overview_stats"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TIssuePriorities } from "./issues";
|
||||
import type { TIssuePriorities } from "./issues";
|
||||
|
||||
export type TDuplicateIssuePayload = {
|
||||
title: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { EEstimateSystem, EEstimateUpdateStages } from "./enums";
|
||||
import type { EEstimateSystem, EEstimateUpdateStages } from "./enums";
|
||||
|
||||
export interface IEstimatePoint {
|
||||
id: string | undefined;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TLogoProps } from "../common";
|
||||
import type { TLogoProps } from "../common";
|
||||
|
||||
export type IFavorite = {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { EFileAssetType } from "./enums";
|
||||
import type { EFileAssetType } from "./enums";
|
||||
|
||||
export type TFileMetaDataLite = {
|
||||
name: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { TLogoProps } from "./common";
|
||||
import { TIssuePriorities } from "./issues";
|
||||
import type { TLogoProps } from "./common";
|
||||
import type { TIssuePriorities } from "./issues";
|
||||
|
||||
export type TRecentActivityFilterKeys = "all item" | "issue" | "page" | "project" | "workspace_page";
|
||||
export type THomeWidgetKeys = "quick_links" | "recents" | "my_stickies" | "quick_tutorial" | "new_at_plane";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
export * from "./github-importer";
|
||||
export * from "./jira-importer";
|
||||
|
||||
import { IProjectLite } from "../project";
|
||||
import type { IProjectLite } from "../project";
|
||||
// types
|
||||
import { IUserLite } from "../users";
|
||||
import type { IUserLite } from "../users";
|
||||
|
||||
export interface IImporterService {
|
||||
created_at: string;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// plane types
|
||||
import { TPaginationInfo } from "./common";
|
||||
import { TIssuePriorities } from "./issues";
|
||||
import { TIssue } from "./issues/issue";
|
||||
import type { TPaginationInfo } from "./common";
|
||||
import type { TIssuePriorities } from "./issues";
|
||||
import type { TIssue } from "./issues/issue";
|
||||
|
||||
export enum EInboxIssueCurrentTab {
|
||||
OPEN = "open",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { IUserLite } from "../users";
|
||||
import {
|
||||
import type { IUserLite } from "../users";
|
||||
import type {
|
||||
TInstanceAIConfigurationKeys,
|
||||
TInstanceEmailConfigurationKeys,
|
||||
TInstanceImageConfigurationKeys,
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import { ICycle } from "./cycle";
|
||||
import { TIssue } from "./issues/issue";
|
||||
import { IModule } from "./module";
|
||||
import { IProjectLite } from "./project";
|
||||
import { IStateLite } from "./state";
|
||||
import { IUserLite } from "./users";
|
||||
import {
|
||||
import type { ICycle } from "./cycle";
|
||||
import type { TIssue } from "./issues/issue";
|
||||
import type { IModule } from "./module";
|
||||
import type { IProjectLite } from "./project";
|
||||
import type { IStateLite } from "./state";
|
||||
import type { IUserLite } from "./users";
|
||||
import type {
|
||||
IIssueDisplayProperties,
|
||||
TIssueExtraOptions,
|
||||
TIssueGroupByOptions,
|
||||
TIssueGroupingFilters,
|
||||
TIssueOrderByOptions,
|
||||
} from "./view-props";
|
||||
import { IWorkspaceLite, Properties } from "./workspace";
|
||||
import type { IWorkspaceLite, Properties } from "./workspace";
|
||||
|
||||
export interface IIssueCycle {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ export * from "./issue_activity";
|
|||
export * from "./issue_comment";
|
||||
export * from "./issue_comment_reaction";
|
||||
|
||||
import { TIssuePriorities } from "../../issues";
|
||||
import type { TIssuePriorities } from "../../issues";
|
||||
|
||||
// root types
|
||||
export type TIssueActivityWorkspaceDetail = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// local imports
|
||||
import { EInboxIssueSource } from "../../inbox";
|
||||
import {
|
||||
import type { EInboxIssueSource } from "../../inbox";
|
||||
import type {
|
||||
TIssueActivityWorkspaceDetail,
|
||||
TIssueActivityProjectDetail,
|
||||
TIssueActivityIssueDetail,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { JSONContent } from "../../editor";
|
||||
import { EIssueCommentAccessSpecifier } from "../../enums";
|
||||
import { TFileSignedURLResponse } from "../../file";
|
||||
import { IUserLite } from "../../users";
|
||||
import { IWorkspaceLite } from "../../workspace";
|
||||
import {
|
||||
import type { JSONContent } from "../../editor";
|
||||
import type { EIssueCommentAccessSpecifier } from "../../enums";
|
||||
import type { TFileSignedURLResponse } from "../../file";
|
||||
import type { IUserLite } from "../../users";
|
||||
import type { IWorkspaceLite } from "../../workspace";
|
||||
import type {
|
||||
TIssueActivityWorkspaceDetail,
|
||||
TIssueActivityProjectDetail,
|
||||
TIssueActivityIssueDetail,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { TIssuePriorities } from "../issues";
|
||||
import { TIssuePublicComment } from "./activity/issue_comment";
|
||||
import { TIssueAttachment } from "./issue_attachment";
|
||||
import { TIssueLink } from "./issue_link";
|
||||
import { TIssueReaction, IIssuePublicReaction, IPublicVote } from "./issue_reaction";
|
||||
import { TIssueRelationTypes } from "./issue_relation";
|
||||
import type { TIssuePriorities } from "../issues";
|
||||
import type { TIssuePublicComment } from "./activity/issue_comment";
|
||||
import type { TIssueAttachment } from "./issue_attachment";
|
||||
import type { TIssueLink } from "./issue_link";
|
||||
import type { TIssueReaction, IIssuePublicReaction, IPublicVote } from "./issue_reaction";
|
||||
import type { TIssueRelationTypes } from "./issue_relation";
|
||||
|
||||
export enum EIssueLayoutTypes {
|
||||
LIST = "list",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TFileSignedURLResponse } from "../file";
|
||||
import type { TFileSignedURLResponse } from "../file";
|
||||
|
||||
export type TIssueAttachment = {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { IUserLite } from "../users";
|
||||
import type { IUserLite } from "../users";
|
||||
|
||||
export type TIssueReaction = {
|
||||
actor: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TIssue } from "./issue";
|
||||
import type { TIssue } from "./issue";
|
||||
|
||||
export type TIssueRelation = Record<TIssueRelationTypes, TIssue[]>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TIssue } from "./issue";
|
||||
import type { TIssue } from "./issue";
|
||||
|
||||
export type TSubIssuesStateDistribution = {
|
||||
backlog: string[];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { TLogoProps } from "../common";
|
||||
import { EPageAccess } from "../enums";
|
||||
import { TPageExtended } from "./extended";
|
||||
import type { TLogoProps } from "../common";
|
||||
import type { EPageAccess } from "../enums";
|
||||
import type { TPageExtended } from "./extended";
|
||||
|
||||
export type TPage = {
|
||||
access: EPageAccess | undefined;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { TLogoProps } from "../common";
|
||||
import { TUserPermissions } from "../enums";
|
||||
import { TStateGroups } from "../state";
|
||||
import type { TLogoProps } from "../common";
|
||||
import type { TUserPermissions } from "../enums";
|
||||
import type { TStateGroups } from "../state";
|
||||
import type { IUser, IUserLite } from "../users";
|
||||
import type { IWorkspace } from "../workspace";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { IProject, IProjectLite } from "./project";
|
||||
import { IWorkspaceLite } from "./workspace";
|
||||
import type { IProject, IProjectLite } from "./project";
|
||||
import type { IWorkspaceLite } from "./workspace";
|
||||
|
||||
export type TPublishEntityType = "project" | "page";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { IUserLite } from "./users";
|
||||
import type { IUserLite } from "./users";
|
||||
|
||||
export interface IIssueReaction {
|
||||
actor: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// local imports
|
||||
import { TFilterExpression, TFilterProperty } from "./expression";
|
||||
import type { TFilterExpression, TFilterProperty } from "./expression";
|
||||
|
||||
/**
|
||||
* External filter format
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { SingleOrArray } from "../utils";
|
||||
import { IFilterAdapter, TExternalFilter } from "./adapter";
|
||||
import { TFilterProperty, TFilterValue } from "./expression";
|
||||
import { TAllAvailableOperatorsForDisplay } from "./operators";
|
||||
import type { SingleOrArray } from "../utils";
|
||||
import type { IFilterAdapter, TExternalFilter } from "./adapter";
|
||||
import type { TFilterProperty, TFilterValue } from "./expression";
|
||||
import type { TAllAvailableOperatorsForDisplay } from "./operators";
|
||||
|
||||
/**
|
||||
* Condition payload for building filter expressions.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { TFilterProperty, TFilterValue } from "../expression";
|
||||
import { TOperatorConfigMap } from "../operator-configs";
|
||||
import type { TFilterProperty, TFilterValue } from "../expression";
|
||||
import type { TOperatorConfigMap } from "../operator-configs";
|
||||
|
||||
/**
|
||||
* Main filter configuration type for different properties.
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import {
|
||||
import type { TFilterValue } from "../expression";
|
||||
import type {
|
||||
TDateFilterFieldConfig,
|
||||
TDateRangeFilterFieldConfig,
|
||||
TSingleSelectFilterFieldConfig,
|
||||
TMultiSelectFilterFieldConfig,
|
||||
} from "../field-types";
|
||||
import { TCoreOperatorSpecificConfigs } from "../operator-configs";
|
||||
import { TFilterOperatorHelper } from "./shared";
|
||||
import type { TCoreOperatorSpecificConfigs } from "../operator-configs";
|
||||
import type { TFilterOperatorHelper } from "./shared";
|
||||
|
||||
// -------- DATE FILTER OPERATORS --------
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import type { TFilterValue } from "../expression";
|
||||
|
||||
// -------- DATE FILTER OPERATORS --------
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import {
|
||||
import type { TFilterValue } from "../expression";
|
||||
import type {
|
||||
TCoreAllAvailableDateFilterOperatorsForDisplay,
|
||||
TCoreAllAvailableSelectFilterOperatorsForDisplay,
|
||||
TCoreSupportedDateFilterOperators,
|
||||
TCoreSupportedSelectFilterOperators,
|
||||
} from "./core";
|
||||
import {
|
||||
import type {
|
||||
TExtendedAllAvailableDateFilterOperatorsForDisplay,
|
||||
TExtendedAllAvailableSelectFilterOperatorsForDisplay,
|
||||
TExtendedSupportedDateFilterOperators,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// local imports
|
||||
import { SingleOrArray } from "../utils";
|
||||
import { TSupportedOperators, LOGICAL_OPERATOR, TAllAvailableOperatorsForDisplay } from "./operators";
|
||||
import type { SingleOrArray } from "../utils";
|
||||
import type { TSupportedOperators, LOGICAL_OPERATOR, TAllAvailableOperatorsForDisplay } from "./operators";
|
||||
|
||||
/**
|
||||
* Filter node types for building hierarchical filter trees.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import { TSupportedOperators } from "../operators";
|
||||
import { TBaseFilterFieldConfig, IFilterOption } from "./shared";
|
||||
import type { TFilterValue } from "../expression";
|
||||
import type { TSupportedOperators } from "../operators";
|
||||
import type { TBaseFilterFieldConfig, IFilterOption } from "./shared";
|
||||
|
||||
/**
|
||||
* Core filter types
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import type { TFilterValue } from "../expression";
|
||||
|
||||
/**
|
||||
* Extended filter types
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import { CORE_FILTER_FIELD_TYPE, TCoreFilterFieldConfigs } from "./core";
|
||||
import { EXTENDED_FILTER_FIELD_TYPE, TExtendedFilterFieldConfigs } from "./extended";
|
||||
import type { TFilterValue } from "../expression";
|
||||
import type { TCoreFilterFieldConfigs } from "./core";
|
||||
import { CORE_FILTER_FIELD_TYPE } from "./core";
|
||||
import type { TExtendedFilterFieldConfigs } from "./extended";
|
||||
import { EXTENDED_FILTER_FIELD_TYPE } from "./extended";
|
||||
|
||||
// -------- COMPOSED FILTER TYPES --------
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import type { TFilterValue } from "../expression";
|
||||
|
||||
/**
|
||||
* Negative operator configuration for operators.
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import {
|
||||
import type { TFilterValue } from "../expression";
|
||||
import type {
|
||||
TDateFilterFieldConfig,
|
||||
TDateRangeFilterFieldConfig,
|
||||
TSingleSelectFilterFieldConfig,
|
||||
TMultiSelectFilterFieldConfig,
|
||||
} from "../field-types";
|
||||
import { CORE_COLLECTION_OPERATOR, CORE_COMPARISON_OPERATOR, CORE_EQUALITY_OPERATOR } from "../operators";
|
||||
import type { CORE_COLLECTION_OPERATOR, CORE_COMPARISON_OPERATOR, CORE_EQUALITY_OPERATOR } from "../operators";
|
||||
|
||||
// ----------------------------- EXACT Operator -----------------------------
|
||||
export type TCoreExactOperatorConfigs<V extends TFilterValue> =
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import type { TFilterValue } from "../expression";
|
||||
|
||||
// ----------------------------- EXACT Operator -----------------------------
|
||||
export type TExtendedExactOperatorConfigs<_V extends TFilterValue> = never;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { TFilterValue } from "../expression";
|
||||
import { EQUALITY_OPERATOR, COLLECTION_OPERATOR, COMPARISON_OPERATOR } from "../operators";
|
||||
import { TCoreExactOperatorConfigs, TCoreInOperatorConfigs, TCoreRangeOperatorConfigs } from "./core";
|
||||
import {
|
||||
import type { TFilterValue } from "../expression";
|
||||
import type { EQUALITY_OPERATOR, COLLECTION_OPERATOR, COMPARISON_OPERATOR } from "../operators";
|
||||
import type { TCoreExactOperatorConfigs, TCoreInOperatorConfigs, TCoreRangeOperatorConfigs } from "./core";
|
||||
import type {
|
||||
TExtendedExactOperatorConfigs,
|
||||
TExtendedInOperatorConfigs,
|
||||
TExtendedOperatorSpecificConfigs,
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import type { TCoreSupportedOperators } from "./core";
|
||||
import {
|
||||
CORE_LOGICAL_OPERATOR,
|
||||
CORE_EQUALITY_OPERATOR,
|
||||
CORE_COLLECTION_OPERATOR,
|
||||
CORE_COMPARISON_OPERATOR,
|
||||
TCoreSupportedOperators,
|
||||
CORE_MULTI_VALUE_OPERATORS,
|
||||
} from "./core";
|
||||
import type { TExtendedSupportedOperators } from "./extended";
|
||||
import {
|
||||
EXTENDED_LOGICAL_OPERATOR,
|
||||
EXTENDED_EQUALITY_OPERATOR,
|
||||
EXTENDED_COLLECTION_OPERATOR,
|
||||
EXTENDED_COMPARISON_OPERATOR,
|
||||
TExtendedSupportedOperators,
|
||||
EXTENDED_MULTI_VALUE_OPERATORS,
|
||||
} from "./extended";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { ICycle } from "./cycle";
|
||||
import { TIssue } from "./issues/issue";
|
||||
import { IModule } from "./module";
|
||||
import { TPage } from "./page";
|
||||
import { IProject } from "./project";
|
||||
import { IUser } from "./users";
|
||||
import { IWorkspace } from "./workspace";
|
||||
import type { ICycle } from "./cycle";
|
||||
import type { TIssue } from "./issues/issue";
|
||||
import type { IModule } from "./module";
|
||||
import type { TPage } from "./page";
|
||||
import type { IProject } from "./project";
|
||||
import type { IUser } from "./users";
|
||||
import type { IWorkspace } from "./workspace";
|
||||
|
||||
export type TSearchEntities = "user_mention" | "issue" | "project" | "cycle" | "module" | "page";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TLogoProps } from "./common";
|
||||
import type { TLogoProps } from "./common";
|
||||
|
||||
export type TSticky = {
|
||||
created_at?: string | undefined;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { TUserPermissions } from "./enums";
|
||||
import { IIssueActivity, TIssuePriorities, TStateGroups } from ".";
|
||||
import type { TUserPermissions } from "./enums";
|
||||
import type { IIssueActivity, TIssuePriorities, TStateGroups } from ".";
|
||||
|
||||
/**
|
||||
* @description The start of the week for the user
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { TIssue } from "./issues/issue";
|
||||
import { LOGICAL_OPERATOR, TSupportedOperators } from "./rich-filters";
|
||||
import { CompleteOrEmpty } from "./utils";
|
||||
import type { TIssue } from "./issues/issue";
|
||||
import type { LOGICAL_OPERATOR, TSupportedOperators } from "./rich-filters";
|
||||
import type { CompleteOrEmpty } from "./utils";
|
||||
|
||||
export type TIssueLayouts = "list" | "kanban" | "calendar" | "spreadsheet" | "gantt_chart";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { TLogoProps } from "./common";
|
||||
import {
|
||||
import type { TLogoProps } from "./common";
|
||||
import type {
|
||||
IIssueDisplayFilterOptions,
|
||||
IIssueDisplayProperties,
|
||||
IIssueFilterOptions,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { TIssuePriorities } from "../issues";
|
||||
import type { TIssuePriorities } from "../issues";
|
||||
|
||||
export type TWorkspaceDraftIssue = {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ENotificationFilterType } from "./enums";
|
||||
import type { ENotificationFilterType } from "./enums";
|
||||
import type { IUserLite } from "./users";
|
||||
|
||||
// filters
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import {
|
||||
import type {
|
||||
IWorkspaceViewProps,
|
||||
IIssueDisplayFilterOptions,
|
||||
IIssueDisplayProperties,
|
||||
TWorkItemFilterExpression,
|
||||
} from "./view-props";
|
||||
import { EViewAccess } from "./views";
|
||||
import type { EViewAccess } from "./views";
|
||||
|
||||
export interface IWorkspaceView {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { TPaginationInfo } from "./common";
|
||||
import type { ICycle } from "./cycle";
|
||||
import { TUserPermissions } from "./enums";
|
||||
import { TProjectMembership } from "./project";
|
||||
import type { TUserPermissions } from "./enums";
|
||||
import type { TProjectMembership } from "./project";
|
||||
import type { IUser, IUserLite } from "./users";
|
||||
import type { IWorkspaceViewProps } from "./view-props";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue