feat: projects and boards
This commit is contained in:
@@ -23,13 +23,17 @@ export type { BarcodeTemplateSchema } from './models/BarcodeTemplateSchema';
|
||||
export type { BarcodeTemplateSizeSchema } from './models/BarcodeTemplateSizeSchema';
|
||||
export type { BarcodeTemplateUpdateRequest } from './models/BarcodeTemplateUpdateRequest';
|
||||
export type { BarcodeTemplateUpdateResponse } from './models/BarcodeTemplateUpdateResponse';
|
||||
export type { BaseBoardSchema } from './models/BaseBoardSchema';
|
||||
export type { BaseEnumListSchema } from './models/BaseEnumListSchema';
|
||||
export type { BaseEnumSchema } from './models/BaseEnumSchema';
|
||||
export type { BaseMarketplaceSchema } from './models/BaseMarketplaceSchema';
|
||||
export type { BaseProjectSchema } from './models/BaseProjectSchema';
|
||||
export type { BaseShippingWarehouseSchema } from './models/BaseShippingWarehouseSchema';
|
||||
export type { BaseStatusSchema } from './models/BaseStatusSchema';
|
||||
export type { BaseTransactionTagSchema } from './models/BaseTransactionTagSchema';
|
||||
export type { BillPaymentStatus } from './models/BillPaymentStatus';
|
||||
export type { BillStatusUpdateRequest } from './models/BillStatusUpdateRequest';
|
||||
export type { BoardSchema } from './models/BoardSchema';
|
||||
export type { Body_parse_deals_excel } from './models/Body_parse_deals_excel';
|
||||
export type { Body_upload_passport_image } from './models/Body_upload_passport_image';
|
||||
export type { Body_upload_product_barcode_image } from './models/Body_upload_product_barcode_image';
|
||||
@@ -52,6 +56,8 @@ export type { ClientUpdateRequest } from './models/ClientUpdateRequest';
|
||||
export type { ClientUpdateResponse } from './models/ClientUpdateResponse';
|
||||
export type { CreateBarcodeTemplateAttributeRequest } from './models/CreateBarcodeTemplateAttributeRequest';
|
||||
export type { CreateBarcodeTemplateAttributeResponse } from './models/CreateBarcodeTemplateAttributeResponse';
|
||||
export type { CreateBoardRequest } from './models/CreateBoardRequest';
|
||||
export type { CreateBoardResponse } from './models/CreateBoardResponse';
|
||||
export type { CreateBoxInDealSchema } from './models/CreateBoxInDealSchema';
|
||||
export type { CreateBoxInPalletSchema } from './models/CreateBoxInPalletSchema';
|
||||
export type { CreateDealBillRequest } from './models/CreateDealBillRequest';
|
||||
@@ -73,6 +79,8 @@ export type { CreatePositionRequest } from './models/CreatePositionRequest';
|
||||
export type { CreatePositionResponse } from './models/CreatePositionResponse';
|
||||
export type { CreatePriceCategoryRequest } from './models/CreatePriceCategoryRequest';
|
||||
export type { CreatePriceCategoryResponse } from './models/CreatePriceCategoryResponse';
|
||||
export type { CreateProjectRequest } from './models/CreateProjectRequest';
|
||||
export type { CreateProjectResponse } from './models/CreateProjectResponse';
|
||||
export type { CreateResidualBoxRequest } from './models/CreateResidualBoxRequest';
|
||||
export type { CreateResidualBoxResponse } from './models/CreateResidualBoxResponse';
|
||||
export type { CreateResidualPalletRequest } from './models/CreateResidualPalletRequest';
|
||||
@@ -86,6 +94,8 @@ export type { CreateServicesKitResponse } from './models/CreateServicesKitRespon
|
||||
export type { CreateShippingProductSchema } from './models/CreateShippingProductSchema';
|
||||
export type { CreateShippingWarehouseRequest } from './models/CreateShippingWarehouseRequest';
|
||||
export type { CreateShippingWarehouseResponse } from './models/CreateShippingWarehouseResponse';
|
||||
export type { CreateStatusRequest } from './models/CreateStatusRequest';
|
||||
export type { CreateStatusResponse } from './models/CreateStatusResponse';
|
||||
export type { CreateTaskResponse } from './models/CreateTaskResponse';
|
||||
export type { CreateTransactionTagRequest } from './models/CreateTransactionTagRequest';
|
||||
export type { CreateUserRequest } from './models/CreateUserRequest';
|
||||
@@ -109,7 +119,6 @@ export type { DealCreateGroupRequest } from './models/DealCreateGroupRequest';
|
||||
export type { DealCreateGroupResponse } from './models/DealCreateGroupResponse';
|
||||
export type { DealCreateGuestUrlRequest } from './models/DealCreateGuestUrlRequest';
|
||||
export type { DealCreateGuestUrlResponse } from './models/DealCreateGuestUrlResponse';
|
||||
export type { DealCreateRequest } from './models/DealCreateRequest';
|
||||
export type { DealDeleteProductRequest } from './models/DealDeleteProductRequest';
|
||||
export type { DealDeleteProductResponse } from './models/DealDeleteProductResponse';
|
||||
export type { DealDeleteProductsRequest } from './models/DealDeleteProductsRequest';
|
||||
@@ -158,6 +167,7 @@ export type { DealUpdateServiceQuantityRequest } from './models/DealUpdateServic
|
||||
export type { DealUpdateServiceQuantityResponse } from './models/DealUpdateServiceQuantityResponse';
|
||||
export type { DealUpdateServiceRequest } from './models/DealUpdateServiceRequest';
|
||||
export type { DealUpdateServiceResponse } from './models/DealUpdateServiceResponse';
|
||||
export type { DeleteBoardResponse } from './models/DeleteBoardResponse';
|
||||
export type { DeleteBoxResponse } from './models/DeleteBoxResponse';
|
||||
export type { DeleteDepartmentResponse } from './models/DeleteDepartmentResponse';
|
||||
export type { DeleteDepartmentSectionResponse } from './models/DeleteDepartmentSectionResponse';
|
||||
@@ -172,6 +182,7 @@ export type { DeletePositionRequest } from './models/DeletePositionRequest';
|
||||
export type { DeletePositionResponse } from './models/DeletePositionResponse';
|
||||
export type { DeletePriceCategoryRequest } from './models/DeletePriceCategoryRequest';
|
||||
export type { DeletePriceCategoryResponse } from './models/DeletePriceCategoryResponse';
|
||||
export type { DeleteProjectResponse } from './models/DeleteProjectResponse';
|
||||
export type { DeleteResidualBoxResponse } from './models/DeleteResidualBoxResponse';
|
||||
export type { DeleteResidualPalletResponse } from './models/DeleteResidualPalletResponse';
|
||||
export type { DeleteResidualProductResponse } from './models/DeleteResidualProductResponse';
|
||||
@@ -179,6 +190,7 @@ export type { DeleteShiftResponse } from './models/DeleteShiftResponse';
|
||||
export type { DeleteShippingProductResponse } from './models/DeleteShippingProductResponse';
|
||||
export type { DeleteShippingWarehouseRequest } from './models/DeleteShippingWarehouseRequest';
|
||||
export type { DeleteShippingWarehouseResponse } from './models/DeleteShippingWarehouseResponse';
|
||||
export type { DeleteStatusResponse } from './models/DeleteStatusResponse';
|
||||
export type { DeleteTransactionResponse } from './models/DeleteTransactionResponse';
|
||||
export type { DeleteTransactionTagResponse } from './models/DeleteTransactionTagResponse';
|
||||
export type { DeleteUserRequest } from './models/DeleteUserRequest';
|
||||
@@ -211,6 +223,7 @@ export type { GetAvailableEmployeesToAssignResponse } from './models/GetAvailabl
|
||||
export type { GetAvailableUsersForDepartmentSectionResponse } from './models/GetAvailableUsersForDepartmentSectionResponse';
|
||||
export type { GetBarcodeTemplateByIdRequest } from './models/GetBarcodeTemplateByIdRequest';
|
||||
export type { GetBarcodeTemplateByIdResponse } from './models/GetBarcodeTemplateByIdResponse';
|
||||
export type { GetBoardsResponse } from './models/GetBoardsResponse';
|
||||
export type { GetClientMarketplacesRequest } from './models/GetClientMarketplacesRequest';
|
||||
export type { GetClientMarketplacesResponse } from './models/GetClientMarketplacesResponse';
|
||||
export type { GetDealBillById } from './models/GetDealBillById';
|
||||
@@ -229,6 +242,7 @@ export type { GetProfitChartDataRequest } from './models/GetProfitChartDataReque
|
||||
export type { GetProfitChartDataResponse } from './models/GetProfitChartDataResponse';
|
||||
export type { GetProfitTableDataRequest } from './models/GetProfitTableDataRequest';
|
||||
export type { GetProfitTableDataResponse } from './models/GetProfitTableDataResponse';
|
||||
export type { GetProjectsResponse } from './models/GetProjectsResponse';
|
||||
export type { GetResidualBoxResponse } from './models/GetResidualBoxResponse';
|
||||
export type { GetResidualPalletResponse } from './models/GetResidualPalletResponse';
|
||||
export type { GetServiceKitSchema } from './models/GetServiceKitSchema';
|
||||
@@ -285,6 +299,8 @@ export type { ProductUploadImageResponse } from './models/ProductUploadImageResp
|
||||
export type { ProfitChartDataItem } from './models/ProfitChartDataItem';
|
||||
export type { ProfitTableDataItem } from './models/ProfitTableDataItem';
|
||||
export type { ProfitTableGroupBy } from './models/ProfitTableGroupBy';
|
||||
export type { ProjectSchema } from './models/ProjectSchema';
|
||||
export type { ProjectSchemaWithCount } from './models/ProjectSchemaWithCount';
|
||||
export type { ReceiptBoxSchema } from './models/ReceiptBoxSchema';
|
||||
export type { ReceiptPalletSchema } from './models/ReceiptPalletSchema';
|
||||
export type { ResidualBoxSchema } from './models/ResidualBoxSchema';
|
||||
@@ -319,12 +335,17 @@ export type { ShippingWarehouseSchema } from './models/ShippingWarehouseSchema';
|
||||
export type { StartPauseByShiftIdResponse } from './models/StartPauseByShiftIdResponse';
|
||||
export type { StartPauseByUserIdResponse } from './models/StartPauseByUserIdResponse';
|
||||
export type { StartShiftResponse } from './models/StartShiftResponse';
|
||||
export type { StatusSchema } from './models/StatusSchema';
|
||||
export type { SynchronizeMarketplaceRequest } from './models/SynchronizeMarketplaceRequest';
|
||||
export type { TaskInfoResponse } from './models/TaskInfoResponse';
|
||||
export type { TimeTrackingData } from './models/TimeTrackingData';
|
||||
export type { TimeTrackingRecord } from './models/TimeTrackingRecord';
|
||||
export type { TransactionSchemaBase } from './models/TransactionSchemaBase';
|
||||
export type { TransactionTagSchema } from './models/TransactionTagSchema';
|
||||
export type { UpdateBoardOrderRequest } from './models/UpdateBoardOrderRequest';
|
||||
export type { UpdateBoardOrderResponse } from './models/UpdateBoardOrderResponse';
|
||||
export type { UpdateBoardRequest } from './models/UpdateBoardRequest';
|
||||
export type { UpdateBoardResponse } from './models/UpdateBoardResponse';
|
||||
export type { UpdateBoxRequest } from './models/UpdateBoxRequest';
|
||||
export type { UpdateBoxResponse } from './models/UpdateBoxResponse';
|
||||
export type { UpdateBoxSchema } from './models/UpdateBoxSchema';
|
||||
@@ -340,6 +361,8 @@ export type { UpdatePlanningWorkShiftRequest } from './models/UpdatePlanningWork
|
||||
export type { UpdatePlanningWorkShiftResponse } from './models/UpdatePlanningWorkShiftResponse';
|
||||
export type { UpdatePriceCategoryRequest } from './models/UpdatePriceCategoryRequest';
|
||||
export type { UpdatePriceCategoryResponse } from './models/UpdatePriceCategoryResponse';
|
||||
export type { UpdateProjectRequest } from './models/UpdateProjectRequest';
|
||||
export type { UpdateProjectResponse } from './models/UpdateProjectResponse';
|
||||
export type { UpdateResidualProductRequest } from './models/UpdateResidualProductRequest';
|
||||
export type { UpdateResidualProductResponse } from './models/UpdateResidualProductResponse';
|
||||
export type { UpdateResidualProductSchema } from './models/UpdateResidualProductSchema';
|
||||
@@ -351,6 +374,10 @@ export type { UpdateShippingProductResponse } from './models/UpdateShippingProdu
|
||||
export type { UpdateShippingProductSchema } from './models/UpdateShippingProductSchema';
|
||||
export type { UpdateShippingWarehouseRequest } from './models/UpdateShippingWarehouseRequest';
|
||||
export type { UpdateShippingWarehouseResponse } from './models/UpdateShippingWarehouseResponse';
|
||||
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 { UpdateTimeTrackingRecordRequest } from './models/UpdateTimeTrackingRecordRequest';
|
||||
export type { UpdateTimeTrackingRecordResponse } from './models/UpdateTimeTrackingRecordResponse';
|
||||
export type { UpdateTransactionRequest } from './models/UpdateTransactionRequest';
|
||||
@@ -375,19 +402,23 @@ export type { WorkShiftSchema } from './models/WorkShiftSchema';
|
||||
export { AuthService } from './services/AuthService';
|
||||
export { BarcodeService } from './services/BarcodeService';
|
||||
export { BillingService } from './services/BillingService';
|
||||
export { BoardService } from './services/BoardService';
|
||||
export { ClientService } from './services/ClientService';
|
||||
export { DealService } from './services/DealService';
|
||||
export { DealGroupService } from './services/DealGroupService';
|
||||
export { DepartmentService } from './services/DepartmentService';
|
||||
export { MarketplaceService } from './services/MarketplaceService';
|
||||
export { PayrollService } from './services/PayrollService';
|
||||
export { PositionService } from './services/PositionService';
|
||||
export { ProductService } from './services/ProductService';
|
||||
export { ProjectService } from './services/ProjectService';
|
||||
export { ResiduesService } from './services/ResiduesService';
|
||||
export { RoleService } from './services/RoleService';
|
||||
export { ServiceService } from './services/ServiceService';
|
||||
export { ShippingService } from './services/ShippingService';
|
||||
export { ShippingWarehouseService } from './services/ShippingWarehouseService';
|
||||
export { StatisticsService } from './services/StatisticsService';
|
||||
export { StatusService } from './services/StatusService';
|
||||
export { TaskService } from './services/TaskService';
|
||||
export { TimeTrackingService } from './services/TimeTrackingService';
|
||||
export { TransactionService } from './services/TransactionService';
|
||||
|
||||
9
src/client/models/BaseBoardSchema.ts
Normal file
9
src/client/models/BaseBoardSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type BaseBoardSchema = {
|
||||
name: string;
|
||||
projectId: number;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DealCreateRequest = {
|
||||
export type BaseProjectSchema = {
|
||||
name: string;
|
||||
};
|
||||
|
||||
9
src/client/models/BaseStatusSchema.ts
Normal file
9
src/client/models/BaseStatusSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type BaseStatusSchema = {
|
||||
name: string;
|
||||
boardId: number;
|
||||
};
|
||||
|
||||
15
src/client/models/BoardSchema.ts
Normal file
15
src/client/models/BoardSchema.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProjectSchema } from './ProjectSchema';
|
||||
import type { StatusSchema } from './StatusSchema';
|
||||
export type BoardSchema = {
|
||||
name: string;
|
||||
projectId: number;
|
||||
id: number;
|
||||
ordinalNumber: number;
|
||||
dealStatuses: Array<StatusSchema>;
|
||||
project: ProjectSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateBoardRequest.ts
Normal file
9
src/client/models/CreateBoardRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseBoardSchema } from './BaseBoardSchema';
|
||||
export type CreateBoardRequest = {
|
||||
board: BaseBoardSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateBoardResponse.ts
Normal file
9
src/client/models/CreateBoardResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateBoardResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { ProductFromExcelSchema } from './ProductFromExcelSchema';
|
||||
export type CreateDealsFromExcelRequest = {
|
||||
clientId: number;
|
||||
statusId: number;
|
||||
products: Array<ProductFromExcelSchema>;
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/CreateProjectRequest.ts
Normal file
9
src/client/models/CreateProjectRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseProjectSchema } from './BaseProjectSchema';
|
||||
export type CreateProjectRequest = {
|
||||
project: BaseProjectSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateProjectResponse.ts
Normal file
9
src/client/models/CreateProjectResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateProjectResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateStatusRequest.ts
Normal file
9
src/client/models/CreateStatusRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseStatusSchema } from './BaseStatusSchema';
|
||||
export type CreateStatusRequest = {
|
||||
status: BaseStatusSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateStatusResponse.ts
Normal file
9
src/client/models/CreateStatusResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateStatusResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoardSchema } from './BoardSchema';
|
||||
import type { StatusSchema } from './StatusSchema';
|
||||
import type { UserSchema } from './UserSchema';
|
||||
export type DealGeneralInfoSchema = {
|
||||
name: string;
|
||||
@@ -13,5 +15,7 @@ export type DealGeneralInfoSchema = {
|
||||
deliveryDate?: (string | null);
|
||||
receivingSlotDate?: (string | null);
|
||||
manager?: (UserSchema | null);
|
||||
board: BoardSchema;
|
||||
status: StatusSchema;
|
||||
};
|
||||
|
||||
|
||||
@@ -12,5 +12,6 @@ export type DealQuickCreateRequest = {
|
||||
shippingWarehouse: string;
|
||||
baseMarketplace: BaseMarketplaceSchema;
|
||||
category?: (ServicePriceCategorySchema | null);
|
||||
statusId: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoardSchema } from './BoardSchema';
|
||||
import type { BoxSchema } from './BoxSchema';
|
||||
import type { ClientSchema } from './ClientSchema';
|
||||
import type { DealBillRequestSchema } from './DealBillRequestSchema';
|
||||
@@ -13,13 +14,15 @@ import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
|
||||
import type { PalletSchema } from './PalletSchema';
|
||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
|
||||
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
|
||||
import type { StatusSchema } from './StatusSchema';
|
||||
import type { UserSchema } from './UserSchema';
|
||||
export type DealSchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
clientId: number;
|
||||
createdAt: string;
|
||||
currentStatus: number;
|
||||
status: StatusSchema;
|
||||
board: BoardSchema;
|
||||
services: Array<DealServiceSchema>;
|
||||
products: Array<DealProductSchema>;
|
||||
statusHistory: Array<DealStatusHistorySchema>;
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { StatusSchema } from './StatusSchema';
|
||||
import type { UserSchema } from './UserSchema';
|
||||
export type DealStatusHistorySchema = {
|
||||
user: UserSchema;
|
||||
changedAt: string;
|
||||
fromStatus: number;
|
||||
toStatus: number;
|
||||
fromStatus: StatusSchema;
|
||||
toStatus: StatusSchema;
|
||||
nextStatusDeadline: (string | null);
|
||||
comment?: (string | null);
|
||||
};
|
||||
|
||||
@@ -3,16 +3,17 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseMarketplaceSchema } from './BaseMarketplaceSchema';
|
||||
import type { BoardSchema } from './BoardSchema';
|
||||
import type { DealBillRequestSchema } from './DealBillRequestSchema';
|
||||
import type { DealGroupSchema } from './DealGroupSchema';
|
||||
import type { StatusSchema } from './StatusSchema';
|
||||
export type DealSummary = {
|
||||
id: number;
|
||||
name: string;
|
||||
clientName: string;
|
||||
changedAt: string;
|
||||
createdAt: string;
|
||||
deadline?: (string | null);
|
||||
status: number;
|
||||
status: StatusSchema;
|
||||
board: BoardSchema;
|
||||
totalPrice: number;
|
||||
rank: number;
|
||||
baseMarketplace?: (BaseMarketplaceSchema | null);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/* eslint-disable */
|
||||
export type DealSummaryReorderRequest = {
|
||||
dealId: number;
|
||||
status: number;
|
||||
statusId: number;
|
||||
index: number;
|
||||
deadline?: (string | null);
|
||||
comment?: (string | null);
|
||||
|
||||
9
src/client/models/DeleteBoardResponse.ts
Normal file
9
src/client/models/DeleteBoardResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteBoardResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteProjectResponse.ts
Normal file
9
src/client/models/DeleteProjectResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteProjectResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteStatusResponse.ts
Normal file
9
src/client/models/DeleteStatusResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteStatusResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/GetBoardsResponse.ts
Normal file
9
src/client/models/GetBoardsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoardSchema } from './BoardSchema';
|
||||
export type GetBoardsResponse = {
|
||||
boards: Array<BoardSchema>;
|
||||
};
|
||||
|
||||
@@ -6,9 +6,12 @@ export type GetProfitChartDataRequest = {
|
||||
dateRange: any[];
|
||||
clientId: number;
|
||||
baseMarketplaceKey: string;
|
||||
projectId: number;
|
||||
boardId: number;
|
||||
dealStatusId: number;
|
||||
managerId: number;
|
||||
expenseTagId: number;
|
||||
incomeTagId: number;
|
||||
isCompletedOnly: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,10 +7,13 @@ export type GetProfitTableDataRequest = {
|
||||
dateRange: any[];
|
||||
clientId: number;
|
||||
baseMarketplaceKey: string;
|
||||
projectId: number;
|
||||
boardId: number;
|
||||
dealStatusId: number;
|
||||
managerId: number;
|
||||
expenseTagId: number;
|
||||
incomeTagId: number;
|
||||
isCompletedOnly: boolean;
|
||||
groupTableBy: ProfitTableGroupBy;
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/GetProjectsResponse.ts
Normal file
9
src/client/models/GetProjectsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProjectSchemaWithCount } from './ProjectSchemaWithCount';
|
||||
export type GetProjectsResponse = {
|
||||
projects: Array<ProjectSchemaWithCount>;
|
||||
};
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ProfitTableGroupBy = 0 | 1 | 2 | 3 | 4 | 5;
|
||||
export type ProfitTableGroupBy = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
||||
|
||||
9
src/client/models/ProjectSchema.ts
Normal file
9
src/client/models/ProjectSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ProjectSchema = {
|
||||
name: string;
|
||||
id: number;
|
||||
};
|
||||
|
||||
12
src/client/models/StatusSchema.ts
Normal file
12
src/client/models/StatusSchema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type StatusSchema = {
|
||||
name: string;
|
||||
boardId: number;
|
||||
id: number;
|
||||
ordinalNumber: number;
|
||||
isDeleted?: boolean;
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateBoardOrderRequest.ts
Normal file
10
src/client/models/UpdateBoardOrderRequest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateBoardOrderRequest = {
|
||||
projectId: number;
|
||||
boardId: number;
|
||||
newOrdinalNumber: number;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateBoardOrderResponse.ts
Normal file
9
src/client/models/UpdateBoardOrderResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateBoardOrderResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateBoardRequest.ts
Normal file
9
src/client/models/UpdateBoardRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoardSchema } from './BoardSchema';
|
||||
export type UpdateBoardRequest = {
|
||||
board: BoardSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateBoardResponse.ts
Normal file
9
src/client/models/UpdateBoardResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateBoardResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateProjectRequest.ts
Normal file
9
src/client/models/UpdateProjectRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProjectSchema } from './ProjectSchema';
|
||||
export type UpdateProjectRequest = {
|
||||
project: ProjectSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateProjectResponse.ts
Normal file
9
src/client/models/UpdateProjectResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateProjectResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateStatusOrderRequest.ts
Normal file
10
src/client/models/UpdateStatusOrderRequest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateStatusOrderRequest = {
|
||||
boardId: number;
|
||||
statusId: number;
|
||||
newOrdinalNumber: number;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateStatusOrderResponse.ts
Normal file
9
src/client/models/UpdateStatusOrderResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateStatusOrderResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateStatusRequest.ts
Normal file
9
src/client/models/UpdateStatusRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { StatusSchema } from './StatusSchema';
|
||||
export type UpdateStatusRequest = {
|
||||
status: StatusSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateStatusResponse.ts
Normal file
9
src/client/models/UpdateStatusResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateStatusResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
119
src/client/services/BoardService.ts
Normal file
119
src/client/services/BoardService.ts
Normal file
@@ -0,0 +1,119 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateBoardRequest } from '../models/CreateBoardRequest';
|
||||
import type { CreateBoardResponse } from '../models/CreateBoardResponse';
|
||||
import type { DeleteBoardResponse } from '../models/DeleteBoardResponse';
|
||||
import type { GetBoardsResponse } from '../models/GetBoardsResponse';
|
||||
import type { UpdateBoardOrderRequest } from '../models/UpdateBoardOrderRequest';
|
||||
import type { UpdateBoardOrderResponse } from '../models/UpdateBoardOrderResponse';
|
||||
import type { UpdateBoardRequest } from '../models/UpdateBoardRequest';
|
||||
import type { UpdateBoardResponse } from '../models/UpdateBoardResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class BoardService {
|
||||
/**
|
||||
* Get Boards
|
||||
* @returns GetBoardsResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getBoards({
|
||||
projectId,
|
||||
}: {
|
||||
projectId: number,
|
||||
}): CancelablePromise<GetBoardsResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/board/{project_id}',
|
||||
path: {
|
||||
'project_id': projectId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create Board
|
||||
* @returns CreateBoardResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createBoard({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateBoardRequest,
|
||||
}): CancelablePromise<CreateBoardResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/board/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Board
|
||||
* @returns UpdateBoardResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateBoard({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateBoardRequest,
|
||||
}): CancelablePromise<UpdateBoardResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/board/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Board Order
|
||||
* @returns UpdateBoardOrderResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateBoardOrder({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateBoardOrderRequest,
|
||||
}): CancelablePromise<UpdateBoardOrderResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/board/order',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Board
|
||||
* @returns DeleteBoardResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteBoard({
|
||||
boardId,
|
||||
}: {
|
||||
boardId: number,
|
||||
}): CancelablePromise<DeleteBoardResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/board/{board_id}',
|
||||
path: {
|
||||
'board_id': boardId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
119
src/client/services/DealGroupService.ts
Normal file
119
src/client/services/DealGroupService.ts
Normal file
@@ -0,0 +1,119 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DealAddToGroupRequest } from '../models/DealAddToGroupRequest';
|
||||
import type { DealAddToGroupResponse } from '../models/DealAddToGroupResponse';
|
||||
import type { DealCreateGroupRequest } from '../models/DealCreateGroupRequest';
|
||||
import type { DealCreateGroupResponse } from '../models/DealCreateGroupResponse';
|
||||
import type { DealGroupChangeStatusRequest } from '../models/DealGroupChangeStatusRequest';
|
||||
import type { DealGroupChangeStatusResponse } from '../models/DealGroupChangeStatusResponse';
|
||||
import type { DealGroupUpdateRequest } from '../models/DealGroupUpdateRequest';
|
||||
import type { DealGroupUpdateResponse } from '../models/DealGroupUpdateResponse';
|
||||
import type { DealRemoveFromGroupRequest } from '../models/DealRemoveFromGroupRequest';
|
||||
import type { DealRemoveFromGroupResponse } from '../models/DealRemoveFromGroupResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class DealGroupService {
|
||||
/**
|
||||
* Create Group
|
||||
* @returns DealCreateGroupResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createDealGroup({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealCreateGroupRequest,
|
||||
}): CancelablePromise<DealCreateGroupResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal-group/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Group
|
||||
* @returns DealGroupUpdateResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateDealGroup({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealGroupUpdateRequest,
|
||||
}): CancelablePromise<DealGroupUpdateResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/deal-group/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Change Status
|
||||
* @returns DealGroupChangeStatusResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static changeStatus({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealGroupChangeStatusRequest,
|
||||
}): CancelablePromise<DealGroupChangeStatusResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/deal-group/change-status',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Add Deal
|
||||
* @returns DealAddToGroupResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static addDeal({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealAddToGroupRequest,
|
||||
}): CancelablePromise<DealAddToGroupResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal-group/deal',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Remove Deal
|
||||
* @returns DealRemoveFromGroupResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static removeDeal({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealRemoveFromGroupRequest,
|
||||
}): CancelablePromise<DealRemoveFromGroupResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/deal-group/deal',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -13,17 +13,12 @@ import type { DealAddServiceRequest } from '../models/DealAddServiceRequest';
|
||||
import type { DealAddServiceResponse } from '../models/DealAddServiceResponse';
|
||||
import type { DealAddServicesRequest } from '../models/DealAddServicesRequest';
|
||||
import type { DealAddServicesResponse } from '../models/DealAddServicesResponse';
|
||||
import type { DealAddToGroupRequest } from '../models/DealAddToGroupRequest';
|
||||
import type { DealAddToGroupResponse } from '../models/DealAddToGroupResponse';
|
||||
import type { DealChangeStatusRequest } from '../models/DealChangeStatusRequest';
|
||||
import type { DealChangeStatusResponse } from '../models/DealChangeStatusResponse';
|
||||
import type { DealCompleteRequest } from '../models/DealCompleteRequest';
|
||||
import type { DealCompleteResponse } from '../models/DealCompleteResponse';
|
||||
import type { DealCreateGroupRequest } from '../models/DealCreateGroupRequest';
|
||||
import type { DealCreateGroupResponse } from '../models/DealCreateGroupResponse';
|
||||
import type { DealCreateGuestUrlRequest } from '../models/DealCreateGuestUrlRequest';
|
||||
import type { DealCreateGuestUrlResponse } from '../models/DealCreateGuestUrlResponse';
|
||||
import type { DealCreateRequest } from '../models/DealCreateRequest';
|
||||
import type { DealDeleteProductRequest } from '../models/DealDeleteProductRequest';
|
||||
import type { DealDeleteProductResponse } from '../models/DealDeleteProductResponse';
|
||||
import type { DealDeleteProductsRequest } from '../models/DealDeleteProductsRequest';
|
||||
@@ -35,10 +30,6 @@ import type { DealDeleteServiceResponse } from '../models/DealDeleteServiceRespo
|
||||
import type { DealDeleteServicesRequest } from '../models/DealDeleteServicesRequest';
|
||||
import type { DealDeleteServicesResponse } from '../models/DealDeleteServicesResponse';
|
||||
import type { DealGetAllResponse } from '../models/DealGetAllResponse';
|
||||
import type { DealGroupChangeStatusRequest } from '../models/DealGroupChangeStatusRequest';
|
||||
import type { DealGroupChangeStatusResponse } from '../models/DealGroupChangeStatusResponse';
|
||||
import type { DealGroupUpdateRequest } from '../models/DealGroupUpdateRequest';
|
||||
import type { DealGroupUpdateResponse } from '../models/DealGroupUpdateResponse';
|
||||
import type { DealPrefillRequest } from '../models/DealPrefillRequest';
|
||||
import type { DealPrefillResponse } from '../models/DealPrefillResponse';
|
||||
import type { DealProductAddKitRequest } from '../models/DealProductAddKitRequest';
|
||||
@@ -47,8 +38,6 @@ import type { DealQuickCreateRequest } from '../models/DealQuickCreateRequest';
|
||||
import type { DealQuickCreateResponse } from '../models/DealQuickCreateResponse';
|
||||
import type { DealRecalculatePriceRequest } from '../models/DealRecalculatePriceRequest';
|
||||
import type { DealRecalculatePriceResponse } from '../models/DealRecalculatePriceResponse';
|
||||
import type { DealRemoveFromGroupRequest } from '../models/DealRemoveFromGroupRequest';
|
||||
import type { DealRemoveFromGroupResponse } from '../models/DealRemoveFromGroupResponse';
|
||||
import type { DealSchema } from '../models/DealSchema';
|
||||
import type { DealServicesCopyRequest } from '../models/DealServicesCopyRequest';
|
||||
import type { DealServicesCopyResponse } from '../models/DealServicesCopyResponse';
|
||||
@@ -74,26 +63,6 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class DealService {
|
||||
/**
|
||||
* Create
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createDealCreatePost({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealCreateRequest,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/create',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete
|
||||
* @returns DealDeleteResponse Successful Response
|
||||
@@ -750,104 +719,4 @@ export class DealService {
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Add To Group
|
||||
* @returns DealAddToGroupResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static addDealToGroup({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealAddToGroupRequest,
|
||||
}): CancelablePromise<DealAddToGroupResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/add-to-group',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create Group
|
||||
* @returns DealCreateGroupResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createDealGroup({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealCreateGroupRequest,
|
||||
}): CancelablePromise<DealCreateGroupResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/create-group',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Remove From Group
|
||||
* @returns DealRemoveFromGroupResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static removeDealFromGroup({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealRemoveFromGroupRequest,
|
||||
}): CancelablePromise<DealRemoveFromGroupResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/remove-from-group',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Group
|
||||
* @returns DealGroupUpdateResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateDealGroup({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealGroupUpdateRequest,
|
||||
}): CancelablePromise<DealGroupUpdateResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/group/update',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Change Group Status
|
||||
* @returns DealGroupChangeStatusResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static changeDealGroupStatus({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealGroupChangeStatusRequest,
|
||||
}): CancelablePromise<DealGroupChangeStatusResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/group/change-status',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
87
src/client/services/ProjectService.ts
Normal file
87
src/client/services/ProjectService.ts
Normal file
@@ -0,0 +1,87 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateProjectRequest } from '../models/CreateProjectRequest';
|
||||
import type { CreateProjectResponse } from '../models/CreateProjectResponse';
|
||||
import type { DeleteProjectResponse } from '../models/DeleteProjectResponse';
|
||||
import type { GetProjectsResponse } from '../models/GetProjectsResponse';
|
||||
import type { UpdateProjectRequest } from '../models/UpdateProjectRequest';
|
||||
import type { UpdateProjectResponse } from '../models/UpdateProjectResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class ProjectService {
|
||||
/**
|
||||
* Get Projects
|
||||
* @returns GetProjectsResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getProjects(): CancelablePromise<GetProjectsResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/project/',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create Project
|
||||
* @returns CreateProjectResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createProject({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateProjectRequest,
|
||||
}): CancelablePromise<CreateProjectResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/project/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Project
|
||||
* @returns UpdateProjectResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateProject({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateProjectRequest,
|
||||
}): CancelablePromise<UpdateProjectResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/project/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Project
|
||||
* @returns DeleteProjectResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteProject({
|
||||
projectId,
|
||||
}: {
|
||||
projectId: number,
|
||||
}): CancelablePromise<DeleteProjectResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/project/{project_id}',
|
||||
path: {
|
||||
'project_id': projectId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
97
src/client/services/StatusService.ts
Normal file
97
src/client/services/StatusService.ts
Normal file
@@ -0,0 +1,97 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateStatusRequest } from '../models/CreateStatusRequest';
|
||||
import type { CreateStatusResponse } from '../models/CreateStatusResponse';
|
||||
import type { DeleteStatusResponse } from '../models/DeleteStatusResponse';
|
||||
import type { UpdateStatusOrderRequest } from '../models/UpdateStatusOrderRequest';
|
||||
import type { UpdateStatusOrderResponse } from '../models/UpdateStatusOrderResponse';
|
||||
import type { UpdateStatusRequest } from '../models/UpdateStatusRequest';
|
||||
import type { UpdateStatusResponse } from '../models/UpdateStatusResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class StatusService {
|
||||
/**
|
||||
* Create Status
|
||||
* @returns CreateStatusResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createStatus({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateStatusRequest,
|
||||
}): CancelablePromise<CreateStatusResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/status/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Status
|
||||
* @returns UpdateStatusResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateStatus({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateStatusRequest,
|
||||
}): CancelablePromise<UpdateStatusResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/status/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Status Order
|
||||
* @returns UpdateStatusOrderResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateStatusOrder({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateStatusOrderRequest,
|
||||
}): CancelablePromise<UpdateStatusOrderResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/status/order',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Status
|
||||
* @returns DeleteStatusResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteStatus({
|
||||
statusId,
|
||||
}: {
|
||||
statusId: number,
|
||||
}): CancelablePromise<DeleteStatusResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/status/{status_id}',
|
||||
path: {
|
||||
'status_id': statusId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user