@rodrigobeber/patoai-dtos 1.2.4 → 1.2.5

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,6 +1,5 @@
1
1
  export * from './account.dto';
2
2
  export * from './create-message.dto';
3
- export * from './integration.dto';
4
3
  export * from './platform.dto';
5
4
  export * from './reply-message.dto';
6
5
  export * from './thread.dto';
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account.dto"), exports);
18
18
  __exportStar(require("./create-message.dto"), exports);
19
- __exportStar(require("./integration.dto"), exports);
20
19
  __exportStar(require("./platform.dto"), exports);
21
20
  __exportStar(require("./reply-message.dto"), exports);
22
21
  __exportStar(require("./thread.dto"), exports);
@@ -0,0 +1,8 @@
1
+ export interface CredentialDto {
2
+ apiUrl?: string;
3
+ apiKey?: string;
4
+ }
5
+ export interface ChannelDto {
6
+ channelId: string;
7
+ credential?: CredentialDto;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface CredentialDto {
2
+ apiUrl: string;
3
+ apiKey: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
- import { IntegrationDto } from "../chat/integration.dto";
1
+ import { ChannelDto } from "./channel.dto";
2
2
  export interface GetAudioFileDto {
3
3
  id: string;
4
- integration: IntegrationDto;
4
+ channel: ChannelDto;
5
5
  }
@@ -1,7 +1,6 @@
1
1
  export * from './audio-file.dto';
2
+ export * from './channel.dto';
2
3
  export * from './get-audio-file.dto';
3
- export * from './integration-type.enum';
4
4
  export * from './send-message.dto';
5
5
  export * from './send-typing.dto';
6
6
  export * from './send-contact.dto';
7
- export * from './send-list.dto';
@@ -15,9 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./audio-file.dto"), exports);
18
+ __exportStar(require("./channel.dto"), exports);
18
19
  __exportStar(require("./get-audio-file.dto"), exports);
19
- __exportStar(require("./integration-type.enum"), exports);
20
20
  __exportStar(require("./send-message.dto"), exports);
21
21
  __exportStar(require("./send-typing.dto"), exports);
22
22
  __exportStar(require("./send-contact.dto"), exports);
23
- __exportStar(require("./send-list.dto"), exports);
@@ -1,7 +1,7 @@
1
- import { IntegrationDto } from "../chat/integration.dto";
1
+ import { ChannelDto } from "./channel.dto";
2
2
  export interface SendContactDto {
3
3
  userId: string;
4
- integration: IntegrationDto;
4
+ channel: ChannelDto;
5
5
  fullName: string;
6
6
  wuid: string;
7
7
  organization?: string;
@@ -1,7 +1,7 @@
1
- import { IntegrationDto } from "../chat/integration.dto";
1
+ import { ChannelDto } from "./channel.dto";
2
2
  export interface SendMessageDto {
3
3
  userId: string;
4
- integration: IntegrationDto;
4
+ channel: ChannelDto;
5
5
  text?: string;
6
6
  base64?: string;
7
7
  isQuoted: boolean;
@@ -1,5 +1,5 @@
1
- import { IntegrationDto } from "../chat/integration.dto";
1
+ import { ChannelDto } from "./channel.dto";
2
2
  export interface SendTypingDto {
3
3
  userId: string;
4
- integration: IntegrationDto;
4
+ channel: ChannelDto;
5
5
  }
@@ -1,8 +1,8 @@
1
- import { IntegrationDto } from "../chat/integration.dto";
1
+ import { Channel } from "diagnostics_channel";
2
2
  import { ThreadDto } from "../chat/thread.dto";
3
3
  export interface RunDto {
4
4
  idCrew: number;
5
5
  aiKey: string;
6
- integration: IntegrationDto;
6
+ channel: Channel;
7
7
  thread: ThreadDto;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Data Transfer Objects for the PatoAI system",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",