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
+20
View File
@@ -0,0 +1,20 @@
import { AdminRole } from '@prisma/client';
export declare class CreateAdminUserDto {
fullName: string;
phone: string;
email: string;
password?: string;
role?: AdminRole;
isActive?: boolean;
}
export declare class UpdateAdminUserDto {
fullName?: string;
phone?: string;
email?: string;
password?: string;
role?: AdminRole;
isActive?: boolean;
}
export declare class SetAdminActiveDto {
isActive: boolean;
}
+103
View File
@@ -0,0 +1,103 @@
"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.SetAdminActiveDto = exports.UpdateAdminUserDto = exports.CreateAdminUserDto = void 0;
const class_validator_1 = require("class-validator");
const client_1 = require("@prisma/client");
class CreateAdminUserDto {
fullName;
phone;
email;
password;
role;
isActive;
}
exports.CreateAdminUserDto = CreateAdminUserDto;
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], CreateAdminUserDto.prototype, "fullName", void 0);
__decorate([
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(10),
__metadata("design:type", String)
], CreateAdminUserDto.prototype, "phone", void 0);
__decorate([
(0, class_validator_1.IsEmail)(),
__metadata("design:type", String)
], CreateAdminUserDto.prototype, "email", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(4),
__metadata("design:type", String)
], CreateAdminUserDto.prototype, "password", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsEnum)(client_1.AdminRole),
__metadata("design:type", String)
], CreateAdminUserDto.prototype, "role", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], CreateAdminUserDto.prototype, "isActive", void 0);
class UpdateAdminUserDto {
fullName;
phone;
email;
password;
role;
isActive;
}
exports.UpdateAdminUserDto = UpdateAdminUserDto;
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(1),
__metadata("design:type", String)
], UpdateAdminUserDto.prototype, "fullName", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
__metadata("design:type", String)
], UpdateAdminUserDto.prototype, "phone", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsEmail)(),
__metadata("design:type", String)
], UpdateAdminUserDto.prototype, "email", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsString)(),
(0, class_validator_1.MinLength)(4),
__metadata("design:type", String)
], UpdateAdminUserDto.prototype, "password", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsEnum)(client_1.AdminRole),
__metadata("design:type", String)
], UpdateAdminUserDto.prototype, "role", void 0);
__decorate([
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], UpdateAdminUserDto.prototype, "isActive", void 0);
class SetAdminActiveDto {
isActive;
}
exports.SetAdminActiveDto = SetAdminActiveDto;
__decorate([
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], SetAdminActiveDto.prototype, "isActive", void 0);
//# sourceMappingURL=admin-user.dto.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"admin-user.dto.js","sourceRoot":"","sources":["../../../src/admin-users/dto/admin-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,2CAA2C;AAE3C,MAAa,kBAAkB;IAG7B,QAAQ,CAAU;IAIlB,KAAK,CAAU;IAGf,KAAK,CAAU;IAKf,QAAQ,CAAU;IAIlB,IAAI,CAAa;IAIjB,QAAQ,CAAW;CACpB;AAxBD,gDAwBC;AArBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;oDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;iDACC;AAGf;IADC,IAAA,yBAAO,GAAE;;iDACK;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;oDACK;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAS,CAAC;;gDACD;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACO;AAGrB,MAAa,kBAAkB;IAI7B,QAAQ,CAAU;IAIlB,KAAK,CAAU;IAIf,KAAK,CAAU;IAKf,QAAQ,CAAU;IAIlB,IAAI,CAAa;IAIjB,QAAQ,CAAW;CACpB;AA1BD,gDA0BC;AAtBC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;oDACK;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACK;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;oDACK;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAS,CAAC;;gDACD;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACO;AAGrB,MAAa,iBAAiB;IAE5B,QAAQ,CAAW;CACpB;AAHD,8CAGC;AADC;IADC,IAAA,2BAAS,GAAE;;mDACO"}