@ballistix.digital/types-pb-tool-nest 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 (88) hide show
  1. package/dist/dto/attachment/attachment.dto.d.ts +17 -0
  2. package/dist/dto/attachment/attachment.dto.js +76 -0
  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 +42 -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} +10 -10
  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 +66 -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 +64 -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 +34 -1
  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 +19 -3
  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 +32 -1
  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 +36 -1
  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 +6 -4
  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 +6 -1
  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 +7 -1
  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 +11 -1
  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 +7 -7
  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 +8 -1
  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 +11 -1
  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 +8 -1
  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 +30 -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 +1 -21
  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 +8 -1
  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.build.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 -11
  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 +0 -90
  80. package/dist/dto/dossier/dossier.dto.js.map +0 -1
  81. package/dist/dto/dossier/dossierEmbedded.dto.d.ts +0 -14
  82. package/dist/dto/dossier/dossierEmbedded.dto.js +0 -74
  83. package/dist/dto/dossier/dossierEmbedded.dto.js.map +0 -1
  84. package/dist/dto/dossier/dossierPage.dto.d.ts +0 -13
  85. package/dist/dto/dossier/dossierPage.dto.js.map +0 -1
  86. package/dist/dto/dossier/updateDossier.dto.d.ts +0 -2
  87. package/dist/dto/dossier/updateDossier.dto.js +0 -11
  88. 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 {};
@@ -0,0 +1,76 @@
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.AttachmentDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const base_dto_1 = require("../generic/base.dto");
17
+ const attachmentEmbedded_dto_1 = require("./attachmentEmbedded.dto");
18
+ const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
19
+ const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
20
+ class AttachmentDto extends (0, base_dto_1.BaseDto)(attachmentEmbedded_dto_1.AttachmentEmbeddedDto) {
21
+ static _OPENAPI_METADATA_FACTORY() {
22
+ return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, presignedUrl: { required: true, type: () => String }, fileSize: { required: true, type: () => Number }, mimeType: { required: true, type: () => String }, description: { required: true, type: () => String }, type: { required: true, enum: require("../../enum/attachmentType.enum").AttachmentTypeEnum }, status: { required: true, enum: require("../../enum/attachmentStatus.enum").AttachmentStatusEnum }, storageId: { required: true, type: () => String }, taxReturnId: { required: true, type: () => String } };
23
+ }
24
+ }
25
+ exports.AttachmentDto = AttachmentDto;
26
+ __decorate([
27
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], AttachmentDto.prototype, "id", 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
+ ], AttachmentDto.prototype, "name", void 0);
36
+ __decorate([
37
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], AttachmentDto.prototype, "presignedUrl", void 0);
41
+ __decorate([
42
+ (0, nestjs_1.ApiProperty)({ type: Number, required: true }),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", Number)
45
+ ], AttachmentDto.prototype, "fileSize", void 0);
46
+ __decorate([
47
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", String)
50
+ ], AttachmentDto.prototype, "mimeType", void 0);
51
+ __decorate([
52
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
53
+ (0, class_transformer_1.Expose)(),
54
+ __metadata("design:type", String)
55
+ ], AttachmentDto.prototype, "description", void 0);
56
+ __decorate([
57
+ (0, nestjs_1.ApiProperty)({ enum: attachmentStatus_enum_1.AttachmentStatusEnum, required: true }),
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], AttachmentDto.prototype, "type", void 0);
61
+ __decorate([
62
+ (0, nestjs_1.ApiProperty)({ enum: attachmentStatus_enum_1.AttachmentStatusEnum, required: true }),
63
+ (0, class_transformer_1.Expose)(),
64
+ __metadata("design:type", String)
65
+ ], AttachmentDto.prototype, "status", void 0);
66
+ __decorate([
67
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
68
+ (0, class_transformer_1.Expose)(),
69
+ __metadata("design:type", String)
70
+ ], AttachmentDto.prototype, "storageId", void 0);
71
+ __decorate([
72
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
73
+ (0, class_transformer_1.Expose)(),
74
+ __metadata("design:type", String)
75
+ ], AttachmentDto.prototype, "taxReturnId", void 0);
76
+ //# 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,42 @@
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 openapi = require("@nestjs/swagger");
14
+ const taxReturn_dto_1 = require("../taxReturn/taxReturn.dto");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const class_transformer_1 = require("class-transformer");
17
+ const user_dto_1 = require("../user/user.dto");
18
+ class AttachmentEmbeddedDto {
19
+ static _OPENAPI_METADATA_FACTORY() {
20
+ return { taxReturn: { required: false, type: () => require("../taxReturn/taxReturn.dto").TaxReturnDto }, createdBy: { required: false, type: () => require("../user/user.dto").UserDto }, updatedBy: { required: false, type: () => require("../user/user.dto").UserDto } };
21
+ }
22
+ }
23
+ exports.AttachmentEmbeddedDto = AttachmentEmbeddedDto;
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ type: () => taxReturn_dto_1.TaxReturnDto, required: true }),
26
+ (0, class_transformer_1.Type)(() => taxReturn_dto_1.TaxReturnDto),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", taxReturn_dto_1.TaxReturnDto)
29
+ ], AttachmentEmbeddedDto.prototype, "taxReturn", void 0);
30
+ __decorate([
31
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
32
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", user_dto_1.UserDto)
35
+ ], AttachmentEmbeddedDto.prototype, "createdBy", void 0);
36
+ __decorate([
37
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
38
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", user_dto_1.UserDto)
41
+ ], AttachmentEmbeddedDto.prototype, "updatedBy", void 0);
42
+ //# 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,27 +9,27 @@ 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 openapi = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const nestjs_1 = require("../../nestjs");
16
16
  const page_dto_1 = require("../generic/page.dto");
