n8n-nodes-zalo-nnt
Version:
Unofficial Zalo integration for n8n - Send messages, manage groups, user operations with QR login. No API key required, works via browser simulation.
219 lines • 6.28 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.zaloStickerFields = exports.zaloStickerOperations = void 0;
exports.zaloStickerOperations = [
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Sticker',
value: 'sticker',
},
],
default: 'sticker',
},
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['sticker'],
},
},
options: [
{
name: 'Tìm Kiếm Sticker',
value: 'search',
description: 'Tìm kiếm sticker theo từ khóa (trả về sticker kèm chi tiết)',
action: 'Tìm kiếm sticker',
},
{
name: 'Lấy Chi Tiết Danh Mục',
value: 'getCategoryDetail',
description: 'Lấy danh sách sticker chi tiết trong một danh mục (category)',
action: 'Lấy chi tiết danh mục sticker',
},
{
name: 'Tìm ID Sticker Theo Từ Khóa',
value: 'getStickers',
description: 'Tìm danh sách ID sticker theo từ khóa (không kèm chi tiết)',
action: 'Tìm ID sticker theo từ khóa',
},
{
name: 'Lấy Chi Tiết Sticker',
value: 'getStickersDetail',
description: 'Lấy chi tiết một hoặc nhiều sticker theo ID',
action: 'Lấy chi tiết sticker',
},
{
name: 'Gửi Sticker',
value: 'send',
description: 'Gửi sticker vào cuộc trò chuyện cá nhân hoặc nhóm',
action: 'Gửi sticker',
},
],
default: 'search',
},
];
exports.zaloStickerFields = [
{
displayName: 'Từ Khóa',
name: 'keyword',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['search'],
},
},
description: 'Từ khóa tìm kiếm sticker',
placeholder: 'haha',
},
{
displayName: 'Giới Hạn',
name: 'limit',
type: 'number',
typeOptions: {
minValue: 1,
},
default: 50,
displayOptions: {
show: {
resource: ['sticker'],
operation: ['search'],
},
},
description: 'Max number of results to return',
},
{
displayName: 'ID Danh Mục',
name: 'cateId',
type: 'number',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['getCategoryDetail'],
},
},
description: 'ID danh mục sticker cần lấy chi tiết',
},
{
displayName: 'Từ Khóa',
name: 'keyword',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['getStickers'],
},
},
description: 'Từ khóa tìm ID sticker',
placeholder: 'haha',
},
{
displayName: 'Danh Sách ID Sticker',
name: 'stickerIds',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['getStickersDetail'],
},
},
description: 'Một hoặc nhiều ID sticker, cách nhau bởi dấu phẩy',
placeholder: '123,456',
},
{
displayName: 'ID Cuộc Trò Chuyện',
name: 'threadId',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['send'],
},
},
description: 'ID của cuộc trò chuyện (người dùng hoặc nhóm) để gửi sticker',
},
{
displayName: 'Loại',
name: 'threadType',
type: 'options',
options: [
{
name: 'Người Dùng',
value: 0,
},
{
name: 'Nhóm',
value: 1,
},
],
default: 0,
displayOptions: {
show: {
resource: ['sticker'],
operation: ['send'],
},
},
description: 'Gửi tới người dùng hay nhóm',
},
{
displayName: 'ID Sticker',
name: 'stickerId',
type: 'number',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['send'],
},
},
description: 'ID sticker cần gửi (lấy từ kết quả operation Tìm Kiếm Sticker hoặc Lấy Chi Tiết Sticker)',
},
{
displayName: 'ID Danh Mục Sticker',
name: 'stickerCateId',
type: 'number',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['send'],
},
},
description: 'ID danh mục của sticker cần gửi (cateId trong kết quả tìm kiếm)',
},
{
displayName: 'Loại Sticker',
name: 'stickerType',
type: 'number',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sticker'],
operation: ['send'],
},
},
description: 'Type của sticker (type trong kết quả tìm kiếm)',
},
];
//# sourceMappingURL=ZaloStickerDescription.js.map