@more-life/types-more-life-react 0.82.1 → 0.83.1

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 (46) hide show
  1. package/dist/dto/survey/bulkUpdateSurvey.dto.d.ts +9 -0
  2. package/dist/dto/survey/bulkUpdateSurvey.dto.js +40 -0
  3. package/dist/dto/survey/bulkUpdateSurvey.dto.js.map +1 -0
  4. package/dist/dto/survey/createSurvey.dto.d.ts +4 -0
  5. package/dist/dto/survey/createSurvey.dto.js +29 -0
  6. package/dist/dto/survey/createSurvey.dto.js.map +1 -0
  7. package/dist/dto/survey/survey.dto.d.ts +14 -0
  8. package/dist/dto/survey/survey.dto.js +51 -0
  9. package/dist/dto/survey/survey.dto.js.map +1 -0
  10. package/dist/dto/survey/surveyEmbedded.dto.d.ts +5 -0
  11. package/dist/dto/survey/surveyEmbedded.dto.js +34 -0
  12. package/dist/dto/survey/surveyEmbedded.dto.js.map +1 -0
  13. package/dist/dto/survey/surveyPage.dto.d.ts +12 -0
  14. package/dist/dto/survey/surveyPage.dto.js +51 -0
  15. package/dist/dto/survey/surveyPage.dto.js.map +1 -0
  16. package/dist/dto/survey/updateSurvey.dto.d.ts +4 -0
  17. package/dist/dto/survey/updateSurvey.dto.js +30 -0
  18. package/dist/dto/survey/updateSurvey.dto.js.map +1 -0
  19. package/dist/dto/surveyResponse/bulkUpdateSurveyResponse.dto.d.ts +9 -0
  20. package/dist/dto/surveyResponse/bulkUpdateSurveyResponse.dto.js +40 -0
  21. package/dist/dto/surveyResponse/bulkUpdateSurveyResponse.dto.js.map +1 -0
  22. package/dist/dto/surveyResponse/createSurveyResponse.dto.d.ts +5 -0
  23. package/dist/dto/surveyResponse/createSurveyResponse.dto.js +35 -0
  24. package/dist/dto/surveyResponse/createSurveyResponse.dto.js.map +1 -0
  25. package/dist/dto/surveyResponse/surveyResponse.dto.d.ts +18 -0
  26. package/dist/dto/surveyResponse/surveyResponse.dto.js +69 -0
  27. package/dist/dto/surveyResponse/surveyResponse.dto.js.map +1 -0
  28. package/dist/dto/surveyResponse/surveyResponseEmbedded.dto.d.ts +9 -0
  29. package/dist/dto/surveyResponse/surveyResponseEmbedded.dto.js +50 -0
  30. package/dist/dto/surveyResponse/surveyResponseEmbedded.dto.js.map +1 -0
  31. package/dist/dto/surveyResponse/surveyResponsePage.dto.d.ts +12 -0
  32. package/dist/dto/surveyResponse/surveyResponsePage.dto.js +51 -0
  33. package/dist/dto/surveyResponse/surveyResponsePage.dto.js.map +1 -0
  34. package/dist/dto/surveyResponse/updateSurveyResponse.dto.d.ts +12 -0
  35. package/dist/dto/surveyResponse/updateSurveyResponse.dto.js +51 -0
  36. package/dist/dto/surveyResponse/updateSurveyResponse.dto.js.map +1 -0
  37. package/dist/dto/ward/createWard.dto.d.ts +2 -2
  38. package/dist/dto/ward/updateWard.dto.d.ts +2 -2
  39. package/dist/index.d.ts +13 -1
  40. package/dist/index.js +26 -1
  41. package/dist/index.js.map +1 -1
  42. package/dist/nestjs.d.ts +11 -3
  43. package/dist/nestjs.js +14 -5
  44. package/dist/nestjs.js.map +1 -1
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ import { UpdateSurveyDto } from './updateSurvey.dto';
2
+ declare class BulkUpdateSurveyItemDto extends UpdateSurveyDto {
3
+ id: string;
4
+ }
5
+ export declare class BulkUpdateSurveyDto {
6
+ items: BulkUpdateSurveyItemDto[];
7
+ static fromPlain(object: any): BulkUpdateSurveyDto;
8
+ }
9
+ export {};
@@ -0,0 +1,40 @@
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.BulkUpdateSurveyDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const updateSurvey_dto_1 = require("./updateSurvey.dto");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ class BulkUpdateSurveyItemDto extends updateSurvey_dto_1.UpdateSurveyDto {
18
+ }
19
+ __decorate([
20
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], BulkUpdateSurveyItemDto.prototype, "id", void 0);
24
+ class BulkUpdateSurveyDto {
25
+ static fromPlain(object) {
26
+ return (0, convertAndValidate_1.convertAndValidate)(BulkUpdateSurveyDto, object);
27
+ }
28
+ }
29
+ __decorate([
30
+ (0, nestjs_1.ApiProperty)({
31
+ isArray: true,
32
+ type: BulkUpdateSurveyItemDto,
33
+ required: true,
34
+ }),
35
+ (0, class_transformer_1.Type)(() => BulkUpdateSurveyItemDto),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", Array)
38
+ ], BulkUpdateSurveyDto.prototype, "items", void 0);
39
+ exports.BulkUpdateSurveyDto = BulkUpdateSurveyDto;
40
+ //# sourceMappingURL=bulkUpdateSurvey.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkUpdateSurvey.dto.js","sourceRoot":"","sources":["../../../src/dto/survey/bulkUpdateSurvey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAC3C,yDAAqD;AACrD,sEAAmE;AAEnE,MAAM,uBAAwB,SAAQ,kCAAe;CAIpD;AAHA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;mDACG;AAGb,MAAa,mBAAmB;IAUxB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;CACD;AAZA;IAAC,IAAA,oBAAW,EAAC;QACZ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,IAAI;KACd,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;IACnC,IAAA,0BAAM,GAAE;;kDACyB;AARnC,kDAaC"}
@@ -0,0 +1,4 @@
1
+ export declare class CreateSurveyDto {
2
+ data: Record<string, any>;
3
+ static fromPlain(object: any): CreateSurveyDto;
4
+ }
@@ -0,0 +1,29 @@
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.CreateSurveyDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
16
+ const class_transformer_1 = require("class-transformer");
17
+ class CreateSurveyDto {
18
+ static fromPlain(object) {
19
+ return (0, convertAndValidate_1.convertAndValidate)(CreateSurveyDto, object);
20
+ }
21
+ }
22
+ __decorate([
23
+ (0, nestjs_1.ApiProperty)({ type: Object, required: true }),
24
+ (0, class_validator_1.IsObject)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", Object)
27
+ ], CreateSurveyDto.prototype, "data", void 0);
28
+ exports.CreateSurveyDto = CreateSurveyDto;
29
+ //# sourceMappingURL=createSurvey.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSurvey.dto.js","sourceRoot":"","sources":["../../../src/dto/survey/createSurvey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,yCAA2C;AAC3C,sEAAmE;AACnE,yDAA2C;AAE3C,MAAa,eAAe;IAMpB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;CACD;AARA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;6CACkB;AAJ5B,0CASC"}
@@ -0,0 +1,14 @@
1
+ import { SurveyEmbeddedDto } from './surveyEmbedded.dto';
2
+ declare const SurveyDto_base: new () => {
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ _embedded?: SurveyEmbeddedDto;
6
+ };
7
+ export declare class SurveyDto extends SurveyDto_base {
8
+ id: string;
9
+ data: Record<string, any>;
10
+ createdById?: string;
11
+ updatedById?: string;
12
+ static fromEntity(entity: any): SurveyDto;
13
+ }
14
+ export {};
@@ -0,0 +1,51 @@
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.SurveyDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const base_dto_1 = require("../generic/base.dto");
17
+ const surveyEmbedded_dto_1 = require("./surveyEmbedded.dto");
18
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
19
+ class SurveyDto extends (0, base_dto_1.BaseDto)(surveyEmbedded_dto_1.SurveyEmbeddedDto) {
20
+ static fromEntity(entity) {
21
+ return (0, convertAndValidate_1.convert)(SurveyDto, entity);
22
+ }
23
+ }
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], SurveyDto.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, nestjs_1.ApiProperty)({ type: Object, required: true }),
32
+ (0, class_validator_1.IsObject)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", Object)
35
+ ], SurveyDto.prototype, "data", void 0);
36
+ __decorate([
37
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: false }),
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsUUID)(),
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], SurveyDto.prototype, "createdById", void 0);
43
+ __decorate([
44
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: false }),
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_validator_1.IsUUID)(),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", String)
49
+ ], SurveyDto.prototype, "updatedById", void 0);
50
+ exports.SurveyDto = SurveyDto;
51
+ //# sourceMappingURL=survey.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey.dto.js","sourceRoot":"","sources":["../../../src/dto/survey/survey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA+D;AAC/D,yCAA2C;AAC3C,kDAA8C;AAC9C,6DAAyD;AACzD,sEAAwD;AAExD,MAAa,SAAU,SAAQ,IAAA,kBAAO,EAAC,sCAAiB,CAAC;IAuBjD,MAAM,CAAC,UAAU,CAAC,MAAW;QACnC,OAAO,IAAA,4BAAO,EAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;CACD;AAzBA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,GAAE;;qCACG;AAEZ;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;uCACkB;AAE3B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;8CACY;AAErB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;8CACY;AArBtB,8BA0BC"}
@@ -0,0 +1,5 @@
1
+ import { UserDto } from '../user/user.dto';
2
+ export declare class SurveyEmbeddedDto {
3
+ createdBy?: UserDto;
4
+ updatedBy?: UserDto;
5
+ }
@@ -0,0 +1,34 @@
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.SurveyEmbeddedDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const user_dto_1 = require("../user/user.dto");
16
+ const class_validator_1 = require("class-validator");
17
+ class SurveyEmbeddedDto {
18
+ }
19
+ __decorate([
20
+ (0, nestjs_1.ApiProperty)({ type: user_dto_1.UserDto, required: false }),
21
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", user_dto_1.UserDto)
25
+ ], SurveyEmbeddedDto.prototype, "createdBy", 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_validator_1.IsOptional)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", user_dto_1.UserDto)
32
+ ], SurveyEmbeddedDto.prototype, "updatedBy", void 0);
33
+ exports.SurveyEmbeddedDto = SurveyEmbeddedDto;
34
+ //# sourceMappingURL=surveyEmbedded.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveyEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/survey/surveyEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAC3C,+CAA2C;AAC3C,qDAA6C;AAE7C,MAAa,iBAAiB;CAY7B;AAXA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/C,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACG,kBAAO;oDAAC;AAEpB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/C,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACG,kBAAO;oDAAC;AAXrB,8CAYC"}
@@ -0,0 +1,12 @@
1
+ import { SurveyDto } from './survey.dto';
2
+ import { PageDto } from '../generic/page.dto';
3
+ import { PageInfoDto } from '../generic/pageInfo.dto';
4
+ declare class EmbeddedSurveys {
5
+ surveys?: SurveyDto[];
6
+ }
7
+ export declare class SurveyPageDto extends PageDto {
8
+ _embedded: EmbeddedSurveys;
9
+ static fromPlain(object: any): SurveyPageDto;
10
+ static fromEntityList(surveys: any[], _page: PageInfoDto): unknown;
11
+ }
12
+ export {};
@@ -0,0 +1,51 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.SurveyPageDto = void 0;
16
+ const class_transformer_1 = require("class-transformer");
17
+ const nestjs_1 = require("../../nestjs");
18
+ const survey_dto_1 = require("./survey.dto");
19
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
20
+ const class_validator_1 = require("class-validator");
21
+ const page_dto_1 = require("../generic/page.dto");
22
+ const transformEmbedded_1 = __importDefault(require("../../util/transformEmbedded"));
23
+ class EmbeddedSurveys {
24
+ }
25
+ __decorate([
26
+ (0, nestjs_1.ApiProperty)({ isArray: true, type: survey_dto_1.SurveyDto, required: false }),
27
+ (0, class_transformer_1.Type)(() => survey_dto_1.SurveyDto),
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", Array)
31
+ ], EmbeddedSurveys.prototype, "surveys", void 0);
32
+ class SurveyPageDto extends page_dto_1.PageDto {
33
+ static fromPlain(object) {
34
+ return (0, convertAndValidate_1.convertAndValidate)(SurveyPageDto, object);
35
+ }
36
+ static fromEntityList(surveys, _page) {
37
+ return (0, convertAndValidate_1.convert)(SurveyPageDto, {
38
+ surveys,
39
+ _page,
40
+ });
41
+ }
42
+ }
43
+ __decorate([
44
+ (0, nestjs_1.ApiProperty)({ type: EmbeddedSurveys, required: true }),
45
+ (0, class_transformer_1.Type)(() => EmbeddedSurveys),
46
+ (0, transformEmbedded_1.default)(EmbeddedSurveys),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", EmbeddedSurveys)
49
+ ], SurveyPageDto.prototype, "_embedded", void 0);
50
+ exports.SurveyPageDto = SurveyPageDto;
51
+ //# sourceMappingURL=surveyPage.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveyPage.dto.js","sourceRoot":"","sources":["../../../src/dto/survey/surveyPage.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAC3C,6CAAyC;AACzC,sEAA4E;AAC5E,qDAA6C;AAC7C,kDAA8C;AAC9C,qFAA6D;AAG7D,MAAM,eAAe;CAMpB;AALA;IAAC,IAAA,oBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAS,CAAC;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;gDACa;AAGvB,MAAa,aAAc,SAAQ,kBAAO;IAOlC,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,OAAc,EAAE,KAAkB;QAC9D,OAAO,IAAA,4BAAO,EAAC,aAAa,EAAE;YAC7B,OAAO;YACP,KAAK;SACL,CAAC,CAAC;IACJ,CAAC;CACD;AAhBA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAe,CAAC;IAC3B,IAAA,2BAAiB,EAAC,eAAe,CAAC;IAClC,IAAA,0BAAM,GAAE;8BACG,eAAe;gDAAC;AAL7B,sCAiBC"}
@@ -0,0 +1,4 @@
1
+ export declare class UpdateSurveyDto {
2
+ data?: Record<string, any>;
3
+ static fromPlain(object: any): UpdateSurveyDto;
4
+ }
@@ -0,0 +1,30 @@
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.UpdateSurveyDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
16
+ const class_transformer_1 = require("class-transformer");
17
+ class UpdateSurveyDto {
18
+ static fromPlain(object) {
19
+ return (0, convertAndValidate_1.convertAndValidate)(UpdateSurveyDto, object);
20
+ }
21
+ }
22
+ __decorate([
23
+ (0, nestjs_1.ApiProperty)({ type: Object, required: false }),
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_validator_1.IsObject)(),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Object)
28
+ ], UpdateSurveyDto.prototype, "data", void 0);
29
+ exports.UpdateSurveyDto = UpdateSurveyDto;
30
+ //# sourceMappingURL=updateSurvey.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateSurvey.dto.js","sourceRoot":"","sources":["../../../src/dto/survey/updateSurvey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yCAA2C;AAC3C,sEAAmE;AACnE,yDAA2C;AAE3C,MAAa,eAAe;IAOpB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;CACD;AATA;IAAC,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;;6CACkB;AAL5B,0CAUC"}
@@ -0,0 +1,9 @@
1
+ import { UpdateSurveyResponseDto } from './updateSurveyResponse.dto';
2
+ declare class BulkUpdateSurveyResponseItemDto extends UpdateSurveyResponseDto {
3
+ id: string;
4
+ }
5
+ export declare class BulkUpdateSurveyResponseDto {
6
+ items: BulkUpdateSurveyResponseItemDto[];
7
+ static fromPlain(object: any): BulkUpdateSurveyResponseDto;
8
+ }
9
+ export {};
@@ -0,0 +1,40 @@
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.BulkUpdateSurveyResponseDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const updateSurveyResponse_dto_1 = require("./updateSurveyResponse.dto");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ class BulkUpdateSurveyResponseItemDto extends updateSurveyResponse_dto_1.UpdateSurveyResponseDto {
18
+ }
19
+ __decorate([
20
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], BulkUpdateSurveyResponseItemDto.prototype, "id", void 0);
24
+ class BulkUpdateSurveyResponseDto {
25
+ static fromPlain(object) {
26
+ return (0, convertAndValidate_1.convertAndValidate)(BulkUpdateSurveyResponseDto, object);
27
+ }
28
+ }
29
+ __decorate([
30
+ (0, nestjs_1.ApiProperty)({
31
+ isArray: true,
32
+ type: BulkUpdateSurveyResponseItemDto,
33
+ required: true,
34
+ }),
35
+ (0, class_transformer_1.Type)(() => BulkUpdateSurveyResponseItemDto),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", Array)
38
+ ], BulkUpdateSurveyResponseDto.prototype, "items", void 0);
39
+ exports.BulkUpdateSurveyResponseDto = BulkUpdateSurveyResponseDto;
40
+ //# sourceMappingURL=bulkUpdateSurveyResponse.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkUpdateSurveyResponse.dto.js","sourceRoot":"","sources":["../../../src/dto/surveyResponse/bulkUpdateSurveyResponse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAC3C,yEAAqE;AACrE,sEAAmE;AAEnE,MAAM,+BAAgC,SAAQ,kDAAuB;CAIpE;AAHA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;;2DACG;AAGb,MAAa,2BAA2B;IAUhC,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;CACD;AAZA;IAAC,IAAA,oBAAW,EAAC;QACZ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,+BAA+B;QACrC,QAAQ,EAAE,IAAI;KACd,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;IAC3C,IAAA,0BAAM,GAAE;;0DACiC;AAR3C,kEAaC"}
@@ -0,0 +1,5 @@
1
+ export declare class CreateSurveyResponseDto {
2
+ surveyId: string;
3
+ patientInfoId: string;
4
+ static fromPlain(object: any): CreateSurveyResponseDto;
5
+ }
@@ -0,0 +1,35 @@
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.CreateSurveyResponseDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
16
+ const class_transformer_1 = require("class-transformer");
17
+ class CreateSurveyResponseDto {
18
+ static fromPlain(object) {
19
+ return (0, convertAndValidate_1.convertAndValidate)(CreateSurveyResponseDto, object);
20
+ }
21
+ }
22
+ __decorate([
23
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
24
+ (0, class_validator_1.IsUUID)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], CreateSurveyResponseDto.prototype, "surveyId", void 0);
28
+ __decorate([
29
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
30
+ (0, class_validator_1.IsUUID)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], CreateSurveyResponseDto.prototype, "patientInfoId", void 0);
34
+ exports.CreateSurveyResponseDto = CreateSurveyResponseDto;
35
+ //# sourceMappingURL=createSurveyResponse.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSurveyResponse.dto.js","sourceRoot":"","sources":["../../../src/dto/surveyResponse/createSurveyResponse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yCAA2C;AAC3C,sEAAmE;AACnE,yDAA2C;AAE3C,MAAa,uBAAuB;IAW5B,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;CACD;AAbA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;yDACS;AAElB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;8DACc;AATxB,0DAcC"}
@@ -0,0 +1,18 @@
1
+ import { SurveyResponseEmbeddedDto } from './surveyResponseEmbedded.dto';
2
+ import { SurveyValidationError } from './updateSurveyResponse.dto';
3
+ declare const SurveyResponseDto_base: new () => {
4
+ createdAt: string;
5
+ updatedAt: string;
6
+ _embedded?: SurveyResponseEmbeddedDto;
7
+ };
8
+ export declare class SurveyResponseDto extends SurveyResponseDto_base {
9
+ id: string;
10
+ data: Record<string, any>;
11
+ percentageCompleted: number;
12
+ isValid: boolean;
13
+ surveyValidationErrors: SurveyValidationError[];
14
+ surveyId?: string;
15
+ patientInfoId?: string;
16
+ static fromEntity(entity: any): SurveyResponseDto;
17
+ }
18
+ export {};
@@ -0,0 +1,69 @@
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.SurveyResponseDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const base_dto_1 = require("../generic/base.dto");
17
+ const surveyResponseEmbedded_dto_1 = require("./surveyResponseEmbedded.dto");
18
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
19
+ class SurveyResponseDto extends (0, base_dto_1.BaseDto)(surveyResponseEmbedded_dto_1.SurveyResponseEmbeddedDto) {
20
+ static fromEntity(entity) {
21
+ return (0, convertAndValidate_1.convert)(SurveyResponseDto, entity);
22
+ }
23
+ }
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], SurveyResponseDto.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, nestjs_1.ApiProperty)({ type: Object, required: true }),
32
+ (0, class_validator_1.IsObject)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", Object)
35
+ ], SurveyResponseDto.prototype, "data", void 0);
36
+ __decorate([
37
+ (0, nestjs_1.ApiProperty)({ type: Number, required: true }),
38
+ (0, class_validator_1.IsNumber)(),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", Number)
41
+ ], SurveyResponseDto.prototype, "percentageCompleted", void 0);
42
+ __decorate([
43
+ (0, nestjs_1.ApiProperty)({ type: Boolean, required: true }),
44
+ (0, class_validator_1.IsBoolean)(),
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", Boolean)
47
+ ], SurveyResponseDto.prototype, "isValid", void 0);
48
+ __decorate([
49
+ (0, nestjs_1.ApiProperty)({ isArray: true, required: true }),
50
+ (0, class_validator_1.IsArray)(),
51
+ (0, class_transformer_1.Expose)(),
52
+ __metadata("design:type", Array)
53
+ ], SurveyResponseDto.prototype, "surveyValidationErrors", void 0);
54
+ __decorate([
55
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: false }),
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsUUID)(),
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], SurveyResponseDto.prototype, "surveyId", void 0);
61
+ __decorate([
62
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: false }),
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsUUID)(),
65
+ (0, class_transformer_1.Expose)(),
66
+ __metadata("design:type", String)
67
+ ], SurveyResponseDto.prototype, "patientInfoId", void 0);
68
+ exports.SurveyResponseDto = SurveyResponseDto;
69
+ //# sourceMappingURL=surveyResponse.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveyResponse.dto.js","sourceRoot":"","sources":["../../../src/dto/surveyResponse/surveyResponse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA6F;AAC7F,yCAA2C;AAC3C,kDAA8C;AAC9C,6EAAyE;AACzE,sEAAwD;AAGxD,MAAa,iBAAkB,SAAQ,IAAA,kBAAO,EAAC,sDAAyB,CAAC;IAsCjE,MAAM,CAAC,UAAU,CAAC,MAAW;QACnC,OAAO,IAAA,4BAAO,EAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;CACD;AAxCA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,GAAE;;6CACG;AAEZ;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;+CACkB;AAE3B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;8DACoB;AAE7B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAM,GAAE;;kDACS;AAElB;IAAC,IAAA,oBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAM,GAAE;;iEACwC;AAEjD;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;mDACS;AAElB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;wDACc;AApCxB,8CAyCC"}
@@ -0,0 +1,9 @@
1
+ import { UserDto } from '../user/user.dto';
2
+ import { PatientInfoDto } from '../patient/patientInfo.dto';
3
+ import { SurveyDto } from '../survey/survey.dto';
4
+ export declare class SurveyResponseEmbeddedDto {
5
+ survey?: SurveyDto;
6
+ patientInfo?: PatientInfoDto;
7
+ createdBy?: UserDto;
8
+ updatedBy?: UserDto;
9
+ }
@@ -0,0 +1,50 @@
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.SurveyResponseEmbeddedDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const user_dto_1 = require("../user/user.dto");
17
+ const patientInfo_dto_1 = require("../patient/patientInfo.dto");
18
+ const survey_dto_1 = require("../survey/survey.dto");
19
+ class SurveyResponseEmbeddedDto {
20
+ }
21
+ __decorate([
22
+ (0, nestjs_1.ApiProperty)({ type: () => survey_dto_1.SurveyDto, required: false }),
23
+ (0, class_transformer_1.Type)(() => survey_dto_1.SurveyDto),
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", survey_dto_1.SurveyDto)
27
+ ], SurveyResponseEmbeddedDto.prototype, "survey", void 0);
28
+ __decorate([
29
+ (0, nestjs_1.ApiProperty)({ type: () => patientInfo_dto_1.PatientInfoDto, required: false }),
30
+ (0, class_transformer_1.Type)(() => patientInfo_dto_1.PatientInfoDto),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", patientInfo_dto_1.PatientInfoDto)
34
+ ], SurveyResponseEmbeddedDto.prototype, "patientInfo", void 0);
35
+ __decorate([
36
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
37
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", user_dto_1.UserDto)
41
+ ], SurveyResponseEmbeddedDto.prototype, "createdBy", void 0);
42
+ __decorate([
43
+ (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
44
+ (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", user_dto_1.UserDto)
48
+ ], SurveyResponseEmbeddedDto.prototype, "updatedBy", void 0);
49
+ exports.SurveyResponseEmbeddedDto = SurveyResponseEmbeddedDto;
50
+ //# sourceMappingURL=surveyResponseEmbedded.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveyResponseEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/surveyResponse/surveyResponseEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,yDAAiD;AACjD,yCAA2C;AAC3C,+CAA2C;AAC3C,gEAA4D;AAC5D,qDAAiD;AAEjD,MAAa,yBAAyB;CAwBrC;AAvBA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAS,CAAC;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACA,sBAAS;yDAAC;AAEnB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,gCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC;IAC1B,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACK,gCAAc;8DAAC;AAE7B;IAAC,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,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACG,kBAAO;4DAAC;AAEpB;IAAC,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,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACG,kBAAO;4DAAC;AAvBrB,8DAwBC"}
@@ -0,0 +1,12 @@
1
+ import { SurveyResponseDto } from './surveyResponse.dto';
2
+ import { PageDto } from '../generic/page.dto';
3
+ import { PageInfoDto } from '../generic/pageInfo.dto';
4
+ declare class EmbeddedSurveyResponses {
5
+ surveyResponses?: SurveyResponseDto[];
6
+ }
7
+ export declare class SurveyResponsePageDto extends PageDto {
8
+ _embedded: EmbeddedSurveyResponses;
9
+ static fromPlain(object: any): SurveyResponsePageDto;
10
+ static fromEntityList(surveyResponses: any[], _page: PageInfoDto): unknown;
11
+ }
12
+ export {};