tychat-contracts 1.0.131 → 1.0.133
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/appointments/appointment-calendar.dto.d.ts +1 -1
- package/dist/appointments/appointment-calendar.dto.d.ts.map +1 -1
- package/dist/appointments/appointment-calendar.dto.js +9 -6
- package/dist/notifications/notifications-kafka.payloads.d.ts.map +1 -1
- package/dist/notifications/notifications-kafka.payloads.js +1 -1
- package/package.json +1 -1
- package/src/appointments/appointment-calendar.dto.ts +8 -4
- package/src/notifications/notifications-kafka.payloads.ts +2 -1
|
@@ -6,12 +6,12 @@ export declare class AppointmentCalendarItemDto {
|
|
|
6
6
|
/** Agendamentos agrupados por dia civil (UTC a partir do timestamp do agendamento). */
|
|
7
7
|
export declare class AppointmentCalendarDayDto {
|
|
8
8
|
date: string;
|
|
9
|
+
countAppointment: number;
|
|
9
10
|
appointments: AppointmentCalendarItemDto[];
|
|
10
11
|
}
|
|
11
12
|
export declare class AppointmentCalendarResponseDto {
|
|
12
13
|
startDate: string;
|
|
13
14
|
endDate: string;
|
|
14
|
-
countAppointment: number;
|
|
15
15
|
days: AppointmentCalendarDayDto[];
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=appointment-calendar.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment-calendar.dto.d.ts","sourceRoot":"","sources":["../../src/appointments/appointment-calendar.dto.ts"],"names":[],"mappings":"AAEA,oCAAoC;AACpC,qBAAa,0BAA0B;IAErC,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,uFAAuF;AACvF,qBAAa,yBAAyB;IAKpC,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"appointment-calendar.dto.d.ts","sourceRoot":"","sources":["../../src/appointments/appointment-calendar.dto.ts"],"names":[],"mappings":"AAEA,oCAAoC;AACpC,qBAAa,0BAA0B;IAErC,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,uFAAuF;AACvF,qBAAa,yBAAyB;IAKpC,IAAI,EAAE,MAAM,CAAC;IAMb,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,0BAA0B,EAAE,CAAC;CAC5C;AAED,qBAAa,8BAA8B;IAEzC,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAOhB,IAAI,EAAE,yBAAyB,EAAE,CAAC;CACnC"}
|
|
@@ -31,6 +31,7 @@ __decorate([
|
|
|
31
31
|
/** Agendamentos agrupados por dia civil (UTC a partir do timestamp do agendamento). */
|
|
32
32
|
class AppointmentCalendarDayDto {
|
|
33
33
|
date;
|
|
34
|
+
countAppointment;
|
|
34
35
|
appointments;
|
|
35
36
|
}
|
|
36
37
|
exports.AppointmentCalendarDayDto = AppointmentCalendarDayDto;
|
|
@@ -41,6 +42,12 @@ __decorate([
|
|
|
41
42
|
}),
|
|
42
43
|
__metadata("design:type", String)
|
|
43
44
|
], AppointmentCalendarDayDto.prototype, "date", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({
|
|
47
|
+
description: 'Quantidade de agendamentos neste dia (UTC) dentro do intervalo solicitado.',
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], AppointmentCalendarDayDto.prototype, "countAppointment", void 0);
|
|
44
51
|
__decorate([
|
|
45
52
|
(0, swagger_1.ApiProperty)({ type: [AppointmentCalendarItemDto] }),
|
|
46
53
|
__metadata("design:type", Array)
|
|
@@ -48,7 +55,6 @@ __decorate([
|
|
|
48
55
|
class AppointmentCalendarResponseDto {
|
|
49
56
|
startDate;
|
|
50
57
|
endDate;
|
|
51
|
-
countAppointment;
|
|
52
58
|
days;
|
|
53
59
|
}
|
|
54
60
|
exports.AppointmentCalendarResponseDto = AppointmentCalendarResponseDto;
|
|
@@ -62,11 +68,8 @@ __decorate([
|
|
|
62
68
|
], AppointmentCalendarResponseDto.prototype, "endDate", void 0);
|
|
63
69
|
__decorate([
|
|
64
70
|
(0, swagger_1.ApiProperty)({
|
|
65
|
-
description: '
|
|
71
|
+
description: 'Um elemento por dia civil no intervalo (UTC). Em intervalos multi-dia, `appointments` traz no máximo 2 itens no total (pré-visualização global); `countAppointment` é sempre o total do dia.',
|
|
72
|
+
type: [AppointmentCalendarDayDto],
|
|
66
73
|
}),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], AppointmentCalendarResponseDto.prototype, "countAppointment", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, swagger_1.ApiProperty)({ type: [AppointmentCalendarDayDto] }),
|
|
71
74
|
__metadata("design:type", Array)
|
|
72
75
|
], AppointmentCalendarResponseDto.prototype, "days", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-kafka.payloads.d.ts","sourceRoot":"","sources":["../../src/notifications/notifications-kafka.payloads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notifications-kafka.payloads.d.ts","sourceRoot":"","sources":["../../src/notifications/notifications-kafka.payloads.ts"],"names":[],"mappings":"AAcA,qBAAa,mCAAmC;IAM9C,OAAO,EAAE,MAAM,CAAC;IAShB,MAAM,EAAE,MAAM,CAAC;IAQf,KAAK,EAAE,MAAM,CAAC;IASd,IAAI,EAAE,MAAM,CAAC;IASb,QAAQ,EAAE,MAAM,CAAC;IAOjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,8CAA8C;IAMzD,OAAO,EAAE,MAAM,CAAC;IAShB,MAAM,EAAE,MAAM,CAAC;IAQf,KAAK,EAAE,MAAM,CAAC;IASd,WAAW,EAAE,MAAM,CAAC;IAOpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,+FAA+F;AAC/F,qBAAa,iDAAiD;IAG5D,OAAO,EAAE,MAAM,CAAC;IAMhB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,MAAM,CAAC;IAKlB,WAAW,EAAE,MAAM,CAAC;IAMpB,MAAM,EAAE,MAAM,CAAC;IAIf,UAAU,EAAE,MAAM,CAAC;IAMnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAOhB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,aAAa,CAAC,EAAE,IAAI,GAAG,QAAQ,CAAC;CACjC"}
|
|
@@ -202,6 +202,6 @@ __decorate([
|
|
|
202
202
|
__decorate([
|
|
203
203
|
(0, swagger_1.ApiPropertyOptional)({ enum: ['ai', 'manual'] }),
|
|
204
204
|
(0, class_validator_1.IsOptional)(),
|
|
205
|
-
(0, class_validator_1.
|
|
205
|
+
(0, class_validator_1.IsIn)(['ai', 'manual']),
|
|
206
206
|
__metadata("design:type", String)
|
|
207
207
|
], NotificationConversationChangeToHumanEventPayload.prototype, "handoffSource", void 0);
|
package/package.json
CHANGED
|
@@ -20,6 +20,12 @@ export class AppointmentCalendarDayDto {
|
|
|
20
20
|
})
|
|
21
21
|
date: string;
|
|
22
22
|
|
|
23
|
+
@ApiProperty({
|
|
24
|
+
description:
|
|
25
|
+
'Quantidade de agendamentos neste dia (UTC) dentro do intervalo solicitado.',
|
|
26
|
+
})
|
|
27
|
+
countAppointment: number;
|
|
28
|
+
|
|
23
29
|
@ApiProperty({ type: [AppointmentCalendarItemDto] })
|
|
24
30
|
appointments: AppointmentCalendarItemDto[];
|
|
25
31
|
}
|
|
@@ -33,10 +39,8 @@ export class AppointmentCalendarResponseDto {
|
|
|
33
39
|
|
|
34
40
|
@ApiProperty({
|
|
35
41
|
description:
|
|
36
|
-
'
|
|
42
|
+
'Um elemento por dia civil no intervalo (UTC). Em intervalos multi-dia, `appointments` traz no máximo 2 itens no total (pré-visualização global); `countAppointment` é sempre o total do dia.',
|
|
43
|
+
type: [AppointmentCalendarDayDto],
|
|
37
44
|
})
|
|
38
|
-
countAppointment: number;
|
|
39
|
-
|
|
40
|
-
@ApiProperty({ type: [AppointmentCalendarDayDto] })
|
|
41
45
|
days: AppointmentCalendarDayDto[];
|
|
42
46
|
}
|
|
@@ -2,6 +2,7 @@ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
|
2
2
|
import {
|
|
3
3
|
IsBoolean,
|
|
4
4
|
IsEmail,
|
|
5
|
+
IsIn,
|
|
5
6
|
IsISO8601,
|
|
6
7
|
IsNumber,
|
|
7
8
|
IsOptional,
|
|
@@ -155,6 +156,6 @@ export class NotificationConversationChangeToHumanEventPayload {
|
|
|
155
156
|
|
|
156
157
|
@ApiPropertyOptional({ enum: ['ai', 'manual'] })
|
|
157
158
|
@IsOptional()
|
|
158
|
-
@
|
|
159
|
+
@IsIn(['ai', 'manual'])
|
|
159
160
|
handoffSource?: 'ai' | 'manual';
|
|
160
161
|
}
|