17
- const dossier_dto_1 = require("./dossier.dto");
18
- class EmbeddedDossier {
17
+ const attachment_dto_1 = require("./attachment.dto");
18
+ class EmbeddedAttachment {
19
19
  static _OPENAPI_METADATA_FACTORY() {
20
- return { dossiers: { required: false, type: () => [require("./dossier.dto").DossierDto] } };
20
+ return { attachments: { required: false, type: () => [require("./attachment.dto").AttachmentDto] } };
21
21
  }
22
22
  }
23
23
  __decorate([
24
- (0, nestjs_1.ApiProperty)({ type: () => [dossier_dto_1.DossierDto], required: false }),
25
- (0, class_transformer_1.Type)(() => dossier_dto_1.DossierDto),
24
+ (0, nestjs_1.ApiProperty)({ type: () => [attachment_dto_1.AttachmentDto], required: false }),
25
+ (0, class_transformer_1.Type)(() => attachment_dto_1.AttachmentDto),
26
26
  (0, class_transformer_1.Expose)({ name: 'items' }),
27
27
  __metadata("design:type", Array)
28
- ], EmbeddedDossier.prototype, "dossiers", void 0);
29
- class DossierPageDto extends (0, page_dto_1.PageDto)(EmbeddedDossier) {
28
+ ], EmbeddedAttachment.prototype, "attachments", void 0);
29
+ class AttachmentPageDto extends (0, page_dto_1.PageDto)(EmbeddedAttachment) {
30
30
  static _OPENAPI_METADATA_FACTORY() {
31
31
  return {};
32
32
  }
33
33
  }
