@rodrigobeber/patoai-dtos 3.0.10 → 3.2.0

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 (28) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/webchat/crm/index.d.ts +8 -0
  4. package/dist/webchat/crm/index.js +8 -0
  5. package/dist/webchat/crm/webchat-create-tag.dto.d.ts +8 -0
  6. package/dist/webchat/crm/webchat-create-tag.dto.js +2 -0
  7. package/dist/webchat/crm/webchat-crm.dto.d.ts +6 -3
  8. package/dist/webchat/crm/webchat-delete-tag.dto.d.ts +3 -0
  9. package/dist/webchat/crm/webchat-delete-tag.dto.js +2 -0
  10. package/dist/webchat/crm/webchat-get-lead-history.dto.d.ts +3 -0
  11. package/dist/webchat/crm/webchat-get-lead-history.dto.js +2 -0
  12. package/dist/webchat/crm/webchat-lead.dto.d.ts +1 -0
  13. package/dist/webchat/crm/webchat-set-lead-observation.dto.d.ts +4 -0
  14. package/dist/webchat/crm/webchat-set-lead-observation.dto.js +2 -0
  15. package/dist/webchat/crm/webchat-set-lead-stage.dto.d.ts +4 -0
  16. package/dist/webchat/crm/webchat-set-lead-stage.dto.js +2 -0
  17. package/dist/webchat/crm/webchat-set-tag.dto.d.ts +5 -0
  18. package/dist/webchat/crm/webchat-set-tag.dto.js +2 -0
  19. package/dist/webchat/crm/webchat-stage-history.dto.d.ts +7 -0
  20. package/dist/webchat/crm/webchat-stage-history.dto.js +2 -0
  21. package/dist/webchat/crm/webchat-stage.dto.d.ts +9 -2
  22. package/dist/webchat/crm/webchat-stage.dto.js +10 -0
  23. package/dist/webchat/crm/webchat-tag.dto.d.ts +8 -0
  24. package/dist/webchat/crm/webchat-tag.dto.js +2 -0
  25. package/dist/webchat/crm/webchat-temperature.dto.d.ts +2 -1
  26. package/dist/webchat/thread/webchat-id-thread.dto.d.ts +3 -0
  27. package/dist/webchat/thread/webchat-last-message.dto.d.ts +1 -1
  28. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export * from './ai';
2
2
  export * from './auth';
3
3
  export * from './chat';
4
4
  export * from './crew';
5
- export * from './crm';
6
5
  export * from './organization';
7
6
  export * from './run';
8
7
  export * from './tool';
