@more-life/types-more-life-react 0.96.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.
@@ -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)(Object.values(documentType_enum_1.DocumentTypeEnum)),
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,yCAA2C;AAC3C,yDAA2C;AAC3C,qDAAqE;AACrE,sEAAmE;AACnE,oEAAgE;AAEhE,MAAa,iBAAiB;IAuBtB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;CACD;AAzBA;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,IAA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,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"}
@@ -6,5 +6,7 @@ export declare class UpdateDocumentDto {
6
6
  status?: string | null;
7
7
  documentType: DocumentTypeEnum;
8
8
  content?: Record<string, any> | null;
9
+ fileSize?: number;
10
+ storageId?: string;
9
11
  static fromPlain(object: any): UpdateDocumentDto;
10
12
  }
@@ -64,5 +64,19 @@ __decorate([
64
64
  (0, class_transformer_1.Expose)(),
65
65
  __metadata("design:type", Object)
66
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);
67
81
  exports.UpdateDocumentDto = UpdateDocumentDto;
68
82
  //# sourceMappingURL=updateDocument.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateDocument.d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