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>
82 lines
3.3 KiB
JavaScript
82 lines
3.3 KiB
JavaScript
"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.UpdateCashPaymentStatusDto = exports.SubmitCashReceiptDto = void 0;
|
|
const class_validator_1 = require("class-validator");
|
|
const class_transformer_1 = require("class-transformer");
|
|
const client_1 = require("@prisma/client");
|
|
class SubmitCashReceiptDto {
|
|
amount;
|
|
paidAmount;
|
|
transferDate;
|
|
transferTime;
|
|
trackingNumber;
|
|
destinationAccountId;
|
|
receiptImage;
|
|
notes;
|
|
}
|
|
exports.SubmitCashReceiptDto = SubmitCashReceiptDto;
|
|
__decorate([
|
|
(0, class_transformer_1.Type)(() => Number),
|
|
(0, class_validator_1.IsNumber)(),
|
|
(0, class_validator_1.Min)(1),
|
|
__metadata("design:type", Number)
|
|
], SubmitCashReceiptDto.prototype, "amount", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_transformer_1.Type)(() => Number),
|
|
(0, class_validator_1.IsNumber)(),
|
|
(0, class_validator_1.Min)(0),
|
|
__metadata("design:type", Number)
|
|
], SubmitCashReceiptDto.prototype, "paidAmount", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsDateString)(),
|
|
__metadata("design:type", String)
|
|
], SubmitCashReceiptDto.prototype, "transferDate", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
(0, class_validator_1.MinLength)(1),
|
|
__metadata("design:type", String)
|
|
], SubmitCashReceiptDto.prototype, "transferTime", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
(0, class_validator_1.MinLength)(1),
|
|
__metadata("design:type", String)
|
|
], SubmitCashReceiptDto.prototype, "trackingNumber", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], SubmitCashReceiptDto.prototype, "destinationAccountId", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], SubmitCashReceiptDto.prototype, "receiptImage", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], SubmitCashReceiptDto.prototype, "notes", void 0);
|
|
class UpdateCashPaymentStatusDto {
|
|
status;
|
|
note;
|
|
}
|
|
exports.UpdateCashPaymentStatusDto = UpdateCashPaymentStatusDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsEnum)(client_1.CashPaymentStatus),
|
|
__metadata("design:type", String)
|
|
], UpdateCashPaymentStatusDto.prototype, "status", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], UpdateCashPaymentStatusDto.prototype, "note", void 0);
|
|
//# sourceMappingURL=cash-payment.dto.js.map
|