Files
fabric_trade_server/dist/companies/companies.controller.d.ts
T
mohmdsdgandCursor d4aaa8e997 Rebuild order flow: settle after pricing, notifications, and invoice expiry.
Hide prices until admin sends the invoice, enforce status transitions, add customer/admin SMS+in-app notifications, schedule cash invoice reminders, and ship updated dist/prisma-client/deploy-bundle for git-pull deploys.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-09 12:00:13 +03:30

195 lines
6.0 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;
ownMaxMeteragePerInvoice: number | undefined;
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;
ownMaxMeteragePerInvoice: number | undefined;
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;
ownMaxMeteragePerInvoice: number | undefined;
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;
ownMaxMeteragePerInvoice: number | undefined;
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;
ownMaxMeteragePerInvoice: number | undefined;
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;
ownMaxMeteragePerInvoice: number | undefined;
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;
}>;
}