@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.
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export interface AvailabilityWindowDto {
2
2
  idProfessional: number;
3
+ idCalendar: number;
3
4
  window: string;
4
5
  }
@@ -0,0 +1,5 @@
1
+ export interface CalendarFilterDto {
2
+ idCrew?: number;
3
+ active?: boolean;
4
+ isDefault?: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface CalendarDto {
2
+ id: number;
3
+ idCrew: number;
4
+ name: string;
5
+ description?: string;
6
+ location?: string;
7
+ color?: string;
8
+ active: boolean;
9
+ isDefault: boolean;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  import { TimeSlotDto } from './time-slot.dto';
2
2
  export interface CreateAvailabilityDto {
3
3
  idProfessional: number;
4
+ idCalendar: number;
4
5
  date: Date;
5
6
  timeSlots: TimeSlotDto[];
6
7
  }
@@ -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[];
@@ -0,0 +1,8 @@
1
+ export interface CreateCalendarDto {
2
+ idCrew: number;
3
+ name: string;
4
+ description?: string;
5
+ location?: string;
6
+ color?: string;
7
+ isDefault?: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 './availability-window.dto';
11
+ export * from './time-slot.dto';
12
+ export * from './update-appointment.dto';
13
+ export * from './update-calendar.dto';
@@ -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("./availability-window.dto"), exports);
27
+ __exportStar(require("./time-slot.dto"), exports);
28
+ __exportStar(require("./update-appointment.dto"), exports);
29
+ __exportStar(require("./update-calendar.dto"), exports);
@@ -0,0 +1,10 @@
1
+ export interface UpdateAppointmentDto {
2
+ idService?: number;
3
+ startAt?: Date;
4
+ endAt?: Date;
5
+ attendeeName?: string;
6
+ attendeePhone?: string;
7
+ attendeeEmail?: string;
8
+ title?: string;
9
+ note?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface UpdateCalendarDto {
2
+ name?: string;
3
+ description?: string;
4
+ location?: string;
5
+ color?: string;
6
+ active?: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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;
@@ -11,7 +11,6 @@ export interface WebChatAvailabilityDto {
11
11
  active: boolean;
12
12
  inactiveReason?: string;
13
13
  createdAt: Date;
14
- updatedAt: Date;
15
14
  }
16
15
  export interface WebChatFindAvailabilityByProfessionalDto {
17
16
  idProfessional: number;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.18.11",
3
+ "version": "3.18.13",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",