Files
fabric_trade_server/dist/companies/companies.controller.d.ts
T
mohmdsdgandCursor cbcea58e94 Deploy via committed dist: local Nest build, server runs with .env
Build on the developer machine without Docker, commit dist/, and run on the server with Dockerfile.dist plus compose env_file.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:35:22 +03:30

189 lines
5.7 KiB
TypeScript

import { CompaniesService } from './companies.service';
import { CreateBankAccountDto, CreateCompanyDto, SetActiveDto, UpdateBankAccountDto, UpdateCompanyDto } from './dto/company.dto';
export declare class CompaniesController {
private readonly companiesService;
constructor(companiesService: CompaniesService);
findAll(activeOnly?: string): Promise<{
id: string;
name: string;
slug: string;
description: string;
logoUrl: string | null;
logo: string | undefined;
isActive: boolean;
displayOrder: number;
maxMeteragePerInvoice: number;
cashInvoiceValidityHours: number;
cashInvoiceValidUntilHour: number | undefined;
catalogCount: number;
productCount: number;
bankAccountCount: number;
createdAt: string;
updatedAt: string;
}[]>;
findPublic(): Promise<{
id: string;
name: string;
slug: string;
description: string;
logoUrl: string | null;
logo: string | undefined;
isActive: boolean;
displayOrder: number;
maxMeteragePerInvoice: number;
cashInvoiceValidityHours: number;
cashInvoiceValidUntilHour: number | undefined;
catalogCount: number;
productCount: number;
bankAccountCount: number;
createdAt: string;
updatedAt: string;
}[]>;
findOne(id: string): Promise<{
bankAccounts: {
id: string;
companyId: string;
bankName: string;
accountHolder: string;
accountNumber: string;
cardNumber: string;
iban: string;
notes: string | undefined;
isActive: boolean;
displayOrder: number;
createdAt: string;
updatedAt: string;
}[];
id: string;
name: string;
slug: string;
description: string;
logoUrl: string | null;
logo: string | undefined;
isActive: boolean;
displayOrder: number;
maxMeteragePerInvoice: number;
cashInvoiceValidityHours: number;
cashInvoiceValidUntilHour: number | undefined;
catalogCount: number;
productCount: number;
bankAccountCount: number;
createdAt: string;
updatedAt: string;
}>;
create(dto: CreateCompanyDto): Promise<{
id: string;
name: string;
slug: string;
description: string;
logoUrl: string | null;
logo: string | undefined;
isActive: boolean;
displayOrder: number;
maxMeteragePerInvoice: number;
cashInvoiceValidityHours: number;
cashInvoiceValidUntilHour: number | undefined;
catalogCount: number;
productCount: number;
bankAccountCount: number;
createdAt: string;
updatedAt: string;
}>;
update(id: string, dto: UpdateCompanyDto): Promise<{
id: string;
name: string;
slug: string;
description: string;
logoUrl: string | null;
logo: string | undefined;
isActive: boolean;
displayOrder: number;
maxMeteragePerInvoice: number;
cashInvoiceValidityHours: number;
cashInvoiceValidUntilHour: number | undefined;
catalogCount: number;
productCount: number;
bankAccountCount: number;
createdAt: string;
updatedAt: string;
}>;
setActive(id: string, dto: SetActiveDto): Promise<{
id: string;
name: string;
slug: string;
description: string;
logoUrl: string | null;
logo: string | undefined;
isActive: boolean;
displayOrder: number;
maxMeteragePerInvoice: number;
cashInvoiceValidityHours: number;
cashInvoiceValidUntilHour: number | undefined;
catalogCount: number;
productCount: number;
bankAccountCount: number;
createdAt: string;
updatedAt: string;
}>;
listBankAccounts(companyId: string): Promise<{
id: string;
companyId: string;
bankName: string;
accountHolder: string;
accountNumber: string;
cardNumber: string;
iban: string;
notes: string | undefined;
isActive: boolean;
displayOrder: number;
createdAt: string;
updatedAt: string;
}[]>;
createBankAccount(companyId: string, dto: CreateBankAccountDto): Promise<{
id: string;
companyId: string;
bankName: string;
accountHolder: string;
accountNumber: string;
cardNumber: string;
iban: string;
notes: string | undefined;
isActive: boolean;
displayOrder: number;
createdAt: string;
updatedAt: string;
}>;
}
export declare class BankAccountsController {
private readonly companiesService;
constructor(companiesService: CompaniesService);
update(id: string, dto: UpdateBankAccountDto): Promise<{
id: string;
companyId: string;
bankName: string;
accountHolder: string;
accountNumber: string;
cardNumber: string;
iban: string;
notes: string | undefined;
isActive: boolean;
displayOrder: number;
createdAt: string;
updatedAt: string;
}>;
setActive(id: string, dto: SetActiveDto): Promise<{
id: string;
companyId: string;
bankName: string;
accountHolder: string;
accountNumber: string;
cardNumber: string;
iban: string;
notes: string | undefined;
isActive: boolean;
displayOrder: number;
createdAt: string;
updatedAt: string;
}>;
}