@rodrigobeber/patoai-dtos 3.21.7 → 3.21.8

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.
@@ -1,2 +1,4 @@
1
- export * from './webchat-create-appointment';
2
- export * from './webchat-update-appointment';
1
+ export * from './webchat-availability.dto';
2
+ export * from './webchat-create-appointment.dto';
3
+ export * from './webchat-professional.dto';
4
+ export * from './webchat-update-appointment.dto';
@@ -14,5 +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("./webchat-create-appointment"), exports);
18
- __exportStar(require("./webchat-update-appointment"), exports);
17
+ __exportStar(require("./webchat-availability.dto"), exports);
18
+ __exportStar(require("./webchat-create-appointment.dto"), exports);
19
+ __exportStar(require("./webchat-professional.dto"), exports);
20
+ __exportStar(require("./webchat-update-appointment.dto"), exports);
@@ -1,51 +1,6 @@
1
- import { CreateAvailabilityDto } from "../../calendar/create-availability.dto";
2
- export interface WebChatCreateAvailabilityDto extends CreateAvailabilityDto {
3
- }
4
- export interface WebChatUpdateAvailabilityDto {
5
- idFacility: number;
6
- startAt: string;
7
- endAt: string;
8
- }
9
- export interface WebChatCreateBulkAvailabilityDto {
10
- idProfessional: number;
11
- idFacility: number;
12
- intervals: {
13
- startAt: string;
14
- endAt: string;
15
- }[];
16
- }
17
1
  export interface WebChatAvailabilityDto {
18
2
  id: number;
19
3
  idProfessional: number;
20
- idFacility: number;
21
4
  startAt: Date;
22
5
  endAt: Date;
23
- active: boolean;
24
- professional?: {
25
- id: number;
26
- name: string;
27
- };
28
- facility?: {
29
- id: number;
30
- name: string;
31
- };
32
- }
33
- export interface WebChatFindAvailabilityByProfessionalDto {
34
- idProfessional: number;
35
- }
36
- export interface WebChatFindAvailabilityByProfessionalsDto {
37
- idProfessionals: number[];
38
- }
39
- export interface WebChatDeactivateAvailabilitiesDto {
40
- ids: number[];
41
- inactiveReason?: string;
42
- }
43
- export interface WebChatDeleteBulkAvailabilityDto {
44
- idProfessional: number;
45
- idFacility?: number;
46
- dateRange: {
47
- startDate: string;
48
- endDate: string;
49
- };
50
- weekDays?: number[];
51
6
  }
@@ -0,0 +1,3 @@
1
+ import { CreateAppointmentDto } from "../../agenda";
2
+ export interface WebChatCreateAppointmentDto extends CreateAppointmentDto {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +1,13 @@
1
1
  export interface WebChatCreateProfessionalDto {
2
2
  name: string;
3
- offset?: number;
4
- active?: boolean;
5
3
  }
6
4
  export interface WebChatUpdateProfessionalDto {
7
5
  name?: string;
8
- offset?: number;
9
6
  active?: boolean;
10
7
  }
11
8
  export interface WebChatProfessionalDto {
12
9
  id: number;
13
- idCrew: number;
14
10
  name: string;
15
- offset: number;
16
11
  active: boolean;
17
12
  createdAt: Date;
18
- services?: WebChatProfessionalServiceDto[];
19
- }
20
- export interface WebChatProfessionalServiceDto {
21
- idProfessional: number;
22
- idService: number;
23
- active: boolean;
24
- service?: {
25
- id: number;
26
- name: string;
27
- duration: number;
28
- };
29
- }
30
- export interface WebChatAddServiceToProfessionalDto {
31
- idService: number;
32
- }
33
- export interface WebChatRemoveServiceFromProfessionalDto {
34
- idService: number;
35
13
  }
@@ -0,0 +1,3 @@
1
+ import { UpdateAppointmentDto } from "../../agenda";
2
+ export interface WebChatUpdateAppointmentDto extends UpdateAppointmentDto {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.21.7",
3
+ "version": "3.21.8",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",