@rodrigobeber/patoai-dtos 3.25.3 → 3.25.4

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.
@@ -0,0 +1,7 @@
1
+ export * from './webchat-broadcast-status.enum';
2
+ export * from './webchat-broadcast-recipient.dto';
3
+ export * from './webchat-broadcast-list-item.dto';
4
+ export * from './webchat-broadcast-detail.dto';
5
+ export * from './webchat-create-broadcast.dto';
6
+ export * from './webchat-update-broadcast.dto';
7
+ export * from './webchat-broadcast-statistics.dto';
@@ -0,0 +1,23 @@
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("./webchat-broadcast-status.enum"), exports);
18
+ __exportStar(require("./webchat-broadcast-recipient.dto"), exports);
19
+ __exportStar(require("./webchat-broadcast-list-item.dto"), exports);
20
+ __exportStar(require("./webchat-broadcast-detail.dto"), exports);
21
+ __exportStar(require("./webchat-create-broadcast.dto"), exports);
22
+ __exportStar(require("./webchat-update-broadcast.dto"), exports);
23
+ __exportStar(require("./webchat-broadcast-statistics.dto"), exports);
@@ -0,0 +1,22 @@
1
+ import { WebChatBroadcastStatusEnum } from './webchat-broadcast-status.enum';
2
+ import { WebChatBroadcastRecipientDto } from './webchat-broadcast-recipient.dto';
3
+ export interface WebChatBroadcastDetailDto {
4
+ id: number;
5
+ idCrew: number;
6
+ idChannel: number;
7
+ channelName?: string;
8
+ name: string;
9
+ templateName: string;
10
+ delayMs: number | null;
11
+ status: WebChatBroadcastStatusEnum;
12
+ createdAt: Date;
13
+ startedAt: Date | null;
14
+ completedAt: Date | null;
15
+ canceledAt: Date | null;
16
+ totalRecipients: number;
17
+ sentCount: number;
18
+ failedCount: number;
19
+ canceledCount: number;
20
+ pendingCount: number;
21
+ recipients?: WebChatBroadcastRecipientDto[];
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { WebChatBroadcastStatusEnum } from './webchat-broadcast-status.enum';
2
+ export interface WebChatBroadcastListItemDto {
3
+ id: number;
4
+ idCrew: number;
5
+ idChannel: number;
6
+ channelName?: string;
7
+ name: string;
8
+ templateName: string;
9
+ delayMs: number | null;
10
+ status: WebChatBroadcastStatusEnum;
11
+ totalRecipients: number;
12
+ sentCount: number;
13
+ failedCount: number;
14
+ canceledCount: number;
15
+ pendingCount: number;
16
+ createdAt: Date;
17
+ startedAt: Date | null;
18
+ completedAt: Date | null;
19
+ canceledAt: Date | null;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { WebChatBroadcastRecipientStatusEnum } from './webchat-broadcast-status.enum';
2
+ export interface WebChatBroadcastRecipientDto {
3
+ id?: number;
4
+ userId: string;
5
+ name: string;
6
+ status?: WebChatBroadcastRecipientStatusEnum;
7
+ sentAt?: Date;
8
+ failedAt?: Date;
9
+ canceledAt?: Date;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface WebChatBroadcastStatisticsDto {
2
+ total: number;
3
+ sent: number;
4
+ failed: number;
5
+ canceled: number;
6
+ pending: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export declare enum WebChatBroadcastStatusEnum {
2
+ NOT_STARTED = "NOT_STARTED",
3
+ IN_PROGRESS = "IN_PROGRESS",
4
+ COMPLETED = "COMPLETED",
5
+ CANCELED = "CANCELED"
6
+ }
7
+ export declare enum WebChatBroadcastRecipientStatusEnum {
8
+ PENDING = "PENDING",
9
+ SENT = "SENT",
10
+ FAILED = "FAILED",
11
+ CANCELED = "CANCELED"
12
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebChatBroadcastRecipientStatusEnum = exports.WebChatBroadcastStatusEnum = void 0;
4
+ var WebChatBroadcastStatusEnum;
5
+ (function (WebChatBroadcastStatusEnum) {
6
+ WebChatBroadcastStatusEnum["NOT_STARTED"] = "NOT_STARTED";
7
+ WebChatBroadcastStatusEnum["IN_PROGRESS"] = "IN_PROGRESS";
8
+ WebChatBroadcastStatusEnum["COMPLETED"] = "COMPLETED";
9
+ WebChatBroadcastStatusEnum["CANCELED"] = "CANCELED";
10
+ })(WebChatBroadcastStatusEnum || (exports.WebChatBroadcastStatusEnum = WebChatBroadcastStatusEnum = {}));
11
+ var WebChatBroadcastRecipientStatusEnum;
12
+ (function (WebChatBroadcastRecipientStatusEnum) {
13
+ WebChatBroadcastRecipientStatusEnum["PENDING"] = "PENDING";
14
+ WebChatBroadcastRecipientStatusEnum["SENT"] = "SENT";
15
+ WebChatBroadcastRecipientStatusEnum["FAILED"] = "FAILED";
16
+ WebChatBroadcastRecipientStatusEnum["CANCELED"] = "CANCELED";
17
+ })(WebChatBroadcastRecipientStatusEnum || (exports.WebChatBroadcastRecipientStatusEnum = WebChatBroadcastRecipientStatusEnum = {}));
@@ -0,0 +1,8 @@
1
+ import { WebChatBroadcastRecipientDto } from './webchat-broadcast-recipient.dto';
2
+ export interface WebChatCreateBroadcastDto {
3
+ name: string;
4
+ idChannel: number;
5
+ template: string;
6
+ delayMs?: number;
7
+ recipients: WebChatBroadcastRecipientDto[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { WebChatBroadcastRecipientDto } from './webchat-broadcast-recipient.dto';
2
+ export interface WebChatUpdateBroadcastDto {
3
+ name?: string;
4
+ idChannel?: number;
5
+ template?: string;
6
+ delayMs?: number;
7
+ recipients?: WebChatBroadcastRecipientDto[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export * from './agent';
2
+ export * from './broadcast';
2
3
  export * from './calendar';
3
4
  export * from './crew';
4
5
  export * from './crm';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./agent"), exports);
18
+ __exportStar(require("./broadcast"), exports);
18
19
  __exportStar(require("./calendar"), exports);
19
20
  __exportStar(require("./crew"), exports);
20
21
  __exportStar(require("./crm"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.25.3",
3
+ "version": "3.25.4",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",