@rodrigobeber/patoai-dtos 4.6.94 → 4.6.96

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.
@@ -10,6 +10,7 @@ export interface WebChatChannelDto {
10
10
  active: boolean;
11
11
  idUnit?: number;
12
12
  instruction?: string;
13
+ createdAt?: string;
13
14
  /** TODO: MIGRATION - Remove when all clients have been migrated to BM Upflows */
14
15
  bmLegacy?: boolean;
15
16
  }
@@ -10,4 +10,5 @@ export * from './handoff';
10
10
  export * from './organization';
11
11
  export * from './quick-message';
12
12
  export * from './schedule';
13
+ export * from './template';
13
14
  export * from './thread';
@@ -26,4 +26,5 @@ __exportStar(require("./handoff"), exports);
26
26
  __exportStar(require("./organization"), exports);
27
27
  __exportStar(require("./quick-message"), exports);
28
28
  __exportStar(require("./schedule"), exports);
29
+ __exportStar(require("./template"), exports);
29
30
  __exportStar(require("./thread"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './webchat-template.dto';
2
+ export * from './webchat-template-manage.dto';
@@ -0,0 +1,18 @@
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-template.dto"), exports);
18
+ __exportStar(require("./webchat-template-manage.dto"), exports);
@@ -0,0 +1,27 @@
1
+ import { TemplateComponentDto } from '../../uh/send-template.dto';
2
+ import { TemplateCategoryEnum } from './webchat-template.dto';
3
+ export interface WebChatCreateTemplateDto {
4
+ name: string;
5
+ language: string;
6
+ category: TemplateCategoryEnum;
7
+ components: TemplateComponentDto[];
8
+ idChannels?: number[];
9
+ }
10
+ export interface WebChatUpdateTemplateDto {
11
+ components: TemplateComponentDto[];
12
+ }
13
+ export interface WebChatSyncTemplateDto {
14
+ sourceIdChannel: number;
15
+ targetIdChannels?: number[];
16
+ }
17
+ export interface WebChatTemplateOperationResultDto {
18
+ idChannel: number;
19
+ channelName: string;
20
+ success: boolean;
21
+ metaId?: string;
22
+ error?: string;
23
+ }
24
+ export interface WebChatTemplateBatchResultDto {
25
+ results: WebChatTemplateOperationResultDto[];
26
+ allSuccess: boolean;
27
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { TemplateComponentDto } from '../../uh/send-template.dto';
2
+ export type TemplateStatusEnum = 'APPROVED' | 'PENDING' | 'REJECTED' | 'DISABLED' | 'PAUSED';
3
+ export type TemplateCategoryEnum = 'MARKETING' | 'UTILITY' | 'AUTHENTICATION';
4
+ export interface WebChatTemplateDto {
5
+ metaId: string;
6
+ name: string;
7
+ status: TemplateStatusEnum;
8
+ category: TemplateCategoryEnum;
9
+ language: string;
10
+ text: string;
11
+ components?: TemplateComponentDto[];
12
+ }
13
+ export interface WebChatTemplateChannelPresence {
14
+ idChannel: number;
15
+ channelName: string;
16
+ wabaId: string;
17
+ metaId: string;
18
+ status: TemplateStatusEnum;
19
+ bodyHash: string;
20
+ }
21
+ export interface WebChatUnifiedTemplateDto {
22
+ name: string;
23
+ category: TemplateCategoryEnum;
24
+ language: string;
25
+ text: string;
26
+ components?: TemplateComponentDto[];
27
+ presence: WebChatTemplateChannelPresence[];
28
+ hasDifferences: boolean;
29
+ }
@@ -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": "4.6.94",
3
+ "version": "4.6.96",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",