@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.
- package/dist/webchat/crew/webchat-channel.dto.d.ts +1 -0
- package/dist/webchat/index.d.ts +1 -0
- package/dist/webchat/index.js +1 -0
- package/dist/webchat/template/index.d.ts +2 -0
- package/dist/webchat/template/index.js +18 -0
- package/dist/webchat/template/webchat-template-manage.dto.d.ts +27 -0
- package/dist/webchat/template/webchat-template-manage.dto.js +2 -0
- package/dist/webchat/template/webchat-template.dto.d.ts +29 -0
- package/dist/webchat/template/webchat-template.dto.js +2 -0
- package/package.json +1 -1
package/dist/webchat/index.d.ts
CHANGED
package/dist/webchat/index.js
CHANGED
|
@@ -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,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,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
|
+
}
|