@ballistix.digital/types-pb-tool-react 0.7.0 → 0.9.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.
Files changed (87) hide show
  1. package/dist/dto/attachment/attachment.dto.d.ts +17 -0
  2. package/dist/dto/{dossier/dossier.dto.js → attachment/attachment.dto.js} +22 -36
  3. package/dist/dto/attachment/attachment.dto.js.map +1 -0
  4. package/dist/dto/attachment/attachmentEmbedded.dto.d.ts +7 -0
  5. package/dist/dto/attachment/attachmentEmbedded.dto.js +38 -0
  6. package/dist/dto/attachment/attachmentEmbedded.dto.js.map +1 -0
  7. package/dist/dto/attachment/attachmentPage.dto.d.ts +13 -0
  8. package/dist/dto/{dossier/dossierPage.dto.js → attachment/attachmentPage.dto.js} +9 -9
  9. package/dist/dto/attachment/attachmentPage.dto.js.map +1 -0
  10. package/dist/dto/attachment/createAttachment.dto.d.ts +11 -0
  11. package/dist/dto/attachment/createAttachment.dto.js +62 -0
  12. package/dist/dto/attachment/createAttachment.dto.js.map +1 -0
  13. package/dist/dto/attachment/updateAttachment.dto.d.ts +10 -0
  14. package/dist/dto/attachment/updateAttachment.dto.js +60 -0
  15. package/dist/dto/attachment/updateAttachment.dto.js.map +1 -0
  16. package/dist/dto/note/createNote.dto.d.ts +4 -0
  17. package/dist/dto/note/createNote.dto.js +33 -0
  18. package/dist/dto/note/createNote.dto.js.map +1 -1
  19. package/dist/dto/note/note.dto.d.ts +6 -2
  20. package/dist/dto/note/note.dto.js +18 -2
  21. package/dist/dto/note/note.dto.js.map +1 -1
  22. package/dist/dto/note/noteEmbedded.dto.d.ts +5 -0
  23. package/dist/dto/note/noteEmbedded.dto.js +31 -0
  24. package/dist/dto/note/noteEmbedded.dto.js.map +1 -1
  25. package/dist/dto/note/updateNote.dto.d.ts +4 -0
  26. package/dist/dto/note/updateNote.dto.js +35 -0
  27. package/dist/dto/note/updateNote.dto.js.map +1 -1
  28. package/dist/dto/response/createResponse.dto.d.ts +1 -1
  29. package/dist/dto/response/createResponse.dto.js +5 -3
  30. package/dist/dto/response/createResponse.dto.js.map +1 -1
  31. package/dist/dto/response/response.dto.d.ts +1 -0
  32. package/dist/dto/response/response.dto.js +5 -0
  33. package/dist/dto/response/response.dto.js.map +1 -1
  34. package/dist/dto/survey/createSurvey.dto.d.ts +1 -0
  35. package/dist/dto/survey/createSurvey.dto.js +6 -0
  36. package/dist/dto/survey/createSurvey.dto.js.map +1 -1
  37. package/dist/dto/survey/survey.dto.d.ts +2 -0
  38. package/dist/dto/survey/survey.dto.js +10 -0
  39. package/dist/dto/survey/survey.dto.js.map +1 -1
  40. package/dist/dto/survey/surveyEmbedded.dto.d.ts +3 -3
  41. package/dist/dto/survey/surveyEmbedded.dto.js +6 -6
  42. package/dist/dto/survey/surveyEmbedded.dto.js.map +1 -1
  43. package/dist/dto/survey/updateSurvey.dto.d.ts +1 -0
  44. package/dist/dto/survey/updateSurvey.dto.js +7 -0
  45. package/dist/dto/survey/updateSurvey.dto.js.map +1 -1
  46. package/dist/dto/taxReturn/taxReturn.dto.d.ts +2 -0
  47. package/dist/dto/taxReturn/taxReturn.dto.js +10 -0
  48. package/dist/dto/taxReturn/taxReturn.dto.js.map +1 -1
  49. package/dist/dto/taxReturn/taxReturnEmbedded.dto.d.ts +2 -0
  50. package/dist/dto/taxReturn/taxReturnEmbedded.dto.js +7 -0
  51. package/dist/dto/taxReturn/taxReturnEmbedded.dto.js.map +1 -1
  52. package/dist/dto/taxReturn/updateTaxReturn.dto.d.ts +3 -0
  53. package/dist/dto/taxReturn/updateTaxReturn.dto.js +26 -0
  54. package/dist/dto/taxReturn/updateTaxReturn.dto.js.map +1 -0
  55. package/dist/dto/user/user.dto.d.ts +0 -4
  56. package/dist/dto/user/user.dto.js +0 -20
  57. package/dist/dto/user/user.dto.js.map +1 -1
  58. package/dist/dto/user/userEmbedded.dto.d.ts +2 -0
  59. package/dist/dto/user/userEmbedded.dto.js +7 -0
  60. package/dist/dto/user/userEmbedded.dto.js.map +1 -1
  61. package/dist/enum/attachmentStatus.enum.d.ts +5 -0
  62. package/dist/enum/attachmentStatus.enum.js +10 -0
  63. package/dist/enum/attachmentStatus.enum.js.map +1 -0
  64. package/dist/enum/attachmentType.enum.d.ts +5 -0
  65. package/dist/enum/attachmentType.enum.js +10 -0
  66. package/dist/enum/attachmentType.enum.js.map +1 -0
  67. package/dist/enum/noteStatus.enum.d.ts +5 -0
  68. package/dist/enum/noteStatus.enum.js +10 -0
  69. package/dist/enum/noteStatus.enum.js.map +1 -0
  70. package/dist/index.d.ts +10 -6
  71. package/dist/index.js +20 -12
  72. package/dist/index.js.map +1 -1
  73. package/dist/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +1 -1
  75. package/dist/dto/dossier/createDossier.dto.d.ts +0 -2
  76. package/dist/dto/dossier/createDossier.dto.js +0 -7
  77. package/dist/dto/dossier/createDossier.dto.js.map +0 -1
  78. package/dist/dto/dossier/dossier.dto.d.ts +0 -20
  79. package/dist/dto/dossier/dossier.dto.js.map +0 -1
  80. package/dist/dto/dossier/dossierEmbedded.dto.d.ts +0 -14
  81. package/dist/dto/dossier/dossierEmbedded.dto.js +0 -70
  82. package/dist/dto/dossier/dossierEmbedded.dto.js.map +0 -1
  83. package/dist/dto/dossier/dossierPage.dto.d.ts +0 -13
  84. package/dist/dto/dossier/dossierPage.dto.js.map +0 -1
  85. package/dist/dto/dossier/updateDossier.dto.d.ts +0 -2
  86. package/dist/dto/dossier/updateDossier.dto.js +0 -7
  87. package/dist/dto/dossier/updateDossier.dto.js.map +0 -1
