@more-life/types-more-life-react 0.105.0 → 0.106.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 (29) hide show
  1. package/dist/dto/application/applicationEmbedded.dto.d.ts +2 -0
  2. package/dist/dto/application/applicationEmbedded.dto.js +8 -0
  3. package/dist/dto/application/applicationEmbedded.dto.js.map +1 -1
  4. package/dist/dto/therapyGoal/bulkUpdateTherapyGoal.dto.d.ts +9 -0
  5. package/dist/dto/therapyGoal/bulkUpdateTherapyGoal.dto.js +42 -0
  6. package/dist/dto/therapyGoal/bulkUpdateTherapyGoal.dto.js.map +1 -0
  7. package/dist/dto/therapyGoal/createTherapyGoal.dto.d.ts +12 -0
  8. package/dist/dto/therapyGoal/createTherapyGoal.dto.js +75 -0
  9. package/dist/dto/therapyGoal/createTherapyGoal.dto.js.map +1 -0
  10. package/dist/dto/therapyGoal/therapyGoal.dto.d.ts +26 -0
  11. package/dist/dto/therapyGoal/therapyGoal.dto.js +116 -0
  12. package/dist/dto/therapyGoal/therapyGoal.dto.js.map +1 -0
  13. package/dist/dto/therapyGoal/therapyGoalEmbedded.dto.d.ts +5 -0
  14. package/dist/dto/therapyGoal/therapyGoalEmbedded.dto.js +34 -0
  15. package/dist/dto/therapyGoal/therapyGoalEmbedded.dto.js.map +1 -0
  16. package/dist/dto/therapyGoal/therapyGoalPage.dto.d.ts +12 -0
  17. package/dist/dto/therapyGoal/therapyGoalPage.dto.js +51 -0
  18. package/dist/dto/therapyGoal/therapyGoalPage.dto.js.map +1 -0
  19. package/dist/dto/therapyGoal/updateTherapyGoal.dto.d.ts +13 -0
  20. package/dist/dto/therapyGoal/updateTherapyGoal.dto.js +84 -0
  21. package/dist/dto/therapyGoal/updateTherapyGoal.dto.js.map +1 -0
  22. package/dist/enum/therapyGoalType.enum.d.ts +5 -0
  23. package/dist/enum/therapyGoalType.enum.js +10 -0
  24. package/dist/enum/therapyGoalType.enum.js.map +1 -0
  25. package/dist/index.d.ts +8 -1
  26. package/dist/index.js +17 -2
  27. package/dist/index.js.map +1 -1
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +1 -1
@@ -8,6 +8,7 @@ import { CareFacilityDto } from '../careFacility/careFacility.dto';
8
8
  import { TherapySummaryDto } from '../therapySummary/therapySummary.dto';
9
9
  import { GeridocPatientDto } from '../geridocPatient/geridocPatient.dto';
10
10
  import { TherapyPlanDto } from '../therapyPlan/therapyPlan.dto';
