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>
This commit is contained in:
+188
@@ -0,0 +1,188 @@
|
||||
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;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user