@rodrigobeber/patoai-dtos 3.19.23 → 3.19.25

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.
@@ -4,5 +4,6 @@ export interface CreateScheduleDto {
4
4
  idThread: string;
5
5
  appointmentAt: Date;
6
6
  eventId: string;
7
+ oldId: string | null;
7
8
  stageType: StageTypeEnum | null;
8
9
  }
@@ -78,3 +78,46 @@ export interface WebChatRescheduleAppointmentDto {
78
78
  newEndAt: Date;
79
79
  reason?: string;
80
80
  }
81
+ export interface WebChatGetAvailableSlotsDto {
82
+ idCrew: number;
83
+ idFacility: number;
84
+ idProfessional?: number;
85
+ idService?: number;
86
+ startDate: Date;
87
+ endDate: Date;
88
+ }
89
+ export interface WebChatAvailableSlotDto {
90
+ startAt: Date;
91
+ endAt: Date;
92
+ idProfessional: number;
93
+ idFacilityRoom: number;
94
+ }
95
+ export interface WebChatGetAppointmentsByFacilityDto {
96
+ idFacility: number;
97
+ startDate: Date;
98
+ endDate: Date;
99
+ idProfessional?: number;
100
+ statuses?: AppointmentStatusEnum[];
101
+ }
102
+ export interface WebChatAppointmentDetailsDto extends WebChatAppointmentDto {
103
+ professional?: {
104
+ id: number;
105
+ name: string;
106
+ };
107
+ facilityRoom?: {
108
+ id: number;
109
+ name: string;
110
+ idFacility: number;
111
+ };
112
+ service?: {
113
+ id: number;
114
+ name: string;
115
+ duration: number;
116
+ };
117
+ thread?: {
118
+ id: string;
119
+ name: string;
120
+ phone: string;
121
+ };
122
+ history?: WebChatAppointmentHistoryDto[];
123
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.19.23",
3
+ "version": "3.19.25",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",