@rodrigobeber/patoai-dtos 3.22.13 → 3.22.14

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.
Files changed (60) hide show
  1. package/dist/agenda/index.d.ts +1 -1
  2. package/dist/agenda/index.js +1 -1
  3. package/dist/webchat/calendar/index.d.ts +0 -2
  4. package/dist/webchat/calendar/index.js +0 -2
  5. package/dist/webchat/calendar/webchat-create-appointment.dto.d.ts +2 -2
  6. package/package.json +1 -1
  7. package/dist/agenda/create-appointment.dto.d.ts +0 -18
  8. package/dist/agenda/create-appointment.dto.js +0 -2
  9. package/dist/calendar/appointment-filter.dto.d.ts +0 -12
  10. package/dist/calendar/appointment-filter.dto.js +0 -2
  11. package/dist/calendar/appointment-status.enum.d.ts +0 -7
  12. package/dist/calendar/appointment-status.enum.js +0 -11
  13. package/dist/calendar/availability-window.dto.d.ts +0 -5
  14. package/dist/calendar/availability-window.dto.js +0 -2
  15. package/dist/calendar/calendar-filter.dto.d.ts +0 -4
  16. package/dist/calendar/calendar-filter.dto.js +0 -2
  17. package/dist/calendar/calendar.dto.d.ts +0 -11
  18. package/dist/calendar/calendar.dto.js +0 -2
  19. package/dist/calendar/create-appointment.dto.d.ts +0 -15
  20. package/dist/calendar/create-appointment.dto.js +0 -2
  21. package/dist/calendar/create-availability.dto.d.ts +0 -9
  22. package/dist/calendar/create-availability.dto.js +0 -2
  23. package/dist/calendar/create-bulk-availability.dto.d.ts +0 -9
  24. package/dist/calendar/create-bulk-availability.dto.js +0 -2
  25. package/dist/calendar/create-calendar.dto.d.ts +0 -7
  26. package/dist/calendar/create-calendar.dto.js +0 -2
  27. package/dist/calendar/date-range.dto.d.ts +0 -4
  28. package/dist/calendar/date-range.dto.js +0 -2
  29. package/dist/calendar/index.d.ts +0 -17
  30. package/dist/calendar/index.js +0 -33
  31. package/dist/calendar/time-slot.dto.d.ts +0 -4
  32. package/dist/calendar/time-slot.dto.js +0 -2
  33. package/dist/calendar/update-appointment.dto.d.ts +0 -10
  34. package/dist/calendar/update-appointment.dto.js +0 -2
  35. package/dist/calendar/update-calendar.dto.d.ts +0 -7
  36. package/dist/calendar/update-calendar.dto.js +0 -2
  37. package/dist/calendar/upflows-appointment-response.dto.d.ts +0 -14
  38. package/dist/calendar/upflows-appointment-response.dto.js +0 -2
  39. package/dist/calendar/upflows-availability-response.dto.d.ts +0 -10
  40. package/dist/calendar/upflows-availability-response.dto.js +0 -2
  41. package/dist/calendar/upflows-available-slot.dto.d.ts +0 -6
  42. package/dist/calendar/upflows-available-slot.dto.js +0 -2
  43. package/dist/calendar/upflows-create-appointment.dto.d.ts +0 -17
  44. package/dist/calendar/upflows-create-appointment.dto.js +0 -2
  45. package/dist/calendar/upflows-delete-appointment.dto.d.ts +0 -6
  46. package/dist/calendar/upflows-delete-appointment.dto.js +0 -2
  47. package/dist/calendar/upflows-get-availability.dto.d.ts +0 -9
  48. package/dist/calendar/upflows-get-availability.dto.js +0 -2
  49. package/dist/webchat/calendar/webchat-calendar.dto.d.ts +0 -10
  50. package/dist/webchat/calendar/webchat-calendar.dto.js +0 -2
  51. package/dist/webchat/calendar/webchat-create-appointment.d.ts +0 -3
  52. package/dist/webchat/calendar/webchat-create-appointment.js +0 -2
  53. package/dist/webchat/calendar/webchat-delete-availability.dto.d.ts +0 -6
  54. package/dist/webchat/calendar/webchat-delete-availability.dto.js +0 -2
  55. package/dist/webchat/calendar/webchat-facility.dto.d.ts +0 -39
  56. package/dist/webchat/calendar/webchat-facility.dto.js +0 -2
  57. package/dist/webchat/calendar/webchat-service.dto.d.ts +0 -20
  58. package/dist/webchat/calendar/webchat-service.dto.js +0 -2
  59. package/dist/webchat/calendar/webchat-update-appointment.d.ts +0 -3
  60. package/dist/webchat/calendar/webchat-update-appointment.js +0 -2
