@more-life/types-more-life-react 0.95.0 → 0.97.0
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/dto/document/createDocument.dto.d.ts +4 -0
- package/dist/dto/document/createDocument.dto.js +27 -1
- package/dist/dto/document/createDocument.dto.js.map +1 -1
- package/dist/dto/document/document.dto.d.ts +1 -0
- package/dist/dto/document/document.dto.js +5 -0
- package/dist/dto/document/document.dto.js.map +1 -1
- package/dist/dto/document/updateDocument.dto.d.ts +3 -0
- package/dist/dto/document/updateDocument.dto.js +21 -0
- package/dist/dto/document/updateDocument.dto.js.map +1 -1
- package/dist/enum/documentStatus.enum.d.ts +2 -1
- package/dist/enum/documentStatus.enum.js +1 -0
- package/dist/enum/documentStatus.enum.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,5 +4,9 @@ export declare class CreateDocumentDto {
|
|
|
4
4
|
description?: string;
|
|
5
5
|
applicationId: string;
|
|
6
6
|
documentType: DocumentTypeEnum;
|
|
7
|
+
status?: string | null;
|
|
8
|
+
content?: Record<string, any> | null;
|
|
9
|
+
presignedUrl?: string;
|
|
10
|
+
storageId?: string;
|
|
7
11
|
static fromPlain(object: any): CreateDocumentDto;
|
|
8
12
|
}
|
|
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const convertAndValidate_1 = require("../../util/convertAndValidate");
|
|
17
17
|
const documentType_enum_1 = require("../../enum/documentType.enum");
|
|
18
|
+
const lodash_1 = require("lodash");
|
|
18
19
|
class CreateDocumentDto {
|
|
19
20
|
static fromPlain(object) {
|
|
20
21
|
return (0, convertAndValidate_1.convertAndValidate)(CreateDocumentDto, object);
|
|
@@ -42,9 +43,34 @@ __decorate([
|
|
|
42
43
|
], CreateDocumentDto.prototype, "applicationId", void 0);
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, nestjs_1.ApiProperty)({ enum: documentType_enum_1.DocumentTypeEnum, required: true }),
|
|
45
|
-
(0, class_validator_1.IsIn)(
|
|
46
|
+
(0, class_validator_1.IsIn)((0, lodash_1.values)(documentType_enum_1.DocumentTypeEnum)),
|
|
46
47
|
(0, class_transformer_1.Expose)(),
|
|
47
48
|
__metadata("design:type", String)
|
|
48
49
|
], CreateDocumentDto.prototype, "documentType", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, nestjs_1.ApiHideProperty)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_transformer_1.Exclude)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CreateDocumentDto.prototype, "status", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, nestjs_1.ApiHideProperty)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsObject)(),
|
|
60
|
+
(0, class_transformer_1.Exclude)(),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], CreateDocumentDto.prototype, "content", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, nestjs_1.ApiHideProperty)(),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_transformer_1.Exclude)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateDocumentDto.prototype, "presignedUrl", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, nestjs_1.ApiHideProperty)(),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_transformer_1.Exclude)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CreateDocumentDto.prototype, "storageId", void 0);
|
|
49
75
|
exports.CreateDocumentDto = CreateDocumentDto;
|
|
50
76
|
//# sourceMappingURL=createDocument.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDocument.dto.js","sourceRoot":"","sources":["../../../src/dto/document/createDocument.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"createDocument.dto.js","sourceRoot":"","sources":["../../../src/dto/document/createDocument.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA4D;AAC5D,yDAAoD;AACpD,qDAA+E;AAC/E,sEAAmE;AACnE,oEAAgE;AAEhE,mCAAgC;AAEhC,MAAa,iBAAiB;IA4CtB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;CACD;AA9CA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;+CACK;AAEd;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;sDACY;AAErB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;wDACa;AAEtB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,oCAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,IAAA,sBAAI,EAAC,IAAA,eAAM,EAAC,oCAAgB,CAAC,CAAC;IAC9B,IAAA,0BAAM,GAAE;;uDACsB;AAE/B;IAAC,IAAA,wBAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAO,GAAE;;iDACa;AAEvB;IAAC,IAAA,wBAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAO,GAAE;;kDAC2B;AAErC;IAAC,IAAA,wBAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAO,GAAE;;uDACY;AAEtB;IAAC,IAAA,wBAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAO,GAAE;;oDACS;AA1CpB,8CA+CC"}
|
|
@@ -62,5 +62,10 @@ __decorate([
|
|
|
62
62
|
(0, class_transformer_1.Expose)(),
|
|
63
63
|
__metadata("design:type", String)
|
|
64
64
|
], DocumentDto.prototype, "applicationId", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, nestjs_1.ApiProperty)({ type: Object, required: false, nullable: true }),
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], DocumentDto.prototype, "content", void 0);
|
|
65
70
|
exports.DocumentDto = DocumentDto;
|
|
66
71
|
//# sourceMappingURL=document.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.dto.js","sourceRoot":"","sources":["../../../src/dto/document/document.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAA2C;AAC3C,iEAA6D;AAC7D,kDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"document.dto.js","sourceRoot":"","sources":["../../../src/dto/document/document.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAA2C;AAC3C,iEAA6D;AAC7D,kDAA8C;AAC9C,sEAAwD;AACxD,wEAAoE;AACpE,oEAAgE;AAEhE,MAAa,WAAY,SAAQ,IAAA,kBAAO,EAAC,0CAAmB,CAAC;IAqCrD,MAAM,CAAC,UAAU,CAAC,MAAW;QACnC,OAAO,IAAA,4BAAO,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACrC,C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C4B;AAnCtC,kCAwCC"}
|
|
@@ -5,5 +5,8 @@ export declare class UpdateDocumentDto {
|
|
|
5
5
|
applicationId?: string;
|
|
6
6
|
status?: string | null;
|
|
7
7
|
documentType: DocumentTypeEnum;
|
|
8
|
+
content?: Record<string, any> | null;
|
|
9
|
+
fileSize?: number;
|
|
10
|
+
storageId?: string;
|
|
8
11
|
static fromPlain(object: any): UpdateDocumentDto;
|
|
9
12
|
}
|
|
@@ -57,5 +57,26 @@ __decorate([
|
|
|
57
57
|
(0, class_transformer_1.Expose)(),
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], UpdateDocumentDto.prototype, "documentType", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, nestjs_1.ApiProperty)({ type: Object, required: false, nullable: true }),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsObject)(),
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], UpdateDocumentDto.prototype, "content", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, nestjs_1.ApiHideProperty)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsNumber)(),
|
|
71
|
+
(0, class_transformer_1.Exclude)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], UpdateDocumentDto.prototype, "fileSize", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, nestjs_1.ApiHideProperty)(),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, class_transformer_1.Exclude)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], UpdateDocumentDto.prototype, "storageId", void 0);
|
|
60
81
|
exports.UpdateDocumentDto = UpdateDocumentDto;
|
|
61
82
|
//# sourceMappingURL=updateDocument.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateDocument.dto.js","sourceRoot":"","sources":["../../../src/dto/document/updateDocument.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"updateDocument.dto.js","sourceRoot":"","sources":["../../../src/dto/document/updateDocument.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA4D;AAC5D,yDAAoD;AACpD,qDAOyB;AACzB,sEAAmE;AACnE,wEAAoE;AACpE,mCAAgC;AAChC,oEAAgE;AAEhE,MAAa,iBAAiB;IAiDtB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;CACD;AAnDA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;+CACK;AAEd;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;sDACmB;AAE5B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;wDACc;AAEvB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,wCAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,sBAAI,EAAC,IAAA,eAAM,EAAC,wCAAkB,CAAC,CAAC;IAChC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;iDACc;AAEvB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,oCAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,oCAAgB,CAAC,CAAC;IACrC,IAAA,0BAAM,GAAE;;uDACsB;AAE/B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;kDAC4B;AAErC;IAAC,IAAA,wBAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAO,GAAE;;mDACQ;AAElB;IAAC,IAAA,wBAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAO,GAAE;;oDACS;AA/CpB,8CAoDC"}
|
|
@@ -6,5 +6,6 @@ var DocumentStatusEnum;
|
|
|
6
6
|
DocumentStatusEnum["FAILED"] = "FAILED";
|
|
7
7
|
DocumentStatusEnum["UPLOADING"] = "UPLOADING";
|
|
8
8
|
DocumentStatusEnum["READY"] = "READY";
|
|
9
|
+
DocumentStatusEnum["DRAFT"] = "DRAFT";
|
|
9
10
|
})(DocumentStatusEnum = exports.DocumentStatusEnum || (exports.DocumentStatusEnum = {}));
|
|
10
11
|
//# sourceMappingURL=documentStatus.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentStatus.enum.js","sourceRoot":"","sources":["../../src/enum/documentStatus.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"documentStatus.enum.js","sourceRoot":"","sources":["../../src/enum/documentStatus.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,6CAAuB,CAAA;IACvB,qCAAe,CAAA;IACf,qCAAe,CAAA;AAChB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
|