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:
2026-08-05 21:35:22 +03:30
co-authored by Cursor
parent 67cfc17079
commit cbcea58e94
199 changed files with 10895 additions and 4 deletions
+188
View File
@@ -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;
}>;
}
+156
View File
@@ -0,0 +1,156 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BankAccountsController = exports.CompaniesController = void 0;
const common_1 = require("@nestjs/common");
const companies_service_1 = require("./companies.service");
const auth_decorators_1 = require("../common/decorators/auth.decorators");
const company_dto_1 = require("./dto/company.dto");
let CompaniesController = class CompaniesController {
companiesService;
constructor(companiesService) {
this.companiesService = companiesService;
}
findAll(activeOnly) {
return this.companiesService.findAll(activeOnly === 'true' || activeOnly === '1');
}
findPublic() {
return this.companiesService.findAll(true);
}
findOne(id) {
return this.companiesService.findOne(id);
}
create(dto) {
return this.companiesService.create(dto);
}
update(id, dto) {
return this.companiesService.update(id, dto);
}
setActive(id, dto) {
return this.companiesService.setActive(id, dto.isActive);
}
listBankAccounts(companyId) {
return this.companiesService.listBankAccounts(companyId);
}
createBankAccount(companyId, dto) {
return this.companiesService.createBankAccount(companyId, dto);
}
};
exports.CompaniesController = CompaniesController;
__decorate([
(0, auth_decorators_1.AuthType)('any'),
(0, common_1.Get)(),
__param(0, (0, common_1.Query)('activeOnly')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "findAll", null);
__decorate([
(0, auth_decorators_1.Public)(),
(0, common_1.Get)('public'),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "findPublic", null);
__decorate([
(0, auth_decorators_1.AuthType)('any'),
(0, common_1.Get)(':id'),
__param(0, (0, common_1.Param)('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "findOne", null);
__decorate([
(0, auth_decorators_1.AuthType)('admin'),
(0, common_1.Post)(),
__param(0, (0, common_1.Body)()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [company_dto_1.CreateCompanyDto]),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "create", null);
__decorate([
(0, auth_decorators_1.AuthType)('admin'),
(0, common_1.Patch)(':id'),
__param(0, (0, common_1.Param)('id')),
__param(1, (0, common_1.Body)()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, company_dto_1.UpdateCompanyDto]),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "update", null);
__decorate([
(0, auth_decorators_1.AuthType)('admin'),
(0, common_1.Patch)(':id/active'),
__param(0, (0, common_1.Param)('id')),
__param(1, (0, common_1.Body)()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, company_dto_1.SetActiveDto]),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "setActive", null);
__decorate([
(0, auth_decorators_1.AuthType)('any'),
(0, common_1.Get)(':companyId/bank-accounts'),
__param(0, (0, common_1.Param)('companyId')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "listBankAccounts", null);
__decorate([
(0, auth_decorators_1.AuthType)('admin'),
(0, common_1.Post)(':companyId/bank-accounts'),
__param(0, (0, common_1.Param)('companyId')),
__param(1, (0, common_1.Body)()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, company_dto_1.CreateBankAccountDto]),
__metadata("design:returntype", void 0)
], CompaniesController.prototype, "createBankAccount", null);
exports.CompaniesController = CompaniesController = __decorate([
(0, common_1.Controller)('companies'),
__metadata("design:paramtypes", [companies_service_1.CompaniesService])
], CompaniesController);
let BankAccountsController = class BankAccountsController {
companiesService;
constructor(companiesService) {
this.companiesService = companiesService;
}
update(id, dto) {
return this.companiesService.updateBankAccount(id, dto);
}
setActive(id, dto) {
return this.companiesService.setBankAccountActive(id, dto.isActive);
}
};
exports.BankAccountsController = BankAccountsController;
__decorate([
(0, auth_decorators_1.AuthType)('admin'),
(0, common_1.Patch)(':id'),
__param(0, (0, common_1.Param)('id')),
__param(1, (0, common_1.Body)()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, company_dto_1.UpdateBankAccountDto]),
__metadata("design:returntype", void 0)
], BankAccountsController.prototype, "update", null);
__decorate([
(0, auth_decorators_1.AuthType)('admin'),
(0, common_1.Patch)(':id/active'),
__param(0, (0, common_1.Param)('id')),
__param(1, (0, common_1.Body)()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, company_dto_1.SetActiveDto]),
__metadata("design:returntype", void 0)
], BankAccountsController.prototype, "setActive", null);
exports.BankAccountsController = BankAccountsController = __decorate([
(0, common_1.Controller)('bank-accounts'),
__metadata("design:paramtypes", [companies_service_1.CompaniesService])
], BankAccountsController);
//# sourceMappingURL=companies.controller.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"companies.controller.js","sourceRoot":"","sources":["../../src/companies/companies.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2DAAuD;AACvD,0EAAwE;AACxE,mDAM2B;AAGpB,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACD;IAA7B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAInE,OAAO,CAAsB,UAAmB;QAC9C,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAClC,UAAU,KAAK,MAAM,IAAI,UAAU,KAAK,GAAG,CAC5C,CA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AAgB,CAAC,oBAAoB,CAAC,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtE,CAAC;CACF,CAAA;AAdY,wDAAsB;AAKjC;IAFC,IAAA,0BAAQ,EAAC,OAAO,CAAC;IACjB,IAAA,cAAK,EAAC,KAAK,CAAC;IACL,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAM,kCAAoB;;oDAEhE;AAID;IAFC,IAAA,0BAAQ,EAAC,OAAO,CAAC;IACjB,IAAA,cAAK,EAAC,YAAY,CAAC;IACT,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAM,0BAAY;;uDAE3D;iCAbU,sBAAsB;IADlC,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAEqB,oCAAgB;GADpD,sBAAsB,CAclC"}
+2
View File
@@ -0,0 +1,2 @@
export declare class CompaniesModule {
}
+23
View File
@@ -0,0 +1,23 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompaniesModule = void 0;
const common_1 = require("@nestjs/common");
const companies_controller_1 = require("./companies.controller");
const companies_service_1 = require("./companies.service");
let CompaniesModule = class CompaniesModule {
};
exports.CompaniesModule = CompaniesModule;
exports.CompaniesModule = CompaniesModule = __decorate([
(0, common_1.Module)({
controllers: [companies_controller_1.CompaniesController, companies_controller_1.BankAccountsController],
providers: [companies_service_1.CompaniesService],
exports: [companies_service_1.CompaniesService],
})
], CompaniesModule);
//# sourceMappingURL=companies.module.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"companies.module.js","sourceRoot":"","sources":["../../src/companies/companies.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iEAGgC;AAChC,2DAAuD;AAOhD,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAL3B,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,0CAAmB,EAAE,6CAAsB,CAAC;QAC1D,SAAS,EAAE,CAAC,oCAAgB,CAAC;QAC7B,OAAO,EAAE,CAAC,oCAAgB,CAAC;KAC5B,CAAC;GACW,eAAe,CAAG"}
+170
View File
@@ -0,0 +1,170 @@
import { PrismaService } from '../prisma/prisma.service';
import { CreateBankAccountDto, CreateCompanyDto, UpdateBankAccountDto, UpdateCompanyDto } from './dto/company.dto';
export declare class CompaniesService {
private readonly prisma;
constructor(prisma: PrismaService);
findAll(activeOnly?: boolean): 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, isActive: boolean): 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;
}>;
updateBankAccount(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;
}>;
setBankAccountActive(id: string, isActive: boolean): 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;
}>;
private ensureCompany;
private ensureBankAccount;
private mapCompany;
private mapBankAccount;
}
+219
View File
@@ -0,0 +1,219 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompaniesService = void 0;
const common_1 = require("@nestjs/common");
const client_1 = require("@prisma/client");
const prisma_service_1 = require("../prisma/prisma.service");
let CompaniesService = class CompaniesService {
prisma;
constructor(prisma) {
this.prisma = prisma;
}
async findAll(activeOnly = false) {
const companies = await this.prisma.company.findMany({
where: activeOnly ? { isActive: true } : undefined,
orderBy: [{ displayOrder: 'asc' }, { name: 'asc' }],
include: {
_count: { select: { catalogs: true, products: true, bankAccounts: true } },
},
});
return companies.map((c) => this.mapCompany(c));
}
async findOne(id) {
const company = await this.prisma.company.findUnique({
where: { id },
include: {
bankAccounts: { orderBy: { displayOrder: 'asc' } },
_count: { select: { catalogs: true, products: true, bankAccounts: true } },
},
});
if (!company)
throw new common_1.NotFoundException('شرکت یافت نشد');
return {
...this.mapCompany(company),
bankAccounts: company.bankAccounts.map((b) => this.mapBankAccount(b)),
};
}
async create(dto) {
try {
const company = await this.prisma.company.create({
data: {
name: dto.name.trim(),
slug: dto.slug.trim(),
description: dto.description?.trim() || null,
logoUrl: dto.logoUrl?.trim() || null,
displayOrder: dto.displayOrder ?? 0,
maxMeteragePerInvoice: dto.maxMeteragePerInvoice ?? 5000,
cashInvoiceValidityHours: dto.cashInvoiceValidityHours ?? 8,
cashInvoiceValidUntilHour: dto.cashInvoiceValidUntilHour ?? null,
isActive: dto.isActive ?? true,
},
include: {
_count: { select: { catalogs: true, products: true, bankAccounts: true } },
},
});
return this.mapCompany(company);
}
catch (e) {
if (e instanceof client_1.Prisma.PrismaClientKnownRequestError && e.code === 'P2002') {
throw new common_1.ConflictException('اسلاگ شرکت تکراری است');
}
throw e;
}
}
async update(id, dto) {
await this.ensureCompany(id);
try {
const company = await this.prisma.company.update({
where: { id },
data: {
name: dto.name?.trim(),
slug: dto.slug?.trim(),
description: dto.description === undefined
? undefined
: dto.description?.trim() || null,
logoUrl: dto.logoUrl === undefined ? undefined : dto.logoUrl?.trim() || null,
displayOrder: dto.displayOrder,
maxMeteragePerInvoice: dto.maxMeteragePerInvoice,
cashInvoiceValidityHours: dto.cashInvoiceValidityHours,
cashInvoiceValidUntilHour: dto.cashInvoiceValidUntilHour,
isActive: dto.isActive,
},
include: {
_count: { select: { catalogs: true, products: true, bankAccounts: true } },
},
});
return this.mapCompany(company);
}
catch (e) {
if (e instanceof client_1.Prisma.PrismaClientKnownRequestError && e.code === 'P2002') {
throw new common_1.ConflictException('اسلاگ شرکت تکراری است');
}
throw e;
}
}
async setActive(id, isActive) {
await this.ensureCompany(id);
const company = await this.prisma.company.update({
where: { id },
data: { isActive },
include: {
_count: { select: { catalogs: true, products: true, bankAccounts: true } },
},
});
return this.mapCompany(company);
}
async listBankAccounts(companyId) {
await this.ensureCompany(companyId);
const accounts = await this.prisma.bankAccount.findMany({
where: { companyId },
orderBy: { displayOrder: 'asc' },
});
return accounts.map((a) => this.mapBankAccount(a));
}
async createBankAccount(companyId, dto) {
await this.ensureCompany(companyId);
const account = await this.prisma.bankAccount.create({
data: {
companyId,
bankName: dto.bankName.trim(),
accountHolder: dto.accountHolder.trim(),
accountNumber: dto.accountNumber.trim(),
cardNumber: dto.cardNumber.trim(),
iban: dto.iban.trim(),
notes: dto.notes?.trim() || null,
displayOrder: dto.displayOrder ?? 0,
isActive: dto.isActive ?? true,
},
});
return this.mapBankAccount(account);
}
async updateBankAccount(id, dto) {
await this.ensureBankAccount(id);
const account = await this.prisma.bankAccount.update({
where: { id },
data: {
bankName: dto.bankName?.trim(),
accountHolder: dto.accountHolder?.trim(),
accountNumber: dto.accountNumber?.trim(),
cardNumber: dto.cardNumber?.trim(),
iban: dto.iban?.trim(),
notes: dto.notes === undefined ? undefined : dto.notes?.trim() || null,
displayOrder: dto.displayOrder,
isActive: dto.isActive,
},
});
return this.mapBankAccount(account);
}
async setBankAccountActive(id, isActive) {
await this.ensureBankAccount(id);
const account = await this.prisma.bankAccount.update({
where: { id },
data: { isActive },
});
return this.mapBankAccount(account);
}
async ensureCompany(id) {
const company = await this.prisma.company.findUnique({ where: { id } });
if (!company)
throw new common_1.NotFoundException('شرکت یافت نشد');
return company;
}
async ensureBankAccount(id) {
const account = await this.prisma.bankAccount.findUnique({ where: { id } });
if (!account)
throw new common_1.NotFoundException('حساب بانکی یافت نشد');
return account;
}
mapCompany(company) {
return {
id: company.id,
name: company.name,
slug: company.slug,
description: company.description ?? '',
logoUrl: company.logoUrl,
logo: company.logoUrl ?? undefined,
isActive: company.isActive,
displayOrder: company.displayOrder,
maxMeteragePerInvoice: company.maxMeteragePerInvoice,
cashInvoiceValidityHours: company.cashInvoiceValidityHours,
cashInvoiceValidUntilHour: company.cashInvoiceValidUntilHour ?? undefined,
catalogCount: company._count?.catalogs ?? 0,
productCount: company._count?.products ?? 0,
bankAccountCount: company._count?.bankAccounts ?? 0,
createdAt: company.createdAt.toISOString(),
updatedAt: company.updatedAt.toISOString(),
};
}
mapBankAccount(account) {
return {
id: account.id,
companyId: account.companyId,
bankName: account.bankName,
accountHolder: account.accountHolder,
accountNumber: account.accountNumber,
cardNumber: account.cardNumber,
iban: account.iban,
notes: account.notes ?? undefined,
isActive: account.isActive,
displayOrder: account.displayOrder,
createdAt: account.createdAt.toISOString(),
updatedAt: account.updatedAt.toISOString(),
};
}
};
exports.CompaniesService = CompaniesService;
exports.CompaniesService = CompaniesService = __decorate([
(0, common_1.Injectable)(),
__metadata("design:paramtypes", [prisma_service_1.PrismaService])
], CompaniesService);
//# sourceMappingURL=companies.service.js.map
File diff suppressed because one or more lines are too long
+45
View File
@@ -0,0 +1,45 @@
export declare class CreateCompanyDto {
name: string;
slug: string;
description?: string;
logoUrl?: string;
displayOrder?: number;
maxMeteragePerInvoice?: number;
cashInvoiceValidityHours?: number;
cashInvoiceValidUntilHour?: number | null;
isActive?: boolean;
}
export declare class UpdateCompanyDto {
name?: string;
slug?: string;
description?: string | null;
logoUrl?: string | null;
displayOrder?: number;
maxMeteragePerInvoice?: number;
cashInvoiceValidityHours?: number;
cashInvoiceValidUntilHour?: number | null;
isActive?: boolean;
}
export declare class SetActiveDto {
isActive: boolean;
}
export declare class CreateBankAccountDto {
bankName: string;
accountHolder: string;
accountNumber: string;
cardNumber: string;
iban: string;
notes?: string;
displayOrder?: number;
isActive?: boolean;
}
export declare class UpdateBankAccountDto {
bankName?: string;
accountHolder?: string;
accountNumber?: string;
cardNumber?: string;
iban?: string;
notes?: string | null;
displayOrder?: number;
isActive?: boolean;
}
+257
View File
@@ -0,0 +1,257 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateBankAccountDto = exports.CreateBankAccountDto = exports.SetActiveDto = exports.UpdateCompanyDto = exports.CreateCompanyDto = void 0;
const class_validator_1 = require("class-validator");
const class_transformer_1 = require("class-transformer");
class CreateCompanyDto {
name;
slug;
description;
logoUrl;
displayOrder;
maxMeteragePerInvoice;
cashInvoiceValidityHours;
cashInvoiceValidUntilHour;
isActive;
}
exports.CreateCompanyDto = CreateCompanyDto;
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateCompanyDto.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateCompanyDto.prototype, "slug", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], CreateCompanyDto.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], CreateCompanyDto.prototype, "logoUrl", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
__metadata("design:type", Number)
], CreateCompanyDto.prototype, "displayOrder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
(0, class_validator_1.Min)(1),
__metadata("design:type", Number)
], CreateCompanyDto.prototype, "maxMeteragePerInvoice", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
(0, class_validator_1.Min)(1),
__metadata("design:type", Number)
], CreateCompanyDto.prototype, "cashInvoiceValidityHours", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
(0, class_validator_1.Min)(0),
__metadata("design:type", Object)
], CreateCompanyDto.prototype, "cashInvoiceValidUntilHour", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], CreateCompanyDto.prototype, "isActive", void 0);
class UpdateCompanyDto {
name;
slug;
description;
logoUrl;
displayOrder;
maxMeteragePerInvoice;
cashInvoiceValidityHours;
cashInvoiceValidUntilHour;
isActive;
}
exports.UpdateCompanyDto = UpdateCompanyDto;
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], UpdateCompanyDto.prototype, "name", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], UpdateCompanyDto.prototype, "slug", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", Object)
], UpdateCompanyDto.prototype, "description", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", Object)
], UpdateCompanyDto.prototype, "logoUrl", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
__metadata("design:type", Number)
], UpdateCompanyDto.prototype, "displayOrder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
(0, class_validator_1.Min)(1),
__metadata("design:type", Number)
], UpdateCompanyDto.prototype, "maxMeteragePerInvoice", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
(0, class_validator_1.Min)(1),
__metadata("design:type", Number)
], UpdateCompanyDto.prototype, "cashInvoiceValidityHours", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
(0, class_validator_1.Min)(0),
__metadata("design:type", Object)
], UpdateCompanyDto.prototype, "cashInvoiceValidUntilHour", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], UpdateCompanyDto.prototype, "isActive", void 0);
class SetActiveDto {
isActive;
}
exports.SetActiveDto = SetActiveDto;
__decorate([
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], SetActiveDto.prototype, "isActive", void 0);
class CreateBankAccountDto {
bankName;
accountHolder;
accountNumber;
cardNumber;
iban;
notes;
displayOrder;
isActive;
}
exports.CreateBankAccountDto = CreateBankAccountDto;
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateBankAccountDto.prototype, "bankName", void 0);
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateBankAccountDto.prototype, "accountHolder", void 0);
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateBankAccountDto.prototype, "accountNumber", void 0);
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateBankAccountDto.prototype, "cardNumber", void 0);
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateBankAccountDto.prototype, "iban", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], CreateBankAccountDto.prototype, "notes", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
__metadata("design:type", Number)
], CreateBankAccountDto.prototype, "displayOrder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], CreateBankAccountDto.prototype, "isActive", void 0);
class UpdateBankAccountDto {
bankName;
accountHolder;
accountNumber;
cardNumber;
iban;
notes;
displayOrder;
isActive;
}
exports.UpdateBankAccountDto = UpdateBankAccountDto;
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateBankAccountDto.prototype, "bankName", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateBankAccountDto.prototype, "accountHolder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateBankAccountDto.prototype, "accountNumber", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateBankAccountDto.prototype, "cardNumber", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateBankAccountDto.prototype, "iban", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", Object)
], UpdateBankAccountDto.prototype, "notes", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_transformer_1.Type)(() => Number),
(0, class_validator_1.IsInt)(),
__metadata("design:type", Number)
], UpdateBankAccountDto.prototype, "displayOrder", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], UpdateBankAccountDto.prototype, "isActive", void 0);
//# sourceMappingURL=company.dto.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"company.dto.js","sourceRoot":"","sources":["../../../src/companies/dto/company.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AAEzC,MAAa,gBAAgB;IAG3B,IAAI,CAAU;IAId,IAAI,CAAU;IAId,WAAW,CAAU;IAIrB,OAAO,CAAU;IAKjB,YAAY,CAAU;IAMtB,qBAAqB,CAAU;IAM/B,wBAAwB,CAAU;IAMlC,yBAAyB,CAAiB;IAI1C,QAAQ,CAAW;CACpB;AA3CD,4CA2CC;AAxCC;IAFC,IAAA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