tychat-contracts 1.6.24 → 1.6.26
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/configurations/clinic-configuration.dto.d.ts +1 -0
- package/dist/configurations/clinic-configuration.dto.d.ts.map +1 -1
- package/dist/configurations/clinic-configuration.dto.js +9 -0
- package/dist/configurations/update-clinic-configuration.dto.d.ts +1 -0
- package/dist/configurations/update-clinic-configuration.dto.d.ts.map +1 -1
- package/dist/configurations/update-clinic-configuration.dto.js +11 -0
- package/dist/notifications/notification-list-item.dto.d.ts +1 -0
- package/dist/notifications/notification-list-item.dto.d.ts.map +1 -1
- package/dist/notifications/notification-list-item.dto.js +9 -0
- package/package.json +1 -1
- package/src/configurations/clinic-configuration.dto.ts +8 -0
- package/src/configurations/update-clinic-configuration.dto.ts +11 -0
- package/src/notifications/notification-list-item.dto.ts +8 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clinic-configuration.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/clinic-configuration.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;GAEG;AACH,qBAAa,sBAAsB;IAKjC,EAAE,EAAE,MAAM,CAAC;IAMX,aAAa,EAAE,mBAAmB,EAAE,CAAC;IAOrC,uBAAuB,CAAC,EAAE,uBAAuB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"clinic-configuration.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/clinic-configuration.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;GAEG;AACH,qBAAa,sBAAsB;IAKjC,EAAE,EAAE,MAAM,CAAC;IAMX,aAAa,EAAE,mBAAmB,EAAE,CAAC;IAOrC,uBAAuB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAQpD,uCAAuC,CAAC,EAAE,OAAO,CAAC;IAMlD,SAAS,EAAE,IAAI,CAAC;IAMhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -20,6 +20,7 @@ class ClinicConfigurationDto {
|
|
|
20
20
|
id;
|
|
21
21
|
opening_hours;
|
|
22
22
|
anamnesis_custom_fields;
|
|
23
|
+
whatsapp_ia_schedule_consultation_first;
|
|
23
24
|
createdAt;
|
|
24
25
|
updatedAt;
|
|
25
26
|
}
|
|
@@ -46,6 +47,14 @@ __decorate([
|
|
|
46
47
|
}),
|
|
47
48
|
__metadata("design:type", Array)
|
|
48
49
|
], ClinicConfigurationDto.prototype, "anamnesis_custom_fields", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'Quando true, agendamentos via WhatsApp com IA devem abrir consulta primeiro.',
|
|
53
|
+
required: false,
|
|
54
|
+
default: false,
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], ClinicConfigurationDto.prototype, "whatsapp_ia_schedule_consultation_first", void 0);
|
|
49
58
|
__decorate([
|
|
50
59
|
(0, swagger_1.ApiProperty)({
|
|
51
60
|
description: 'Creation timestamp',
|
|
@@ -3,5 +3,6 @@ import { AnamnesisCustomFieldDto } from './anamnesis-custom-field.dto';
|
|
|
3
3
|
export declare class UpdateClinicConfigurationDto {
|
|
4
4
|
opening_hours: OpeningHoursSlotDto[];
|
|
5
5
|
anamnesis_custom_fields?: AnamnesisCustomFieldDto[];
|
|
6
|
+
whatsapp_ia_schedule_consultation_first?: boolean;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=update-clinic-configuration.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-clinic-configuration.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/update-clinic-configuration.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-clinic-configuration.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/update-clinic-configuration.dto.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,qBAAa,4BAA4B;IAYvC,aAAa,EAAE,mBAAmB,EAAE,CAAC;IAerC,uBAAuB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAUpD,uCAAuC,CAAC,EAAE,OAAO,CAAC;CACnD"}
|
|
@@ -18,6 +18,7 @@ const anamnesis_custom_field_dto_1 = require("./anamnesis-custom-field.dto");
|
|
|
18
18
|
class UpdateClinicConfigurationDto {
|
|
19
19
|
opening_hours;
|
|
20
20
|
anamnesis_custom_fields;
|
|
21
|
+
whatsapp_ia_schedule_consultation_first;
|
|
21
22
|
}
|
|
22
23
|
exports.UpdateClinicConfigurationDto = UpdateClinicConfigurationDto;
|
|
23
24
|
__decorate([
|
|
@@ -50,3 +51,13 @@ __decorate([
|
|
|
50
51
|
(0, class_transformer_1.Type)(() => anamnesis_custom_field_dto_1.AnamnesisCustomFieldDto),
|
|
51
52
|
__metadata("design:type", Array)
|
|
52
53
|
], UpdateClinicConfigurationDto.prototype, "anamnesis_custom_fields", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)({
|
|
56
|
+
description: 'Quando true, agendamentos via WhatsApp com IA devem marcar primeiro consulta e registrar procedimentos como interesse do paciente.',
|
|
57
|
+
required: false,
|
|
58
|
+
default: false,
|
|
59
|
+
}),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsBoolean)(),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], UpdateClinicConfigurationDto.prototype, "whatsapp_ia_schedule_consultation_first", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-list-item.dto.d.ts","sourceRoot":"","sources":["../../src/notifications/notification-list-item.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAElG,0EAA0E;AAC1E,qBAAa,uBAAuB;IAElC,EAAE,EAAE,MAAM,CAAC;IAGX,iBAAiB,EAAE,MAAM,CAAC;IAG1B,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAOf,IAAI,EAAE,qBAAqB,CAAC;IAG5B,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAMlB,MAAM,EAAE,OAAO,CAAC;IAOhB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
|
|
1
|
+
{"version":3,"file":"notification-list-item.dto.d.ts","sourceRoot":"","sources":["../../src/notifications/notification-list-item.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAElG,0EAA0E;AAC1E,qBAAa,uBAAuB;IAElC,EAAE,EAAE,MAAM,CAAC;IAGX,iBAAiB,EAAE,MAAM,CAAC;IAG1B,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAOf,IAAI,EAAE,qBAAqB,CAAC;IAG5B,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAMlB,MAAM,EAAE,OAAO,CAAC;IAOhB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,cAAc,CAAC,EAAE,MAAM,CAAC;IAOxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
|
|
@@ -23,6 +23,7 @@ class NotificationListItemDto {
|
|
|
23
23
|
updatedAt;
|
|
24
24
|
viewed;
|
|
25
25
|
viewedAt;
|
|
26
|
+
alertViewCount;
|
|
26
27
|
userId;
|
|
27
28
|
title;
|
|
28
29
|
body;
|
|
@@ -75,6 +76,14 @@ __decorate([
|
|
|
75
76
|
}),
|
|
76
77
|
__metadata("design:type", Object)
|
|
77
78
|
], NotificationListItemDto.prototype, "viewedAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, swagger_1.ApiProperty)({
|
|
81
|
+
description: 'Quantidade de vezes que o alerta foi visualizado/fechado pelo utilizador no modal de login.',
|
|
82
|
+
example: 0,
|
|
83
|
+
required: false,
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], NotificationListItemDto.prototype, "alertViewCount", void 0);
|
|
78
87
|
__decorate([
|
|
79
88
|
(0, swagger_1.ApiProperty)({
|
|
80
89
|
description: 'Utilizador destinatário (quando aplicável, ex.: push)',
|
package/package.json
CHANGED
|
@@ -25,6 +25,14 @@ export class ClinicConfigurationDto {
|
|
|
25
25
|
})
|
|
26
26
|
anamnesis_custom_fields?: AnamnesisCustomFieldDto[];
|
|
27
27
|
|
|
28
|
+
@ApiProperty({
|
|
29
|
+
description:
|
|
30
|
+
'Quando true, agendamentos via WhatsApp com IA devem abrir consulta primeiro.',
|
|
31
|
+
required: false,
|
|
32
|
+
default: false,
|
|
33
|
+
})
|
|
34
|
+
whatsapp_ia_schedule_consultation_first?: boolean;
|
|
35
|
+
|
|
28
36
|
@ApiProperty({
|
|
29
37
|
description: 'Creation timestamp',
|
|
30
38
|
example: '2026-03-10T12:00:00.000Z',
|
|
@@ -2,6 +2,7 @@ import { ApiProperty } from '@nestjs/swagger';
|
|
|
2
2
|
import { Type } from 'class-transformer';
|
|
3
3
|
import {
|
|
4
4
|
IsArray,
|
|
5
|
+
IsBoolean,
|
|
5
6
|
IsOptional,
|
|
6
7
|
ValidateNested,
|
|
7
8
|
} from 'class-validator';
|
|
@@ -36,4 +37,14 @@ export class UpdateClinicConfigurationDto {
|
|
|
36
37
|
@ValidateNested({ each: true })
|
|
37
38
|
@Type(() => AnamnesisCustomFieldDto)
|
|
38
39
|
anamnesis_custom_fields?: AnamnesisCustomFieldDto[];
|
|
40
|
+
|
|
41
|
+
@ApiProperty({
|
|
42
|
+
description:
|
|
43
|
+
'Quando true, agendamentos via WhatsApp com IA devem marcar primeiro consulta e registrar procedimentos como interesse do paciente.',
|
|
44
|
+
required: false,
|
|
45
|
+
default: false,
|
|
46
|
+
})
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsBoolean()
|
|
49
|
+
whatsapp_ia_schedule_consultation_first?: boolean;
|
|
39
50
|
}
|
|
@@ -41,6 +41,14 @@ export class NotificationListItemDto {
|
|
|
41
41
|
})
|
|
42
42
|
viewedAt: string | null;
|
|
43
43
|
|
|
44
|
+
@ApiProperty({
|
|
45
|
+
description:
|
|
46
|
+
'Quantidade de vezes que o alerta foi visualizado/fechado pelo utilizador no modal de login.',
|
|
47
|
+
example: 0,
|
|
48
|
+
required: false,
|
|
49
|
+
})
|
|
50
|
+
alertViewCount?: number;
|
|
51
|
+
|
|
44
52
|
@ApiProperty({
|
|
45
53
|
description: 'Utilizador destinatário (quando aplicável, ex.: push)',
|
|
46
54
|
nullable: true,
|