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:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
import { ShipmentStatus } from '@prisma/client';
|
||||
export declare class CreateShipmentDto {
|
||||
orderId: string;
|
||||
carrier: string;
|
||||
trackingNumber?: string;
|
||||
meterage?: number;
|
||||
status?: ShipmentStatus;
|
||||
}
|
||||
export declare class UpdateShipmentDto {
|
||||
carrier?: string;
|
||||
trackingNumber?: string;
|
||||
meterage?: number;
|
||||
status?: ShipmentStatus;
|
||||
}
|
||||
export declare class AdvanceShipmentStatusDto {
|
||||
status?: ShipmentStatus;
|
||||
trackingNumber?: string;
|
||||
}
|
||||
Vendored
+94
@@ -0,0 +1,94 @@
|
||||
"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.AdvanceShipmentStatusDto = exports.UpdateShipmentDto = exports.CreateShipmentDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
const class_transformer_1 = require("class-transformer");
|
||||
const client_1 = require("@prisma/client");
|
||||
class CreateShipmentDto {
|
||||
orderId;
|
||||
carrier;
|
||||
trackingNumber;
|
||||
meterage;
|
||||
status;
|
||||
}
|
||||
exports.CreateShipmentDto = CreateShipmentDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateShipmentDto.prototype, "orderId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.MinLength)(1),
|
||||
__metadata("design:type", String)
|
||||
], CreateShipmentDto.prototype, "carrier", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateShipmentDto.prototype, "trackingNumber", 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)
|
||||
], CreateShipmentDto.prototype, "meterage", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsEnum)(client_1.ShipmentStatus),
|
||||
__metadata("design:type", String)
|
||||
], CreateShipmentDto.prototype, "status", void 0);
|
||||
class UpdateShipmentDto {
|
||||
carrier;
|
||||
trackingNumber;
|
||||
meterage;
|
||||
status;
|
||||
}
|
||||
exports.UpdateShipmentDto = UpdateShipmentDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateShipmentDto.prototype, "carrier", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateShipmentDto.prototype, "trackingNumber", 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)
|
||||
], UpdateShipmentDto.prototype, "meterage", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsEnum)(client_1.ShipmentStatus),
|
||||
__metadata("design:type", String)
|
||||
], UpdateShipmentDto.prototype, "status", void 0);
|
||||
class AdvanceShipmentStatusDto {
|
||||
status;
|
||||
trackingNumber;
|
||||
}
|
||||
exports.AdvanceShipmentStatusDto = AdvanceShipmentStatusDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsEnum)(client_1.ShipmentStatus),
|
||||
__metadata("design:type", String)
|
||||
], AdvanceShipmentStatusDto.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], AdvanceShipmentStatusDto.prototype, "trackingNumber", void 0);
|
||||
//# sourceMappingURL=shipment.dto.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"shipment.dto.js","sourceRoot":"","sources":["../../../src/shipments/dto/shipment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,2CAAgD;AAEhD,MAAa,iBAAiB;IAE5B,OAAO,CAAU;IAIjB,OAAO,CAAU;IAIjB,cAAc,CAAU;IAMxB,QAAQ,CAAU;IAIlB,MAAM,CAAkB;CACzB;AArBD,8CAqBC;AAnBC;IADC,IAAA,0BAAQ,GAAE;;kDACM;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;kDACI;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACa;AAMxB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG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