11
+ import { TherapyGoalDto } from "../therapyGoal/therapyGoal.dto";
11
12
  export declare class ApplicationEmbeddedDto {
12
13
  patientInfo?: PatientInfoDto;
13
14
  extensions?: ExtensionDto[];
@@ -18,6 +19,7 @@ export declare class ApplicationEmbeddedDto {
18
19
  applicationInsurances?: ApplicationInsuranceDto[];
19
20
  calculated?: ApplicationCalculatedDto;
20
21
  therapySummaries?: TherapySummaryDto[];
22
+ therapyGoals?: TherapyGoalDto[];
21
23
  geridocPatient?: GeridocPatientDto;
22
24
  createdBy?: UserDto;
23
25
  updatedBy?: UserDto;
@@ -23,6 +23,7 @@ const careFacility_dto_1 = require("../careFacility/careFacility.dto");
23
23
  const therapySummary_dto_1 = require("../therapySummary/therapySummary.dto");
24
24
  const geridocPatient_dto_1 = require("../geridocPatient/geridocPatient.dto");
25
25
  const therapyPlan_dto_1 = require("../therapyPlan/therapyPlan.dto");
26
+ const therapyGoal_dto_1 = require("../therapyGoal/therapyGoal.dto");
26
27
  class ApplicationEmbeddedDto {
27
28
  }
28
29
  __decorate([
@@ -92,6 +93,13 @@ __decorate([
92
93
  (0, class_transformer_1.Expose)(),
93
94
  __metadata("design:type", Array)
94
95
  ], ApplicationEmbeddedDto.prototype, "therapySummaries", void 0);
96
+ __decorate([
97
+ (0, nestjs_1.ApiProperty)({ type: () => therapyGoal_dto_1.TherapyGoalDto, isArray: true, required: false }),
98
+ (0, class_transformer_1.Type)(() => therapyGoal_dto_1.TherapyGoalDto),
99
+ (0, class_validator_1.IsOptional)(),
100
+ (0, class_transformer_1.Expose)(),
101
+ __metadata("design:type", Array)
102
+ ], ApplicationEmbeddedDto.prototype, "therapyGoals", void 0);
95
103
  __decorate([
96
104
  (0, nestjs_1.ApiProperty)({ type: () => geridocPatient_dto_1.GeridocPatientDto, required: false }),
97
105
  (0, class_transformer_1.Type)(() => geridocPatient_dto_1.GeridocPatientDto),
@@ -1 +1 @@
1
- {"version":3,"file":"applicationEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/application/applicationEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,yDAAiD;AACjD,yCAA2C;AAC3C,sGAAkG;AAClG,gEAA4D;AAC5D,+CAA2C;AAC3C,8DAA0D;AAC1D,2EAAuE;AACvE,+FAA2F;AAC3F,uEAAmE;AACnE,6EAAyE;AACzE,6EAAyE;AACzE,oEAAgE;AAEhE,MAAa,sBAAsB;CA4ElC;AA3EA;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;2DAAC;AAE7B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,4BAAY,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;0DACmB;AAE5B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,gCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gC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AE,CAAC,sCAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAiB,CAAC;IAC7B,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACQ,sCAAiB;8DAAC;AAEnC;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;yDAAC;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;yDAAC;AAjFrB,wDAkFC"}
@@ -0,0 +1,9 @@
1
+ import { UpdateTherapyGoalDto } from './updateTherapyGoal.dto';
2
+ declare class BulkUpdateTherapyGoalItemDto extends UpdateTherapyGoalDto {
3
+ id: string;
4
+ }
5
+ export declare class BulkUpdateTherapyGoalDto {
6
+ items: BulkUpdateTherapyGoalItemDto[];
7
+ static fromPlain(object: any): BulkUpdateTherapyGoalDto;
8
+ }
9
+ export {};
@@ -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.BulkUpdateTherapyGoalDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const updateTherapyGoal_dto_1 = require("./updateTherapyGoal.dto");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ const class_validator_1 = require("class-validator");
18
+ class BulkUpdateTherapyGoalItemDto extends updateTherapyGoal_dto_1.UpdateTherapyGoalDto {
19
+ }
20
+ __decorate([
21
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
22
+ (0, class_validator_1.IsUUID)(),
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", String)
25
+ ], BulkUpdateTherapyGoalItemDto.prototype, "id", void 0);
26
+ class BulkUpdateTherapyGoalDto {
27
+ static fromPlain(object) {
28
+ return (0, convertAndValidate_1.convertAndValidate)(BulkUpdateTherapyGoalDto, object);
29
+ }
30
+ }
31
+ __decorate([
32
+ (0, nestjs_1.ApiProperty)({
33
+ isArray: true,
34
+ type: BulkUpdateTherapyGoalItemDto,
35
+ required: true,
36
+ }),
37
+ (0, class_transformer_1.Type)(() => BulkUpdateTherapyGoalItemDto),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", Array)
40
+ ], BulkUpdateTherapyGoalDto.prototype, "items", void 0);
41
+ exports.BulkUpdateTherapyGoalDto = BulkUpdateTherapyGoalDto;
42
+ //# sourceMappingURL=bulkUpdateTherapyGoal.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkUpdateTherapyGoal.dto.js","sourceRoot":"","sources":["../../../src/dto/therapyGoal/bulkUpdateTherapyGoal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAC3C,mEAA+D;AAC/D,sEAAmE;AACnE,qDAAyC;AAEzC,MAAM,4BAA6B,SAAQ,4CAAoB;CAK9D;AAJA;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;;wDACG;AAGb,MAAa,wBAAwB;IAU7B,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;CACD;AAZA;IAAC,IAAA,oBAAW,EAAC;QACZ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,4BAA4B;QAClC,QAAQ,EAAE,IAAI;KACd,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;IACxC,IAAA,0BAAM,GAAE;;uDAC8B;AARxC,4DAaC"}
@@ -0,0 +1,12 @@
1
+ import { TherapyGoalTypeEnum } from '../../enum/therapyGoalType.enum';
2
+ import { TherapyGoalTargetDto } from './therapyGoal.dto';
3
+ export declare class CreateTherapyGoalDto {
4
+ type?: TherapyGoalTypeEnum;
5
+ goal: TherapyGoalTargetDto[];
6
+ parentGoalIds?: string[];
7
+ completedAt?: string;
8
+ deadlineAt?: string;
9
+ sequenceNumber?: number;
10
+ applicationId: string;
11
+ static fromPlain(object: any): CreateTherapyGoalDto;
12
+ }
@@ -0,0 +1,75 @@
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.CreateTherapyGoalDto = void 0;
13
+ const nestjs_1 = require("../../nestjs");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ const therapyGoalType_enum_1 = require("../../enum/therapyGoalType.enum");
18
+ const therapyGoal_dto_1 = require("./therapyGoal.dto");
19
+ class CreateTherapyGoalDto {
20
+ static fromPlain(object) {
21
+ return (0, convertAndValidate_1.convertAndValidate)(CreateTherapyGoalDto, object);
22
+ }
23
+ }
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ enum: therapyGoalType_enum_1.TherapyGoalTypeEnum, required: false, default: therapyGoalType_enum_1.TherapyGoalTypeEnum.PARTICIPATION }),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsIn)(Object.values(therapyGoalType_enum_1.TherapyGoalTypeEnum)),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], CreateTherapyGoalDto.prototype, "type", void 0);
31
+ __decorate([
32
+ (0, nestjs_1.ApiProperty)({ isArray: true, type: therapyGoal_dto_1.TherapyGoalTargetDto, required: true }),
33
+ (0, class_validator_1.IsArray)(),
34
+ (0, class_validator_1.ValidateNested)({ each: true }),
35
+ (0, class_transformer_1.Type)(() => therapyGoal_dto_1.TherapyGoalTargetDto),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", Array)
38
+ ], CreateTherapyGoalDto.prototype, "goal", void 0);
39
+ __decorate([
40
+ (0, nestjs_1.ApiProperty)({ type: [String], format: 'uuid', required: false }),
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsArray)(),
43
+ (0, class_validator_1.IsUUID)('4', { each: true }),
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", Array)
46
+ ], CreateTherapyGoalDto.prototype, "parentGoalIds", void 0);
47
+ __decorate([
48
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'date-time', required: false }),
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsDateString)(),
51
+ (0, class_transformer_1.Expose)(),
52
+ __metadata("design:type", String)
53
+ ], CreateTherapyGoalDto.prototype, "completedAt", void 0);
54
+ __decorate([
55
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'date-time', required: false }),
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsDateString)(),
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], CreateTherapyGoalDto.prototype, "deadlineAt", void 0);
61
+ __decorate([
62
+ (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsInt)(),
65
+ (0, class_transformer_1.Expose)(),
66
+ __metadata("design:type", Number)
67
+ ], CreateTherapyGoalDto.prototype, "sequenceNumber", void 0);
68
+ __decorate([
69
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
70
+ (0, class_validator_1.IsUUID)(),
71
+ (0, class_transformer_1.Expose)(),
72
+ __metadata("design:type", String)
73
+ ], CreateTherapyGoalDto.prototype, "applicationId", void 0);
74
+ exports.CreateTherapyGoalDto = CreateTherapyGoalDto;
75
+ //# sourceMappingURL=createTherapyGoal.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createTherapyGoal.dto.js","sourceRoot":"","sources":["../../../src/dto/therapyGoal/createTherapyGoal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,qDAAoH;AAC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;AAErB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnE,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;IACd,IAAA,0BAAM,GAAE;;wDACW;AAEpB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,0BAAM,GAAE;;4DACe;AAExB;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;;2DACc;AA1CxB,oDA+CC"}
@@ -0,0 +1,26 @@
1
+ import { TherapyGoalEmbeddedDto } from './therapyGoalEmbedded.dto';
2
+ import { TherapyGoalTypeEnum } from '../../enum/therapyGoalType.enum';
3
+ export declare class TherapyGoalTargetDto {
4
+ target: string;
5
+ on: string;
6
+ }
7
+ declare const TherapyGoalDto_base: new () => {
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ _embedded?: TherapyGoalEmbeddedDto;
11
+ };
12
+ export declare class TherapyGoalDto extends TherapyGoalDto_base {
13
+ id: string;
14
+ type: TherapyGoalTypeEnum;
15
+ goal: TherapyGoalTargetDto[];
16
+ parentGoalIds?: string[];
17
+ completedAt?: string;
18
+ deadlineAt?: string;
19
+ sequenceNumber?: number;
20
+ isDeleted: boolean;
21
+ applicationId: string;
22
+ createdById?: string;
23
+ updatedById?: string;
24
+ static fromEntity(entity: any): TherapyGoalDto;
25
+ }
26
+ export {};
@@ -0,0 +1,116 @@
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.TherapyGoalDto = exports.TherapyGoalTargetDto = void 0;
13
+ const nestjs_1 = require("../../nestjs");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const base_dto_1 = require("../generic/base.dto");
17
+ const therapyGoalEmbedded_dto_1 = require("./therapyGoalEmbedded.dto");
18
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
19
+ const therapyGoalType_enum_1 = require("../../enum/therapyGoalType.enum");
20
+ class TherapyGoalTargetDto {
21
+ }
22
+ __decorate([
23
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], TherapyGoalTargetDto.prototype, "target", void 0);
28
+ __decorate([
29
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'date-time', required: true }),
30
+ (0, class_validator_1.IsDateString)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], TherapyGoalTargetDto.prototype, "on", void 0);
34
+ exports.TherapyGoalTargetDto = TherapyGoalTargetDto;
35
+ class TherapyGoalDto extends (0, base_dto_1.BaseDto)(therapyGoalEmbedded_dto_1.TherapyGoalEmbeddedDto) {
36
+ static fromEntity(entity) {
37
+ return (0, convertAndValidate_1.convert)(TherapyGoalDto, entity);
38
+ }
39
+ }
40
+ __decorate([
41
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
42
+ (0, class_validator_1.IsUUID)(),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], TherapyGoalDto.prototype, "id", void 0);
46
+ __decorate([
47
+ (0, nestjs_1.ApiProperty)({ enum: therapyGoalType_enum_1.TherapyGoalTypeEnum, required: true }),
48
+ (0, class_validator_1.IsIn)(Object.values(therapyGoalType_enum_1.TherapyGoalTypeEnum)),
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", String)
51
+ ], TherapyGoalDto.prototype, "type", void 0);
52
+ __decorate([
53
+ (0, nestjs_1.ApiProperty)({ isArray: true, type: TherapyGoalTargetDto, required: true }),
54
+ (0, class_validator_1.IsArray)(),
55
+ (0, class_validator_1.ValidateNested)({ each: true }),
56
+ (0, class_transformer_1.Type)(() => TherapyGoalTargetDto),
57
+ (0, class_transformer_1.Expose)(),
58
+ __metadata("design:type", Array)
59
+ ], TherapyGoalDto.prototype, "goal", void 0);
60
+ __decorate([
61
+ (0, nestjs_1.ApiProperty)({ type: [String], format: 'uuid', required: false }),
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsArray)(),
64
+ (0, class_validator_1.IsUUID)('4', { each: true }),
65
+ (0, class_transformer_1.Expose)(),
66
+ __metadata("design:type", Array)
67
+ ], TherapyGoalDto.prototype, "parentGoalIds", void 0);
68
+ __decorate([
69
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'date-time', required: false }),
70
+ (0, class_validator_1.IsOptional)(),
71
+ (0, class_validator_1.IsDateString)(),
72
+ (0, class_transformer_1.Expose)(),
73
+ __metadata("design:type", String)
74
+ ], TherapyGoalDto.prototype, "completedAt", void 0);
75
+ __decorate([
76
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'date-time', required: false }),
77
+ (0, class_validator_1.IsOptional)(),
78
+ (0, class_validator_1.IsDateString)(),
79
+ (0, class_transformer_1.Expose)(),
80
+ __metadata("design:type", String)
81
+ ], TherapyGoalDto.prototype, "deadlineAt", void 0);
82
+ __decorate([
83
+ (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
84
+ (0, class_validator_1.IsOptional)(),
85
+ (0, class_validator_1.IsInt)(),
86
+ (0, class_transformer_1.Expose)(),
87
+ __metadata("design:type", Number)
88
+ ], TherapyGoalDto.prototype, "sequenceNumber", void 0);
89
+ __decorate([
90
+ (0, nestjs_1.ApiProperty)({ type: Boolean, required: true }),
91
+ (0, class_validator_1.IsBoolean)(),
92
+ (0, class_transformer_1.Expose)(),
93
+ __metadata("design:type", Boolean)
94
+ ], TherapyGoalDto.prototype, "isDeleted", void 0);
95
+ __decorate([
96
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
97
+ (0, class_validator_1.IsUUID)(),
98
+ (0, class_transformer_1.Expose)(),
99
+ __metadata("design:type", String)
100
+ ], TherapyGoalDto.prototype, "applicationId", void 0);
101
+ __decorate([
102
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: false }),
103
+ (0, class_validator_1.IsOptional)(),
104
+ (0, class_validator_1.IsUUID)(),
105
+ (0, class_transformer_1.Expose)(),
106
+ __metadata("design:type", String)
107
+ ], TherapyGoalDto.prototype, "createdById", void 0);
108
+ __decorate([
109
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: false }),
110
+ (0, class_validator_1.IsOptional)(),
111
+ (0, class_validator_1.IsUUID)(),
112
+ (0, class_transformer_1.Expose)(),
113
+ __metadata("design:type", String)
114
+ ], TherapyGoalDto.prototype, "updatedById", void 0);
115
+ exports.TherapyGoalDto = TherapyGoalDto;
116
+ //# sourceMappingURL=therapyGoal.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"therapyGoal.dto.js","sourceRoot":"","sources":["../../../src/dto/therapyGoal/therapyGoal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACj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AAE;;qDACc;AAEvB;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;;mDACY;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;;mDACY;AA/DtB,wCAoEC"}
@@ -0,0 +1,5 @@
1
+ import { UserDto } from '../user/user.dto';
2
+ export declare class TherapyGoalEmbeddedDto {
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.TherapyGoalEmbeddedDto = void 0;
13
+ const nestjs_1 = require("../../nestjs");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const user_dto_1 = require("../user/user.dto");
17
+ class TherapyGoalEmbeddedDto {
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
+ ], TherapyGoalEmbeddedDto.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
+ ], TherapyGoalEmbeddedDto.prototype, "updatedBy", void 0);
33
+ exports.TherapyGoalEmbeddedDto = TherapyGoalEmbeddedDto;
34
+ //# sourceMappingURL=therapyGoalEmbedded.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"therapyGoalEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/therapyGoal/therapyGoalEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,qDAA6C;AAC7C,+CAA2C;AAE3C,MAAa,sBAAsB;CAYlC;AAXA;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;yDAAC;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;yDAAC;AAXrB,wDAYC"}
@@ -0,0 +1,12 @@
1
+ import { TherapyGoalDto } from './therapyGoal.dto';
2
+ import { PageDto } from '../generic/page.dto';
3
+ import { PageInfoDto } from '../generic/pageInfo.dto';
4
+ declare class EmbeddedTherapyGoals {
5
+ therapyGoals?: TherapyGoalDto[];
6
+ }
7
+ export declare class TherapyGoalPageDto extends PageDto {
8
+ _embedded: EmbeddedTherapyGoals;
9
+ static fromPlain(object: any): TherapyGoalPageDto;
10
+ static fromEntityList(therapyGoals: 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.TherapyGoalPageDto = void 0;
16
+ const class_transformer_1 = require("class-transformer");
17
+ const nestjs_1 = require("../../nestjs");
18
+ const therapyGoal_dto_1 = require("./therapyGoal.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 EmbeddedTherapyGoals {
24
+ }
25
+ __decorate([
26
+ (0, nestjs_1.ApiProperty)({ isArray: true, type: therapyGoal_dto_1.TherapyGoalDto, required: false }),
27
+ (0, class_transformer_1.Type)(() => therapyGoal_dto_1.TherapyGoalDto),
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", Array)
31
+ ], EmbeddedTherapyGoals.prototype, "therapyGoals", void 0);
32
+ class TherapyGoalPageDto extends page_dto_1.PageDto {
33
+ static fromPlain(object) {
34
+ return (0, convertAndValidate_1.convertAndValidate)(TherapyGoalPageDto, object);
35
+ }
36
+ static fromEntityList(therapyGoals, _page) {
37
+ return (0, convertAndValidate_1.convert)(TherapyGoalPageDto, {
38
+ therapyGoals,
39
+ _page,
40
+ });
41
+ }
42
+ }
43
+ __decorate([
44
+ (0, nestjs_1.ApiProperty)({ type: EmbeddedTherapyGoals, required: true }),
45
+ (0, class_transformer_1.Type)(() => EmbeddedTherapyGoals),
46
+ (0, transformEmbedded_1.default)(EmbeddedTherapyGoals),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", EmbeddedTherapyGoals)
49
+ ], TherapyGoalPageDto.prototype, "_embedded", void 0);
50
+ exports.TherapyGoalPageDto = TherapyGoalPageDto;
51
+ //# sourceMappingURL=therapyGoalPage.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"therapyGoalPage.dto.js","sourceRoot":"","sources":["../../../src/dto/therapyGoal/therapyGoalPage.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAC3C,uDAAmD;AACnD,sEAA4E;AAC5E,qDAA6C;AAC7C,kDAA8C;AAC9C,qFAA6D;AAG7D,MAAM,oBAAoB;CAMzB;AALA;IAAC,IAAA,oBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC;IAC1B,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;0DACuB;AAGjC,MAAa,kBAAmB,SAAQ,kBAAO;IAOvC,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,YAAmB,EAAE,KAAkB;QACnE,OAAO,IAAA,4BAAO,EAAC,kBAAkB,EAAE;YAClC,YAAY;YACZ,KAAK;SACL,CAAC,CAAC;IACJ,CAAC;CACD;AAhBA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;IAChC,IAAA,2BAAiB,EAAC,oBAAoB,CAAC;IACvC,IAAA,0BAAM,GAAE;8BACG,oBAAoB;qDAAC;AALlC,gDAiBC"}
@@ -0,0 +1,13 @@
1
+ import { TherapyGoalTypeEnum } from '../../enum/therapyGoalType.enum';
2
+ import { TherapyGoalTargetDto } from './therapyGoal.dto';
3
+ export declare class UpdateTherapyGoalDto {
4
+ type?: TherapyGoalTypeEnum;
5
+ goal?: TherapyGoalTargetDto[];
6
+ parentGoalIds?: string[];
7
+ completedAt?: string;
8
+ deadlineAt?: string;
9
+ sequenceNumber?: number;
10
+ isDeleted?: boolean;
11
+ applicationId?: string;
12
+ static fromPlain(object: any): UpdateTherapyGoalDto;
13
+ }
@@ -0,0 +1,84 @@
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.UpdateTherapyGoalDto = void 0;
13
+ const nestjs_1 = require("../../nestjs");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ const therapyGoalType_enum_1 = require("../../enum/therapyGoalType.enum");
18
+ const therapyGoal_dto_1 = require("./therapyGoal.dto");
19
+ class UpdateTherapyGoalDto {
20
+ static fromPlain(object) {
21
+ return (0, convertAndValidate_1.convertAndValidate)(UpdateTherapyGoalDto, object);
22
+ }
23
+ }
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ enum: therapyGoalType_enum_1.TherapyGoalTypeEnum, required: false }),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsIn)(Object.values(therapyGoalType_enum_1.TherapyGoalTypeEnum)),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], UpdateTherapyGoalDto.prototype, "type", void 0);
31
+ __decorate([
32
+ (0, nestjs_1.ApiProperty)({ isArray: true, type: therapyGoal_dto_1.TherapyGoalTargetDto, required: false }),
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsArray)(),
35
+ (0, class_validator_1.ValidateNested)({ each: true }),
36
+ (0, class_transformer_1.Type)(() => therapyGoal_dto_1.TherapyGoalTargetDto),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", Array)
39
+ ], UpdateTherapyGoalDto.prototype, "goal", void 0);
40
+ __decorate([
41
+ (0, nestjs_1.ApiProperty)({ type: [String], format: 'uuid', required: false }),
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsArray)(),
44
+ (0, class_validator_1.IsUUID)('4', { each: true }),
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", Array)
47
+ ], UpdateTherapyGoalDto.prototype, "parentGoalIds", void 0);
48
+ __decorate([
49
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'date-time', required: false }),
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsDateString)(),
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", String)
54
+ ], UpdateTherapyGoalDto.prototype, "completedAt", void 0);
55
+ __decorate([
56
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'date-time', required: false }),
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsDateString)(),
59
+ (0, class_transformer_1.Expose)(),
60
+ __metadata("design:type", String)
61
+ ], UpdateTherapyGoalDto.prototype, "deadlineAt", void 0);
62
+ __decorate([
63
+ (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
64
+ (0, class_validator_1.IsOptional)(),
65
+ (0, class_validator_1.IsInt)(),
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", Number)
68
+ ], UpdateTherapyGoalDto.prototype, "sequenceNumber", void 0);
69
+ __decorate([
70
+ (0, nestjs_1.ApiProperty)({ type: Boolean, required: false }),
71
+ (0, class_validator_1.IsOptional)(),
72
+ (0, class_validator_1.IsBoolean)(),
73
+ (0, class_transformer_1.Expose)(),
74
+ __metadata("design:type", Boolean)
75
+ ], UpdateTherapyGoalDto.prototype, "isDeleted", void 0);
76
+ __decorate([
77
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: false }),
78
+ (0, class_validator_1.IsOptional)(),
79
+ (0, class_validator_1.IsUUID)(),
80
+ (0, class_transformer_1.Expose)(),
81
+ __metadata("design:type", String)
82
+ ], UpdateTherapyGoalDto.prototype, "applicationId", void 0);
83
+ exports.UpdateTherapyGoalDto = UpdateTherapyGoalDto;
84
+ //# sourceMappingURL=updateTherapyGoal.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateTherapyGoal.dto.js","sourceRoot":"","sources":["../../../src/dto/therapyGoal/updateTherapyGoal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,qDAAoH;AACpH,sEAAmE;AACnE,0EAAsE;AACtE,uDAAyD;AAEzD,MAAa,oBAAoB;IAoDzB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;CACD;AAtDA;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,0CAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC3D,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,0CAAmB,CAAC,CAAC;IACxC,IAAA,0BAAM,GAAE;;kDACkB;AAE3B;IAAC,IAAA,oBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,sCAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC3E,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAoB,CAAC;IAChC,IAAA,0BAAM,GAAE;;kDACqB;AAE9B;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChE,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC3B,IAAA,0BAAM,GAAE;;2DACgB;AAEzB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnE,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;IACd,IAAA,0BAAM,GAAE;;yDACY;AAErB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnE,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;IACd,IAAA,0BAAM,GAAE;;wDACW;AAEpB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,0BAAM,GAAE;;4DACe;AAExB;IAAC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/C,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAM,GAAE;;uDACW;AAEpB;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;;2DACc;AAlDxB,oDAuDC"}
@@ -0,0 +1,5 @@
1
+ export declare enum TherapyGoalTypeEnum {
2
+ PARTICIPATION = "PARTICIPATION",
3
+ ACTIVITY = "ACTIVITY",
4
+ FUNCTIONAL = "FUNCTIONAL"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TherapyGoalTypeEnum = void 0;
4
+ var TherapyGoalTypeEnum;
5
+ (function (TherapyGoalTypeEnum) {
6
+ TherapyGoalTypeEnum["PARTICIPATION"] = "PARTICIPATION";
7
+ TherapyGoalTypeEnum["ACTIVITY"] = "ACTIVITY";
8
+ TherapyGoalTypeEnum["FUNCTIONAL"] = "FUNCTIONAL";
9
+ })(TherapyGoalTypeEnum = exports.TherapyGoalTypeEnum || (exports.TherapyGoalTypeEnum = {}));
10
+ //# sourceMappingURL=therapyGoalType.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"therapyGoalType.enum.js","sourceRoot":"","sources":["../../src/enum/therapyGoalType.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,sDAA+B,CAAA;IAC/B,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;AAC1B,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B"}