grm-shared-library 1.1.41 → 1.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/modules/dms/dtos/document-file-upload-options.dto.js +58 -0
- package/dist/cjs/modules/dms/dtos/document-file-upload-options.dto.js.map +1 -0
- package/dist/cjs/modules/dms/dtos/video-file-upload-options.dto.js +85 -0
- package/dist/cjs/modules/dms/dtos/video-file-upload-options.dto.js.map +1 -0
- package/dist/cjs/modules/dms/index.js +12 -0
- package/dist/cjs/modules/dms/index.js.map +1 -1
- package/dist/cjs/modules/dms/interfaces/document-file-metadata.js +3 -0
- package/dist/cjs/modules/dms/interfaces/document-file-metadata.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/document-file-upload-options.js +3 -0
- package/dist/cjs/modules/dms/interfaces/document-file-upload-options.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/document-file.js +3 -0
- package/dist/cjs/modules/dms/interfaces/document-file.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/document-files-by-user.js +3 -0
- package/dist/cjs/modules/dms/interfaces/document-files-by-user.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/document-files-user-storage-info.js +3 -0
- package/dist/cjs/modules/dms/interfaces/document-files-user-storage-info.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/video-file-metadata.js +3 -0
- package/dist/cjs/modules/dms/interfaces/video-file-metadata.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/video-file-upload-options.js +3 -0
- package/dist/cjs/modules/dms/interfaces/video-file-upload-options.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/video-file.js +3 -0
- package/dist/cjs/modules/dms/interfaces/video-file.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/video-files-by-user.js +3 -0
- package/dist/cjs/modules/dms/interfaces/video-files-by-user.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/video-files-user-storage-info.js +3 -0
- package/dist/cjs/modules/dms/interfaces/video-files-user-storage-info.js.map +1 -0
- package/dist/esm/modules/dms/dtos/document-file-upload-options.dto.js +54 -0
- package/dist/esm/modules/dms/dtos/document-file-upload-options.dto.js.map +1 -0
- package/dist/esm/modules/dms/dtos/video-file-upload-options.dto.js +81 -0
- package/dist/esm/modules/dms/dtos/video-file-upload-options.dto.js.map +1 -0
- package/dist/esm/modules/dms/index.js +12 -0
- package/dist/esm/modules/dms/index.js.map +1 -1
- package/dist/esm/modules/dms/interfaces/document-file-metadata.js +2 -0
- package/dist/esm/modules/dms/interfaces/document-file-metadata.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/document-file-upload-options.js +2 -0
- package/dist/esm/modules/dms/interfaces/document-file-upload-options.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/document-file.js +2 -0
- package/dist/esm/modules/dms/interfaces/document-file.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/document-files-by-user.js +2 -0
- package/dist/esm/modules/dms/interfaces/document-files-by-user.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/document-files-user-storage-info.js +2 -0
- package/dist/esm/modules/dms/interfaces/document-files-user-storage-info.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/video-file-metadata.js +2 -0
- package/dist/esm/modules/dms/interfaces/video-file-metadata.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/video-file-upload-options.js +2 -0
- package/dist/esm/modules/dms/interfaces/video-file-upload-options.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/video-file.js +2 -0
- package/dist/esm/modules/dms/interfaces/video-file.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/video-files-by-user.js +2 -0
- package/dist/esm/modules/dms/interfaces/video-files-by-user.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/video-files-user-storage-info.js +2 -0
- package/dist/esm/modules/dms/interfaces/video-files-user-storage-info.js.map +1 -0
- package/dist/types/modules/dms/dtos/document-file-upload-options.dto.d.ts +10 -0
- package/dist/types/modules/dms/dtos/video-file-upload-options.dto.d.ts +15 -0
- package/dist/types/modules/dms/index.d.ts +12 -0
- package/dist/types/modules/dms/interfaces/document-file-metadata.d.ts +17 -0
- package/dist/types/modules/dms/interfaces/document-file-upload-options.d.ts +10 -0
- package/dist/types/modules/dms/interfaces/document-file.d.ts +25 -0
- package/dist/types/modules/dms/interfaces/document-files-by-user.d.ts +8 -0
- package/dist/types/modules/dms/interfaces/document-files-user-storage-info.d.ts +6 -0
- package/dist/types/modules/dms/interfaces/video-file-metadata.d.ts +24 -0
- package/dist/types/modules/dms/interfaces/video-file-upload-options.d.ts +15 -0
- package/dist/types/modules/dms/interfaces/video-file.d.ts +45 -0
- package/dist/types/modules/dms/interfaces/video-files-by-user.d.ts +8 -0
- package/dist/types/modules/dms/interfaces/video-files-user-storage-info.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DocumentFileUploadOptionsDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DocumentFileUploadOptionsDto {
|
|
15
|
+
}
|
|
16
|
+
exports.DocumentFileUploadOptionsDto = DocumentFileUploadOptionsDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], DocumentFileUploadOptionsDto.prototype, "folder", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], DocumentFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], DocumentFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], DocumentFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsArray)(),
|
|
39
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], DocumentFileUploadOptionsDto.prototype, "tags", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], DocumentFileUploadOptionsDto.prototype, "description", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsBoolean)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], DocumentFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsBoolean)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], DocumentFileUploadOptionsDto.prototype, "enableVersioning", void 0);
|
|
58
|
+
//# sourceMappingURL=document-file-upload-options.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/document-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqF;AAErF,MAAa,4BAA4B;CAiCxC;AAjCD,oEAiCC;AA9BG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACQ;AAIrB;IAFC,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;sEACe;AAI5B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACM;AAKnB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;0DACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACQ;AAIrB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0EACkB;AAI/B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;sEACc"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VideoFileUploadOptionsDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class VideoFileUploadOptionsDto {
|
|
15
|
+
}
|
|
16
|
+
exports.VideoFileUploadOptionsDto = VideoFileUploadOptionsDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], VideoFileUploadOptionsDto.prototype, "folder", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], VideoFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], VideoFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], VideoFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsArray)(),
|
|
39
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], VideoFileUploadOptionsDto.prototype, "tags", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], VideoFileUploadOptionsDto.prototype, "title", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], VideoFileUploadOptionsDto.prototype, "description", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsBoolean)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], VideoFileUploadOptionsDto.prototype, "generateThumbnail", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsBoolean)(),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
__metadata("design:type", Boolean)
|
|
62
|
+
], VideoFileUploadOptionsDto.prototype, "generatePreview", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsBoolean)(),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], VideoFileUploadOptionsDto.prototype, "enableTranscoding", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsArray)(),
|
|
70
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsIn)(['1080p', '720p', '480p', '360p', '240p'], { each: true }),
|
|
73
|
+
__metadata("design:type", Array)
|
|
74
|
+
], VideoFileUploadOptionsDto.prototype, "targetQualities", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsBoolean)(),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], VideoFileUploadOptionsDto.prototype, "enableStreaming", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsBoolean)(),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], VideoFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
|
|
85
|
+
//# sourceMappingURL=video-file-upload-options.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/video-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2F;AAE3F,MAAa,yBAAyB;CAuDrC;AAvDD,8DAuDC;AApDG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAIrB;IAFC,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;mEACe;AAI5B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;2DACM;AAKnB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;uDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAIrB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACe;AAI5B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kEACa;AAI1B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACe;AAM5B;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACE;AAIlE;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kEACa;AAI1B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uEACkB"}
|
|
@@ -20,8 +20,20 @@ __exportStar(require("./interfaces/image-file-upload-options"), exports);
|
|
|
20
20
|
__exportStar(require("./interfaces/image-file-metadata"), exports);
|
|
21
21
|
__exportStar(require("./interfaces/image-files-user-storage-info"), exports);
|
|
22
22
|
__exportStar(require("./interfaces/image-files-by-user"), exports);
|
|
23
|
+
__exportStar(require("./interfaces/document-file"), exports);
|
|
24
|
+
__exportStar(require("./interfaces/document-file-upload-options"), exports);
|
|
25
|
+
__exportStar(require("./interfaces/document-file-metadata"), exports);
|
|
26
|
+
__exportStar(require("./interfaces/document-files-user-storage-info"), exports);
|
|
27
|
+
__exportStar(require("./interfaces/document-files-by-user"), exports);
|
|
28
|
+
__exportStar(require("./interfaces/video-file"), exports);
|
|
29
|
+
__exportStar(require("./interfaces/video-file-upload-options"), exports);
|
|
30
|
+
__exportStar(require("./interfaces/video-file-metadata"), exports);
|
|
31
|
+
__exportStar(require("./interfaces/video-files-user-storage-info"), exports);
|
|
32
|
+
__exportStar(require("./interfaces/video-files-by-user"), exports);
|
|
23
33
|
// Enums
|
|
24
34
|
__exportStar(require("./enums/file-status"), exports);
|
|
25
35
|
// DTOs
|
|
26
36
|
__exportStar(require("./dtos/image-file-upload-options.dto"), exports);
|
|
37
|
+
__exportStar(require("./dtos/document-file-upload-options.dto"), exports);
|
|
38
|
+
__exportStar(require("./dtos/video-file-upload-options.dto"), exports);
|
|
27
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/dms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,aAAa;AACb,0DAAwC;AACxC,yEAAuD;AACvD,mEAAiD;AACjD,6EAA2D;AAC3D,mEAAiD;AAEjD,QAAQ;AACR,sDAAoC;AAEpC,OAAO;AACP,uEAAqD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/dms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,aAAa;AACb,0DAAwC;AACxC,yEAAuD;AACvD,mEAAiD;AACjD,6EAA2D;AAC3D,mEAAiD;AACjD,6DAA2C;AAC3C,4EAA0D;AAC1D,sEAAoD;AACpD,gFAA8D;AAC9D,sEAAoD;AACpD,0DAAwC;AACxC,yEAAuD;AACvD,mEAAiD;AACjD,6EAA2D;AAC3D,mEAAiD;AAEjD,QAAQ;AACR,sDAAoC;AAEpC,OAAO;AACP,uEAAqD;AACrD,0EAAwD;AACxD,uEAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file-metadata.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-file-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file-upload-options.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-file-upload-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-files-by-user.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-files-by-user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-files-user-storage-info.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-files-user-storage-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file-metadata.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-file-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file-upload-options.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-file-upload-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-files-by-user.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-files-by-user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-files-user-storage-info.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-files-user-storage-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { IsArray, IsBoolean, IsNumber, IsOptional, IsString } from "class-validator";
|
|
11
|
+
export class DocumentFileUploadOptionsDto {
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsString(),
|
|
15
|
+
IsOptional(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], DocumentFileUploadOptionsDto.prototype, "folder", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsNumber(),
|
|
20
|
+
IsOptional(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], DocumentFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsString({ each: true }),
|
|
25
|
+
IsOptional(),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], DocumentFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsBoolean(),
|
|
30
|
+
IsOptional(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], DocumentFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
IsArray(),
|
|
35
|
+
IsString({ each: true }),
|
|
36
|
+
IsOptional(),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], DocumentFileUploadOptionsDto.prototype, "tags", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsString(),
|
|
41
|
+
IsOptional(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], DocumentFileUploadOptionsDto.prototype, "description", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsBoolean(),
|
|
46
|
+
IsOptional(),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], DocumentFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
IsBoolean(),
|
|
51
|
+
IsOptional(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], DocumentFileUploadOptionsDto.prototype, "enableVersioning", void 0);
|
|
54
|
+
//# sourceMappingURL=document-file-upload-options.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/document-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAErF,MAAM,OAAO,4BAA4B;CAiCxC;AA9BG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;4DACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACQ;AAIrB;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;sEACe;AAI5B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;8DACM;AAKnB;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;0DACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACQ;AAIrB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;0EACkB;AAI/B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;sEACc"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { IsArray, IsBoolean, IsNumber, IsOptional, IsString, IsIn } from "class-validator";
|
|
11
|
+
export class VideoFileUploadOptionsDto {
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsString(),
|
|
15
|
+
IsOptional(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], VideoFileUploadOptionsDto.prototype, "folder", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsNumber(),
|
|
20
|
+
IsOptional(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], VideoFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsString({ each: true }),
|
|
25
|
+
IsOptional(),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], VideoFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsBoolean(),
|
|
30
|
+
IsOptional(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], VideoFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
IsArray(),
|
|
35
|
+
IsString({ each: true }),
|
|
36
|
+
IsOptional(),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], VideoFileUploadOptionsDto.prototype, "tags", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsString(),
|
|
41
|
+
IsOptional(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], VideoFileUploadOptionsDto.prototype, "title", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsString(),
|
|
46
|
+
IsOptional(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], VideoFileUploadOptionsDto.prototype, "description", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
IsBoolean(),
|
|
51
|
+
IsOptional(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], VideoFileUploadOptionsDto.prototype, "generateThumbnail", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
IsBoolean(),
|
|
56
|
+
IsOptional(),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], VideoFileUploadOptionsDto.prototype, "generatePreview", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
IsBoolean(),
|
|
61
|
+
IsOptional(),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], VideoFileUploadOptionsDto.prototype, "enableTranscoding", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
IsArray(),
|
|
66
|
+
IsString({ each: true }),
|
|
67
|
+
IsOptional(),
|
|
68
|
+
IsIn(['1080p', '720p', '480p', '360p', '240p'], { each: true }),
|
|
69
|
+
__metadata("design:type", Array)
|
|
70
|
+
], VideoFileUploadOptionsDto.prototype, "targetQualities", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
IsBoolean(),
|
|
73
|
+
IsOptional(),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], VideoFileUploadOptionsDto.prototype, "enableStreaming", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
IsBoolean(),
|
|
78
|
+
IsOptional(),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], VideoFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
|
|
81
|
+
//# sourceMappingURL=video-file-upload-options.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/video-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE3F,MAAM,OAAO,yBAAyB;CAuDrC;AApDG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;yDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;8DACQ;AAIrB;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;mEACe;AAI5B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;2DACM;AAKnB;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;uDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACE;AAIf;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;8DACQ;AAIrB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;oEACe;AAI5B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;kEACa;AAI1B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;oEACe;AAM5B;IAJC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;IACZ,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACE;AAIlE;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;kEACa;AAI1B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;uEACkB"}
|
|
@@ -4,8 +4,20 @@ export * from './interfaces/image-file-upload-options';
|
|
|
4
4
|
export * from './interfaces/image-file-metadata';
|
|
5
5
|
export * from './interfaces/image-files-user-storage-info';
|
|
6
6
|
export * from './interfaces/image-files-by-user';
|
|
7
|
+
export * from './interfaces/document-file';
|
|
8
|
+
export * from './interfaces/document-file-upload-options';
|
|
9
|
+
export * from './interfaces/document-file-metadata';
|
|
10
|
+
export * from './interfaces/document-files-user-storage-info';
|
|
11
|
+
export * from './interfaces/document-files-by-user';
|
|
12
|
+
export * from './interfaces/video-file';
|
|
13
|
+
export * from './interfaces/video-file-upload-options';
|
|
14
|
+
export * from './interfaces/video-file-metadata';
|
|
15
|
+
export * from './interfaces/video-files-user-storage-info';
|
|
16
|
+
export * from './interfaces/video-files-by-user';
|
|
7
17
|
// Enums
|
|
8
18
|
export * from './enums/file-status';
|
|
9
19
|
// DTOs
|
|
10
20
|
export * from './dtos/image-file-upload-options.dto';
|
|
21
|
+
export * from './dtos/document-file-upload-options.dto';
|
|
22
|
+
export * from './dtos/video-file-upload-options.dto';
|
|
11
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/dms/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AAEjD,QAAQ;AACR,cAAc,qBAAqB,CAAC;AAEpC,OAAO;AACP,cAAc,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/dms/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AAEjD,QAAQ;AACR,cAAc,qBAAqB,CAAC;AAEpC,OAAO;AACP,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file-metadata.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-file-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file-upload-options.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-file-upload-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-file.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-files-by-user.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-files-by-user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-files-user-storage-info.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/document-files-user-storage-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file-metadata.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-file-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file-upload-options.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-file-upload-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-file.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-files-by-user.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-files-by-user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-files-user-storage-info.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/video-files-user-storage-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class VideoFileUploadOptionsDto {
|
|
2
|
+
folder?: string;
|
|
3
|
+
maxSizeInMB?: number;
|
|
4
|
+
allowedMimeTypes?: string[];
|
|
5
|
+
isPublic?: boolean;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
generateThumbnail?: boolean;
|
|
10
|
+
generatePreview?: boolean;
|
|
11
|
+
enableTranscoding?: boolean;
|
|
12
|
+
targetQualities?: ('1080p' | '720p' | '480p' | '360p' | '240p')[];
|
|
13
|
+
enableStreaming?: boolean;
|
|
14
|
+
preserveOriginalName?: boolean;
|
|
15
|
+
}
|
|
@@ -3,5 +3,17 @@ export * from './interfaces/image-file-upload-options';
|
|
|
3
3
|
export * from './interfaces/image-file-metadata';
|
|
4
4
|
export * from './interfaces/image-files-user-storage-info';
|
|
5
5
|
export * from './interfaces/image-files-by-user';
|
|
6
|
+
export * from './interfaces/document-file';
|
|
7
|
+
export * from './interfaces/document-file-upload-options';
|
|
8
|
+
export * from './interfaces/document-file-metadata';
|
|
9
|
+
export * from './interfaces/document-files-user-storage-info';
|
|
10
|
+
export * from './interfaces/document-files-by-user';
|
|
11
|
+
export * from './interfaces/video-file';
|
|
12
|
+
export * from './interfaces/video-file-upload-options';
|
|
13
|
+
export * from './interfaces/video-file-metadata';
|
|
14
|
+
export * from './interfaces/video-files-user-storage-info';
|
|
15
|
+
export * from './interfaces/video-files-by-user';
|
|
6
16
|
export * from './enums/file-status';
|
|
7
17
|
export * from './dtos/image-file-upload-options.dto';
|
|
18
|
+
export * from './dtos/document-file-upload-options.dto';
|
|
19
|
+
export * from './dtos/video-file-upload-options.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DocumentFileMetadata {
|
|
2
|
+
pageCount?: number;
|
|
3
|
+
wordCount?: number;
|
|
4
|
+
author?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
subject?: string;
|
|
7
|
+
creator?: string;
|
|
8
|
+
producer?: string;
|
|
9
|
+
creationDate?: string;
|
|
10
|
+
modificationDate?: string;
|
|
11
|
+
language?: string;
|
|
12
|
+
version?: string;
|
|
13
|
+
hasPassword?: boolean;
|
|
14
|
+
isEncrypted?: boolean;
|
|
15
|
+
fileType: string;
|
|
16
|
+
encoding?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FileStatus } from "../enums/file-status";
|
|
2
|
+
export interface DocumentFile {
|
|
3
|
+
id: number;
|
|
4
|
+
fileName: string;
|
|
5
|
+
originalFileName: string;
|
|
6
|
+
url: string;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
size: number;
|
|
9
|
+
originalSize: number;
|
|
10
|
+
fileExtension: string;
|
|
11
|
+
status: FileStatus;
|
|
12
|
+
description?: string;
|
|
13
|
+
tags?: string[];
|
|
14
|
+
metadata?: Record<string, any>;
|
|
15
|
+
userId: number;
|
|
16
|
+
folder?: string;
|
|
17
|
+
cdnUrl?: string;
|
|
18
|
+
lastAccessedAt?: Date;
|
|
19
|
+
accessCount: number;
|
|
20
|
+
isPublic: boolean;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
deletedAt?: Date;
|
|
24
|
+
signedUrl?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface VideoChapter {
|
|
2
|
+
title: string;
|
|
3
|
+
startTime: number;
|
|
4
|
+
endTime: number;
|
|
5
|
+
}
|
|
6
|
+
export interface VideoFileMetadata {
|
|
7
|
+
duration?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
frameRate?: number;
|
|
11
|
+
bitrate?: number;
|
|
12
|
+
format?: string;
|
|
13
|
+
codec?: string;
|
|
14
|
+
audioCodec?: string;
|
|
15
|
+
audioChannels?: number;
|
|
16
|
+
audioSampleRate?: number;
|
|
17
|
+
aspectRatio?: string;
|
|
18
|
+
rotation?: number;
|
|
19
|
+
hasAudio?: boolean;
|
|
20
|
+
hasVideo?: boolean;
|
|
21
|
+
isStreamable?: boolean;
|
|
22
|
+
chapters?: VideoChapter[];
|
|
23
|
+
thumbnailTimestamp?: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface VideoFileUploadOptions {
|
|
2
|
+
folder?: string;
|
|
3
|
+
maxSizeInMB?: number;
|
|
4
|
+
allowedMimeTypes?: string[];
|
|
5
|
+
isPublic?: boolean;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
generateThumbnail?: boolean;
|
|
10
|
+
generatePreview?: boolean;
|
|
11
|
+
enableTranscoding?: boolean;
|
|
12
|
+
targetQualities?: ('1080p' | '720p' | '480p' | '360p' | '240p')[];
|
|
13
|
+
enableStreaming?: boolean;
|
|
14
|
+
preserveOriginalName?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FileStatus } from "../enums/file-status";
|
|
2
|
+
export interface VideoFile {
|
|
3
|
+
id: number;
|
|
4
|
+
fileName: string;
|
|
5
|
+
originalFileName: string;
|
|
6
|
+
url: string;
|
|
7
|
+
thumbnailUrl?: string;
|
|
8
|
+
previewUrl?: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
size: number;
|
|
11
|
+
originalSize: number;
|
|
12
|
+
duration?: number;
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
frameRate?: number;
|
|
16
|
+
bitrate?: number;
|
|
17
|
+
format?: string;
|
|
18
|
+
codec?: string;
|
|
19
|
+
status: FileStatus;
|
|
20
|
+
title?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
metadata?: Record<string, any>;
|
|
24
|
+
userId: number;
|
|
25
|
+
folder?: string;
|
|
26
|
+
cdnUrl?: string;
|
|
27
|
+
streamingUrl?: string;
|
|
28
|
+
lastAccessedAt?: Date;
|
|
29
|
+
accessCount: number;
|
|
30
|
+
isPublic: boolean;
|
|
31
|
+
processingStatus?: 'pending' | 'processing' | 'completed' | 'failed';
|
|
32
|
+
qualityVariants?: VideoQualityVariant[];
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
deletedAt?: Date;
|
|
36
|
+
signedUrl?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface VideoQualityVariant {
|
|
39
|
+
quality: '1080p' | '720p' | '480p' | '360p' | '240p';
|
|
40
|
+
url: string;
|
|
41
|
+
size: number;
|
|
42
|
+
bitrate: number;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}
|