34
- exports.DossierPageDto = DossierPageDto;
35
- //# sourceMappingURL=dossierPage.dto.js.map
34
+ exports.AttachmentPageDto = AttachmentPageDto;
35
+ //# 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,66 @@
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 openapi = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
16
+ const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
17
+ const class_validator_1 = require("class-validator");
18
+ const lodash_1 = require("lodash");
19
+ const nestjs_1 = require("../../nestjs");
20
+ class CreateAttachmentDto {
21
+ static _OPENAPI_METADATA_FACTORY() {
22
+ return { name: { required: true, type: () => String }, description: { required: false, type: () => String }, type: { required: true, enum: require("../../enum/attachmentType.enum").AttachmentTypeEnum, enum: (0, lodash_1.values)(attachmentType_enum_1.AttachmentTypeEnum) }, taxReturnId: { required: true, type: () => String } };
23
+ }
24
+ }
25
+ exports.CreateAttachmentDto = CreateAttachmentDto;
26
+ __decorate([
27
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], CreateAttachmentDto.prototype, "name", void 0);
32
+ __decorate([
33
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], CreateAttachmentDto.prototype, "description", void 0);
39
+ __decorate([
40
+ (0, nestjs_1.ApiProperty)({ enum: attachmentType_enum_1.AttachmentTypeEnum, required: true }),
41
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(attachmentType_enum_1.AttachmentTypeEnum)),
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", String)
44
+ ], CreateAttachmentDto.prototype, "type", void 0);
45
+ __decorate([
46
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
47
+ (0, class_validator_1.IsUUID)(4),
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", String)
50
+ ], CreateAttachmentDto.prototype, "taxReturnId", void 0);
51
+ __decorate([
52
+ (0, nestjs_1.ApiHideProperty)(),
53
+ (0, class_transformer_1.Exclude)(),
54
+ __metadata("design:type", String)
55
+ ], CreateAttachmentDto.prototype, "status", void 0);
56
+ __decorate([
57
+ (0, nestjs_1.ApiHideProperty)(),
58
+ (0, class_transformer_1.Exclude)(),
59
+ __metadata("design:type", Number)
60
+ ], CreateAttachmentDto.prototype, "fileSize", void 0);
61
+ __decorate([
62
+ (0, nestjs_1.ApiHideProperty)(),
63
+ (0, class_transformer_1.Exclude)(),
64
+ __metadata("design:type", String)
65
+ ], CreateAttachmentDto.prototype, "storageId", void 0);
66
+ //# 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;;uNAazB,IAAA,eAAM,EAAC,wCAAkB,CAAC;;CAoBhC;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,64 @@
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 openapi = require("@nestjs/swagger");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const class_validator_1 = require("class-validator");
17
+ const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
18
+ const lodash_1 = require("lodash");
19
+ const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
20
+ class UpdateAttachmentDto {
21
+ static _OPENAPI_METADATA_FACTORY() {
22
+ return { name: { required: false, type: () => String }, description: { required: false, type: () => String }, type: { required: false, enum: require("../../enum/attachmentType.enum").AttachmentTypeEnum, enum: (0, lodash_1.values)(attachmentType_enum_1.AttachmentTypeEnum) }, status: { required: false, enum: require("../../enum/attachmentStatus.enum").AttachmentStatusEnum, enum: (0, lodash_1.values)(attachmentStatus_enum_1.AttachmentStatusEnum) } };
23
+ }
24
+ }
25
+ exports.UpdateAttachmentDto = UpdateAttachmentDto;
26
+ __decorate([
27
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], UpdateAttachmentDto.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], UpdateAttachmentDto.prototype, "description", void 0);
40
+ __decorate([
41
+ (0, nestjs_1.ApiProperty)({ enum: attachmentType_enum_1.AttachmentTypeEnum, required: false }),
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(attachmentType_enum_1.AttachmentTypeEnum)),
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], UpdateAttachmentDto.prototype, "type", void 0);
47
+ __decorate([
48
+ (0, nestjs_1.ApiProperty)({ enum: attachmentStatus_enum_1.AttachmentStatusEnum, required: false }),
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(attachmentStatus_enum_1.AttachmentStatusEnum)),
51
+ (0, class_transformer_1.Expose)(),
52
+ __metadata("design:type", String)
53
+ ], UpdateAttachmentDto.prototype, "status", void 0);
54
+ __decorate([
55
+ (0, nestjs_1.ApiHideProperty)(),
56
+ (0, class_transformer_1.Exclude)(),
57
+ __metadata("design:type", Number)
58
+ ], UpdateAttachmentDto.prototype, "fileSize", void 0);
59
+ __decorate([
60
+ (0, nestjs_1.ApiHideProperty)(),
61
+ (0, class_transformer_1.Exclude)(),
62
+ __metadata("design:type", String)
63
+ ], UpdateAttachmentDto.prototype, "mimeType", void 0);
64
+ //# 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;;yNAezB,IAAA,eAAM,EAAC,wCAAkB,CAAC,6GAM1B,IAAA,eAAM,EAAC,4CAAoB,CAAC;;CAWlC;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,11 +1,44 @@
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;
4
13
  const openapi = require("@nestjs/swagger");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const noteStatus_enum_1 = require("../../enum/noteStatus.enum");
17
+ const class_validator_1 = require("class-validator");
18
+ const lodash_1 = require("lodash");
5
19
  class CreateNoteDto {
6
20
  static _OPENAPI_METADATA_FACTORY() {
7
- return {};
21
+ return { status: { required: true, enum: require("../../enum/noteStatus.enum").NoteStatusEnum, enum: (0, lodash_1.values)(noteStatus_enum_1.NoteStatusEnum) }, description: { required: false, type: () => String }, taxReturnId: { required: true, type: () => String } };
8
22
  }
9
23
  }
10
24
  exports.CreateNoteDto = CreateNoteDto;
25
+ __decorate([
26
+ (0, nestjs_1.ApiProperty)({ enum: noteStatus_enum_1.NoteStatusEnum, required: true }),
27
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(noteStatus_enum_1.NoteStatusEnum)),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], CreateNoteDto.prototype, "status", void 0);
31
+ __decorate([
32
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], CreateNoteDto.prototype, "description", void 0);
38
+ __decorate([
39
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
40
+ (0, class_validator_1.IsUUID)(4),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], CreateNoteDto.prototype, "taxReturnId", void 0);
11
44
  //# 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;;6GAEnB,IAAA,eAAM,EAAC,gCAAc,CAAC;;CAc5B;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 {};
@@ -14,10 +14,11 @@ const openapi = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const nestjs_1 = require("../../nestjs");
16
16
  const base_dto_1 = require("../generic/base.dto");
