feat: added tags for cards, aligned status headers

This commit is contained in:
2025-03-09 19:32:45 +04:00
parent 56135ae10c
commit ea80e92c18
48 changed files with 876 additions and 85 deletions

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseCardTagSchema = {
name: string;
projectId: number;
};

View File

@@ -12,7 +12,7 @@ export type CardGeneralInfoSchema = {
manager?: (UserSchema | null);
boardId: number;
statusId: number;
isServicesProfitAccounted: boolean;
clientId: (number | null);
tags: Array<string>;
};

View File

@@ -11,6 +11,7 @@ import type { CardGroupSchema } from './CardGroupSchema';
import type { CardProductSchema } from './CardProductSchema';
import type { CardServiceSchema } from './CardServiceSchema';
import type { CardStatusHistorySchema } from './CardStatusHistorySchema';
import type { CardTagSchema } from './CardTagSchema';
import type { ClientSchema } from './ClientSchema';
import type { PalletSchema } from './PalletSchema';
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
@@ -39,6 +40,7 @@ export type CardSchema = {
pallets?: Array<PalletSchema>;
boxes?: Array<BoxSchema>;
employees?: Array<CardEmployeesSchema>;
tags?: Array<CardTagSchema>;
attributes: Array<CardAttributeSchema>;
};

View File

@@ -6,6 +6,7 @@ import type { BaseMarketplaceSchema } from './BaseMarketplaceSchema';
import type { BoardSchema } from './BoardSchema';
import type { CardBillRequestSchema } from './CardBillRequestSchema';
import type { CardGroupSchema } from './CardGroupSchema';
import type { CardTagSchema } from './CardTagSchema';
import type { StatusSchema } from './StatusSchema';
export type CardSummary = {
id: number;
@@ -18,6 +19,7 @@ export type CardSummary = {
rank: number;
baseMarketplace?: (BaseMarketplaceSchema | null);
totalProducts: number;
tags: Array<CardTagSchema>;
shipmentWarehouseId: (number | null);
shipmentWarehouseName: (string | null);
billRequest?: (CardBillRequestSchema | null);

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type CardTagSchema = {
name: string;
projectId: number;
id: number;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseCardTagSchema } from './BaseCardTagSchema';
export type CreateTagRequest = {
tag: BaseCardTagSchema;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type CreateTagResponse = {
ok: boolean;
message: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeleteTagResponse = {
ok: boolean;
message: string;
};

View File

@@ -3,12 +3,14 @@
/* tslint:disable */
/* eslint-disable */
import type { AttributeSchema } from './AttributeSchema';
import type { CardTagSchema } from './CardTagSchema';
import type { ModuleSchema } from './ModuleSchema';
export type FullProjectSchema = {
name: string;
id: number;
attributes: Array<AttributeSchema>;
modules: Array<ModuleSchema>;
tags: Array<CardTagSchema>;
boardsCount: number;
};

View File

@@ -9,6 +9,7 @@ export type GetProfitChartDataRequest = {
projectId: number;
boardId: number;
cardStatusId: number;
cardTagId: number;
managerId: number;
expenseTagId: number;
incomeTagId: number;

View File

@@ -10,6 +10,7 @@ export type GetProfitTableDataRequest = {
projectId: number;
boardId: number;
cardStatusId: number;
cardTagId: number;
managerId: number;
expenseTagId: number;
incomeTagId: number;

View File

@@ -4,5 +4,6 @@
/* eslint-disable */
export type ProductsAndServicesGeneralInfoSchema = {
shippingWarehouse?: (string | null);
isServicesProfitAccounted: boolean;
};

View File

@@ -2,4 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ProfitTableGroupBy = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
export type ProfitTableGroupBy = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;

View File

@@ -3,11 +3,13 @@
/* tslint:disable */
/* eslint-disable */
import type { AttributeSchema } from './AttributeSchema';
import type { CardTagSchema } from './CardTagSchema';
import type { ModuleSchema } from './ModuleSchema';
export type ProjectSchema = {
name: string;
id: number;
attributes: Array<AttributeSchema>;
modules: Array<ModuleSchema>;
tags: Array<CardTagSchema>;
};

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type SwitchTagRequest = {
tagId: number;
cardId?: (number | null);
groupId?: (number | null);
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type SwitchTagResponse = {
ok: boolean;
message: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CardTagSchema } from './CardTagSchema';
export type UpdateTagRequest = {
tag: CardTagSchema;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UpdateTagResponse = {
ok: boolean;
message: string;
};