@more-life/types-more-life-nest 0.71.0 → 0.72.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/block/bulkUpdateBlock.dto.js +3 -0
- package/dist/dto/block/bulkUpdateBlock.dto.js.map +1 -1
- package/dist/dto/block/updateBlock.dto.d.ts +2 -0
- package/dist/dto/block/updateBlock.dto.js +17 -1
- package/dist/dto/block/updateBlock.dto.js.map +1 -1
- package/dist/dto/chatBot/createChatBot.dto.js +3 -0
- package/dist/dto/chatBot/createChatBot.dto.js.map +1 -1
- package/dist/dto/user/userAzureJwtData.dto.js +7 -1
- package/dist/dto/user/userAzureJwtData.dto.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ const nestjs_1 = require("../../nestjs");
|
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const convertAndValidate_1 = require("../../util/convertAndValidate");
|
|
17
17
|
const updateBlock_dto_1 = require("./updateBlock.dto");
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
18
19
|
class BulkUpdateBlockItemDto extends updateBlock_dto_1.UpdateBlockDto {
|
|
19
20
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
21
|
return { id: { required: true, type: () => String } };
|
|
@@ -22,6 +23,7 @@ class BulkUpdateBlockItemDto extends updateBlock_dto_1.UpdateBlockDto {
|
|
|
22
23
|
}
|
|
23
24
|
__decorate([
|
|
24
25
|
(0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
25
27
|
(0, class_transformer_1.Expose)(),
|
|
26
28
|
__metadata("design:type", String)
|
|
27
29
|
], BulkUpdateBlockItemDto.prototype, "id", void 0);
|
|
@@ -40,6 +42,7 @@ __decorate([
|
|
|
40
42
|
type: BulkUpdateBlockItemDto,
|
|
41
43
|
required: true,
|
|
42
44
|
}),
|
|
45
|
+
(0, class_validator_1.IsArray)(),
|
|
43
46
|
(0, class_transformer_1.Type)(() => BulkUpdateBlockItemDto),
|
|
44
47
|
(0, class_transformer_1.Expose)(),
|
|
45
48
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulkUpdateBlock.dto.js","sourceRoot":"","sources":["../../../src/dto/block/bulkUpdateBlock.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,sEAAmE;AACnE,uDAAmD;
|
|
1
|
+
{"version":3,"file":"bulkUpdateBlock.dto.js","sourceRoot":"","sources":["../../../src/dto/block/bulkUpdateBlock.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,sEAAmE;AACnE,uDAAmD;AACnD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,gCAAc;;;;CAKlD;AADA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;kDACG;AAGb,MAAa,kBAAkB;IAWvB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;;;CACD;AAdD,gDAcC;AALA;IARC,IAAA,oBAAW,EAAC;QACZ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,IAAI;KACd,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;IAClC,IAAA,0BAAM,GAAE;;iDACwB"}
|
|
@@ -26,7 +26,7 @@ class UpdateBlockDto {
|
|
|
26
26
|
return (0, convertAndValidate_1.convertAndValidate)(UpdateBlockDto, object);
|
|
27
27
|
}
|
|
28
28
|
static _OPENAPI_METADATA_FACTORY() {
|
|
29
|
-
return { appointmentNumber: { required: false, type: () => Number, nullable: true, minimum: 1 }, preferredWeek: { required: false, type: () => Number, nullable: true, maximum: 53, minimum: 1 }, preferredYear: { required: false, type: () => Number, nullable: true, minimum: 2020, maximum: 2099, minimum: 1 }, type: { required: false, nullable: true, enum: require("../../enum/blockType.enum").BlockTypeEnum, enum: Object.values(blockType_enum_1.BlockTypeEnum) }, status: { required: false, nullable: true, enum: require("../../enum/blockStatus.enum").BlockStatusEnum, enum: Object.values(blockStatus_enum_1.BlockStatusEnum) }, disciplines: { required: false, type: () => Object, enum: Object.values(discipline_enum_1.DisciplineEnum) }, duration: { required: false, type: () => Number, minimum: 1 }, plannedDuration: { required: false, type: () => Number, minimum: 1 }, patientInfoId: { required: false, type: () => String, nullable: true, format: "uuid" }, therapistInfoId: { required: false, type: () => String, nullable: true, format: "uuid" }, applicationId: { required: false, type: () => String, nullable: true, format: "uuid" }, extensionId: { required: false, type: () => String, nullable: true, format: "uuid" }, from: { required: false, type: () => String, nullable: true }, concludedAt: { required: false, type: () => String, nullable: true }, arrivedAt: { required: false, type: () => String, nullable: true }, cancellationReason: { required: false, nullable: true, enum: require("../../enum/blockCancellationReason").BlockCancellationReasonEnum }, isAdmission: { required: false, type: () => Boolean }, isDecommission: { required: false, type: () => Boolean }, comment: { required: false, type: () => String }, address: { required: false, type: () => require("../address/updateAddress.dto").UpdateAddressDto }, followUpFlag: { required: false, nullable: true, enum: require("../../enum/blockFollowUpFlagType.enum").BlockFollowUpFlagTypeEnum, isArray: true, enum: Object.values(blockFollowUpFlagType_enum_1.BlockFollowUpFlagTypeEnum) } };
|
|
29
|
+
return { appointmentNumber: { required: false, type: () => Number, nullable: true, minimum: 1 }, preferredWeek: { required: false, type: () => Number, nullable: true, maximum: 53, minimum: 1 }, preferredYear: { required: false, type: () => Number, nullable: true, minimum: 2020, maximum: 2099, minimum: 1 }, type: { required: false, nullable: true, enum: require("../../enum/blockType.enum").BlockTypeEnum, enum: Object.values(blockType_enum_1.BlockTypeEnum) }, status: { required: false, nullable: true, enum: require("../../enum/blockStatus.enum").BlockStatusEnum, enum: Object.values(blockStatus_enum_1.BlockStatusEnum) }, disciplines: { required: false, type: () => Object, enum: Object.values(discipline_enum_1.DisciplineEnum) }, duration: { required: false, type: () => Number, minimum: 1 }, plannedDuration: { required: false, type: () => Number, minimum: 1 }, patientInfoId: { required: false, type: () => String, nullable: true, format: "uuid" }, therapistInfoId: { required: false, type: () => String, nullable: true, format: "uuid" }, applicationId: { required: false, type: () => String, nullable: true, format: "uuid" }, extensionId: { required: false, type: () => String, nullable: true, format: "uuid" }, from: { required: false, type: () => String, nullable: true }, concludedAt: { required: false, type: () => String, nullable: true }, arrivedAt: { required: false, type: () => String, nullable: true }, cancellationReason: { required: false, nullable: true, enum: require("../../enum/blockCancellationReason").BlockCancellationReasonEnum }, isAdmission: { required: false, type: () => Boolean }, isDecommission: { required: false, type: () => Boolean }, comment: { required: false, type: () => String }, address: { required: false, type: () => require("../address/updateAddress.dto").UpdateAddressDto }, followUpFlag: { required: false, nullable: true, enum: require("../../enum/blockFollowUpFlagType.enum").BlockFollowUpFlagTypeEnum, isArray: true, enum: Object.values(blockFollowUpFlagType_enum_1.BlockFollowUpFlagTypeEnum) }, driveTimeFromPrevious: { required: false, type: () => Number, minimum: 1 }, driveTimeToNext: { required: false, type: () => Number, minimum: 1 } };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
exports.UpdateBlockDto = UpdateBlockDto;
|
|
@@ -187,4 +187,20 @@ __decorate([
|
|
|
187
187
|
(0, class_transformer_1.Expose)(),
|
|
188
188
|
__metadata("design:type", Array)
|
|
189
189
|
], UpdateBlockDto.prototype, "followUpFlag", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: false }),
|
|
192
|
+
(0, class_validator_1.IsOptional)(),
|
|
193
|
+
(0, class_validator_1.IsInt)(),
|
|
194
|
+
(0, class_validator_1.IsPositive)(),
|
|
195
|
+
(0, class_transformer_1.Expose)(),
|
|
196
|
+
__metadata("design:type", Number)
|
|
197
|
+
], UpdateBlockDto.prototype, "driveTimeFromPrevious", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, nestjs_1.ApiProperty)({ type: Number, required: false }),
|
|
200
|
+
(0, class_validator_1.IsOptional)(),
|
|
201
|
+
(0, class_validator_1.IsInt)(),
|
|
202
|
+
(0, class_validator_1.IsPositive)(),
|
|
203
|
+
(0, class_transformer_1.Expose)(),
|
|
204
|
+
__metadata("design:type", Number)
|
|
205
|
+
], UpdateBlockDto.prototype, "driveTimeToNext", void 0);
|
|
190
206
|
//# sourceMappingURL=updateBlock.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateBlock.dto.js","sourceRoot":"","sources":["../../../src/dto/block/updateBlock.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,qDAWyB;AACzB,kEAA8D;AAC9D,8DAA0D;AAC1D,sEAAmE;AACnE,oEAAgE;AAChE,gEAA4D;AAC5D,gFAAiF;AACjF,sFAAkF;AAElF,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"updateBlock.dto.js","sourceRoot":"","sources":["../../../src/dto/block/updateBlock.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAAiD;AACjD,qDAWyB;AACzB,kEAA8D;AAC9D,8DAA0D;AAC1D,sEAAmE;AACnE,oEAAgE;AAChE,gEAA4D;AAC5D,gFAAiF;AACjF,sFAAkF;AAElF,MAAa,cAAc;IAuJnB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;qaA/HK,MAAM,CAAC,MAAM,CAAC,8BAAa,CAAC,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IAAA,0BAAM,GAAE;;uDACgB"}
|
|
@@ -14,6 +14,7 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const nestjs_1 = require("../../nestjs");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const convertAndValidate_1 = require("../../util/convertAndValidate");
|
|
17
|
+
const class_validator_1 = require("class-validator");
|
|
17
18
|
class CreateChatBotDto {
|
|
18
19
|
static fromPlain(object) {
|
|
19
20
|
return (0, convertAndValidate_1.convertAndValidate)(CreateChatBotDto, object);
|
|
@@ -25,11 +26,13 @@ class CreateChatBotDto {
|
|
|
25
26
|
exports.CreateChatBotDto = CreateChatBotDto;
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, nestjs_1.ApiProperty)({ type: String, required: false }),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
28
30
|
(0, class_transformer_1.Expose)(),
|
|
29
31
|
__metadata("design:type", String)
|
|
30
32
|
], CreateChatBotDto.prototype, "userId", void 0);
|
|
31
33
|
__decorate([
|
|
32
34
|
(0, nestjs_1.ApiProperty)({ type: String, required: true }),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
33
36
|
(0, class_transformer_1.Expose)(),
|
|
34
37
|
__metadata("design:type", String)
|
|
35
38
|
], CreateChatBotDto.prototype, "content", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createChatBot.dto.js","sourceRoot":"","sources":["../../../src/dto/chatBot/createChatBot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAA2C;AAC3C,sEAAmE;
|
|
1
|
+
{"version":3,"file":"createChatBot.dto.js","sourceRoot":"","sources":["../../../src/dto/chatBot/createChatBot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAA2C;AAC3C,yDAA2C;AAC3C,sEAAmE;AAEnE,qDAAyC;AAEzC,MAAa,gBAAgB;IAWrB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;;;CACD;AAdD,4CAcC;AAVA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;gDACM;AAKf;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;iDACO"}
|
|
@@ -14,39 +14,45 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const role_enum_1 = require("../../enum/role.enum");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const convertAndValidate_1 = require("../../util/convertAndValidate");
|
|
17
|
+
const class_validator_1 = require("class-validator");
|
|
17
18
|
class UserAzureJwtDataDto {
|
|
18
19
|
static fromPlain(object) {
|
|
19
20
|
return (0, convertAndValidate_1.convertAndValidate)(UserAzureJwtDataDto, object);
|
|
20
21
|
}
|
|
21
22
|
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
-
return { authId: { required: true, type: () => String }, role: { required: true, enum: require("../../enum/role.enum").RoleEnum }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, email: { required: true, type: () => String } };
|
|
23
|
+
return { authId: { required: true, type: () => String }, role: { required: true, enum: require("../../enum/role.enum").RoleEnum, enum: Object.values(role_enum_1.RoleEnum) }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, email: { required: true, type: () => String } };
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
exports.UserAzureJwtDataDto = UserAzureJwtDataDto;
|
|
26
27
|
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
27
29
|
(0, class_transformer_1.Expose)({
|
|
28
30
|
name: 'oid',
|
|
29
31
|
}),
|
|
30
32
|
__metadata("design:type", String)
|
|
31
33
|
], UserAzureJwtDataDto.prototype, "authId", void 0);
|
|
32
34
|
__decorate([
|
|
35
|
+
(0, class_validator_1.IsIn)(Object.values(role_enum_1.RoleEnum)),
|
|
33
36
|
(0, class_transformer_1.Expose)(),
|
|
34
37
|
(0, class_transformer_1.Transform)(({ obj }) => { var _a, _b; return (_b = (_a = obj['roles']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.toUpperCase(); }),
|
|
35
38
|
__metadata("design:type", String)
|
|
36
39
|
], UserAzureJwtDataDto.prototype, "role", void 0);
|
|
37
40
|
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
38
42
|
(0, class_transformer_1.Expose)({
|
|
39
43
|
name: 'given_name',
|
|
40
44
|
}),
|
|
41
45
|
__metadata("design:type", String)
|
|
42
46
|
], UserAzureJwtDataDto.prototype, "firstName", void 0);
|
|
43
47
|
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
44
49
|
(0, class_transformer_1.Expose)({
|
|
45
50
|
name: 'family_name',
|
|
46
51
|
}),
|
|
47
52
|
__metadata("design:type", String)
|
|
48
53
|
], UserAzureJwtDataDto.prototype, "lastName", void 0);
|
|
49
54
|
__decorate([
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
50
56
|
(0, class_transformer_1.Expose)({
|
|
51
57
|
name: 'email',
|
|
52
58
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userAzureJwtData.dto.js","sourceRoot":"","sources":["../../../src/dto/user/userAzureJwtData.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oDAAgD;AAChD,yDAAsD;AACtD,sEAAmE;
|
|
1
|
+
{"version":3,"file":"userAzureJwtData.dto.js","sourceRoot":"","sources":["../../../src/dto/user/userAzureJwtData.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oDAAgD;AAChD,yDAAsD;AACtD,sEAAmE;AACnE,qDAA+C;AAE/C,MAAa,mBAAmB;IA8BxB,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;;+IAzBK,MAAM,CAAC,MAAM,CAAC,oBAAQ,CAAC;;CA0B7B;AAjCD,kDAiCC;AA5BA;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,EAAC;QACP,IAAI,EAAE,KAAK;KACX,CAAC;;mDACa;AAKf;IAHC,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,oBAAQ,CAAC,CAAC;IAC7B,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,eAAC,OAAA,MAAA,MAAA,GAAG,CAAC,OAAO,CAAC,0CAAG,CAAC,CAAC,0CAAE,WAAW,EAAE,CAAA,EAAA,CAAC;;iDAC1C;AAMf;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,EAAC;QACP,IAAI,EAAE,YAAY;KAClB,CAAC;;sDACgB;AAMlB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,EAAC;QACP,IAAI,EAAE,aAAa;KACnB,CAAC;;qDACe;AAMjB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,EAAC;QACP,IAAI,EAAE,OAAO;KACb,CAAC;;kDACY"}
|