@@ -0,0 +1,17 @@
1
+ import { AttachmentEmbeddedDto } from './attachmentEmbedded.dto';
2
+ import { AttachmentStatusEnum } from '../../enum/attachmentStatus.enum';
3
+ import { AttachmentTypeEnum } from '../../enum/attachmentType.enum';
4
+ declare const AttachmentDto_base: import("../generic/base.dto").BaseDtoType<AttachmentEmbeddedDto>;
5
+ export declare class AttachmentDto extends AttachmentDto_base {
6
+ id: string;
7
+ name: string;
8
+ presignedUrl: string;
9
+ fileSize: number;
10
+ mimeType: string;
11
+ description: string;
12
+ type: AttachmentTypeEnum;
13
+ status: AttachmentStatusEnum;
14
+ storageId: string;
15
+ taxReturnId: string;
16
+ }
17
+ export {};
@@ -9,78 +9,64 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DossierDto = void 0;
12
+ exports.AttachmentDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const nestjs_1 = require("../../nestjs");
15
- const language_enum_1 = require("../../enum/language.enum");
16
15
  const base_dto_1 = require("../generic/base.dto");
17
- const dossierEmbedded_dto_1 = require("./dossierEmbedded.dto");
18
- class DossierDto extends (0, base_dto_1.BaseDto)(dossierEmbedded_dto_1.DossierEmbeddedDto) {
16
+ const attachmentEmbedded_dto_1 = require("./attachmentEmbedded.dto");
17
+ const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
18
+ const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
19
+ class AttachmentDto extends (0, base_dto_1.BaseDto)(attachmentEmbedded_dto_1.AttachmentEmbeddedDto) {
19
20
  }
20
- exports.DossierDto = DossierDto;
21
+ exports.AttachmentDto = AttachmentDto;
21
22
  __decorate([
22
23
  (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
23
24
  (0, class_transformer_1.Expose)(),
24
25
  __metadata("design:type", String)
25
- ], DossierDto.prototype, "id", void 0);
26
+ ], AttachmentDto.prototype, "id", void 0);
26
27
  __decorate([
27
28
  (0, nestjs_1.ApiProperty)({ type: String, required: true }),
28
29
  (0, class_transformer_1.Expose)(),
29
30
  __metadata("design:type", String)
30
- ], DossierDto.prototype, "clientNumber", void 0);
31
+ ], AttachmentDto.prototype, "name", void 0);
31
32
  __decorate([
32
33
  (0, nestjs_1.ApiProperty)({ type: String, required: true }),
33
34
  (0, class_transformer_1.Expose)(),
34
35
  __metadata("design:type", String)
35
- ], DossierDto.prototype, "address", void 0);
36
+ ], AttachmentDto.prototype, "presignedUrl", void 0);
36
37
  __decorate([
37
- (0, nestjs_1.ApiProperty)({ enum: language_enum_1.LanguageEnum, required: true }),
38
+ (0, nestjs_1.ApiProperty)({ type: Number, required: true }),
38
39
  (0, class_transformer_1.Expose)(),
39
- __metadata("design:type", String)
40
- ], DossierDto.prototype, "language", void 0);
40
+ __metadata("design:type", Number)
41
+ ], AttachmentDto.prototype, "fileSize", void 0);
41
42
  __decorate([
42
43
  (0, nestjs_1.ApiProperty)({ type: String, required: true }),
43
44
  (0, class_transformer_1.Expose)(),
44
45
  __metadata("design:type", String)
45
- ], DossierDto.prototype, "iban", void 0);
46
+ ], AttachmentDto.prototype, "mimeType", void 0);
46
47
  __decorate([
47
48
  (0, nestjs_1.ApiProperty)({ type: String, required: true }),
48
49
  (0, class_transformer_1.Expose)(),
49
50
  __metadata("design:type", String)
50
- ], DossierDto.prototype, "afasId", void 0);
51
+ ], AttachmentDto.prototype, "description", void 0);
51
52
  __decorate([
52
- (0, nestjs_1.ApiProperty)({ type: String, required: true }),
53
+ (0, nestjs_1.ApiProperty)({ enum: attachmentStatus_enum_1.AttachmentStatusEnum, required: true }),
53
54
  (0, class_transformer_1.Expose)(),
54
55
  __metadata("design:type", String)
55
- ], DossierDto.prototype, "deadline", void 0);
56
+ ], AttachmentDto.prototype, "type", void 0);
56
57
  __decorate([
57
- (0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
58
+ (0, nestjs_1.ApiProperty)({ enum: attachmentStatus_enum_1.AttachmentStatusEnum, required: true }),
58
59
  (0, class_transformer_1.Expose)(),
59
60
  __metadata("design:type", String)
60
- ], DossierDto.prototype, "surveyId", void 0);
61
+ ], AttachmentDto.prototype, "status", void 0);
61
62
  __decorate([
62
- (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
63
- (0, class_transformer_1.Expose)(),
64
- __metadata("design:type", String)
65
- ], DossierDto.prototype, "taxYearId", void 0);
66
- __decorate([
67
- (0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
68
- (0, class_transformer_1.Expose)(),
69
- __metadata("design:type", String)
70
- ], DossierDto.prototype, "teamId", void 0);
71
- __decorate([
72
- (0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
63
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
73
64
  (0, class_transformer_1.Expose)(),
74
65
  __metadata("design:type", String)
75
- ], DossierDto.prototype, "fileManagerId", void 0);
66
+ ], AttachmentDto.prototype, "storageId", void 0);
76
67
  __decorate([
77
68
  (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
78
69
  (0, class_transformer_1.Expose)(),
79
70
  __metadata("design:type", String)
80
- ], DossierDto.prototype, "primaryClientId", void 0);
81
- __decorate([
82
- (0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
83
- (0, class_transformer_1.Expose)(),
84
- __metadata("design:type", String)
85
- ], DossierDto.prototype, "clientPartnerId", void 0);
86
- //# sourceMappingURL=dossier.dto.js.map
71
+ ], AttachmentDto.prototype, "taxReturnId", void 0);
72
+ //# sourceMappingURL=attachment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/attachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAE3C,kDAA8C;AAE9C,qEAAiE;AACjE,4EAAwE;AACxE,wEAAoE;AAEpE,MAAa,aAAc,SAAQ,IAAA,kBAAO,EAAC,8CAAqB,CAAC;CAwChE;AAxCD,sCAwCC;AArCA;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;yCACG;AAIZ;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;2CACK;AAId;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;mDACY;AAIrB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;+CACS;AAIlB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;+CACS;AAIlB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;kDACY;AAIrB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,4CAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAA,0BAAM,GAAE;;2CACiB;AAI1B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,4CAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAA,0BAAM,GAAE;;6CACqB;AAI9B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;gDACU;AAInB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;kDACW"}
@@ -0,0 +1,7 @@
1
+ import { TaxReturnDto } from '../taxReturn/taxReturn.dto';
2
+ import { UserDto } from '../user/user.dto';
3
+ export declare class AttachmentEmbeddedDto {
4
+ taxReturn?: TaxReturnDto;
5
+ createdBy?: UserDto;
6
+ updatedBy?: UserDto;
7
+ }
@@ -0,0 +1,38 @@
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.AttachmentEmbeddedDto = void 0;
13
+ const taxReturn_dto_1 = require("../taxReturn/taxReturn.dto");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const user_dto_1 = require("../user/user.dto");
17
+ class AttachmentEmbeddedDto {
18
+ }
19
+ exports.AttachmentEmbeddedDto = AttachmentEmbeddedDto;
20
+ __decorate([
21
+ (0, nestjs_1.ApiProperty)({ type: () => taxReturn_dto_1.TaxReturnDto, required: true }),
22
+ (0, class_transformer_1.Type)(() => taxReturn_dto_1.TaxReturnDto),
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", taxReturn_dto_1.TaxReturnDto)
25
+ ], AttachmentEmbeddedDto.prototype, "taxReturn", void 0);
26
+ __decorate([
27
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
28
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", user_dto_1.UserDto)
31
+ ], AttachmentEmbeddedDto.prototype, "createdBy", void 0);
32
+ __decorate([
33
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
34
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", user_dto_1.UserDto)
37
+ ], AttachmentEmbeddedDto.prototype, "updatedBy", void 0);
38
+ //# sourceMappingURL=attachmentEmbedded.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachmentEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/attachmentEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA0D;AAC1D,yCAA2C;AAC3C,yDAAiD;AACjD,+CAA2C;AAE3C,MAAa,qBAAqB;CAejC;AAfD,sDAeC;AAXA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,4BAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,0BAAM,GAAE;8BACG,4BAAY;wDAAC;AAKzB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,0BAAM,GAAE;8BACG,kBAAO;wDAAC;AAKpB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,0BAAM,GAAE;8BACG,kBAAO;wDAAC"}
@@ -0,0 +1,13 @@
1
+ import { AttachmentDto } from './attachment.dto';
2
+ declare class EmbeddedAttachment {
3
+ attachments?: AttachmentDto[];
4
+ }
5
+ declare const AttachmentPageDto_base: {
6
+ new (): {
7
+ _page: import("../..").PageInfoDto;
8
+ _embedded: EmbeddedAttachment;
9
+ };
10
+ };
11
+ export declare class AttachmentPageDto extends AttachmentPageDto_base {
12
+ }
13
+ export {};
@@ -9,20 +9,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DossierPageDto = void 0;
12
+ exports.AttachmentPageDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const nestjs_1 = require("../../nestjs");
15
15
  const page_dto_1 = require("../generic/page.dto");
16
- const dossier_dto_1 = require("./dossier.dto");
17
- class EmbeddedDossier {
16
+ const attachment_dto_1 = require("./attachment.dto");
17
+ class EmbeddedAttachment {
18
18
  }
19
19
  __decorate([
20
- (0, nestjs_1.ApiProperty)({ type: () => [dossier_dto_1.DossierDto], required: false }),
21
- (0, class_transformer_1.Type)(() => dossier_dto_1.DossierDto),
20
+ (0, nestjs_1.ApiProperty)({ type: () => [attachment_dto_1.AttachmentDto], required: false }),
21
+ (0, class_transformer_1.Type)(() => attachment_dto_1.AttachmentDto),
22
22
  (0, class_transformer_1.Expose)({ name: 'items' }),
23
23
  __metadata("design:type", Array)
24
- ], EmbeddedDossier.prototype, "dossiers", void 0);
25
- class DossierPageDto extends (0, page_dto_1.PageDto)(EmbeddedDossier) {
24
+ ], EmbeddedAttachment.prototype, "attachments", void 0);
25
+ class AttachmentPageDto extends (0, page_dto_1.PageDto)(EmbeddedAttachment) {
26
26
  }
27
- exports.DossierPageDto = DossierPageDto;
28
- //# sourceMappingURL=dossierPage.dto.js.map
27
+ exports.AttachmentPageDto = AttachmentPageDto;
28
+ //# sourceMappingURL=attachmentPage.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachmentPage.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/attachmentPage.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAE3C,kDAA8C;AAC9C,qDAAiD;AAEjD,MAAM,kBAAkB;CAKvB;AADA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,8BAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC7D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;IACzB,IAAA,0BAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;uDACI;AAG/B,MAAa,iBAAkB,SAAQ,IAAA,kBAAO,EAAC,kBAAkB,CAAC;CAAG;AAArE,8CAAqE"}
@@ -0,0 +1,11 @@
1
+ import { AttachmentTypeEnum } from '../../enum/attachmentType.enum';
2
+ import { AttachmentStatusEnum } from '../../enum/attachmentStatus.enum';
3
+ export declare class CreateAttachmentDto {
4
+ name: string;
5
+ description?: string;
6
+ type: AttachmentTypeEnum;
7
+ taxReturnId: string;
8
+ status?: AttachmentStatusEnum;
9
+ fileSize?: number;
10
+ storageId?: string;
11
+ }
@@ -0,0 +1,62 @@
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.CreateAttachmentDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
15
+ const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
16
+ const class_validator_1 = require("class-validator");
17
+ const lodash_1 = require("lodash");
18
+ const nestjs_1 = require("../../nestjs");
19
+ class CreateAttachmentDto {
20
+ }
21
+ exports.CreateAttachmentDto = CreateAttachmentDto;
22
+ __decorate([
23
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], CreateAttachmentDto.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], CreateAttachmentDto.prototype, "description", void 0);
35
+ __decorate([
36
+ (0, nestjs_1.ApiProperty)({ enum: attachmentType_enum_1.AttachmentTypeEnum, required: true }),
37
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(attachmentType_enum_1.AttachmentTypeEnum)),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], CreateAttachmentDto.prototype, "type", void 0);
41
+ __decorate([
42
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
43
+ (0, class_validator_1.IsUUID)(4),
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], CreateAttachmentDto.prototype, "taxReturnId", void 0);
47
+ __decorate([
48
+ (0, nestjs_1.ApiHideProperty)(),
49
+ (0, class_transformer_1.Exclude)(),
50
+ __metadata("design:type", String)
51
+ ], CreateAttachmentDto.prototype, "status", void 0);
52
+ __decorate([
53
+ (0, nestjs_1.ApiHideProperty)(),
54
+ (0, class_transformer_1.Exclude)(),
55
+ __metadata("design:type", Number)
56
+ ], CreateAttachmentDto.prototype, "fileSize", void 0);
57
+ __decorate([
58
+ (0, nestjs_1.ApiHideProperty)(),
59
+ (0, class_transformer_1.Exclude)(),
60
+ __metadata("design:type", String)
61
+ ], CreateAttachmentDto.prototype, "storageId", void 0);
62
+ //# sourceMappingURL=createAttachment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAttachment.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/createAttachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AAEpD,wEAAoE;AACpE,4EAAwE;AACxE,qDAAqE;AACrE,mCAAgC;AAChC,yCAA4D;AAE5D,MAAa,mBAAmB;CAiC/B;AAjCD,kDAiCC;AA7BA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;iDACI;AAMb;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;wDACY;AAKrB;IAHC,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,0BAAM,GAAE;;iDACgB;AAKzB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,wBAAM,EAAC,CAAC,CAAC;IACT,IAAA,0BAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,wBAAe,GAAE;IACjB,IAAA,2BAAO,GAAE;;mDACoB;AAI9B;IAFC,IAAA,wBAAe,GAAE;IACjB,IAAA,2BAAO,GAAE;;qDACQ;AAIlB;IAFC,IAAA,wBAAe,GAAE;IACjB,IAAA,2BAAO,GAAE;;sDACS"}
@@ -0,0 +1,10 @@
1
+ import { AttachmentStatusEnum } from '../../enum/attachmentStatus.enum';
2
+ import { AttachmentTypeEnum } from '../../enum/attachmentType.enum';
3
+ export declare class UpdateAttachmentDto {
4
+ name?: string;
5
+ description?: string;
6
+ type?: AttachmentTypeEnum;
7
+ status?: AttachmentStatusEnum;
8
+ fileSize?: number;
9
+ mimeType?: string;
10
+ }
@@ -0,0 +1,60 @@
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.UpdateAttachmentDto = void 0;
13
+ const nestjs_1 = require("../../nestjs");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
17
+ const lodash_1 = require("lodash");
18
+ const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
19
+ class UpdateAttachmentDto {
20
+ }
21
+ exports.UpdateAttachmentDto = UpdateAttachmentDto;
22
+ __decorate([
23
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], UpdateAttachmentDto.prototype, "name", void 0);
29
+ __decorate([
30
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], UpdateAttachmentDto.prototype, "description", void 0);
36
+ __decorate([
37
+ (0, nestjs_1.ApiProperty)({ enum: attachmentType_enum_1.AttachmentTypeEnum, required: false }),
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(attachmentType_enum_1.AttachmentTypeEnum)),
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], UpdateAttachmentDto.prototype, "type", void 0);
43
+ __decorate([
44
+ (0, nestjs_1.ApiProperty)({ enum: attachmentStatus_enum_1.AttachmentStatusEnum, required: false }),
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(attachmentStatus_enum_1.AttachmentStatusEnum)),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", String)
49
+ ], UpdateAttachmentDto.prototype, "status", void 0);
50
+ __decorate([
51
+ (0, nestjs_1.ApiHideProperty)(),
52
+ (0, class_transformer_1.Exclude)(),
53
+ __metadata("design:type", Number)
54
+ ], UpdateAttachmentDto.prototype, "fileSize", void 0);
55
+ __decorate([
56
+ (0, nestjs_1.ApiHideProperty)(),
57
+ (0, class_transformer_1.Exclude)(),
58
+ __metadata("design:type", String)
59
+ ], UpdateAttachmentDto.prototype, "mimeType", void 0);
60
+ //# sourceMappingURL=updateAttachment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateAttachment.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/updateAttachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA4D;AAC5D,yDAAoD;AACpD,qDAA6D;AAC7D,4EAAwE;AACxE,mCAAgC;AAChC,wEAAoE;AAEpE,MAAa,mBAAmB;CAgC/B;AAhCD,kDAgCC;AA3BA;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;iDACK;AAMd;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;wDACY;AAMrB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,wCAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,IAAA,eAAM,EAAC,wCAAkB,CAAC,CAAC;IAChC,IAAA,0BAAM,GAAE;;iDACiB;AAM1B;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,4CAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,IAAA,eAAM,EAAC,4CAAoB,CAAC,CAAC;IAClC,IAAA,0BAAM,GAAE;;mDACqB;AAI9B;IAFC,IAAA,wBAAe,GAAE;IACjB,IAAA,2BAAO,GAAE;;qDACQ;AAIlB;IAFC,IAAA,wBAAe,GAAE;IACjB,IAAA,2BAAO,GAAE;;qDACQ"}
@@ -1,2 +1,6 @@
1
+ import { NoteStatusEnum } from '../../enum/noteStatus.enum';
1
2
  export declare class CreateNoteDto {
3
+ status: NoteStatusEnum;
4
+ description?: string;
5
+ taxReturnId: string;
2
6
  }
