@ballistix.digital/types-pbc-react 0.8.0 → 0.10.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/attachment/attachment.dto.d.ts +0 -2
- package/dist/dto/attachment/attachment.dto.js +0 -6
- package/dist/dto/attachment/attachment.dto.js.map +1 -1
- package/dist/dto/attachment/createAttachment.dto.d.ts +1 -3
- package/dist/dto/attachment/createAttachment.dto.js +7 -11
- package/dist/dto/attachment/createAttachment.dto.js.map +1 -1
- package/dist/dto/attachment/updateAttachment.dto.d.ts +0 -1
- package/dist/dto/attachment/updateAttachment.dto.js +0 -7
- package/dist/dto/attachment/updateAttachment.dto.js.map +1 -1
- package/dist/dto/question/createQuestion.dto.d.ts +2 -0
- package/dist/dto/question/createQuestion.dto.js +15 -0
- package/dist/dto/question/createQuestion.dto.js.map +1 -1
- package/dist/dto/question/question.dto.d.ts +2 -0
- package/dist/dto/question/question.dto.js +10 -0
- package/dist/dto/question/question.dto.js.map +1 -1
- package/dist/dto/question/questionCalculatedView.dto.d.ts +10 -0
- package/dist/dto/question/questionCalculatedView.dto.js +58 -0
- package/dist/dto/question/questionCalculatedView.dto.js.map +1 -0
- package/dist/dto/question/questionEmbedded.dto.d.ts +5 -1
- package/dist/dto/question/questionEmbedded.dto.js +14 -0
- package/dist/dto/question/questionEmbedded.dto.js.map +1 -1
- package/dist/dto/question/updateQuestion.dto.d.ts +2 -0
- package/dist/dto/question/updateQuestion.dto.js +15 -0
- package/dist/dto/question/updateQuestion.dto.js.map +1 -1
- package/dist/dto/response/createResponse.dto.d.ts +2 -0
- package/dist/dto/response/createResponse.dto.js +9 -0
- package/dist/dto/response/createResponse.dto.js.map +1 -1
- package/dist/dto/response/response.dto.d.ts +2 -0
- package/dist/dto/response/response.dto.js +6 -0
- package/dist/dto/response/response.dto.js.map +1 -1
- package/dist/dto/response/updateResponse.dto.d.ts +2 -0
- package/dist/dto/response/updateResponse.dto.js +9 -0
- package/dist/dto/response/updateResponse.dto.js.map +1 -1
- package/dist/dto/survey/createSurvey.dto.d.ts +2 -1
- package/dist/dto/survey/createSurvey.dto.js +8 -1
- package/dist/dto/survey/createSurvey.dto.js.map +1 -1
- package/dist/dto/survey/survey.dto.d.ts +1 -1
- package/dist/dto/survey/survey.dto.js +2 -2
- package/dist/dto/survey/survey.dto.js.map +1 -1
- package/dist/dto/survey/updateSurvey.dto.d.ts +0 -1
- package/dist/dto/survey/updateSurvey.dto.js +0 -6
- package/dist/dto/survey/updateSurvey.dto.js.map +1 -1
- package/dist/enum/questionStatus.enum.d.ts +1 -3
- package/dist/enum/questionStatus.enum.js +0 -2
- package/dist/enum/questionStatus.enum.js.map +1 -1
- package/dist/enum/responseStatus.enum.d.ts +5 -0
- package/dist/enum/responseStatus.enum.js +10 -0
- package/dist/enum/responseStatus.enum.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/util/isFileName.validator.d.ts +2 -0
- package/dist/util/isFileName.validator.js +39 -0
- package/dist/util/isFileName.validator.js.map +1 -0
- package/package.json +1 -1
- package/dist/enum/attachmentType.enum.d.ts +0 -4
- package/dist/enum/attachmentType.enum.js +0 -9
- package/dist/enum/attachmentType.enum.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AttachmentEmbeddedDto } from './attachmentEmbedded.dto';
|
|
2
2
|
import { AttachmentUploadStatusEnum } from '../../enum/attachmentUploadStatus.enum';
|
|
3
|
-
import { AttachmentTypeEnum } from '../../enum/attachmentType.enum';
|
|
4
3
|
import { AttachmentStatusEnum } from '../../enum/attachmentStatus.enum';
|
|
5
4
|
declare const AttachmentDto_base: import("../generic/base.dto").BaseDtoType<AttachmentEmbeddedDto>;
|
|
6
5
|
export declare class AttachmentDto extends AttachmentDto_base {
|
|
@@ -10,7 +9,6 @@ export declare class AttachmentDto extends AttachmentDto_base {
|
|
|
10
9
|
fileSize: number;
|
|
11
10
|
mimeType: string;
|
|
12
11
|
description: string;
|
|
13
|
-
type: AttachmentTypeEnum;
|
|
14
12
|
status: AttachmentStatusEnum;
|
|
15
13
|
uploadStatus: AttachmentUploadStatusEnum;
|
|
16
14
|
storageId: string;
|
|
@@ -15,7 +15,6 @@ const nestjs_1 = require("../../nestjs");
|
|
|
15
15
|
const base_dto_1 = require("../generic/base.dto");
|
|
16
16
|
const attachmentEmbedded_dto_1 = require("./attachmentEmbedded.dto");
|
|
17
17
|
const attachmentUploadStatus_enum_1 = require("../../enum/attachmentUploadStatus.enum");
|
|
18
|
-
const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
|
|
19
18
|
const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
|
|
20
19
|
class AttachmentDto extends (0, base_dto_1.BaseDto)(attachmentEmbedded_dto_1.AttachmentEmbeddedDto) {
|
|
21
20
|
}
|
|
@@ -50,11 +49,6 @@ __decorate([
|
|
|
50
49
|
(0, class_transformer_1.Expose)(),
|
|
51
50
|
__metadata("design:type", String)
|
|
52
51
|
], AttachmentDto.prototype, "description", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, nestjs_1.ApiProperty)({ enum: attachmentUploadStatus_enum_1.AttachmentUploadStatusEnum, required: true }),
|
|
55
|
-
(0, class_transformer_1.Expose)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], AttachmentDto.prototype, "type", void 0);
|
|
58
52
|
__decorate([
|
|
59
53
|
(0, nestjs_1.ApiProperty)({ enum: attachmentStatus_enum_1.AttachmentStatusEnum, required: true }),
|
|
60
54
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +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,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BAAW,EAAC,EAAE,IAAI,EAAE,wDAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjE,IAAA,0BAAM,GAAE;;mDACiC;AAI1C;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;;8CACO;AAIhB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;iDACU"}
|
|
@@ -13,14 +13,14 @@ exports.CreateAttachmentDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const nestjs_1 = require("../../nestjs");
|
|
16
|
-
const
|
|
17
|
-
const attachmentType_enum_1 = require("../../enum/attachmentType.enum");
|
|
16
|
+
const isFileName_validator_1 = require("../../util/isFileName.validator");
|
|
18
17
|
class CreateAttachmentDto {
|
|
19
18
|
}
|
|
20
19
|
exports.CreateAttachmentDto = CreateAttachmentDto;
|
|
21
20
|
__decorate([
|
|
22
21
|
(0, nestjs_1.ApiProperty)({ type: String, required: true }),
|
|
23
22
|
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, isFileName_validator_1.IsFileName)(),
|
|
24
24
|
(0, class_validator_1.Matches)(/.*\.(pdf|png|jpeg|jpg|zip)$/i, {
|
|
25
25
|
message: 'Supported filetypes are PDF, PNG, JPEG, JPG or ZIP',
|
|
26
26
|
}),
|
|
@@ -35,21 +35,17 @@ __decorate([
|
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], CreateAttachmentDto.prototype, "description", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, nestjs_1.ApiProperty)({
|
|
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
|
-
], CreateAttachmentDto.prototype, "type", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
|
|
38
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
|
|
45
39
|
(0, class_validator_1.IsUUID)(4),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
41
|
(0, class_transformer_1.Expose)(),
|
|
47
42
|
__metadata("design:type", String)
|
|
48
43
|
], CreateAttachmentDto.prototype, "auditId", void 0);
|
|
49
44
|
__decorate([
|
|
50
|
-
(0, nestjs_1.ApiProperty)({ type: String, required:
|
|
45
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
|
|
51
46
|
(0, class_validator_1.IsUUID)(4),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
48
|
(0, class_transformer_1.Expose)(),
|
|
53
49
|
__metadata("design:type", String)
|
|
54
|
-
], CreateAttachmentDto.prototype, "
|
|
50
|
+
], CreateAttachmentDto.prototype, "responseId", void 0);
|
|
55
51
|
//# sourceMappingURL=createAttachment.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAttachment.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/createAttachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"createAttachment.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/createAttachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwE;AACxE,yCAA2C;AAC3C,0EAA6D;AAE7D,MAAa,mBAAmB;CA2B/B;AA3BD,kDA2BC;AAnBA;IAPC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,iCAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,8BAA8B,EAAE;QACxC,OAAO,EAAE,oDAAoD;KAC7D,CAAC;IACD,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;AAMrB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC9D,IAAA,wBAAM,EAAC,CAAC,CAAC;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;oDACO;AAMhB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC9D,IAAA,wBAAM,EAAC,CAAC,CAAC;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;uDACU"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AttachmentUploadStatusEnum } from '../../enum/attachmentUploadStatus.enum';
|
|
2
2
|
import { AttachmentStatusEnum } from '../../enum/attachmentStatus.enum';
|
|
3
3
|
export declare class UpdateAttachmentDto {
|
|
4
|
-
name?: string;
|
|
5
4
|
description?: string;
|
|
6
5
|
uploadStatus?: AttachmentUploadStatusEnum;
|
|
7
6
|
status?: AttachmentStatusEnum;
|
|
@@ -19,13 +19,6 @@ const attachmentStatus_enum_1 = require("../../enum/attachmentStatus.enum");
|
|
|
19
19
|
class UpdateAttachmentDto {
|
|
20
20
|
}
|
|
21
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
22
|
__decorate([
|
|
30
23
|
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
31
24
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateAttachment.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/updateAttachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"updateAttachment.dto.js","sourceRoot":"","sources":["../../../src/dto/attachment/updateAttachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAA2C;AAC3C,qDAA6D;AAC7D,mCAAgC;AAChC,wFAAoF;AACpF,4EAAwE;AAExE,MAAa,mBAAmB;CAkB/B;AAlBD,kDAkBC;AAbA;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,wDAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClE,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,IAAA,eAAM,EAAC,wDAA0B,CAAC,CAAC;IACxC,IAAA,0BAAM,GAAE;;yDACiC;AAM1C;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"}
|
|
@@ -3,9 +3,11 @@ import { QuestionTypeEnum } from '../../enum/questionType.enum';
|
|
|
3
3
|
import { QuestionCategoryEnum } from '../../enum/questionCategory.enum';
|
|
4
4
|
export declare class CreateQuestionDto {
|
|
5
5
|
title: string;
|
|
6
|
+
description?: string;
|
|
6
7
|
status?: QuestionStatusEnum;
|
|
7
8
|
type?: QuestionTypeEnum;
|
|
8
9
|
category?: QuestionCategoryEnum;
|
|
9
10
|
isConfidential?: boolean;
|
|
11
|
+
deadline?: string;
|
|
10
12
|
cycleId: string;
|
|
11
13
|
}
|
|
@@ -25,6 +25,13 @@ __decorate([
|
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], CreateQuestionDto.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateQuestionDto.prototype, "description", void 0);
|
|
28
35
|
__decorate([
|
|
29
36
|
(0, nestjs_1.ApiProperty)({ enum: questionStatus_enum_1.QuestionStatusEnum, required: false }),
|
|
30
37
|
(0, class_validator_1.IsString)(),
|
|
@@ -56,6 +63,14 @@ __decorate([
|
|
|
56
63
|
(0, class_transformer_1.Expose)(),
|
|
57
64
|
__metadata("design:type", Boolean)
|
|
58
65
|
], CreateQuestionDto.prototype, "isConfidential", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsDate)(),
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CreateQuestionDto.prototype, "deadline", void 0);
|
|
59
74
|
__decorate([
|
|
60
75
|
(0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
|
|
61
76
|
(0, class_validator_1.IsUUID)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQuestion.dto.js","sourceRoot":"","sources":["../../../src/dto/question/createQuestion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"createQuestion.dto.js","sourceRoot":"","sources":["../../../src/dto/question/createQuestion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qDAAsF;AACtF,yDAA2C;AAC3C,wEAAoE;AACpE,oEAAgE;AAChE,4EAAwE;AAExE,MAAa,iBAAiB;CAkD7B;AAlDD,8CAkDC;AA9CA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;gDACM;AAMf;IAJC,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;;sDACY;AAOrB;IALC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,wCAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC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 @@ export declare class QuestionDto extends QuestionDto_base {
|
|
|
7
7
|
id: string;
|
|
8
8
|
sequenceNumber: number;
|
|
9
9
|
title: string;
|
|
10
|
+
description?: string;
|
|
10
11
|
status: QuestionStatusEnum;
|
|
11
12
|
type: QuestionTypeEnum;
|
|
12
13
|
category: QuestionCategoryEnum;
|
|
13
14
|
textResponse?: string;
|
|
14
15
|
booleanResponse?: boolean;
|
|
15
16
|
isConfidential: boolean;
|
|
17
|
+
deadline?: string;
|
|
16
18
|
cycleId: string;
|
|
17
19
|
}
|
|
18
20
|
export {};
|
|
@@ -35,6 +35,11 @@ __decorate([
|
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], QuestionDto.prototype, "title", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], QuestionDto.prototype, "description", void 0);
|
|
38
43
|
__decorate([
|
|
39
44
|
(0, nestjs_1.ApiProperty)({ enum: questionStatus_enum_1.QuestionStatusEnum, required: true }),
|
|
40
45
|
(0, class_transformer_1.Expose)(),
|
|
@@ -65,6 +70,11 @@ __decorate([
|
|
|
65
70
|
(0, class_transformer_1.Expose)(),
|
|
66
71
|
__metadata("design:type", Boolean)
|
|
67
72
|
], QuestionDto.prototype, "isConfidential", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], QuestionDto.prototype, "deadline", void 0);
|
|
68
78
|
__decorate([
|
|
69
79
|
(0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
|
|
70
80
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.dto.js","sourceRoot":"","sources":["../../../src/dto/question/question.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8C;AAC9C,yDAA2C;AAC3C,yCAA2C;AAC3C,iEAA6D;AAC7D,wEAAoE;AACpE,oEAAgE;AAChE,4EAAwE;AAExE,MAAa,WAAY,SAAQ,IAAA,kBAAO,EAAC,0CAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"question.dto.js","sourceRoot":"","sources":["../../../src/dto/question/question.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8C;AAC9C,yDAA2C;AAC3C,yCAA2C;AAC3C,iEAA6D;AAC7D,wEAAoE;AACpE,oEAAgE;AAChE,4EAAwE;AAExE,MAAa,WAAY,SAAQ,IAAA,kBAAO,EAAC,0CAAmB,CAAC;CAgD5D;AAhDD,kCAgDC;AA7CA;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;uCACG;AAIZ;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;mDACe;AAIxB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;0CACM;AAIf;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,0BAAM,GAAE;;gDACY;AAIrB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,wCAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,0BAAM,GAAE;;2CACmB;AAI5B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,oCAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,IAAA,0BAAM,GAAE;;yCACe;AAIxB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,4CAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAA,0BAAM,GAAE;;6CACuB;AAIhC;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,0BAAM,GAAE;;iDACa;AAItB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/C,IAAA,0BAAM,GAAE;;oDACiB;AAI1B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;mDACgB;AAIzB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,0BAAM,GAAE;;6CACS;AAIlB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;4CACQ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class QuestionCalculatedViewDto {
|
|
2
|
+
id: string;
|
|
3
|
+
nrOfActiveAttachments: number;
|
|
4
|
+
nrOfErrorAttachments: number;
|
|
5
|
+
nrOfArchivedAttachments: number;
|
|
6
|
+
nrOfUploadingAttachments: number;
|
|
7
|
+
nrOfFailedAttachments: number;
|
|
8
|
+
nrOfOpenComments: number;
|
|
9
|
+
nrOfResolvedComments: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.QuestionCalculatedViewDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const nestjs_1 = require("../../nestjs");
|
|
15
|
+
class QuestionCalculatedViewDto {
|
|
16
|
+
}
|
|
17
|
+
exports.QuestionCalculatedViewDto = QuestionCalculatedViewDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], QuestionCalculatedViewDto.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: true }),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], QuestionCalculatedViewDto.prototype, "nrOfActiveAttachments", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: true }),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], QuestionCalculatedViewDto.prototype, "nrOfErrorAttachments", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: true }),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], QuestionCalculatedViewDto.prototype, "nrOfArchivedAttachments", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: true }),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], QuestionCalculatedViewDto.prototype, "nrOfUploadingAttachments", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: true }),
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], QuestionCalculatedViewDto.prototype, "nrOfFailedAttachments", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: true }),
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], QuestionCalculatedViewDto.prototype, "nrOfOpenComments", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: true }),
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], QuestionCalculatedViewDto.prototype, "nrOfResolvedComments", void 0);
|
|
58
|
+
//# sourceMappingURL=questionCalculatedView.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionCalculatedView.dto.js","sourceRoot":"","sources":["../../../src/dto/question/questionCalculatedView.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAE3C,MAAa,yBAAyB;CAgCrC;AAhCD,8DAgCC;AA7BA;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;qDACG;AAIZ;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;wEACqB;AAI9B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;uEACoB;AAI7B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;0EACuB;AAIhC;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;2EACwB;AAIjC;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;wEACqB;AAI9B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;mEACgB;AAIzB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAM,GAAE;;uEACoB"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { UserDto } from '../user/user.dto';
|
|
2
2
|
import { CycleDto } from '../cycle/cycle.dto';
|
|
3
|
-
import { ResponseDto } from
|
|
3
|
+
import { ResponseDto } from '../response/response.dto';
|
|
4
|
+
import { CommentDto } from '../comment/comment.dto';
|
|
5
|
+
import { QuestionCalculatedViewDto } from './questionCalculatedView.dto';
|
|
4
6
|
export declare class QuestionEmbeddedDto {
|
|
5
7
|
cycle?: CycleDto;
|
|
6
8
|
response?: ResponseDto;
|
|
9
|
+
comments?: CommentDto[];
|
|
10
|
+
calculated?: QuestionCalculatedViewDto;
|
|
7
11
|
createdBy?: UserDto;
|
|
8
12
|
updatedBy?: UserDto;
|
|
9
13
|
}
|
|
@@ -15,6 +15,8 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const user_dto_1 = require("../user/user.dto");
|
|
16
16
|
const cycle_dto_1 = require("../cycle/cycle.dto");
|
|
17
17
|
const response_dto_1 = require("../response/response.dto");
|
|
18
|
+
const comment_dto_1 = require("../comment/comment.dto");
|
|
19
|
+
const questionCalculatedView_dto_1 = require("./questionCalculatedView.dto");
|
|
18
20
|
class QuestionEmbeddedDto {
|
|
19
21
|
}
|
|
20
22
|
exports.QuestionEmbeddedDto = QuestionEmbeddedDto;
|
|
@@ -30,6 +32,18 @@ __decorate([
|
|
|
30
32
|
(0, class_transformer_1.Expose)(),
|
|
31
33
|
__metadata("design:type", response_dto_1.ResponseDto)
|
|
32
34
|
], QuestionEmbeddedDto.prototype, "response", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, nestjs_1.ApiProperty)({ type: () => [comment_dto_1.CommentDto], required: false }),
|
|
37
|
+
(0, class_transformer_1.Type)(() => comment_dto_1.CommentDto),
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], QuestionEmbeddedDto.prototype, "comments", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, nestjs_1.ApiProperty)({ type: () => questionCalculatedView_dto_1.QuestionCalculatedViewDto, required: false }),
|
|
43
|
+
(0, class_transformer_1.Type)(() => questionCalculatedView_dto_1.QuestionCalculatedViewDto),
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", questionCalculatedView_dto_1.QuestionCalculatedViewDto)
|
|
46
|
+
], QuestionEmbeddedDto.prototype, "calculated", void 0);
|
|
33
47
|
__decorate([
|
|
34
48
|
(0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
|
|
35
49
|
(0, class_transformer_1.Type)(() => user_dto_1.UserDto),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/question/questionEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,+CAA2C;
|
|
1
|
+
{"version":3,"file":"questionEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/question/questionEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,+CAA2C;AAC3C,kDAA8C;AAC9C,2DAAuD;AACvD,wDAAoD;AACpD,6EAAyE;AAEzE,MAAa,mBAAmB;CA8B/B;AA9BD,kDA8BC;AA1BA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACtD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAQ,CAAC;IACpB,IAAA,0BAAM,GAAE;8BACD,oBAAQ;kDAAC;AAKjB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,0BAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;IACvB,IAAA,0BAAM,GAAE;8BACE,0BAAW;qDAAC;AAKvB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,wBAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;IACtB,IAAA,0BAAM,GAAE;;qDACe;AAKxB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sDAAyB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sDAAyB,CAAC;IACrC,IAAA,0BAAM,GAAE;8BACI,sDAAyB;uDAAC;AAKvC;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;sDAAC;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;sDAAC"}
|
|
@@ -3,8 +3,10 @@ import { QuestionTypeEnum } from '../../enum/questionType.enum';
|
|
|
3
3
|
import { QuestionCategoryEnum } from '../../enum/questionCategory.enum';
|
|
4
4
|
export declare class UpdateQuestionDto {
|
|
5
5
|
title?: string;
|
|
6
|
+
description?: string;
|
|
6
7
|
status?: QuestionStatusEnum;
|
|
7
8
|
type?: QuestionTypeEnum;
|
|
8
9
|
category?: QuestionCategoryEnum;
|
|
9
10
|
isConfidential?: boolean;
|
|
11
|
+
deadline?: string;
|
|
10
12
|
}
|
|
@@ -26,6 +26,13 @@ __decorate([
|
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], UpdateQuestionDto.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], UpdateQuestionDto.prototype, "description", void 0);
|
|
29
36
|
__decorate([
|
|
30
37
|
(0, nestjs_1.ApiProperty)({ enum: questionStatus_enum_1.QuestionStatusEnum, required: false }),
|
|
31
38
|
(0, class_validator_1.IsString)(),
|
|
@@ -57,4 +64,12 @@ __decorate([
|
|
|
57
64
|
(0, class_transformer_1.Expose)(),
|
|
58
65
|
__metadata("design:type", Boolean)
|
|
59
66
|
], UpdateQuestionDto.prototype, "isConfidential", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsDate)(),
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], UpdateQuestionDto.prototype, "deadline", void 0);
|
|
60
75
|
//# sourceMappingURL=updateQuestion.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateQuestion.dto.js","sourceRoot":"","sources":["../../../src/dto/question/updateQuestion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"updateQuestion.dto.js","sourceRoot":"","sources":["../../../src/dto/question/updateQuestion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qDAAsF;AACtF,yDAA2C;AAC3C,wEAAoE;AACpE,oEAAgE;AAChE,4EAAwE;AAExE,MAAa,iBAAiB;CA8C7B;AA9CD,8CA8CC;AAzCA;IAJC,IAAA,oBAAW,EAAC,EAAE,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E;;yDACgB;AAOzB;IALC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;mDACS"}
|
|
@@ -13,6 +13,7 @@ exports.CreateResponseDto = void 0;
|
|
|
13
13
|
const nestjs_1 = require("../../nestjs");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const responseStatus_enum_1 = require("../../enum/responseStatus.enum");
|
|
16
17
|
class CreateResponseDto {
|
|
17
18
|
}
|
|
18
19
|
exports.CreateResponseDto = CreateResponseDto;
|
|
@@ -36,4 +37,12 @@ __decorate([
|
|
|
36
37
|
(0, class_transformer_1.Expose)(),
|
|
37
38
|
__metadata("design:type", String)
|
|
38
39
|
], CreateResponseDto.prototype, "questionId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, nestjs_1.ApiProperty)({ enum: responseStatus_enum_1.ResponseStatusEnum, required: false }),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.IsIn)(Object.values(responseStatus_enum_1.ResponseStatusEnum)),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateResponseDto.prototype, "status", void 0);
|
|
39
48
|
//# sourceMappingURL=createResponse.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createResponse.dto.js","sourceRoot":"","sources":["../../../src/dto/response/createResponse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"createResponse.dto.js","sourceRoot":"","sources":["../../../src/dto/response/createResponse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qDAA8E;AAC9E,yDAA2C;AAC3C,wEAAoE;AAEpE,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC;AAnBA;IAJC,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;;uDACa;AAMtB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/C,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;0DACiB;AAK1B;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;qDACW;AAOpB;IALC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,wCAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1D,IAAA,0BAAQ,GAAE;IACV,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,wCAAkB,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;iDACmB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ResponseEmbeddedDto } from './responseEmbedded.dto';
|
|
2
|
+
import { ResponseStatusEnum } from '../../enum/responseStatus.enum';
|
|
2
3
|
declare const ResponseDto_base: import("../generic/base.dto").BaseDtoType<ResponseEmbeddedDto>;
|
|
3
4
|
export declare class ResponseDto extends ResponseDto_base {
|
|
4
5
|
id: string;
|
|
5
6
|
textResponse?: string;
|
|
6
7
|
booleanResponse?: boolean;
|
|
8
|
+
status: ResponseStatusEnum;
|
|
7
9
|
questionId: string;
|
|
8
10
|
}
|
|
9
11
|
export {};
|
|
@@ -14,6 +14,7 @@ const base_dto_1 = require("../generic/base.dto");
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const nestjs_1 = require("../../nestjs");
|
|
16
16
|
const responseEmbedded_dto_1 = require("./responseEmbedded.dto");
|
|
17
|
+
const responseStatus_enum_1 = require("../../enum/responseStatus.enum");
|
|
17
18
|
class ResponseDto extends (0, base_dto_1.BaseDto)(responseEmbedded_dto_1.ResponseEmbeddedDto) {
|
|
18
19
|
}
|
|
19
20
|
exports.ResponseDto = ResponseDto;
|
|
@@ -32,6 +33,11 @@ __decorate([
|
|
|
32
33
|
(0, class_transformer_1.Expose)(),
|
|
33
34
|
__metadata("design:type", Boolean)
|
|
34
35
|
], ResponseDto.prototype, "booleanResponse", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, nestjs_1.ApiProperty)({ enum: responseStatus_enum_1.ResponseStatusEnum, required: true }),
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ResponseDto.prototype, "status", void 0);
|
|
35
41
|
__decorate([
|
|
36
42
|
(0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
|
|
37
43
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.dto.js","sourceRoot":"","sources":["../../../src/dto/response/response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8C;AAC9C,yDAA2C;AAC3C,yCAA2C;AAC3C,iEAA6D;
|
|
1
|
+
{"version":3,"file":"response.dto.js","sourceRoot":"","sources":["../../../src/dto/response/response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8C;AAC9C,yDAA2C;AAC3C,yCAA2C;AAC3C,iEAA6D;AAC7D,wEAAoE;AAEpE,MAAa,WAAY,SAAQ,IAAA,kBAAO,EAAC,0CAAmB,CAAC;CAoB5D;AApBD,kCAoBC;AAjBA;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;uCACG;AAIZ;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,0BAAM,GAAE;;iDACa;AAItB;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/C,IAAA,0BAAM,GAAE;;oDACiB;AAI1B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,wCAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,0BAAM,GAAE;;2CACmB;AAI5B;IAFC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;+CACW"}
|
|
@@ -13,6 +13,7 @@ exports.UpdateResponseDto = void 0;
|
|
|
13
13
|
const nestjs_1 = require("../../nestjs");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const responseStatus_enum_1 = require("../../enum/responseStatus.enum");
|
|
16
17
|
class UpdateResponseDto {
|
|
17
18
|
}
|
|
18
19
|
exports.UpdateResponseDto = UpdateResponseDto;
|
|
@@ -30,4 +31,12 @@ __decorate([
|
|
|
30
31
|
(0, class_transformer_1.Expose)(),
|
|
31
32
|
__metadata("design:type", Boolean)
|
|
32
33
|
], UpdateResponseDto.prototype, "booleanResponse", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, nestjs_1.ApiProperty)({ enum: responseStatus_enum_1.ResponseStatusEnum, required: false }),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsIn)(Object.values(responseStatus_enum_1.ResponseStatusEnum)),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpdateResponseDto.prototype, "status", void 0);
|
|
33
42
|
//# sourceMappingURL=updateResponse.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateResponse.dto.js","sourceRoot":"","sources":["../../../src/dto/response/updateResponse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qDAAwE;AACxE,yDAA2C;
|
|
1
|
+
{"version":3,"file":"updateResponse.dto.js","sourceRoot":"","sources":["../../../src/dto/response/updateResponse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qDAAwE;AACxE,yDAA2C;AAC3C,wEAAoE;AAEpE,MAAa,iBAAiB;CAmB7B;AAnBD,8CAmBC;AAdA;IAJC,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;;uDACa;AAMtB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/C,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;0DACiB;AAO1B;IALC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,wCAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1D,IAAA,0BAAQ,GAAE;IACV,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,wCAAkB,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;iDACmB"}
|
|
@@ -15,6 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const surveyErrorStatus_enum_1 = require("../../enum/surveyErrorStatus.enum");
|
|
17
17
|
const surveyStatus_enum_1 = require("../../enum/surveyStatus.enum");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
19
|
class CreateSurveyDto {
|
|
19
20
|
}
|
|
20
21
|
exports.CreateSurveyDto = CreateSurveyDto;
|
|
@@ -27,8 +28,9 @@ __decorate([
|
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], CreateSurveyDto.prototype, "status", void 0);
|
|
29
30
|
__decorate([
|
|
30
|
-
(0, nestjs_1.ApiProperty)({ type: String, required:
|
|
31
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
|
|
31
32
|
(0, class_validator_1.IsUUID)(4),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
34
|
(0, class_transformer_1.Expose)(),
|
|
33
35
|
__metadata("design:type", String)
|
|
34
36
|
], CreateSurveyDto.prototype, "auditId", void 0);
|
|
@@ -52,4 +54,9 @@ __decorate([
|
|
|
52
54
|
(0, class_transformer_1.Expose)(),
|
|
53
55
|
__metadata("design:type", Boolean)
|
|
54
56
|
], CreateSurveyDto.prototype, "isTemplate", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiHideProperty)(),
|
|
59
|
+
(0, class_transformer_1.Exclude)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CreateSurveyDto.prototype, "copyFromId", void 0);
|
|
55
62
|
//# sourceMappingURL=createSurvey.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSurvey.dto.js","sourceRoot":"","sources":["../../../src/dto/survey/createSurvey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCA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;;mDACY;AAIrB;IAFC,IAAA,yBAAe,GAAE;IACjB,IAAA,2BAAO,GAAE;;mDACU"}
|
|
@@ -30,7 +30,7 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], SurveyDto.prototype, "status", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, nestjs_1.ApiProperty)({ type: String, required:
|
|
33
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
34
34
|
(0, class_transformer_1.Expose)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], SurveyDto.prototype, "deadline", void 0);
|
|
@@ -45,7 +45,7 @@ __decorate([
|
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], SurveyDto.prototype, "errorMessage", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, nestjs_1.ApiProperty)({ type: String, required:
|
|
48
|
+
(0, nestjs_1.ApiProperty)({ type: String, required: false, format: 'uuid' }),
|
|
49
49
|
(0, class_transformer_1.Expose)(),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], SurveyDto.prototype, "auditId", void 0);
|