grm-shared-library 1.1.41 → 1.1.42
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/index.js +6 -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/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/index.js +6 -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/types/modules/dms/dtos/document-file-upload-options.dto.d.ts +10 -0
- package/dist/types/modules/dms/index.d.ts +6 -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/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"}
|
|
@@ -20,8 +20,14 @@ __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);
|
|
23
28
|
// Enums
|
|
24
29
|
__exportStar(require("./enums/file-status"), exports);
|
|
25
30
|
// DTOs
|
|
26
31
|
__exportStar(require("./dtos/image-file-upload-options.dto"), exports);
|
|
32
|
+
__exportStar(require("./dtos/document-file-upload-options.dto"), exports);
|
|
27
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,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;AAEpD,QAAQ;AACR,sDAAoC;AAEpC,OAAO;AACP,uEAAqD;AACrD,0EAAwD"}
|
|
@@ -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,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"}
|
|
@@ -4,8 +4,14 @@ 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';
|
|
7
12
|
// Enums
|
|
8
13
|
export * from './enums/file-status';
|
|
9
14
|
// DTOs
|
|
10
15
|
export * from './dtos/image-file-upload-options.dto';
|
|
16
|
+
export * from './dtos/document-file-upload-options.dto';
|
|
11
17
|
//# 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;
|
|
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;AAEpD,QAAQ;AACR,cAAc,qBAAqB,CAAC;AAEpC,OAAO;AACP,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,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":""}
|
|
@@ -3,5 +3,11 @@ 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';
|
|
6
11
|
export * from './enums/file-status';
|
|
7
12
|
export * from './dtos/image-file-upload-options.dto';
|
|
13
|
+
export * from './dtos/document-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
|
+
}
|