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:
+15
@@ -0,0 +1,15 @@
|
||||
import { CashPaymentStatus } from '@prisma/client';
|
||||
export declare class SubmitCashReceiptDto {
|
||||
amount: number;
|
||||
paidAmount?: number;
|
||||
transferDate: string;
|
||||
transferTime: string;
|
||||
trackingNumber: string;
|
||||
destinationAccountId: string;
|
||||
receiptImage?: string;
|
||||
notes?: string;
|
||||
}
|
||||
export declare class UpdateCashPaymentStatusDto {
|
||||
status: CashPaymentStatus;
|
||||
note?: string;
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
"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
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cash-payment.dto.js","sourceRoot":"","sources":["../../../src/cash-payments/dto/cash-payment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAyC;AACzC,2CAAmD;AAEnD,MAAa,oBAAoB;IAI/B,MAAM,CAAU;IAMhB,UAAU,CAAU;IAGpB,YAAY,CAAU;IAItB,YAAY,CAAU;IAItB,cAAc,CAAU;IAGxB,oBAAoB,CAAU;IAI9B,YAAY,CAAU;IAItB,KAAK,CAAU;CAChB;AAjCD,oDAiCC;AA7BC;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;oDACS;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;wDACa;AAGpB;IADC,IAAA,8BAAY,GAAE;;0DACO;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;0DACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;4DACW;AAGxB;IADC,IAAA,0BAAQ,GAAE;;kEACmB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI;AAGjB,MAAa,0BAA0B;IAErC,MAAM,CAAqB;IAI3B,IAAI,CAAU;CACf;AAPD,gEAOC;AALC;IADC,IAAA,wBAAM,EAAC,0BAAiB,CAAC;;0DACC;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACG"}
|
||||
Reference in New Issue
Block a user