@@ -1,7 +1,40 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.CreateNoteDto = void 0;
13
+ const nestjs_1 = require("../../nestjs");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const noteStatus_enum_1 = require("../../enum/noteStatus.enum");
16
+ const class_validator_1 = require("class-validator");
17
+ const lodash_1 = require("lodash");
4
18
  class CreateNoteDto {
5
19
  }
6
20
  exports.CreateNoteDto = CreateNoteDto;
21
+ __decorate([
22
+ (0, nestjs_1.ApiProperty)({ enum: noteStatus_enum_1.NoteStatusEnum, required: true }),
23
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(noteStatus_enum_1.NoteStatusEnum)),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], CreateNoteDto.prototype, "status", void 0);
27
+ __decorate([
28
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], CreateNoteDto.prototype, "description", void 0);
34
+ __decorate([
35
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
36
+ (0, class_validator_1.IsUUID)(4),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], CreateNoteDto.prototype, "taxReturnId", void 0);
7
40
  //# sourceMappingURL=createNote.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createNote.dto.js","sourceRoot":"","sources":["../../../src/dto/note/createNote.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAAG;AAA7B,sCAA6B"}
1
+ {"version":3,"file":"createNote.dto.js","sourceRoot":"","sources":["../../../src/dto/note/createNote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAA2C;AAC3C,gEAA4D;AAC5D,qDAAqE;AACrE,mCAAgC;AAEhC,MAAa,aAAa;CAgBzB;AAhBD,sCAgBC;AAZA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,gCAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrD,IAAA,sBAAI,EAAC,IAAA,eAAM,EAAC,gCAAc,CAAC,CAAC;IAC5B,IAAA,0BAAM,GAAE;;6CACc;AAMvB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;kDACY;AAKrB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,wBAAM,EAAC,CAAC,CAAC;IACT,IAAA,0BAAM,GAAE;;kDACW"}
@@ -1,6 +1,10 @@
1
- import { TeamEmbeddedDto } from '../team/teamEmbedded.dto';
2
- declare const NoteDto_base: import("../generic/base.dto").BaseDtoType<TeamEmbeddedDto>;
1
+ import { NoteEmbeddedDto } from './noteEmbedded.dto';
2
+ import { NoteStatusEnum } from '../../enum/noteStatus.enum';
3
+ declare const NoteDto_base: import("../generic/base.dto").BaseDtoType<NoteEmbeddedDto>;
3
4
  export declare class NoteDto extends NoteDto_base {
4
5
  id: string;
6
+ status: NoteStatusEnum;
7
+ description: string;
8
+ taxReturnId: string;
5
9
  }
6
10
  export {};
@@ -13,8 +13,9 @@ exports.NoteDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const nestjs_1 = require("../../nestjs");
15
15
  const base_dto_1 = require("../generic/base.dto");
16
- const teamEmbedded_dto_1 = require("../team/teamEmbedded.dto");
17
- class NoteDto extends (0, base_dto_1.BaseDto)(teamEmbedded_dto_1.TeamEmbeddedDto) {
16
+ const noteEmbedded_dto_1 = require("./noteEmbedded.dto");
17
+ const noteStatus_enum_1 = require("../../enum/noteStatus.enum");
18
+ class NoteDto extends (0, base_dto_1.BaseDto)(noteEmbedded_dto_1.NoteEmbeddedDto) {
18
19
  }
19
20
  exports.NoteDto = NoteDto;
20
21
  __decorate([
@@ -22,4 +23,19 @@ __decorate([
22
23
  (0, class_transformer_1.Expose)(),
23
24
  __metadata("design:type", String)
24
25
  ], NoteDto.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, nestjs_1.ApiProperty)({ enum: noteStatus_enum_1.NoteStatusEnum, required: true }),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], NoteDto.prototype, "status", void 0);
31
+ __decorate([
32
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], NoteDto.prototype, "description", void 0);
36
+ __decorate([
37
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], NoteDto.prototype, "taxReturnId", void 0);
25
41
  //# sourceMappingURL=note.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"note.dto.js","sourceRoot":"","sources":["../../../src/dto/note/note.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAE3C,kDAA8C;AAC9C,+DAA2D;AAE3D,MAAa,OAAQ,SAAQ,IAAA,kBAAO,EAAC,kCAAe,CAAC;CAIpD;AAJD,0BAIC;AADA;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;mCACG"}
1
+ {"version":3,"file":"note.dto.js","sourceRoot":"","sources":["../../../src/dto/note/note.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAE3C,kDAA8C;AAC9C,yDAAqD;AACrD,gEAA4D;AAE5D,MAAa,OAAQ,SAAQ,IAAA,kBAAO,EAAC,kCAAe,CAAC;CAgBpD;AAhBD,0BAgBC;AAbA;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;mCACG;AAIZ;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,gCAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrD,IAAA,0BAAM,GAAE;;uCACc;AAIvB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;4CACW;AAIpB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;4CACW"}
@@ -1,2 +1,7 @@
1
+ import { TaxReturnDto } from '../taxReturn/taxReturn.dto';
2
+ import { UserDto } from '../user/user.dto';
1
3
  export declare class NoteEmbeddedDto {
4
+ taxReturn?: TaxReturnDto;
5
+ createdBy?: UserDto;
6
+ updatedBy?: UserDto;
2
7
  }
@@ -1,7 +1,38 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.NoteEmbeddedDto = void 0;
13
+ const taxReturn_dto_1 = require("../taxReturn/taxReturn.dto");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const user_dto_1 = require("../user/user.dto");
4
17
  class NoteEmbeddedDto {
5
18
  }
6
19
  exports.NoteEmbeddedDto = NoteEmbeddedDto;
20
+ __decorate([
21
+ (0, nestjs_1.ApiProperty)({ type: () => taxReturn_dto_1.TaxReturnDto, required: false }),
22
+ (0, class_transformer_1.Type)(() => taxReturn_dto_1.TaxReturnDto),
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", taxReturn_dto_1.TaxReturnDto)
25
+ ], NoteEmbeddedDto.prototype, "taxReturn", void 0);
26
+ __decorate([
27
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
28
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", user_dto_1.UserDto)
31
+ ], NoteEmbeddedDto.prototype, "createdBy", void 0);
32
+ __decorate([
33
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
34
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", user_dto_1.UserDto)
37
+ ], NoteEmbeddedDto.prototype, "updatedBy", void 0);
7
38
  //# sourceMappingURL=noteEmbedded.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"noteEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/note/noteEmbedded.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;CAAG;AAA/B,0CAA+B"}
1
+ {"version":3,"file":"noteEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/note/noteEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA0D;AAC1D,yCAA2C;AAC3C,yDAAiD;AACjD,+CAA2C;AAE3C,MAAa,eAAe;CAe3B;AAfD,0CAeC;AAXA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,4BAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,0BAAM,GAAE;8BACG,4BAAY;kDAAC;AAKzB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,0BAAM,GAAE;8BACG,kBAAO;kDAAC;AAKpB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,0BAAM,GAAE;8BACG,kBAAO;kDAAC"}
@@ -1,2 +1,6 @@
1
+ import { NoteStatusEnum } from '../../enum/noteStatus.enum';
1
2
  export declare class UpdateNoteDto {
3
+ status?: NoteStatusEnum;
4
+ description?: string;
5
+ taxReturnId?: string;
2
6
  }
@@ -1,7 +1,42 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.UpdateNoteDto = void 0;
13
+ const nestjs_1 = require("../../nestjs");
14
+ const noteStatus_enum_1 = require("../../enum/noteStatus.enum");
15
+ const class_validator_1 = require("class-validator");
16
+ const lodash_1 = require("lodash");
17
+ const class_transformer_1 = require("class-transformer");
4
18
  class UpdateNoteDto {
5
19
  }
6
20
  exports.UpdateNoteDto = UpdateNoteDto;
21
+ __decorate([
22
+ (0, nestjs_1.ApiProperty)({ enum: noteStatus_enum_1.NoteStatusEnum, required: false }),
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(noteStatus_enum_1.NoteStatusEnum)),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], UpdateNoteDto.prototype, "status", void 0);
28
+ __decorate([
29
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], UpdateNoteDto.prototype, "description", void 0);
35
+ __decorate([
36
+ (0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsUUID)(4),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", String)
41
+ ], UpdateNoteDto.prototype, "taxReturnId", void 0);
7
42
  //# sourceMappingURL=updateNote.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateNote.dto.js","sourceRoot":"","sources":["../../../src/dto/note/updateNote.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAAG;AAA7B,sCAA6B"}
1
+ {"version":3,"file":"updateNote.dto.js","sourceRoot":"","sources":["../../../src/dto/note/updateNote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,gEAA4D;AAC5D,qDAAqE;AACrE,mCAAgC;AAChC,yDAA2C;AAE3C,MAAa,aAAa;CAkBzB;AAlBD,sCAkBC;AAbA;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,gCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACtD,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,IAAA,eAAM,EAAC,gCAAc,CAAC,CAAC;IAC5B,IAAA,0BAAM,GAAE;;6CACe;AAMxB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;kDACY;AAMrB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,CAAC;IACT,IAAA,0BAAM,GAAE;;kDACY"}
@@ -1,6 +1,6 @@
1
1
  export declare class CreateResponseDto {
2
2
  data: Record<string, string | number | boolean>;
3
- percentageCompleted: number;
3
+ percentageCompleted?: number;
4
4
  surveyId: string;
5
5
  taxReturnId: string;
6
6
  }