grm-shared-library 1.1.43 → 1.1.45
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/audio-file-upload-options.dto.js +119 -0
- package/dist/cjs/modules/dms/dtos/audio-file-upload-options.dto.js.map +1 -0
- package/dist/cjs/modules/dms/enums/audio-processing-status.js +11 -0
- package/dist/cjs/modules/dms/enums/audio-processing-status.js.map +1 -0
- package/dist/cjs/modules/dms/enums/video-processing-status.js +11 -0
- package/dist/cjs/modules/dms/enums/video-processing-status.js.map +1 -0
- package/dist/cjs/modules/dms/index.js +8 -0
- package/dist/cjs/modules/dms/index.js.map +1 -1
- package/dist/cjs/modules/dms/interfaces/audio-file-metadata.js +3 -0
- package/dist/cjs/modules/dms/interfaces/audio-file-metadata.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/audio-file-upload-options.js +3 -0
- package/dist/cjs/modules/dms/interfaces/audio-file-upload-options.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/audio-file.js +3 -0
- package/dist/cjs/modules/dms/interfaces/audio-file.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/audio-files-by-user.js +3 -0
- package/dist/cjs/modules/dms/interfaces/audio-files-by-user.js.map +1 -0
- package/dist/cjs/modules/dms/interfaces/audio-files-user-storage-info.js +3 -0
- package/dist/cjs/modules/dms/interfaces/audio-files-user-storage-info.js.map +1 -0
- package/dist/esm/modules/dms/dtos/audio-file-upload-options.dto.js +115 -0
- package/dist/esm/modules/dms/dtos/audio-file-upload-options.dto.js.map +1 -0
- package/dist/esm/modules/dms/enums/audio-processing-status.js +8 -0
- package/dist/esm/modules/dms/enums/audio-processing-status.js.map +1 -0
- package/dist/esm/modules/dms/enums/video-processing-status.js +8 -0
- package/dist/esm/modules/dms/enums/video-processing-status.js.map +1 -0
- package/dist/esm/modules/dms/index.js +8 -0
- package/dist/esm/modules/dms/index.js.map +1 -1
- package/dist/esm/modules/dms/interfaces/audio-file-metadata.js +2 -0
- package/dist/esm/modules/dms/interfaces/audio-file-metadata.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/audio-file-upload-options.js +2 -0
- package/dist/esm/modules/dms/interfaces/audio-file-upload-options.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/audio-file.js +2 -0
- package/dist/esm/modules/dms/interfaces/audio-file.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/audio-files-by-user.js +2 -0
- package/dist/esm/modules/dms/interfaces/audio-files-by-user.js.map +1 -0
- package/dist/esm/modules/dms/interfaces/audio-files-user-storage-info.js +2 -0
- package/dist/esm/modules/dms/interfaces/audio-files-user-storage-info.js.map +1 -0
- package/dist/types/modules/dms/dtos/audio-file-upload-options.dto.d.ts +19 -0
- package/dist/types/modules/dms/enums/audio-processing-status.d.ts +6 -0
- package/dist/types/modules/dms/enums/video-processing-status.d.ts +6 -0
- package/dist/types/modules/dms/index.d.ts +8 -0
- package/dist/types/modules/dms/interfaces/audio-file-metadata.d.ts +23 -0
- package/dist/types/modules/dms/interfaces/audio-file-upload-options.d.ts +19 -0
- package/dist/types/modules/dms/interfaces/audio-file.d.ts +48 -0
- package/dist/types/modules/dms/interfaces/audio-files-by-user.d.ts +8 -0
- package/dist/types/modules/dms/interfaces/audio-files-user-storage-info.d.ts +7 -0
- package/dist/types/modules/dms/interfaces/video-file.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
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.AudioFileUploadOptionsDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class AudioFileUploadOptionsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AudioFileUploadOptionsDto = AudioFileUploadOptionsDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], AudioFileUploadOptionsDto.prototype, "folder", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
(0, class_validator_1.Min)(1),
|
|
27
|
+
(0, class_validator_1.Max)(200) // 200MB max for audio files
|
|
28
|
+
,
|
|
29
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], AudioFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsArray)(),
|
|
35
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], AudioFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsBoolean)(),
|
|
41
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true' || value === true),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], AudioFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsArray)(),
|
|
47
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], AudioFileUploadOptionsDto.prototype, "tags", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], AudioFileUploadOptionsDto.prototype, "title", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AudioFileUploadOptionsDto.prototype, "artist", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], AudioFileUploadOptionsDto.prototype, "album", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], AudioFileUploadOptionsDto.prototype, "genre", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsNumber)(),
|
|
73
|
+
(0, class_validator_1.Min)(1900),
|
|
74
|
+
(0, class_validator_1.Max)(2100),
|
|
75
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], AudioFileUploadOptionsDto.prototype, "year", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], AudioFileUploadOptionsDto.prototype, "description", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsBoolean)(),
|
|
86
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true' || value === true),
|
|
87
|
+
__metadata("design:type", Boolean)
|
|
88
|
+
], AudioFileUploadOptionsDto.prototype, "generateWaveform", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_validator_1.IsBoolean)(),
|
|
92
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true' || value === true),
|
|
93
|
+
__metadata("design:type", Boolean)
|
|
94
|
+
], AudioFileUploadOptionsDto.prototype, "extractCoverArt", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.IsOptional)(),
|
|
97
|
+
(0, class_validator_1.IsBoolean)(),
|
|
98
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true' || value === true),
|
|
99
|
+
__metadata("design:type", Boolean)
|
|
100
|
+
], AudioFileUploadOptionsDto.prototype, "enableTranscoding", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, class_validator_1.IsArray)(),
|
|
104
|
+
(0, class_validator_1.IsEnum)(['high', 'medium', 'low'], { each: true }),
|
|
105
|
+
__metadata("design:type", Array)
|
|
106
|
+
], AudioFileUploadOptionsDto.prototype, "targetQualities", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, class_validator_1.IsOptional)(),
|
|
109
|
+
(0, class_validator_1.IsBoolean)(),
|
|
110
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true' || value === true),
|
|
111
|
+
__metadata("design:type", Boolean)
|
|
112
|
+
], AudioFileUploadOptionsDto.prototype, "enableStreaming", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_validator_1.IsOptional)(),
|
|
115
|
+
(0, class_validator_1.IsBoolean)(),
|
|
116
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true' || value === true),
|
|
117
|
+
__metadata("design:type", Boolean)
|
|
118
|
+
], AudioFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
|
|
119
|
+
//# sourceMappingURL=audio-file-upload-options.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/audio-file-upload-options.dto.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudioProcessingStatus = void 0;
|
|
4
|
+
var AudioProcessingStatus;
|
|
5
|
+
(function (AudioProcessingStatus) {
|
|
6
|
+
AudioProcessingStatus["PENDING"] = "pending";
|
|
7
|
+
AudioProcessingStatus["PROCESSING"] = "processing";
|
|
8
|
+
AudioProcessingStatus["COMPLETED"] = "completed";
|
|
9
|
+
AudioProcessingStatus["FAILED"] = "failed";
|
|
10
|
+
})(AudioProcessingStatus || (exports.AudioProcessingStatus = AudioProcessingStatus = {}));
|
|
11
|
+
//# sourceMappingURL=audio-processing-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-processing-status.js","sourceRoot":"","sources":["../../../../../src/modules/dms/enums/audio-processing-status.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;AACnB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VideoProcessingStatus = void 0;
|
|
4
|
+
var VideoProcessingStatus;
|
|
5
|
+
(function (VideoProcessingStatus) {
|
|
6
|
+
VideoProcessingStatus["PENDING"] = "pending";
|
|
7
|
+
VideoProcessingStatus["PROCESSING"] = "processing";
|
|
8
|
+
VideoProcessingStatus["COMPLETED"] = "completed";
|
|
9
|
+
VideoProcessingStatus["FAILED"] = "failed";
|
|
10
|
+
})(VideoProcessingStatus || (exports.VideoProcessingStatus = VideoProcessingStatus = {}));
|
|
11
|
+
//# sourceMappingURL=video-processing-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-processing-status.js","sourceRoot":"","sources":["../../../../../src/modules/dms/enums/video-processing-status.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;AACrB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
|
|
@@ -30,10 +30,18 @@ __exportStar(require("./interfaces/video-file-upload-options"), exports);
|
|
|
30
30
|
__exportStar(require("./interfaces/video-file-metadata"), exports);
|
|
31
31
|
__exportStar(require("./interfaces/video-files-user-storage-info"), exports);
|
|
32
32
|
__exportStar(require("./interfaces/video-files-by-user"), exports);
|
|
33
|
+
__exportStar(require("./interfaces/audio-file"), exports);
|
|
34
|
+
__exportStar(require("./interfaces/audio-file-upload-options"), exports);
|
|
35
|
+
__exportStar(require("./interfaces/audio-file-metadata"), exports);
|
|
36
|
+
__exportStar(require("./interfaces/audio-files-user-storage-info"), exports);
|
|
37
|
+
__exportStar(require("./interfaces/audio-files-by-user"), exports);
|
|
33
38
|
// Enums
|
|
34
39
|
__exportStar(require("./enums/file-status"), exports);
|
|
40
|
+
__exportStar(require("./enums/video-processing-status"), exports);
|
|
41
|
+
__exportStar(require("./enums/audio-processing-status"), exports);
|
|
35
42
|
// DTOs
|
|
36
43
|
__exportStar(require("./dtos/image-file-upload-options.dto"), exports);
|
|
37
44
|
__exportStar(require("./dtos/document-file-upload-options.dto"), exports);
|
|
38
45
|
__exportStar(require("./dtos/video-file-upload-options.dto"), exports);
|
|
46
|
+
__exportStar(require("./dtos/audio-file-upload-options.dto"), exports);
|
|
39
47
|
//# 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;AACjD,6DAA2C;AAC3C,4EAA0D;AAC1D,sEAAoD;AACpD,gFAA8D;AAC9D,sEAAoD;AACpD,0DAAwC;AACxC,yEAAuD;AACvD,mEAAiD;AACjD,6EAA2D;AAC3D,mEAAiD;AAEjD,QAAQ;AACR,sDAAoC;
|
|
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;AACjD,0DAAwC;AACxC,yEAAuD;AACvD,mEAAiD;AACjD,6EAA2D;AAC3D,mEAAiD;AAEjD,QAAQ;AACR,sDAAoC;AACpC,kEAAgD;AAChD,kEAAgD;AAEhD,OAAO;AACP,uEAAqD;AACrD,0EAAwD;AACxD,uEAAqD;AACrD,uEAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file-metadata.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-file-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file-upload-options.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-file-upload-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-files-by-user.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-files-by-user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-files-user-storage-info.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-files-user-storage-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 { IsOptional, IsString, IsNumber, IsBoolean, IsArray, IsEnum, Min, Max } from 'class-validator';
|
|
11
|
+
import { Transform, Type } from 'class-transformer';
|
|
12
|
+
export class AudioFileUploadOptionsDto {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsOptional(),
|
|
16
|
+
IsString(),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], AudioFileUploadOptionsDto.prototype, "folder", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
IsOptional(),
|
|
21
|
+
IsNumber(),
|
|
22
|
+
Min(1),
|
|
23
|
+
Max(200) // 200MB max for audio files
|
|
24
|
+
,
|
|
25
|
+
Type(() => Number),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], AudioFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsOptional(),
|
|
30
|
+
IsArray(),
|
|
31
|
+
IsString({ each: true }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], AudioFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsOptional(),
|
|
36
|
+
IsBoolean(),
|
|
37
|
+
Transform(({ value }) => value === 'true' || value === true),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], AudioFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
IsOptional(),
|
|
42
|
+
IsArray(),
|
|
43
|
+
IsString({ each: true }),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], AudioFileUploadOptionsDto.prototype, "tags", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
IsOptional(),
|
|
48
|
+
IsString(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], AudioFileUploadOptionsDto.prototype, "title", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
IsOptional(),
|
|
53
|
+
IsString(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], AudioFileUploadOptionsDto.prototype, "artist", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
IsOptional(),
|
|
58
|
+
IsString(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], AudioFileUploadOptionsDto.prototype, "album", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
IsOptional(),
|
|
63
|
+
IsString(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], AudioFileUploadOptionsDto.prototype, "genre", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
IsOptional(),
|
|
68
|
+
IsNumber(),
|
|
69
|
+
Min(1900),
|
|
70
|
+
Max(2100),
|
|
71
|
+
Type(() => Number),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], AudioFileUploadOptionsDto.prototype, "year", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
IsOptional(),
|
|
76
|
+
IsString(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], AudioFileUploadOptionsDto.prototype, "description", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
IsOptional(),
|
|
81
|
+
IsBoolean(),
|
|
82
|
+
Transform(({ value }) => value === 'true' || value === true),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], AudioFileUploadOptionsDto.prototype, "generateWaveform", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
IsOptional(),
|
|
87
|
+
IsBoolean(),
|
|
88
|
+
Transform(({ value }) => value === 'true' || value === true),
|
|
89
|
+
__metadata("design:type", Boolean)
|
|
90
|
+
], AudioFileUploadOptionsDto.prototype, "extractCoverArt", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
IsOptional(),
|
|
93
|
+
IsBoolean(),
|
|
94
|
+
Transform(({ value }) => value === 'true' || value === true),
|
|
95
|
+
__metadata("design:type", Boolean)
|
|
96
|
+
], AudioFileUploadOptionsDto.prototype, "enableTranscoding", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
IsOptional(),
|
|
99
|
+
IsArray(),
|
|
100
|
+
IsEnum(['high', 'medium', 'low'], { each: true }),
|
|
101
|
+
__metadata("design:type", Array)
|
|
102
|
+
], AudioFileUploadOptionsDto.prototype, "targetQualities", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
IsOptional(),
|
|
105
|
+
IsBoolean(),
|
|
106
|
+
Transform(({ value }) => value === 'true' || value === true),
|
|
107
|
+
__metadata("design:type", Boolean)
|
|
108
|
+
], AudioFileUploadOptionsDto.prototype, "enableStreaming", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
IsOptional(),
|
|
111
|
+
IsBoolean(),
|
|
112
|
+
Transform(({ value }) => value === 'true' || value === true),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], AudioFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
|
|
115
|
+
//# sourceMappingURL=audio-file-upload-options.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/audio-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,yBAAyB;CAmFrC;AAhFC;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAOhB;IALC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,GAAG,CAAC,CAAC,CAAC;IACN,GAAG,CAAC,GAAG,CAAC,CAAC,4BAA4B;;IACrC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8DACE;AAKrB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mEACG;AAK5B;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;2DAC1C;AAKnB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACT;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACI;AAIf;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACI;AAIf;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACI;AAOf;IALC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,GAAG,CAAC,IAAI,CAAC;IACT,GAAG,CAAC,IAAI,CAAC;IACT,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uDACL;AAId;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;8DACU;AAKrB;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;mEAClC;AAK3B;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;kEACnC;AAK1B;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;oEACjC;AAK5B;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,MAAM,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACF;AAKhD;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;kEACnC;AAK1B;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;uEAC9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var AudioProcessingStatus;
|
|
2
|
+
(function (AudioProcessingStatus) {
|
|
3
|
+
AudioProcessingStatus["PENDING"] = "pending";
|
|
4
|
+
AudioProcessingStatus["PROCESSING"] = "processing";
|
|
5
|
+
AudioProcessingStatus["COMPLETED"] = "completed";
|
|
6
|
+
AudioProcessingStatus["FAILED"] = "failed";
|
|
7
|
+
})(AudioProcessingStatus || (AudioProcessingStatus = {}));
|
|
8
|
+
//# sourceMappingURL=audio-processing-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-processing-status.js","sourceRoot":"","sources":["../../../../../src/modules/dms/enums/audio-processing-status.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;AACnB,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var VideoProcessingStatus;
|
|
2
|
+
(function (VideoProcessingStatus) {
|
|
3
|
+
VideoProcessingStatus["PENDING"] = "pending";
|
|
4
|
+
VideoProcessingStatus["PROCESSING"] = "processing";
|
|
5
|
+
VideoProcessingStatus["COMPLETED"] = "completed";
|
|
6
|
+
VideoProcessingStatus["FAILED"] = "failed";
|
|
7
|
+
})(VideoProcessingStatus || (VideoProcessingStatus = {}));
|
|
8
|
+
//# sourceMappingURL=video-processing-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-processing-status.js","sourceRoot":"","sources":["../../../../../src/modules/dms/enums/video-processing-status.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;AACrB,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC"}
|
|
@@ -14,10 +14,18 @@ export * from './interfaces/video-file-upload-options';
|
|
|
14
14
|
export * from './interfaces/video-file-metadata';
|
|
15
15
|
export * from './interfaces/video-files-user-storage-info';
|
|
16
16
|
export * from './interfaces/video-files-by-user';
|
|
17
|
+
export * from './interfaces/audio-file';
|
|
18
|
+
export * from './interfaces/audio-file-upload-options';
|
|
19
|
+
export * from './interfaces/audio-file-metadata';
|
|
20
|
+
export * from './interfaces/audio-files-user-storage-info';
|
|
21
|
+
export * from './interfaces/audio-files-by-user';
|
|
17
22
|
// Enums
|
|
18
23
|
export * from './enums/file-status';
|
|
24
|
+
export * from './enums/video-processing-status';
|
|
25
|
+
export * from './enums/audio-processing-status';
|
|
19
26
|
// DTOs
|
|
20
27
|
export * from './dtos/image-file-upload-options.dto';
|
|
21
28
|
export * from './dtos/document-file-upload-options.dto';
|
|
22
29
|
export * from './dtos/video-file-upload-options.dto';
|
|
30
|
+
export * from './dtos/audio-file-upload-options.dto';
|
|
23
31
|
//# 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;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;
|
|
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;AACjD,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;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAEhD,OAAO;AACP,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file-metadata.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-file-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file-upload-options.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-file-upload-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-file.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-files-by-user.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-files-by-user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-files-user-storage-info.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/audio-files-user-storage-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class AudioFileUploadOptionsDto {
|
|
2
|
+
folder?: string;
|
|
3
|
+
maxSizeInMB?: number;
|
|
4
|
+
allowedMimeTypes?: string[];
|
|
5
|
+
isPublic?: boolean;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
title?: string;
|
|
8
|
+
artist?: string;
|
|
9
|
+
album?: string;
|
|
10
|
+
genre?: string;
|
|
11
|
+
year?: number;
|
|
12
|
+
description?: string;
|
|
13
|
+
generateWaveform?: boolean;
|
|
14
|
+
extractCoverArt?: boolean;
|
|
15
|
+
enableTranscoding?: boolean;
|
|
16
|
+
targetQualities?: ('high' | 'medium' | 'low')[];
|
|
17
|
+
enableStreaming?: boolean;
|
|
18
|
+
preserveOriginalName?: boolean;
|
|
19
|
+
}
|
|
@@ -13,7 +13,15 @@ export * from './interfaces/video-file-upload-options';
|
|
|
13
13
|
export * from './interfaces/video-file-metadata';
|
|
14
14
|
export * from './interfaces/video-files-user-storage-info';
|
|
15
15
|
export * from './interfaces/video-files-by-user';
|
|
16
|
+
export * from './interfaces/audio-file';
|
|
17
|
+
export * from './interfaces/audio-file-upload-options';
|
|
18
|
+
export * from './interfaces/audio-file-metadata';
|
|
19
|
+
export * from './interfaces/audio-files-user-storage-info';
|
|
20
|
+
export * from './interfaces/audio-files-by-user';
|
|
16
21
|
export * from './enums/file-status';
|
|
22
|
+
export * from './enums/video-processing-status';
|
|
23
|
+
export * from './enums/audio-processing-status';
|
|
17
24
|
export * from './dtos/image-file-upload-options.dto';
|
|
18
25
|
export * from './dtos/document-file-upload-options.dto';
|
|
19
26
|
export * from './dtos/video-file-upload-options.dto';
|
|
27
|
+
export * from './dtos/audio-file-upload-options.dto';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface AudioFileMetadata {
|
|
2
|
+
duration?: number;
|
|
3
|
+
bitrate?: number;
|
|
4
|
+
sampleRate?: number;
|
|
5
|
+
channels?: number;
|
|
6
|
+
format?: string;
|
|
7
|
+
codec?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
artist?: string;
|
|
10
|
+
album?: string;
|
|
11
|
+
genre?: string;
|
|
12
|
+
year?: number;
|
|
13
|
+
track?: number;
|
|
14
|
+
disc?: number;
|
|
15
|
+
composer?: string;
|
|
16
|
+
albumArtist?: string;
|
|
17
|
+
lyrics?: string;
|
|
18
|
+
bpm?: number;
|
|
19
|
+
key?: string;
|
|
20
|
+
isStreamable?: boolean;
|
|
21
|
+
hasLyrics?: boolean;
|
|
22
|
+
hasCoverArt?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface AudioFileUploadOptions {
|
|
2
|
+
folder?: string;
|
|
3
|
+
maxSizeInMB?: number;
|
|
4
|
+
allowedMimeTypes?: string[];
|
|
5
|
+
isPublic?: boolean;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
title?: string;
|
|
8
|
+
artist?: string;
|
|
9
|
+
album?: string;
|
|
10
|
+
genre?: string;
|
|
11
|
+
year?: number;
|
|
12
|
+
description?: string;
|
|
13
|
+
generateWaveform?: boolean;
|
|
14
|
+
extractCoverArt?: boolean;
|
|
15
|
+
enableTranscoding?: boolean;
|
|
16
|
+
targetQualities?: ('high' | 'medium' | 'low')[];
|
|
17
|
+
enableStreaming?: boolean;
|
|
18
|
+
preserveOriginalName?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { FileStatus } from "../enums/file-status";
|
|
2
|
+
import { AudioProcessingStatus } from "../enums/audio-processing-status";
|
|
3
|
+
export interface AudioFile {
|
|
4
|
+
id: number;
|
|
5
|
+
fileName: string;
|
|
6
|
+
originalFileName: string;
|
|
7
|
+
url: string;
|
|
8
|
+
waveformUrl?: string;
|
|
9
|
+
coverArtUrl?: string;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
size: number;
|
|
12
|
+
originalSize: number;
|
|
13
|
+
duration?: number;
|
|
14
|
+
bitrate?: number;
|
|
15
|
+
sampleRate?: number;
|
|
16
|
+
channels?: number;
|
|
17
|
+
format?: string;
|
|
18
|
+
codec?: string;
|
|
19
|
+
status: FileStatus;
|
|
20
|
+
title?: string;
|
|
21
|
+
artist?: string;
|
|
22
|
+
album?: string;
|
|
23
|
+
genre?: string;
|
|
24
|
+
year?: number;
|
|
25
|
+
description?: string;
|
|
26
|
+
tags?: string[];
|
|
27
|
+
metadata?: Record<string, any>;
|
|
28
|
+
userId: number;
|
|
29
|
+
folder?: string;
|
|
30
|
+
cdnUrl?: string;
|
|
31
|
+
streamingUrl?: string;
|
|
32
|
+
lastAccessedAt?: Date;
|
|
33
|
+
accessCount: number;
|
|
34
|
+
isPublic: boolean;
|
|
35
|
+
processingStatus?: AudioProcessingStatus;
|
|
36
|
+
qualityVariants?: AudioQualityVariant[];
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
updatedAt: Date;
|
|
39
|
+
deletedAt?: Date;
|
|
40
|
+
signedUrl?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface AudioQualityVariant {
|
|
43
|
+
quality: 'high' | 'medium' | 'low';
|
|
44
|
+
bitrate: number;
|
|
45
|
+
url: string;
|
|
46
|
+
size: number;
|
|
47
|
+
format: string;
|
|
48
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FileStatus } from "../enums/file-status";
|
|
2
|
+
import { VideoProcessingStatus } from "../enums/video-processing-status";
|
|
2
3
|
export interface VideoFile {
|
|
3
4
|
id: number;
|
|
4
5
|
fileName: string;
|
|
@@ -28,7 +29,7 @@ export interface VideoFile {
|
|
|
28
29
|
lastAccessedAt?: Date;
|
|
29
30
|
accessCount: number;
|
|
30
31
|
isPublic: boolean;
|
|
31
|
-
processingStatus?:
|
|
32
|
+
processingStatus?: VideoProcessingStatus;
|
|
32
33
|
qualityVariants?: VideoQualityVariant[];
|
|
33
34
|
createdAt: Date;
|
|
34
35
|
updatedAt: Date;
|