@rodrigobeber/patoai-dtos 3.33.8 → 3.34.1

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.
@@ -5,7 +5,7 @@ export interface SetLeadStageDto {
5
5
  idStage: number;
6
6
  idHuman: number | null;
7
7
  idChangedBy?: number | null;
8
- idChannel: number;
8
+ idUnit: number;
9
9
  source: 'human' | 'ai' | 'external';
10
10
  escalated: boolean;
11
11
  paid?: number;
@@ -15,5 +15,5 @@ export interface SetLeadStageByTypeDto {
15
15
  idCrew: number;
16
16
  stageType: StageTypeEnum;
17
17
  idHuman: number | null;
18
- idChannel: number;
18
+ idUnit: number;
19
19
  }
@@ -3,3 +3,4 @@ export * from './webchat-crew.dto';
3
3
  export * from './webchat-crew-hours.dto';
4
4
  export * from './webchat-id-crew.dto';
5
5
  export * from './webchat-membership.dto';
6
+ export * from './webchat-unit.dto';
@@ -19,3 +19,4 @@ __exportStar(require("./webchat-crew.dto"), exports);
19
19
  __exportStar(require("./webchat-crew-hours.dto"), exports);
20
20
  __exportStar(require("./webchat-id-crew.dto"), exports);
21
21
  __exportStar(require("./webchat-membership.dto"), exports);
22
+ __exportStar(require("./webchat-unit.dto"), exports);
@@ -3,6 +3,7 @@ import { MemberRoleEnum } from "../../organization";
3
3
  import { WebChatCrmDto } from "../crm";
4
4
  import { WebChatFollowUpDto } from "../follow-up/webchat-followup.dto";
5
5
  import { WebChatChannelDto } from "./webchat-channel.dto";
6
+ import { WebChatUnitDto } from "./webchat-unit.dto";
6
7
  export interface WebChatMemberDto {
7
8
  idHuman: number;
8
9
  name: string;
@@ -14,6 +15,7 @@ export interface WebChatCrewDto {
14
15
  online: OnlineModeEnum;
15
16
  shortName: string;
16
17
  channels: WebChatChannelDto[];
18
+ units: WebChatUnitDto[];
17
19
  members: WebChatMemberDto[];
18
20
  typePerm: PermissionTypeEnum;
19
21
  crm?: WebChatCrmDto;
@@ -3,7 +3,7 @@ export interface WebChatCrewRoleDto {
3
3
  idCrew: number;
4
4
  role: MemberRoleEnum;
5
5
  idStages: number[];
6
- idChannels: number[];
6
+ idUnits: number[];
7
7
  name?: string;
8
8
  pending?: boolean;
9
9
  }
@@ -0,0 +1,6 @@
1
+ export interface WebChatUnitDto {
2
+ id: number;
3
+ name: string;
4
+ icon?: string | null;
5
+ active: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,5 @@
1
1
  export interface WebChatBulkMoveThreadsDto {
2
2
  idThreads: string[];
3
- idChannel?: number;
4
3
  idStage?: number;
5
4
  manual?: boolean;
6
5
  idHuman?: number | null;
@@ -4,7 +4,8 @@ export interface WebChatMessageDto {
4
4
  idThread: string;
5
5
  text: string | null;
6
6
  role: 'user' | 'system' | 'developer' | 'assistant' | 'owner';
7
- idChannel: number;
7
+ idChannel: number | null;
8
+ idUnit: number;
8
9
  idCrew: number;
9
10
  idStage: number | null;
10
11
  processed: boolean;
@@ -3,7 +3,8 @@ import { WebChatLastMessageDto } from "./webchat-last-message.dto";
3
3
  export interface WebChatThreadDto {
4
4
  idThread: string;
5
5
  idCrew: number;
6
- idChannel: number;
6
+ idUnit: number;
7
+ idChannelOrigin: number | null;
7
8
  idUser: number;
8
9
  userId: string;
9
10
  userName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.33.8",
3
+ "version": "3.34.1",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",