grm-shared-library 1.1.45 → 1.1.46
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.map +1 -1
- package/dist/cjs/modules/dms/dtos/multi-file-upload.dto.js +53 -0
- package/dist/cjs/modules/dms/dtos/multi-file-upload.dto.js.map +1 -0
- package/dist/cjs/modules/dms/enums/audio-processing-status.js.map +1 -1
- package/dist/cjs/modules/dms/index.js +2 -0
- package/dist/cjs/modules/dms/index.js.map +1 -1
- package/dist/cjs/modules/dms/interfaces/multi-file-upload.js +11 -0
- package/dist/cjs/modules/dms/interfaces/multi-file-upload.js.map +1 -0
- package/dist/esm/modules/dms/dtos/audio-file-upload-options.dto.js.map +1 -1
- package/dist/esm/modules/dms/dtos/multi-file-upload.dto.js +48 -0
- package/dist/esm/modules/dms/dtos/multi-file-upload.dto.js.map +1 -0
- package/dist/esm/modules/dms/enums/audio-processing-status.js.map +1 -1
- package/dist/esm/modules/dms/index.js +2 -0
- package/dist/esm/modules/dms/index.js.map +1 -1
- package/dist/esm/modules/dms/interfaces/multi-file-upload.js +8 -0
- package/dist/esm/modules/dms/interfaces/multi-file-upload.js.map +1 -0
- package/dist/types/modules/dms/dtos/multi-file-upload.dto.d.ts +12 -0
- package/dist/types/modules/dms/index.d.ts +2 -0
- package/dist/types/modules/dms/interfaces/multi-file-upload.d.ts +35 -0
- package/package.json +1 -1
|
@@ -1 +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,qDAAuG;AACvG,yDAAoD;AAEpD,MAAa,yBAAyB;CAmFrC;AAnFD,8DAmFC;
|
|
1
|
+
{"version":3,"file":"audio-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/audio-file-upload-options.dto.ts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+
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.FileUploadItemDto = exports.MultiFileUploadOptionsDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const multi_file_upload_1 = require("../interfaces/multi-file-upload");
|
|
15
|
+
class MultiFileUploadOptionsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.MultiFileUploadOptionsDto = MultiFileUploadOptionsDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], MultiFileUploadOptionsDto.prototype, "userId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], MultiFileUploadOptionsDto.prototype, "organizationId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsArray)(),
|
|
29
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], MultiFileUploadOptionsDto.prototype, "tags", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], MultiFileUploadOptionsDto.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], MultiFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
42
|
+
class FileUploadItemDto {
|
|
43
|
+
}
|
|
44
|
+
exports.FileUploadItemDto = FileUploadItemDto;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsEnum)(multi_file_upload_1.FileType),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], FileUploadItemDto.prototype, "type", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], FileUploadItemDto.prototype, "options", void 0);
|
|
53
|
+
//# sourceMappingURL=multi-file-upload.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-file-upload.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/multi-file-upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmF;AACnF,uEAA2D;AAE3D,MAAa,yBAAyB;CAmBrC;AAnBD,8DAmBC;AAjBC;IADC,IAAA,0BAAQ,GAAE;;yDACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;iEACa;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACT;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2DACO;AAGrB,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAJC;IADC,IAAA,wBAAM,EAAC,4BAAQ,CAAC;;+CACD;AAGhB;IADC,IAAA,4BAAU,GAAE;;kDACC"}
|
|
@@ -1 +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;
|
|
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;IAC7B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;AACrB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
|
|
@@ -35,6 +35,7 @@ __exportStar(require("./interfaces/audio-file-upload-options"), exports);
|
|
|
35
35
|
__exportStar(require("./interfaces/audio-file-metadata"), exports);
|
|
36
36
|
__exportStar(require("./interfaces/audio-files-user-storage-info"), exports);
|
|
37
37
|
__exportStar(require("./interfaces/audio-files-by-user"), exports);
|
|
38
|
+
__exportStar(require("./interfaces/multi-file-upload"), exports);
|
|
38
39
|
// Enums
|
|
39
40
|
__exportStar(require("./enums/file-status"), exports);
|
|
40
41
|
__exportStar(require("./enums/video-processing-status"), exports);
|
|
@@ -44,4 +45,5 @@ __exportStar(require("./dtos/image-file-upload-options.dto"), exports);
|
|
|
44
45
|
__exportStar(require("./dtos/document-file-upload-options.dto"), exports);
|
|
45
46
|
__exportStar(require("./dtos/video-file-upload-options.dto"), exports);
|
|
46
47
|
__exportStar(require("./dtos/audio-file-upload-options.dto"), exports);
|
|
48
|
+
__exportStar(require("./dtos/multi-file-upload.dto"), exports);
|
|
47
49
|
//# 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;AACjD,0DAAwC;AACxC,yEAAuD;AACvD,mEAAiD;AACjD,6EAA2D;AAC3D,mEAAiD;
|
|
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;AACjD,iEAA+C;AAE/C,QAAQ;AACR,sDAAoC;AACpC,kEAAgD;AAChD,kEAAgD;AAEhD,OAAO;AACP,uEAAqD;AACrD,0EAAwD;AACxD,uEAAqD;AACrD,uEAAqD;AACrD,+DAA6C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileType = void 0;
|
|
4
|
+
var FileType;
|
|
5
|
+
(function (FileType) {
|
|
6
|
+
FileType["IMAGE"] = "image";
|
|
7
|
+
FileType["DOCUMENT"] = "document";
|
|
8
|
+
FileType["VIDEO"] = "video";
|
|
9
|
+
FileType["AUDIO"] = "audio";
|
|
10
|
+
})(FileType || (exports.FileType = FileType = {}));
|
|
11
|
+
//# sourceMappingURL=multi-file-upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-file-upload.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/multi-file-upload.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,2BAAe,CAAA;IACf,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB"}
|
|
@@ -1 +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;
|
|
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;AAhFG;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAOhB;IALC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,GAAG,C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AAE;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,48 @@
|
|
|
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 { IsString, IsOptional, IsArray, IsBoolean, IsEnum } from 'class-validator';
|
|
11
|
+
import { FileType } from '../interfaces/multi-file-upload';
|
|
12
|
+
export class MultiFileUploadOptionsDto {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsString(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], MultiFileUploadOptionsDto.prototype, "userId", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsString(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], MultiFileUploadOptionsDto.prototype, "organizationId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
IsOptional(),
|
|
24
|
+
IsArray(),
|
|
25
|
+
IsString({ each: true }),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], MultiFileUploadOptionsDto.prototype, "tags", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsOptional(),
|
|
30
|
+
IsString(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], MultiFileUploadOptionsDto.prototype, "description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
IsOptional(),
|
|
35
|
+
IsBoolean(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], MultiFileUploadOptionsDto.prototype, "isPublic", void 0);
|
|
38
|
+
export class FileUploadItemDto {
|
|
39
|
+
}
|
|
40
|
+
__decorate([
|
|
41
|
+
IsEnum(FileType),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], FileUploadItemDto.prototype, "type", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsOptional(),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], FileUploadItemDto.prototype, "options", void 0);
|
|
48
|
+
//# sourceMappingURL=multi-file-upload.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-file-upload.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/multi-file-upload.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,MAAM,OAAO,yBAAyB;CAmBrC;AAjBC;IADC,QAAQ,EAAE;;yDACK;AAGhB;IADC,QAAQ,EAAE;;iEACa;AAKxB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACT;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;8DACU;AAIrB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;2DACO;AAGrB,MAAM,OAAO,iBAAiB;CAM7B;AAJC;IADC,MAAM,CAAC,QAAQ,CAAC;;+CACD;AAGhB;IADC,UAAU,EAAE;;kDACC"}
|
|
@@ -1 +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;
|
|
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;IAC7B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;AACrB,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC"}
|
|
@@ -19,6 +19,7 @@ export * from './interfaces/audio-file-upload-options';
|
|
|
19
19
|
export * from './interfaces/audio-file-metadata';
|
|
20
20
|
export * from './interfaces/audio-files-user-storage-info';
|
|
21
21
|
export * from './interfaces/audio-files-by-user';
|
|
22
|
+
export * from './interfaces/multi-file-upload';
|
|
22
23
|
// Enums
|
|
23
24
|
export * from './enums/file-status';
|
|
24
25
|
export * from './enums/video-processing-status';
|
|
@@ -28,4 +29,5 @@ export * from './dtos/image-file-upload-options.dto';
|
|
|
28
29
|
export * from './dtos/document-file-upload-options.dto';
|
|
29
30
|
export * from './dtos/video-file-upload-options.dto';
|
|
30
31
|
export * from './dtos/audio-file-upload-options.dto';
|
|
32
|
+
export * from './dtos/multi-file-upload.dto';
|
|
31
33
|
//# 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;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,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;AACjD,cAAc,gCAAgC,CAAC;AAE/C,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;AACrD,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-file-upload.js","sourceRoot":"","sources":["../../../../../src/modules/dms/interfaces/multi-file-upload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,2BAAe,CAAA;IACf,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FileType } from '../interfaces/multi-file-upload';
|
|
2
|
+
export declare class MultiFileUploadOptionsDto {
|
|
3
|
+
userId: string;
|
|
4
|
+
organizationId: string;
|
|
5
|
+
tags?: string[];
|
|
6
|
+
description?: string;
|
|
7
|
+
isPublic?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class FileUploadItemDto {
|
|
10
|
+
type: FileType;
|
|
11
|
+
options?: any;
|
|
12
|
+
}
|
|
@@ -18,6 +18,7 @@ export * from './interfaces/audio-file-upload-options';
|
|
|
18
18
|
export * from './interfaces/audio-file-metadata';
|
|
19
19
|
export * from './interfaces/audio-files-user-storage-info';
|
|
20
20
|
export * from './interfaces/audio-files-by-user';
|
|
21
|
+
export * from './interfaces/multi-file-upload';
|
|
21
22
|
export * from './enums/file-status';
|
|
22
23
|
export * from './enums/video-processing-status';
|
|
23
24
|
export * from './enums/audio-processing-status';
|
|
@@ -25,3 +26,4 @@ export * from './dtos/image-file-upload-options.dto';
|
|
|
25
26
|
export * from './dtos/document-file-upload-options.dto';
|
|
26
27
|
export * from './dtos/video-file-upload-options.dto';
|
|
27
28
|
export * from './dtos/audio-file-upload-options.dto';
|
|
29
|
+
export * from './dtos/multi-file-upload.dto';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare enum FileType {
|
|
2
|
+
IMAGE = "image",
|
|
3
|
+
DOCUMENT = "document",
|
|
4
|
+
VIDEO = "video",
|
|
5
|
+
AUDIO = "audio"
|
|
6
|
+
}
|
|
7
|
+
export interface FileUploadRequest {
|
|
8
|
+
file: any;
|
|
9
|
+
type: FileType;
|
|
10
|
+
options?: any;
|
|
11
|
+
}
|
|
12
|
+
export interface MultiFileUploadResult {
|
|
13
|
+
success: boolean;
|
|
14
|
+
results: FileUploadItemResult[];
|
|
15
|
+
totalProcessed: number;
|
|
16
|
+
totalSuccessful: number;
|
|
17
|
+
totalFailed: number;
|
|
18
|
+
errors?: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface FileUploadItemResult {
|
|
21
|
+
filename: string;
|
|
22
|
+
type: FileType;
|
|
23
|
+
success: boolean;
|
|
24
|
+
fileId?: string;
|
|
25
|
+
size?: number;
|
|
26
|
+
error?: string;
|
|
27
|
+
data?: any;
|
|
28
|
+
}
|
|
29
|
+
export interface MultiFileUploadOptions {
|
|
30
|
+
userId: string;
|
|
31
|
+
organizationId: string;
|
|
32
|
+
tags?: string[];
|
|
33
|
+
description?: string;
|
|
34
|
+
isPublic?: boolean;
|
|
35
|
+
}
|