@@ -1,5 +1,5 @@
1
1
  export * from './available-slot.dto';
2
2
  export * from './cancel-appointments.dto';
3
- export * from './create-appointment.dto';
3
+ export * from './create-appointments.dto';
4
4
  export * from './get-availability.dto';
5
5
  export * from './update-appointment.dto';
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./available-slot.dto"), exports);
18
18
  __exportStar(require("./cancel-appointments.dto"), exports);
19
- __exportStar(require("./create-appointment.dto"), exports);
19
+ __exportStar(require("./create-appointments.dto"), exports);
20
20
  __exportStar(require("./get-availability.dto"), exports);
21
21
  __exportStar(require("./update-appointment.dto"), exports);
@@ -1,10 +1,8 @@
1
1
  export * from './webchat-appointment.dto';
2
2
  export * from './webchat-availability.dto';
3
3
  export * from './webchat-available-slot.dto';
4
- export * from './webchat-calendar.dto';
5
4
  export * from './webchat-cancel-appointment.dto';
6
5
  export * from './webchat-create-appointment.dto';
7
6
  export * from './webchat-create-availability.dto';
8
- export * from './webchat-delete-availability.dto';
9
7
  export * from './webchat-professional.dto';
10
8
  export * from './webchat-update-appointment.dto';
@@ -17,10 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./webchat-appointment.dto"), exports);
18
18
  __exportStar(require("./webchat-availability.dto"), exports);
19
19
  __exportStar(require("./webchat-available-slot.dto"), exports);
20
- __exportStar(require("./webchat-calendar.dto"), exports);
21
20
  __exportStar(require("./webchat-cancel-appointment.dto"), exports);
22
21
  __exportStar(require("./webchat-create-appointment.dto"), exports);
23
22
  __exportStar(require("./webchat-create-availability.dto"), exports);
24
- __exportStar(require("./webchat-delete-availability.dto"), exports);
25
23
  __exportStar(require("./webchat-professional.dto"), exports);
26
24
  __exportStar(require("./webchat-update-appointment.dto"), exports);