package/dist/index.js CHANGED
@@ -18,7 +18,6 @@ __exportStar(require("./ai"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./chat"), exports);
20
20
  __exportStar(require("./crew"), exports);
21
- __exportStar(require("./crm"), exports);
22
21
  __exportStar(require("./organization"), exports);
23
22
  __exportStar(require("./run"), exports);
24
23
  __exportStar(require("./tool"), exports);
@@ -1,4 +1,12 @@
1
+ export * from './webchat-create-tag.dto';
1
2
  export * from './webchat-crm.dto';
3
+ export * from './webchat-delete-tag.dto';
4
+ export * from './webchat-get-lead-history.dto';
2
5
  export * from './webchat-lead.dto';
6
+ export * from './webchat-set-lead-observation.dto';
7
+ export * from './webchat-set-lead-stage.dto';
8
+ export * from './webchat-set-tag.dto';
9
+ export * from './webchat-stage-history.dto';
3
10
  export * from './webchat-stage.dto';
11
+ export * from './webchat-tag.dto';
4
12
  export * from './webchat-temperature.dto';
@@ -14,7 +14,15 @@ 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-tag.dto"), exports);
17
18
  __exportStar(require("./webchat-crm.dto"), exports);
19
+ __exportStar(require("./webchat-delete-tag.dto"), exports);
20
+ __exportStar(require("./webchat-get-lead-history.dto"), exports);
18
21
  __exportStar(require("./webchat-lead.dto"), exports);
22
+ __exportStar(require("./webchat-set-lead-observation.dto"), exports);
23
+ __exportStar(require("./webchat-set-lead-stage.dto"), exports);
24
+ __exportStar(require("./webchat-set-tag.dto"), exports);
25
+ __exportStar(require("./webchat-stage-history.dto"), exports);
19
26
  __exportStar(require("./webchat-stage.dto"), exports);
27
+ __exportStar(require("./webchat-tag.dto"), exports);
20
28
  __exportStar(require("./webchat-temperature.dto"), exports);
@@ -0,0 +1,8 @@
1
+ export interface WebChatCreateTagDto {
2
+ idCrew: number;
3
+ name: string;
4
+ textColor: string;
5
+ bgColor: string;
6
+ icon: string | null;
7
+ idLead?: number | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
- import { WebChatStage } from "./webchat-stage.dto";
1
+ import { WebChatStageDto } from "./webchat-stage.dto";
2
+ import { WebChatTagDto } from "./webchat-tag.dto";
2
3
  import { WebChatTemperatureDto } from "./webchat-temperature.dto";
3
4
  export interface WebChatCrmDto {
4
- termometer: WebChatTemperatureDto[];
5
- pipeline: WebChatStage[];
5
+ hasSummarization: boolean;
6
+ thermometer: WebChatTemperatureDto[] | null;
7
+ pipeline: WebChatStageDto[] | null;
8
+ tags: WebChatTagDto[] | null;
6
9
  }
@@ -0,0 +1,3 @@
1
+ export interface WebChatDeleteTagDto {
2
+ idTag: number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface WebChatGetLeadHistoryDto {
2
+ idLead: number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,4 +11,5 @@ export interface WebChatLeadDto {
11
11
  budget: string | null;
12
12
  summaryAt: Date | null;
13
13
  summarizing: Date | null;
14
+ tags: number[] | null;
14
15
  }
@@ -0,0 +1,4 @@
1
+ export interface WebChatSetLeadObservationDto {
2
+ idLead: number;
3
+ observation: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface WebChatSetLeadStageDto {
2
+ idLead: number;
3
+ idStage: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface WebChatSetTagDto {
2
+ idLead: number;
3
+ idTag: number;
4
+ assigned: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface WebChatStageHistoryDto {
2
+ idLead: number;
3
+ idPreviousStage: number | null;
4
+ idStage: number;
5
+ at: Date;
6
+ idHuman: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,12 @@
1
- import { StageEnum } from "../../crm";
2
- export interface WebChatStage {
1
+ export declare enum StageEnum {
2
+ INACTIVE = 1,// Inactive thread
3
+ GAVE_UP = 2,// StopFollowUpTool
4
+ NO_ANSWER = 3,// Reached follow up limit without answer
5
+ NEW = 4,// New thread, no sumary yet
6
+ MEETING_SCHEDULED = 5,// Meeting scheduled
7
+ CUSTOM = 100
8
+ }
9
+ export interface WebChatStageDto {
3
10
  id: number;
4
11
  order: number;
5
12
  type: StageEnum;
@@ -1,2 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StageEnum = void 0;
4
+ var StageEnum;
5
+ (function (StageEnum) {
6
+ StageEnum[StageEnum["INACTIVE"] = 1] = "INACTIVE";
7
+ StageEnum[StageEnum["GAVE_UP"] = 2] = "GAVE_UP";
8
+ StageEnum[StageEnum["NO_ANSWER"] = 3] = "NO_ANSWER";
9
+ StageEnum[StageEnum["NEW"] = 4] = "NEW";
10
+ StageEnum[StageEnum["MEETING_SCHEDULED"] = 5] = "MEETING_SCHEDULED";
11
+ StageEnum[StageEnum["CUSTOM"] = 100] = "CUSTOM";
12
+ })(StageEnum || (exports.StageEnum = StageEnum = {}));
@@ -0,0 +1,8 @@
1
+ export interface WebChatTagDto {
2
+ id: number;
3
+ name: string;
4
+ description: string | null;
5
+ textColor: string;
6
+ bgColor: string;
7
+ icon: string | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export interface WebChatTemperatureDto {
2
- score: number;
2
+ temperature: number;
3
3
  description: string;
4
+ icon: string;
4
5
  }
@@ -7,3 +7,6 @@ export interface WebChatLeaveThreadDto {
7
7
  export interface WebChatGetConversatioDto {
8
8
  idThread: number;
9
9
  }
10
+ export interface WebChatDeleteThreadDto {
11
+ idThread: number;
12
+ }
@@ -3,7 +3,7 @@ export interface WebChatLastMessageDto {
3
3
  at: Date;
4
4
  text: string;
5
5
  role: 'user' | 'assistant' | 'owner';
6
- type: 'audio' | 'image';
6
+ type: 'audio' | 'image' | null;
7
7
  description: string | null;
8
8
  duration: number | null;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.0.10",
3
+ "version": "3.2.0",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",