17
- const teamEmbedded_dto_1 = require("../team/teamEmbedded.dto");
18
- class NoteDto extends (0, base_dto_1.BaseDto)(teamEmbedded_dto_1.TeamEmbeddedDto) {
17
+ const noteEmbedded_dto_1 = require("./noteEmbedded.dto");
18
+ const noteStatus_enum_1 = require("../../enum/noteStatus.enum");
19
+ class NoteDto extends (0, base_dto_1.BaseDto)(noteEmbedded_dto_1.NoteEmbeddedDto) {
19
20
  static _OPENAPI_METADATA_FACTORY() {
20
- return { id: { required: true, type: () => String } };
21
+ return { id: { required: true, type: () => String }, status: { required: true, enum: require("../../enum/noteStatus.enum").NoteStatusEnum }, description: { required: true, type: () => String }, taxReturnId: { required: true, type: () => String } };
21
22
  }
22
23
  }
23
24
  exports.NoteDto = NoteDto;
@@ -26,4 +27,19 @@ __decorate([
26
27
  (0, class_transformer_1.Expose)(),
27
28
  __metadata("design:type", String)
28
29
  ], NoteDto.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, nestjs_1.ApiProperty)({ enum: noteStatus_enum_1.NoteStatusEnum, required: true }),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], NoteDto.prototype, "status", void 0);
35
+ __decorate([
36
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], NoteDto.prototype, "description", void 0);
40
+ __decorate([
41
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", String)
44
+ ], NoteDto.prototype, "taxReturnId", void 0);
29
45
  //# 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,11 +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.NoteEmbeddedDto = void 0;
4
13
  const openapi = require("@nestjs/swagger");
14
+ const taxReturn_dto_1 = require("../taxReturn/taxReturn.dto");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const class_transformer_1 = require("class-transformer");
17
+ const user_dto_1 = require("../user/user.dto");
5
18
  class NoteEmbeddedDto {
6
19
  static _OPENAPI_METADATA_FACTORY() {
7
- return {};
20
+ return { taxReturn: { required: false, type: () => require("../taxReturn/taxReturn.dto").TaxReturnDto }, createdBy: { required: false, type: () => require("../user/user.dto").UserDto }, updatedBy: { required: false, type: () => require("../user/user.dto").UserDto } };
8
21
  }
9
22
  }
10
23
  exports.NoteEmbeddedDto = NoteEmbeddedDto;
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ type: () => taxReturn_dto_1.TaxReturnDto, required: false }),
26
+ (0, class_transformer_1.Type)(() => taxReturn_dto_1.TaxReturnDto),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", taxReturn_dto_1.TaxReturnDto)
29
+ ], NoteEmbeddedDto.prototype, "taxReturn", void 0);
30
+ __decorate([
31
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
32
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", user_dto_1.UserDto)
35
+ ], NoteEmbeddedDto.prototype, "createdBy", void 0);
36
+ __decorate([
37
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
38
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", user_dto_1.UserDto)
41
+ ], NoteEmbeddedDto.prototype, "updatedBy", void 0);
11
42
  //# 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,11 +1,46 @@
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;
4
13
  const openapi = require("@nestjs/swagger");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const noteStatus_enum_1 = require("../../enum/noteStatus.enum");
16
+ const class_validator_1 = require("class-validator");
17
+ const lodash_1 = require("lodash");
18
+ const class_transformer_1 = require("class-transformer");
5
19
  class UpdateNoteDto {
6
20
  static _OPENAPI_METADATA_FACTORY() {
7
- return {};
21
+ return { status: { required: false, enum: require("../../enum/noteStatus.enum").NoteStatusEnum, enum: (0, lodash_1.values)(noteStatus_enum_1.NoteStatusEnum) }, description: { required: false, type: () => String }, taxReturnId: { required: false, type: () => String } };
8
22
  }
9
23
  }
10
24
  exports.UpdateNoteDto = UpdateNoteDto;
25
+ __decorate([
26
+ (0, nestjs_1.ApiProperty)({ enum: noteStatus_enum_1.NoteStatusEnum, required: false }),
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsIn)((0, lodash_1.values)(noteStatus_enum_1.NoteStatusEnum)),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], UpdateNoteDto.prototype, "status", void 0);
32
+ __decorate([
33
+ (0, nestjs_1.ApiProperty)({ type: String, required: false }),
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], UpdateNoteDto.prototype, "description", void 0);
39
+ __decorate([
40
+ (0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsUUID)(4),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], UpdateNoteDto.prototype, "taxReturnId", void 0);
11
46
  //# 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;;8GAGnB,IAAA,eAAM,EAAC,gCAAc,CAAC;;CAe5B;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
  }