@@ -1,3 +1,3 @@
1
- import { CreateAppointmentForProfessionalDto } from "../../agenda";
2
- export interface WebChatCreateAppointmentDto extends CreateAppointmentForProfessionalDto {
1
+ import { CreateAppointmentDto } from "../../agenda";
2
+ export interface WebChatCreateAppointmentDto extends CreateAppointmentDto {
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.22.13",
3
+ "version": "3.22.14",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,18 +0,0 @@
1
- export interface CreateAppointmentBaseDto {
2
- idThread: string;
3
- startAt: Date;
4
- endAt: Date;
5
- idHuman?: number;
6
- title?: string;
7
- note?: string;
8
- attendeeName?: string;
9
- attendeePhone?: string;
10
- attendeeEmail?: string;
11
- }
12
- export interface CreateAppointmentForCalendarDto extends CreateAppointmentBaseDto {
13
- calendarCode: string;
14
- idCrew: number;
15
- }
16
- export interface CreateAppointmentForProfessionalDto extends CreateAppointmentBaseDto {
17
- idProfessional: number;
18
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { AppointmentStatusEnum } from './appointment-status.enum';
2
- export interface AppointmentFilterDto {
3
- idProfessional?: number;
4
- idFacility?: number;
5
- idThread?: string;
6
- startDate?: Date;
7
- endDate?: Date;
8
- statuses?: AppointmentStatusEnum[];
9
- attendeePhone?: string;
10
- attendeeEmail?: string;
11
- limit?: number;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export declare enum AppointmentStatusEnum {
2
- SCHEDULED = "scheduled",
3
- PENDING = "pending",
4
- CANCELED = "canceled",
5
- COMPLETED = "completed",
6
- NO_SHOW = "no-show"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppointmentStatusEnum = void 0;
4
- var AppointmentStatusEnum;
5
- (function (AppointmentStatusEnum) {
6
- AppointmentStatusEnum["SCHEDULED"] = "scheduled";
7
- AppointmentStatusEnum["PENDING"] = "pending";
8
- AppointmentStatusEnum["CANCELED"] = "canceled";
9
- AppointmentStatusEnum["COMPLETED"] = "completed";
10
- AppointmentStatusEnum["NO_SHOW"] = "no-show";
11
- })(AppointmentStatusEnum || (exports.AppointmentStatusEnum = AppointmentStatusEnum = {}));
@@ -1,5 +0,0 @@
1
- export interface AvailabilityWindowDto {
2
- idProfessional: number;
3
- idCalendar: number;
4
- window: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface CalendarFilterDto {
2
- idCrew?: number;
3
- active?: boolean;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- export interface CalendarDto {
2
- id: number;
3
- idCrew: number;
4
- code: string;
5
- name: string;
6
- location?: string;
7
- color?: string;
8
- active: boolean;
9
- createdAt: Date;
10
- updatedAt: Date;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import { AppointmentStatusEnum } from './appointment-status.enum';
2
- export interface CreateAppointmentDto {
3
- idProfessional: number;
4
- idService?: number;
5
- idFacility: 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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- export interface AvailabilityPeriodDto {
2
- startAt: string;
3
- endAt: string;
4
- }
5
- export interface CreateAvailabilityDto {
6
- idProfessional: number;
7
- idFacility: number;
8
- periods: AvailabilityPeriodDto[];
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { DateRangeDto } from './date-range.dto';
2
- import { TimeSlotDto } from './time-slot.dto';
3
- export interface CreateBulkAvailabilityDto {
4
- idProfessionals: number[];
5
- idFacility: number;
6
- dateRange: DateRangeDto;
7
- timeSlots: TimeSlotDto[];
8
- weekDays?: number[];
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export interface CreateCalendarDto {
2
- idCrew: number;
3
- code: string;
4
- name: string;
5
- location?: string;
6
- color?: string;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface DateRangeDto {
2
- startDate: Date;
3
- endDate: Date;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- export * from './appointment-status.enum';
2
- export * from './appointment-filter.dto';
3
- export * from './calendar.dto';
4
- export * from './calendar-filter.dto';
5
- export * from './create-appointment.dto';
6
- export * from './create-availability.dto';
7
- export * from './create-bulk-availability.dto';
8
- export * from './create-calendar.dto';
9
- export * from './date-range.dto';
10
- export * from './time-slot.dto';
11
- export * from './update-calendar.dto';
12
- export * from './upflows-get-availability.dto';
13
- export * from './upflows-available-slot.dto';
14
- export * from './upflows-availability-response.dto';
15
- export * from './upflows-create-appointment.dto';
16
- export * from './upflows-appointment-response.dto';
17
- export * from './upflows-delete-appointment.dto';
@@ -1,33 +0,0 @@
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("./appointment-status.enum"), exports);
18
- __exportStar(require("./appointment-filter.dto"), exports);
19
- __exportStar(require("./calendar.dto"), exports);
20
- __exportStar(require("./calendar-filter.dto"), exports);
21
- __exportStar(require("./create-appointment.dto"), exports);
22
- __exportStar(require("./create-availability.dto"), exports);
23
- __exportStar(require("./create-bulk-availability.dto"), exports);
24
- __exportStar(require("./create-calendar.dto"), exports);
25
- __exportStar(require("./date-range.dto"), exports);
26
- __exportStar(require("./time-slot.dto"), exports);
27
- __exportStar(require("./update-calendar.dto"), exports);
28
- __exportStar(require("./upflows-get-availability.dto"), exports);
29
- __exportStar(require("./upflows-available-slot.dto"), exports);
30
- __exportStar(require("./upflows-availability-response.dto"), exports);
31
- __exportStar(require("./upflows-create-appointment.dto"), exports);
32
- __exportStar(require("./upflows-appointment-response.dto"), exports);
33
- __exportStar(require("./upflows-delete-appointment.dto"), exports);
@@ -1,4 +0,0 @@
1
- export interface TimeSlotDto {
2
- startTime: string;
3
- endTime: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export interface UpdateCalendarDto {
2
- code?: string;
3
- name?: string;
4
- location?: string;
5
- color?: string;
6
- active?: boolean;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- export interface UpflowsAppointmentResponseDto {
2
- instruction?: string;
3
- error?: string;
4
- event?: {
5
- id: number;
6
- uid?: string;
7
- title?: string;
8
- description?: string;
9
- meetingUrl?: string;
10
- location?: string;
11
- start: string;
12
- durationMinutes: number;
13
- };
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { UpflowsAvailableSlotDto } from "./upflows-available-slot.dto";
2
- export interface UpflowsAvailabilityDto {
3
- nearestBefore: UpflowsAvailableSlotDto[];
4
- daysResearch: UpflowsAvailableSlotDto[];
5
- nearestAfter: UpflowsAvailableSlotDto[];
6
- }
7
- export interface UpflowsAvailabilityResponseDto {
8
- availability: UpflowsAvailabilityDto;
9
- timezone: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface UpflowsAvailableSlotDto {
2
- start: string;
3
- end: string;
4
- idProfessional: number;
5
- idFacilityRoom: number;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- export interface UpflowsCreateAppointmentDto {
2
- idCrew: number;
3
- idThread: string;
4
- idProfessional: number;
5
- idFacilityRoom: number;
6
- facilityCode: string;
7
- serviceCode: string;
8
- start: string;
9
- duration: number;
10
- title?: string;
11
- note?: string;
12
- attendeeName?: string;
13
- attendeePhone?: string;
14
- attendeeEmail?: string;
15
- fixedLocation?: string;
16
- idRescheduleOf?: number | null;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface UpflowsDeleteAppointmentDto {
2
- idThread: string;
3
- idCrew: number;
4
- idAppointment: number;
5
- reason?: string;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- export interface UpflowsGetAvailabilityDto {
2
- idCrew: number;
3
- idThread: string;
4
- facilityCode: string;
5
- serviceCode: string;
6
- timeMin: string;
7
- timeMax: string;
8
- offset: number;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- export interface WebChatCalendarDto {
2
- id: number;
3
- idCrew: number;
4
- code: string;
5
- name: string;
6
- offset: number;
7
- duration: number;
8
- color: string;
9
- active: boolean;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { CreateAppointmentDto } from "../../agenda";
2
- export interface WebChatCreateAppointmentDto extends CreateAppointmentDto {
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface WebChatDeleteAvailabilityDto {
2
- periods: Array<{
3
- startAt: Date;
4
- endAt: Date;
5
- }>;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
1
- export interface WebChatCreateFacilityDto {
2
- name: string;
3
- code: string;
4
- color?: string;
5
- active?: boolean;
6
- }
7
- export interface WebChatUpdateFacilityDto {
8
- name?: string;
9
- code?: string;
10
- color?: string;
11
- active?: boolean;
12
- }
13
- export interface WebChatFacilityDto {
14
- id: number;
15
- idCrew: number;
16
- name: string;
17
- code: string;
18
- color?: string;
19
- active: boolean;
20
- rooms?: WebChatFacilityRoomDto[];
21
- }
22
- export interface WebChatCreateFacilityRoomDto {
23
- name: string;
24
- active?: boolean;
25
- }
26
- export interface WebChatUpdateFacilityRoomDto {
27
- name?: string;
28
- active?: boolean;
29
- }
30
- export interface WebChatFacilityRoomDto {
31
- id: number;
32
- idFacility: number;
33
- name: string;
34
- active: boolean;
35
- facility?: {
36
- id: number;
37
- name: string;
38
- };
39
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- export interface WebChatCreateServiceDto {
2
- name: string;
3
- code: string;
4
- duration: number;
5
- active?: boolean;
6
- }
7
- export interface WebChatUpdateServiceDto {
8
- name?: string;
9
- code?: string;
10
- duration?: number;
11
- active?: boolean;
12
- }
13
- export interface WebChatServiceDto {
14
- id: number;
15
- idCrew: number;
16
- name: string;
17
- code: string;
18
- duration: number;
19
- active: boolean;
20
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { UpdateAppointmentDto } from "../../agenda";
2
- export interface WebChatUpdateAppointmentDto extends UpdateAppointmentDto {
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });