@rodrigobeber/patoai-dtos 3.18.9 → 3.18.11

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,4 @@
1
+ export interface AvailabilityWindowDto {
2
+ idProfessional: number;
3
+ window: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { TimeSlotDto } from './time-slot.dto';
2
+ export interface CreateAvailabilityDto {
3
+ idProfessional: number;
4
+ date: Date;
5
+ timeSlots: TimeSlotDto[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { DateRangeDto } from './date-range.dto';
2
+ import { TimeSlotDto } from './time-slot.dto';
3
+ export interface CreateBulkAvailabilityDto {
4
+ idProfessionals: number[];
5
+ dateRange: DateRangeDto;
6
+ timeSlots: TimeSlotDto[];
7
+ weekDays?: number[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface DateRangeDto {
2
+ startDate: Date;
3
+ endDate: Date;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,6 @@
1
1
  export * from './appointment-status.enum';
2
+ export * from './create-availability.dto';
3
+ export * from './time-slot.dto';
4
+ export * from './create-bulk-availability.dto';
5
+ export * from './date-range.dto';
6
+ export * from './availability-window.dto';
@@ -15,3 +15,8 @@ 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("./create-availability.dto"), exports);
19
+ __exportStar(require("./time-slot.dto"), exports);
20
+ __exportStar(require("./create-bulk-availability.dto"), exports);
21
+ __exportStar(require("./date-range.dto"), exports);
22
+ __exportStar(require("./availability-window.dto"), exports);
@@ -0,0 +1,4 @@
1
+ export interface TimeSlotDto {
2
+ startTime: string;
3
+ endTime: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from './webchat-appointment.dto';
2
+ export * from './webchat-availability.dto';
3
+ export * from './webchat-service.dto';
4
+ export * from './webchat-professional.dto';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./webchat-appointment.dto"), exports);
18
+ __exportStar(require("./webchat-availability.dto"), exports);
19
+ __exportStar(require("./webchat-service.dto"), exports);
20
+ __exportStar(require("./webchat-professional.dto"), exports);
@@ -0,0 +1,78 @@
1
+ import { AppointmentStatusEnum } from "../../calendar/appointment-status.enum";
2
+ export interface WebChatCreateAppointmentDto {
3
+ idProfessional: number;
4
+ idService?: number;
5
+ idThread: string;
6
+ startAt: Date;
7
+ endAt: Date;
8
+ attendeeName?: string;
9
+ attendeePhone?: string;
10
+ attendeeEmail?: string;
11
+ title?: string;
12
+ note?: string;
13
+ status?: AppointmentStatusEnum;
14
+ }
15
+ export interface WebChatUpdateAppointmentDto {
16
+ idService?: number;
17
+ startAt?: Date;
18
+ endAt?: Date;
19
+ attendeeName?: string;
20
+ attendeePhone?: string;
21
+ attendeeEmail?: string;
22
+ title?: string;
23
+ note?: string;
24
+ }
25
+ export interface WebChatAppointmentDto {
26
+ id: string;
27
+ idProfessional: number;
28
+ idService?: number;
29
+ idThread: string;
30
+ startAt: Date;
31
+ endAt: Date;
32
+ attendeeName?: string;
33
+ attendeePhone?: string;
34
+ attendeeEmail?: string;
35
+ title?: string;
36
+ note?: string;
37
+ status: AppointmentStatusEnum;
38
+ idRescheduleOf?: string;
39
+ createdAt: Date;
40
+ updatedAt: Date;
41
+ }
42
+ export interface WebChatAppointmentHistoryDto {
43
+ id: number;
44
+ idAppointment: string;
45
+ statusFrom?: AppointmentStatusEnum;
46
+ statusTo: AppointmentStatusEnum;
47
+ reason?: string;
48
+ idHuman?: number;
49
+ createdAt: Date;
50
+ }
51
+ export interface WebChatFindAppointmentsByProfessionalDto {
52
+ idProfessional: number;
53
+ limit?: number;
54
+ }
55
+ export interface WebChatFindAppointmentsByDateRangeDto {
56
+ startDate: Date;
57
+ endDate: Date;
58
+ statuses?: AppointmentStatusEnum[];
59
+ }
60
+ export interface WebChatFindAppointmentsByProfessionalAndDateRangeDto {
61
+ idProfessional: number;
62
+ startDate: Date;
63
+ endDate: Date;
64
+ statuses?: AppointmentStatusEnum[];
65
+ }
66
+ export interface WebChatFindAppointmentsByStatusDto {
67
+ status: AppointmentStatusEnum;
68
+ limit?: number;
69
+ }
70
+ export interface WebChatUpdateAppointmentStatusDto {
71
+ status: AppointmentStatusEnum;
72
+ reason?: string;
73
+ }
74
+ export interface WebChatRescheduleAppointmentDto {
75
+ newStartAt: Date;
76
+ newEndAt: Date;
77
+ reason?: string;
78
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import { CreateAvailabilityDto } from "../../calendar/create-availability.dto";
2
+ import { CreateBulkAvailabilityDto } from "../../calendar/create-bulk-availability.dto";
3
+ export interface WebChatCreateAvailabilityDto extends CreateAvailabilityDto {
4
+ }
5
+ export interface WebChatCreateBulkAvailabilityDto extends CreateBulkAvailabilityDto {
6
+ }
7
+ export interface WebChatAvailabilityDto {
8
+ id: number;
9
+ idProfessional: number;
10
+ window: string;
11
+ active: boolean;
12
+ inactiveReason?: string;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ }
16
+ export interface WebChatFindAvailabilityByProfessionalDto {
17
+ idProfessional: number;
18
+ }
19
+ export interface WebChatFindAvailabilityByProfessionalsDto {
20
+ idProfessionals: number[];
21
+ }
22
+ export interface WebChatDeactivateAvailabilitiesDto {
23
+ ids: number[];
24
+ inactiveReason?: string;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ export interface WebChatCreateProfessionalDto {
2
+ name: string;
3
+ email?: string;
4
+ phone?: string;
5
+ specialization?: string;
6
+ active?: boolean;
7
+ }
8
+ export interface WebChatUpdateProfessionalDto {
9
+ name?: string;
10
+ email?: string;
11
+ phone?: string;
12
+ specialization?: string;
13
+ active?: boolean;
14
+ }
15
+ export interface WebChatProfessionalDto {
16
+ id: number;
17
+ idCrew: number;
18
+ name: string;
19
+ email?: string;
20
+ phone?: string;
21
+ specialization?: string;
22
+ active: boolean;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ services?: WebChatProfessionalServiceDto[];
26
+ }
27
+ export interface WebChatProfessionalServiceDto {
28
+ id: number;
29
+ idProfessional: number;
30
+ idService: number;
31
+ active: boolean;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ service?: {
35
+ id: number;
36
+ name: string;
37
+ duration: number;
38
+ price?: number;
39
+ };
40
+ }
41
+ export interface WebChatAddServiceToProfessionalDto {
42
+ idService: number;
43
+ }
44
+ export interface WebChatRemoveServiceFromProfessionalDto {
45
+ idService: number;
46
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ export interface WebChatCreateServiceDto {
2
+ name: string;
3
+ description?: string;
4
+ duration: number;
5
+ price?: number;
6
+ active?: boolean;
7
+ }
8
+ export interface WebChatUpdateServiceDto {
9
+ name?: string;
10
+ description?: string;
11
+ duration?: number;
12
+ price?: number;
13
+ active?: boolean;
14
+ }
15
+ export interface WebChatServiceDto {
16
+ id: number;
17
+ idCrew: number;
18
+ name: string;
19
+ description?: string;
20
+ duration: number;
21
+ price?: number;
22
+ active: boolean;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from './calendar';
1
2
  export * from './crew';
2
3
  export * from './crm';
3
4
  export * from './handoff';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./calendar"), exports);
17
18
  __exportStar(require("./crew"), exports);
18
19
  __exportStar(require("./crm"), exports);
19
20
  __exportStar(require("./handoff"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.18.9",
3
+ "version": "3.18.11",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",