tychat-contracts 1.3.15 → 1.3.17
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/legal-terms/legal-term-preview.dto.d.ts +1 -0
- package/dist/legal-terms/legal-term-preview.dto.d.ts.map +1 -1
- package/dist/legal-terms/legal-term-preview.dto.js +11 -0
- package/dist/legal-terms/legal-term-template.dto.d.ts +2 -0
- package/dist/legal-terms/legal-term-template.dto.d.ts.map +1 -1
- package/dist/legal-terms/legal-term-template.dto.js +21 -0
- package/package.json +1 -1
- package/src/legal-terms/legal-term-preview.dto.ts +10 -0
- package/src/legal-terms/legal-term-template.dto.ts +20 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal-term-preview.dto.d.ts","sourceRoot":"","sources":["../../src/legal-terms/legal-term-preview.dto.ts"],"names":[],"mappings":"AAGA,4FAA4F;AAC5F,qBAAa,0BAA0B;IAQrC,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAMvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"legal-term-preview.dto.d.ts","sourceRoot":"","sources":["../../src/legal-terms/legal-term-preview.dto.ts"],"names":[],"mappings":"AAGA,4FAA4F;AAC5F,qBAAa,0BAA0B;IAQrC,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAMvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAU9B,+BAA+B,CAAC,EAAE,MAAM,EAAE,CAAC;IAM3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,gBAAgB;IAI3B,YAAY,EAAE,MAAM,EAAE,CAAC;IASvB,eAAe,EAAE,MAAM,CAAC;IAMxB,WAAW,CAAC,EAAE,MAAM,CAAC;IASrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -18,6 +18,7 @@ class LegalTermPreviewRequestDto {
|
|
|
18
18
|
nome_paciente;
|
|
19
19
|
cpf_exemplo;
|
|
20
20
|
procedimento_nomes;
|
|
21
|
+
procedimento_efeitos_colaterais;
|
|
21
22
|
data_hora_iso;
|
|
22
23
|
}
|
|
23
24
|
exports.LegalTermPreviewRequestDto = LegalTermPreviewRequestDto;
|
|
@@ -52,6 +53,16 @@ __decorate([
|
|
|
52
53
|
(0, class_validator_1.IsString)({ each: true }),
|
|
53
54
|
__metadata("design:type", Array)
|
|
54
55
|
], LegalTermPreviewRequestDto.prototype, "procedimento_nomes", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
58
|
+
type: [String],
|
|
59
|
+
description: 'Efeitos colaterais na mesma ordem que `procedimento_nomes` (prévia de {{ table_side_effects_en_list }})',
|
|
60
|
+
}),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsArray)(),
|
|
63
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], LegalTermPreviewRequestDto.prototype, "procedimento_efeitos_colaterais", void 0);
|
|
55
66
|
__decorate([
|
|
56
67
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Data/hora ISO 8601 para {{ data_hora }}' }),
|
|
57
68
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export declare class LegalTermTemplateDto {
|
|
2
2
|
id: string;
|
|
3
3
|
body_html: string;
|
|
4
|
+
mandatory_procedure_ids: string[];
|
|
4
5
|
createdAt: Date;
|
|
5
6
|
updatedAt: Date;
|
|
6
7
|
}
|
|
7
8
|
export declare class UpsertLegalTermTemplateDto {
|
|
8
9
|
body_html: string;
|
|
10
|
+
mandatory_procedure_ids?: string[];
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=legal-term-template.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal-term-template.dto.d.ts","sourceRoot":"","sources":["../../src/legal-terms/legal-term-template.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAE/B,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"legal-term-template.dto.d.ts","sourceRoot":"","sources":["../../src/legal-terms/legal-term-template.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAE/B,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAOlB,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAGlC,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,qBAAa,0BAA0B;IAKrC,SAAS,EAAE,MAAM,CAAC;IAWlB,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;CACpC"}
|
|
@@ -15,6 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
class LegalTermTemplateDto {
|
|
16
16
|
id;
|
|
17
17
|
body_html;
|
|
18
|
+
mandatory_procedure_ids;
|
|
18
19
|
createdAt;
|
|
19
20
|
updatedAt;
|
|
20
21
|
}
|
|
@@ -27,6 +28,14 @@ __decorate([
|
|
|
27
28
|
(0, swagger_1.ApiProperty)({ description: 'HTML do termo (editor rico)' }),
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], LegalTermTemplateDto.prototype, "body_html", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
33
|
+
type: [String],
|
|
34
|
+
format: 'uuid',
|
|
35
|
+
description: 'IDs de procedimentos para os quais o envio do termo jurídico é obrigatório (subconjunto do cadastro)',
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], LegalTermTemplateDto.prototype, "mandatory_procedure_ids", void 0);
|
|
30
39
|
__decorate([
|
|
31
40
|
(0, swagger_1.ApiProperty)(),
|
|
32
41
|
__metadata("design:type", Date)
|
|
@@ -37,6 +46,7 @@ __decorate([
|
|
|
37
46
|
], LegalTermTemplateDto.prototype, "updatedAt", void 0);
|
|
38
47
|
class UpsertLegalTermTemplateDto {
|
|
39
48
|
body_html;
|
|
49
|
+
mandatory_procedure_ids;
|
|
40
50
|
}
|
|
41
51
|
exports.UpsertLegalTermTemplateDto = UpsertLegalTermTemplateDto;
|
|
42
52
|
__decorate([
|
|
@@ -46,3 +56,14 @@ __decorate([
|
|
|
46
56
|
(0, class_validator_1.MaxLength)(500_000),
|
|
47
57
|
__metadata("design:type", String)
|
|
48
58
|
], UpsertLegalTermTemplateDto.prototype, "body_html", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
61
|
+
type: [String],
|
|
62
|
+
format: 'uuid',
|
|
63
|
+
description: 'Se enviado, substitui a lista de procedimentos obrigatórios; omitir para manter o valor atual no servidor',
|
|
64
|
+
}),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsArray)(),
|
|
67
|
+
(0, class_validator_1.IsUUID)('4', { each: true }),
|
|
68
|
+
__metadata("design:type", Array)
|
|
69
|
+
], UpsertLegalTermTemplateDto.prototype, "mandatory_procedure_ids", void 0);
|
package/package.json
CHANGED
|
@@ -30,6 +30,16 @@ export class LegalTermPreviewRequestDto {
|
|
|
30
30
|
@IsString({ each: true })
|
|
31
31
|
procedimento_nomes?: string[];
|
|
32
32
|
|
|
33
|
+
@ApiPropertyOptional({
|
|
34
|
+
type: [String],
|
|
35
|
+
description:
|
|
36
|
+
'Efeitos colaterais na mesma ordem que `procedimento_nomes` (prévia de {{ table_side_effects_en_list }})',
|
|
37
|
+
})
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsArray()
|
|
40
|
+
@IsString({ each: true })
|
|
41
|
+
procedimento_efeitos_colaterais?: string[];
|
|
42
|
+
|
|
33
43
|
@ApiPropertyOptional({ description: 'Data/hora ISO 8601 para {{ data_hora }}' })
|
|
34
44
|
@IsOptional()
|
|
35
45
|
@IsString()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { IsString, MaxLength, MinLength } from 'class-validator';
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
2
|
+
import { IsArray, IsOptional, IsString, IsUUID, MaxLength, MinLength } from 'class-validator';
|
|
3
3
|
|
|
4
4
|
export class LegalTermTemplateDto {
|
|
5
5
|
@ApiProperty({ format: 'uuid' })
|
|
@@ -8,6 +8,13 @@ export class LegalTermTemplateDto {
|
|
|
8
8
|
@ApiProperty({ description: 'HTML do termo (editor rico)' })
|
|
9
9
|
body_html: string;
|
|
10
10
|
|
|
11
|
+
@ApiProperty({
|
|
12
|
+
type: [String],
|
|
13
|
+
format: 'uuid',
|
|
14
|
+
description: 'IDs de procedimentos para os quais o envio do termo jurídico é obrigatório (subconjunto do cadastro)',
|
|
15
|
+
})
|
|
16
|
+
mandatory_procedure_ids: string[];
|
|
17
|
+
|
|
11
18
|
@ApiProperty()
|
|
12
19
|
createdAt: Date;
|
|
13
20
|
|
|
@@ -21,4 +28,15 @@ export class UpsertLegalTermTemplateDto {
|
|
|
21
28
|
@MinLength(1)
|
|
22
29
|
@MaxLength(500_000)
|
|
23
30
|
body_html: string;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional({
|
|
33
|
+
type: [String],
|
|
34
|
+
format: 'uuid',
|
|
35
|
+
description:
|
|
36
|
+
'Se enviado, substitui a lista de procedimentos obrigatórios; omitir para manter o valor atual no servidor',
|
|
37
|
+
})
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsArray()
|
|
40
|
+
@IsUUID('4', { each: true })
|
|
41
|
+
mandatory_procedure_ids?: string[];
|
|
24
42
|
}
|