Files
fabric_trade_server/dist/catalogs/catalogs.controller.d.ts
T

72 lines
2.0 KiB
TypeScript
Raw Normal View History

import { CatalogsService } from './catalogs.service';
import { CreateCatalogDto, SetCatalogActiveDto, UpdateCatalogDto } from './dto/catalog.dto';
export declare class CatalogsController {
private readonly catalogsService;
constructor(catalogsService: CatalogsService);
findAll(companyId?: string, activeOnly?: string): Promise<{
id: string;
companyId: string;
companyName: string;
name: string;
code: string;
description: string | undefined;
displayOrder: number;
isActive: boolean;
productCount: number;
createdAt: string;
updatedAt: string;
}[]>;
findOne(id: string): Promise<{
id: string;
companyId: string;
companyName: string;
name: string;
code: string;
description: string | undefined;
displayOrder: number;
isActive: boolean;
productCount: number;
createdAt: string;
updatedAt: string;
}>;
create(dto: CreateCatalogDto): Promise<{
id: string;
companyId: string;
companyName: string;
name: string;
code: string;
description: string | undefined;
displayOrder: number;
isActive: boolean;
productCount: number;
createdAt: string;
updatedAt: string;
}>;
update(id: string, dto: UpdateCatalogDto): Promise<{
id: string;
companyId: string;
companyName: string;
name: string;
code: string;
description: string | undefined;
displayOrder: number;
isActive: boolean;
productCount: number;
createdAt: string;
updatedAt: string;
}>;
setActive(id: string, dto: SetCatalogActiveDto): Promise<{
id: string;
companyId: string;
companyName: string;
name: string;
code: string;
description: string | undefined;
displayOrder: number;
isActive: boolean;
productCount: number;
createdAt: string;
updatedAt: string;
}>;
}