- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
123 lines
4.7 KiB
JavaScript
123 lines
4.7 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.StorageStatsResponseDto = exports.StorageUsageResponseDto = exports.DownloadUrlResponseDto = exports.FileListResponseDto = exports.FileResponseDto = exports.PresignedUrlResponseDto = exports.UpdateFileDto = exports.ListFilesDto = exports.ConfirmUploadDto = exports.GetUploadUrlDto = void 0;
|
|
const class_validator_1 = require("class-validator");
|
|
const file_entity_1 = require("../entities/file.entity");
|
|
class GetUploadUrlDto {
|
|
}
|
|
exports.GetUploadUrlDto = GetUploadUrlDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], GetUploadUrlDto.prototype, "filename", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], GetUploadUrlDto.prototype, "mimeType", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsNumber)(),
|
|
(0, class_validator_1.Min)(1),
|
|
(0, class_validator_1.Max)(524288000),
|
|
__metadata("design:type", Number)
|
|
], GetUploadUrlDto.prototype, "sizeBytes", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], GetUploadUrlDto.prototype, "folder", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsEnum)(file_entity_1.FileVisibility),
|
|
__metadata("design:type", String)
|
|
], GetUploadUrlDto.prototype, "visibility", void 0);
|
|
class ConfirmUploadDto {
|
|
}
|
|
exports.ConfirmUploadDto = ConfirmUploadDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsUUID)(),
|
|
__metadata("design:type", String)
|
|
], ConfirmUploadDto.prototype, "uploadId", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
__metadata("design:type", Object)
|
|
], ConfirmUploadDto.prototype, "metadata", void 0);
|
|
class ListFilesDto {
|
|
constructor() {
|
|
this.page = 1;
|
|
this.limit = 20;
|
|
}
|
|
}
|
|
exports.ListFilesDto = ListFilesDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsNumber)(),
|
|
(0, class_validator_1.Min)(1),
|
|
__metadata("design:type", Number)
|
|
], ListFilesDto.prototype, "page", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsNumber)(),
|
|
(0, class_validator_1.Min)(1),
|
|
(0, class_validator_1.Max)(100),
|
|
__metadata("design:type", Number)
|
|
], ListFilesDto.prototype, "limit", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], ListFilesDto.prototype, "folder", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], ListFilesDto.prototype, "mimeType", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], ListFilesDto.prototype, "search", void 0);
|
|
class UpdateFileDto {
|
|
}
|
|
exports.UpdateFileDto = UpdateFileDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], UpdateFileDto.prototype, "folder", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsEnum)(file_entity_1.FileVisibility),
|
|
__metadata("design:type", String)
|
|
], UpdateFileDto.prototype, "visibility", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
__metadata("design:type", Object)
|
|
], UpdateFileDto.prototype, "metadata", void 0);
|
|
class PresignedUrlResponseDto {
|
|
}
|
|
exports.PresignedUrlResponseDto = PresignedUrlResponseDto;
|
|
class FileResponseDto {
|
|
}
|
|
exports.FileResponseDto = FileResponseDto;
|
|
class FileListResponseDto {
|
|
}
|
|
exports.FileListResponseDto = FileListResponseDto;
|
|
class DownloadUrlResponseDto {
|
|
}
|
|
exports.DownloadUrlResponseDto = DownloadUrlResponseDto;
|
|
class StorageUsageResponseDto {
|
|
}
|
|
exports.StorageUsageResponseDto = StorageUsageResponseDto;
|
|
class StorageStatsResponseDto {
|
|
}
|
|
exports.StorageStatsResponseDto = StorageStatsResponseDto;
|
|
//# sourceMappingURL=storage.dto.js.map
|