feat: added tags for cards, aligned status headers
This commit is contained in:
@@ -27,6 +27,7 @@ export type { BarcodeTemplateUpdateRequest } from './models/BarcodeTemplateUpdat
|
||||
export type { BarcodeTemplateUpdateResponse } from './models/BarcodeTemplateUpdateResponse';
|
||||
export type { BaseAttributeSchema } from './models/BaseAttributeSchema';
|
||||
export type { BaseBoardSchema } from './models/BaseBoardSchema';
|
||||
export type { BaseCardTagSchema } from './models/BaseCardTagSchema';
|
||||
export type { BaseEnumListSchema } from './models/BaseEnumListSchema';
|
||||
export type { BaseEnumSchema } from './models/BaseEnumSchema';
|
||||
export type { BaseMarketplaceSchema } from './models/BaseMarketplaceSchema';
|
||||
@@ -101,6 +102,7 @@ export type { CardStatusHistorySchema } from './models/CardStatusHistorySchema';
|
||||
export type { CardSummary } from './models/CardSummary';
|
||||
export type { CardSummaryReorderRequest } from './models/CardSummaryReorderRequest';
|
||||
export type { CardSummaryResponse } from './models/CardSummaryResponse';
|
||||
export type { CardTagSchema } from './models/CardTagSchema';
|
||||
export type { CardUpdateGeneralInfoRequest } from './models/CardUpdateGeneralInfoRequest';
|
||||
export type { CardUpdateGeneralInfoResponse } from './models/CardUpdateGeneralInfoResponse';
|
||||
export type { CardUpdateProductQuantityRequest } from './models/CardUpdateProductQuantityRequest';
|
||||
@@ -169,6 +171,8 @@ export type { CreateShippingWarehouseRequest } from './models/CreateShippingWare
|
||||
export type { CreateShippingWarehouseResponse } from './models/CreateShippingWarehouseResponse';
|
||||
export type { CreateStatusRequest } from './models/CreateStatusRequest';
|
||||
export type { CreateStatusResponse } from './models/CreateStatusResponse';
|
||||
export type { CreateTagRequest } from './models/CreateTagRequest';
|
||||
export type { CreateTagResponse } from './models/CreateTagResponse';
|
||||
export type { CreateTaskResponse } from './models/CreateTaskResponse';
|
||||
export type { CreateTransactionTagRequest } from './models/CreateTransactionTagRequest';
|
||||
export type { CreateUserRequest } from './models/CreateUserRequest';
|
||||
@@ -196,6 +200,7 @@ export type { DeleteShippingProductResponse } from './models/DeleteShippingProdu
|
||||
export type { DeleteShippingWarehouseRequest } from './models/DeleteShippingWarehouseRequest';
|
||||
export type { DeleteShippingWarehouseResponse } from './models/DeleteShippingWarehouseResponse';
|
||||
export type { DeleteStatusResponse } from './models/DeleteStatusResponse';
|
||||
export type { DeleteTagResponse } from './models/DeleteTagResponse';
|
||||
export type { DeleteTransactionResponse } from './models/DeleteTransactionResponse';
|
||||
export type { DeleteTransactionTagResponse } from './models/DeleteTransactionTagResponse';
|
||||
export type { DeleteUserRequest } from './models/DeleteUserRequest';
|
||||
@@ -346,6 +351,8 @@ export type { StartPauseByShiftIdResponse } from './models/StartPauseByShiftIdRe
|
||||
export type { StartPauseByUserIdResponse } from './models/StartPauseByUserIdResponse';
|
||||
export type { StartShiftResponse } from './models/StartShiftResponse';
|
||||
export type { StatusSchema } from './models/StatusSchema';
|
||||
export type { SwitchTagRequest } from './models/SwitchTagRequest';
|
||||
export type { SwitchTagResponse } from './models/SwitchTagResponse';
|
||||
export type { SynchronizeMarketplaceRequest } from './models/SynchronizeMarketplaceRequest';
|
||||
export type { TaskInfoResponse } from './models/TaskInfoResponse';
|
||||
export type { TimeTrackingData } from './models/TimeTrackingData';
|
||||
@@ -393,6 +400,8 @@ export type { UpdateStatusOrderRequest } from './models/UpdateStatusOrderRequest
|
||||
export type { UpdateStatusOrderResponse } from './models/UpdateStatusOrderResponse';
|
||||
export type { UpdateStatusRequest } from './models/UpdateStatusRequest';
|
||||
export type { UpdateStatusResponse } from './models/UpdateStatusResponse';
|
||||
export type { UpdateTagRequest } from './models/UpdateTagRequest';
|
||||
export type { UpdateTagResponse } from './models/UpdateTagResponse';
|
||||
export type { UpdateTimeTrackingRecordRequest } from './models/UpdateTimeTrackingRecordRequest';
|
||||
export type { UpdateTimeTrackingRecordResponse } from './models/UpdateTimeTrackingRecordResponse';
|
||||
export type { UpdateTransactionRequest } from './models/UpdateTransactionRequest';
|
||||
@@ -421,6 +430,7 @@ export { BillingService } from './services/BillingService';
|
||||
export { BoardService } from './services/BoardService';
|
||||
export { CardService } from './services/CardService';
|
||||
export { CardGroupService } from './services/CardGroupService';
|
||||
export { CardTagService } from './services/CardTagService';
|
||||
export { ClientService } from './services/ClientService';
|
||||
export { DepartmentService } from './services/DepartmentService';
|
||||
export { MarketplaceService } from './services/MarketplaceService';
|
||||
|
||||
9
src/client/models/BaseCardTagSchema.ts
Normal file
9
src/client/models/BaseCardTagSchema.ts
Normal 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;
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@ export type CardGeneralInfoSchema = {
|
||||
manager?: (UserSchema | null);
|
||||
boardId: number;
|
||||
statusId: number;
|
||||
isServicesProfitAccounted: boolean;
|
||||
clientId: (number | null);
|
||||
tags: Array<string>;
|
||||
};
|
||||
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
10
src/client/models/CardTagSchema.ts
Normal file
10
src/client/models/CardTagSchema.ts
Normal 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;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateTagRequest.ts
Normal file
9
src/client/models/CreateTagRequest.ts
Normal 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;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateTagResponse.ts
Normal file
9
src/client/models/CreateTagResponse.ts
Normal 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;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteTagResponse.ts
Normal file
9
src/client/models/DeleteTagResponse.ts
Normal 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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ export type GetProfitChartDataRequest = {
|
||||
projectId: number;
|
||||
boardId: number;
|
||||
cardStatusId: number;
|
||||
cardTagId: number;
|
||||
managerId: number;
|
||||
expenseTagId: number;
|
||||
incomeTagId: number;
|
||||
|
||||
@@ -10,6 +10,7 @@ export type GetProfitTableDataRequest = {
|
||||
projectId: number;
|
||||
boardId: number;
|
||||
cardStatusId: number;
|
||||
cardTagId: number;
|
||||
managerId: number;
|
||||
expenseTagId: number;
|
||||
incomeTagId: number;
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
/* eslint-disable */
|
||||
export type ProductsAndServicesGeneralInfoSchema = {
|
||||
shippingWarehouse?: (string | null);
|
||||
isServicesProfitAccounted: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
|
||||
10
src/client/models/SwitchTagRequest.ts
Normal file
10
src/client/models/SwitchTagRequest.ts
Normal 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);
|
||||
};
|
||||
|
||||
9
src/client/models/SwitchTagResponse.ts
Normal file
9
src/client/models/SwitchTagResponse.ts
Normal 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;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateTagRequest.ts
Normal file
9
src/client/models/UpdateTagRequest.ts
Normal 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;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateTagResponse.ts
Normal file
9
src/client/models/UpdateTagResponse.ts
Normal 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;
|
||||
};
|
||||
|
||||
97
src/client/services/CardTagService.ts
Normal file
97
src/client/services/CardTagService.ts
Normal file
@@ -0,0 +1,97 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateTagRequest } from '../models/CreateTagRequest';
|
||||
import type { CreateTagResponse } from '../models/CreateTagResponse';
|
||||
import type { DeleteTagResponse } from '../models/DeleteTagResponse';
|
||||
import type { SwitchTagRequest } from '../models/SwitchTagRequest';
|
||||
import type { SwitchTagResponse } from '../models/SwitchTagResponse';
|
||||
import type { UpdateTagRequest } from '../models/UpdateTagRequest';
|
||||
import type { UpdateTagResponse } from '../models/UpdateTagResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class CardTagService {
|
||||
/**
|
||||
* Create Tag
|
||||
* @returns CreateTagResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createTag({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateTagRequest,
|
||||
}): CancelablePromise<CreateTagResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/card-tag/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Tag
|
||||
* @returns UpdateTagResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateTag({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateTagRequest,
|
||||
}): CancelablePromise<UpdateTagResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/card-tag/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Tag
|
||||
* @returns DeleteTagResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteTag({
|
||||
cardTagId,
|
||||
}: {
|
||||
cardTagId: number,
|
||||
}): CancelablePromise<DeleteTagResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/card-tag/{card_tag_id}',
|
||||
path: {
|
||||
'card_tag_id': cardTagId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Switch Tag
|
||||
* @returns SwitchTagResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static switchTag({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: SwitchTagRequest,
|
||||
}): CancelablePromise<SwitchTagResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/card-tag/switch',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user