@rodrigobeber/patoai-dtos 3.18.11 → 3.18.13
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/calendar/appointment-filter.dto.d.ts +12 -0
- package/dist/calendar/appointment-filter.dto.js +2 -0
- package/dist/calendar/availability-window.dto.d.ts +1 -0
- package/dist/calendar/calendar-filter.dto.d.ts +5 -0
- package/dist/calendar/calendar-filter.dto.js +2 -0
- package/dist/calendar/calendar.dto.d.ts +12 -0
- package/dist/calendar/calendar.dto.js +2 -0
- package/dist/calendar/create-appointment.dto.d.ts +15 -0
- package/dist/calendar/create-appointment.dto.js +2 -0
- package/dist/calendar/create-availability.dto.d.ts +1 -0
- package/dist/calendar/create-bulk-availability.dto.d.ts +1 -0
- package/dist/calendar/create-calendar.dto.d.ts +8 -0
- package/dist/calendar/create-calendar.dto.js +2 -0
- package/dist/calendar/index.d.ts +9 -2
- package/dist/calendar/index.js +9 -2
- package/dist/calendar/update-appointment.dto.d.ts +10 -0
- package/dist/calendar/update-appointment.dto.js +2 -0
- package/dist/calendar/update-calendar.dto.d.ts +7 -0
- package/dist/calendar/update-calendar.dto.js +2 -0
- package/dist/webchat/calendar/webchat-appointment.dto.d.ts +2 -0
- package/dist/webchat/calendar/webchat-availability.dto.d.ts +0 -1
- package/dist/webchat/calendar/webchat-professional.dto.d.ts +0 -14
- package/dist/webchat/calendar/webchat-service.dto.d.ts +0 -8
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppointmentStatusEnum } from './appointment-status.enum';
|
|
2
|
+
export interface AppointmentFilterDto {
|
|
3
|
+
idProfessional?: number;
|
|
4
|
+
idCalendar?: number;
|
|
5
|
+
idThread?: string;
|
|
6
|
+
startDate?: Date;
|
|
7
|
+
endDate?: Date;
|
|
8
|
+
statuses?: AppointmentStatusEnum[];
|
|
9
|
+
attendeePhone?: string;
|
|
10
|
+
attendeeEmail?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppointmentStatusEnum } from './appointment-status.enum';
|
|
2
|
+
export interface CreateAppointmentDto {
|
|
3
|
+
idProfessional: number;
|
|
4
|
+
idService?: number;
|
|
5
|
+
idCalendar: number;
|
|
6
|
+
idThread: string;
|
|
7
|
+
startAt: Date;
|
|
8
|
+
endAt: Date;
|
|
9
|
+
attendeeName?: string;
|
|
10
|
+
attendeePhone?: string;
|
|
11
|
+
attendeeEmail?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
note?: string;
|
|
14
|
+
status?: AppointmentStatusEnum;
|
|
15
|
+
}
|
|
@@ -2,6 +2,7 @@ import { DateRangeDto } from './date-range.dto';
|
|
|
2
2
|
import { TimeSlotDto } from './time-slot.dto';
|
|
3
3
|
export interface CreateBulkAvailabilityDto {
|
|
4
4
|
idProfessionals: number[];
|
|
5
|
+
idCalendar: number;
|
|
5
6
|
dateRange: DateRangeDto;
|
|
6
7
|
timeSlots: TimeSlotDto[];
|
|
7
8
|
weekDays?: number[];
|
package/dist/calendar/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export * from './appointment-status.enum';
|
|
2
|
+
export * from './appointment-filter.dto';
|
|
3
|
+
export * from './availability-window.dto';
|
|
4
|
+
export * from './calendar.dto';
|
|
5
|
+
export * from './calendar-filter.dto';
|
|
6
|
+
export * from './create-appointment.dto';
|
|
2
7
|
export * from './create-availability.dto';
|
|
3
|
-
export * from './time-slot.dto';
|
|
4
8
|
export * from './create-bulk-availability.dto';
|
|
9
|
+
export * from './create-calendar.dto';
|
|
5
10
|
export * from './date-range.dto';
|
|
6
|
-
export * from './
|
|
11
|
+
export * from './time-slot.dto';
|
|
12
|
+
export * from './update-appointment.dto';
|
|
13
|
+
export * from './update-calendar.dto';
|
package/dist/calendar/index.js
CHANGED
|
@@ -15,8 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./appointment-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./appointment-filter.dto"), exports);
|
|
19
|
+
__exportStar(require("./availability-window.dto"), exports);
|
|
20
|
+
__exportStar(require("./calendar.dto"), exports);
|
|
21
|
+
__exportStar(require("./calendar-filter.dto"), exports);
|
|
22
|
+
__exportStar(require("./create-appointment.dto"), exports);
|
|
18
23
|
__exportStar(require("./create-availability.dto"), exports);
|
|
19
|
-
__exportStar(require("./time-slot.dto"), exports);
|
|
20
24
|
__exportStar(require("./create-bulk-availability.dto"), exports);
|
|
25
|
+
__exportStar(require("./create-calendar.dto"), exports);
|
|
21
26
|
__exportStar(require("./date-range.dto"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
27
|
+
__exportStar(require("./time-slot.dto"), exports);
|
|
28
|
+
__exportStar(require("./update-appointment.dto"), exports);
|
|
29
|
+
__exportStar(require("./update-calendar.dto"), exports);
|
|
@@ -2,6 +2,7 @@ import { AppointmentStatusEnum } from "../../calendar/appointment-status.enum";
|
|
|
2
2
|
export interface WebChatCreateAppointmentDto {
|
|
3
3
|
idProfessional: number;
|
|
4
4
|
idService?: number;
|
|
5
|
+
idCalendar: number;
|
|
5
6
|
idThread: string;
|
|
6
7
|
startAt: Date;
|
|
7
8
|
endAt: Date;
|
|
@@ -26,6 +27,7 @@ export interface WebChatAppointmentDto {
|
|
|
26
27
|
id: string;
|
|
27
28
|
idProfessional: number;
|
|
28
29
|
idService?: number;
|
|
30
|
+
idCalendar: number;
|
|
29
31
|
idThread: string;
|
|
30
32
|
startAt: Date;
|
|
31
33
|
endAt: Date;
|
|
@@ -1,41 +1,27 @@
|
|
|
1
1
|
export interface WebChatCreateProfessionalDto {
|
|
2
2
|
name: string;
|
|
3
|
-
email?: string;
|
|
4
|
-
phone?: string;
|
|
5
|
-
specialization?: string;
|
|
6
3
|
active?: boolean;
|
|
7
4
|
}
|
|
8
5
|
export interface WebChatUpdateProfessionalDto {
|
|
9
6
|
name?: string;
|
|
10
|
-
email?: string;
|
|
11
|
-
phone?: string;
|
|
12
|
-
specialization?: string;
|
|
13
7
|
active?: boolean;
|
|
14
8
|
}
|
|
15
9
|
export interface WebChatProfessionalDto {
|
|
16
10
|
id: number;
|
|
17
11
|
idCrew: number;
|
|
18
12
|
name: string;
|
|
19
|
-
email?: string;
|
|
20
|
-
phone?: string;
|
|
21
|
-
specialization?: string;
|
|
22
13
|
active: boolean;
|
|
23
14
|
createdAt: Date;
|
|
24
|
-
updatedAt: Date;
|
|
25
15
|
services?: WebChatProfessionalServiceDto[];
|
|
26
16
|
}
|
|
27
17
|
export interface WebChatProfessionalServiceDto {
|
|
28
|
-
id: number;
|
|
29
18
|
idProfessional: number;
|
|
30
19
|
idService: number;
|
|
31
20
|
active: boolean;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
updatedAt: Date;
|
|
34
21
|
service?: {
|
|
35
22
|
id: number;
|
|
36
23
|
name: string;
|
|
37
24
|
duration: number;
|
|
38
|
-
price?: number;
|
|
39
25
|
};
|
|
40
26
|
}
|
|
41
27
|
export interface WebChatAddServiceToProfessionalDto {
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
export interface WebChatCreateServiceDto {
|
|
2
2
|
name: string;
|
|
3
|
-
description?: string;
|
|
4
3
|
duration: number;
|
|
5
|
-
price?: number;
|
|
6
4
|
active?: boolean;
|
|
7
5
|
}
|
|
8
6
|
export interface WebChatUpdateServiceDto {
|
|
9
7
|
name?: string;
|
|
10
|
-
description?: string;
|
|
11
8
|
duration?: number;
|
|
12
|
-
price?: number;
|
|
13
9
|
active?: boolean;
|
|
14
10
|
}
|
|
15
11
|
export interface WebChatServiceDto {
|
|
16
12
|
id: number;
|
|
17
13
|
idCrew: number;
|
|
18
14
|
name: string;
|
|
19
|
-
description?: string;
|
|
20
15
|
duration: number;
|
|
21
|
-
price?: number;
|
|
22
16
|
active: boolean;
|
|
23
|
-
createdAt: Date;
|
|
24
|
-
updatedAt: Date;
|
|
25
17
|
}
|