feat: attributes in cards and projects

This commit is contained in:
2025-02-27 18:34:15 +04:00
parent 8083bdf3d0
commit d37dce7980
75 changed files with 1674 additions and 281 deletions

View File

@@ -4,12 +4,15 @@
/* eslint-disable */
import type { AttributeTypeSchema } from './AttributeTypeSchema';
export type AttributeSchema = {
id: number;
label: string;
name: string;
isApplicableToGroup: boolean;
isNullable: boolean;
defaultValue: (boolean | number | string | null);
typeId: number;
description: string;
id: number;
type: AttributeTypeSchema;
isDeleted: boolean;
};

View File

@@ -0,0 +1,14 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseAttributeSchema = {
label: string;
name: string;
isApplicableToGroup: boolean;
isNullable: boolean;
defaultValue: (boolean | number | string | null);
typeId: number;
description: string;
};

View File

@@ -14,5 +14,6 @@ export type CardGeneralInfoSchema = {
boardId: number;
statusId: number;
isServicesProfitAccounted: boolean;
clientId: (number | null);
};

View File

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

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type CreateAttributeResponse = {
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 DeleteAttributeResponse = {
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 { ModuleSchema } from './ModuleSchema';
export type GetAllModulesResponse = {
modules: Array<ModuleSchema>;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { AttributeTypeSchema } from './AttributeTypeSchema';
export type GetAttributeTypesResponse = {
types: Array<AttributeTypeSchema>;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { AttributeSchema } from './AttributeSchema';
export type GetAttributesResponse = {
attributes: Array<AttributeSchema>;
};

View File

@@ -5,6 +5,7 @@
export type ModuleSchema = {
id: number;
key: string;
label: string;
isDeleted: boolean;
};

View File

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

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UpdateAttributeResponse = {
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 UpdateAttributesRequest = {
projectId: number;
attributeIds: Array<number>;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UpdateAttributesResponse = {
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 UpdateModulesRequest = {
projectId: number;
moduleIds: Array<number>;
};

View File

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