UNPKG

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.

570 lines 16.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.zaloBusinessFields = exports.zaloBusinessOperations = void 0; exports.zaloBusinessOperations = [ { displayName: 'Resource', name: 'resource', type: 'options', noDataExpression: true, options: [ { name: 'Tự Động Trả Lời', value: 'autoReply' }, { name: 'Danh Mục', value: 'catalog' }, { name: 'Sản Phẩm', value: 'product' }, { name: 'Hồ Sơ Doanh Nghiệp', value: 'profile' }, ], default: 'autoReply', }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['autoReply'], }, }, options: [ { name: 'Tạo Tự Động Trả Lời', value: 'create', description: 'Tạo tin nhắn tự động trả lời mới', action: 'Tạo tự động trả lời', }, { name: 'Cập Nhật Tự Động Trả Lời', value: 'update', description: 'Cập nhật tin nhắn tự động trả lời đã tồn tại', action: 'Cập nhật tự động trả lời', }, { name: 'Xóa Tự Động Trả Lời', value: 'delete', description: 'Xóa tin nhắn tự động trả lời', action: 'Xóa tự động trả lời', }, { name: 'Lấy Danh Sách Tự Động Trả Lời', value: 'list', description: 'Lấy toàn bộ danh sách tự động trả lời', action: 'Lấy danh sách tự động trả lời', }, ], default: 'list', }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['catalog'], }, }, options: [ { name: 'Tạo Danh Mục', value: 'create', description: 'Tạo danh mục sản phẩm mới', action: 'Tạo danh mục', }, { name: 'Cập Nhật Danh Mục', value: 'update', description: 'Đổi tên danh mục đã tồn tại', action: 'Cập nhật danh mục', }, { name: 'Xóa Danh Mục', value: 'delete', description: 'Xóa danh mục sản phẩm', action: 'Xóa danh mục', }, { name: 'Lấy Danh Sách Danh Mục', value: 'list', description: 'Lấy danh sách danh mục sản phẩm', action: 'Lấy danh sách danh mục', }, ], default: 'list', }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['product'], }, }, options: [ { name: 'Cập Nhật Sản Phẩm', value: 'update', description: 'Cập nhật thông tin sản phẩm', action: 'Cập nhật sản phẩm', }, { name: 'Lấy Danh Sách Sản Phẩm', value: 'list', description: 'Lấy danh sách sản phẩm trong danh mục', action: 'Lấy danh sách sản phẩm', }, { name: 'Tải Lên Ảnh Sản Phẩm', value: 'uploadPhoto', description: 'Tải ảnh lên trước khi gắn vào sản phẩm', action: 'Tải lên ảnh sản phẩm', }, { name: 'Tạo Sản Phẩm', value: 'create', description: 'Tạo sản phẩm mới trong danh mục', action: 'Tạo sản phẩm', }, { name: 'Xóa Sản Phẩm', value: 'delete', description: 'Xóa một hoặc nhiều sản phẩm khỏi danh mục', action: 'Xóa sản phẩm', }, ], default: 'list', }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['profile'], }, }, options: [ { name: 'Lấy Hồ Sơ Doanh Nghiệp', value: 'get', description: 'Lấy thông tin hồ sơ doanh nghiệp (Official Account) của một người dùng', action: 'Lấy hồ sơ doanh nghiệp', }, ], default: 'get', }, ]; exports.zaloBusinessFields = [ { displayName: 'ID Tự Động Trả Lời', name: 'autoReplyId', type: 'number', required: true, default: '', displayOptions: { show: { resource: ['autoReply'], operation: ['update'], }, }, description: 'ID của mục tự động trả lời cần cập nhật', }, { displayName: 'Nội Dung', name: 'autoReplyContent', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['autoReply'], operation: ['create', 'update'], }, }, typeOptions: { rows: 4, }, description: 'Nội dung tin nhắn tự động trả lời', }, { displayName: 'Kích Hoạt', name: 'autoReplyEnable', type: 'boolean', default: true, displayOptions: { show: { resource: ['autoReply'], operation: ['create', 'update'], }, }, description: 'Whether this auto-reply is currently active', }, { displayName: 'Thời Gian Bắt Đầu', name: 'autoReplyStartTime', type: 'dateTime', required: true, default: '', displayOptions: { show: { resource: ['autoReply'], operation: ['create', 'update'], }, }, description: 'Thời gian bắt đầu áp dụng tự động trả lời', }, { displayName: 'Thời Gian Kết Thúc', name: 'autoReplyEndTime', type: 'dateTime', required: true, default: '', displayOptions: { show: { resource: ['autoReply'], operation: ['create', 'update'], }, }, description: 'Thời gian kết thúc áp dụng tự động trả lời', }, { displayName: 'Phạm Vi Áp Dụng', name: 'autoReplyScope', type: 'options', default: 0, displayOptions: { show: { resource: ['autoReply'], operation: ['create', 'update'], }, }, options: [ { name: 'Tất Cả Mọi Người', value: 0 }, { name: 'Người Lạ', value: 1 }, { name: 'Bạn Bè Cụ Thể', value: 2 }, { name: 'Trừ Bạn Bè Cụ Thể', value: 3 }, ], description: 'Đối tượng áp dụng tự động trả lời (theo enum AutoReplyScope của zca-js)', }, { displayName: 'Danh Sách ID Bạn Bè', name: 'autoReplyUids', type: 'string', default: '', displayOptions: { show: { resource: ['autoReply'], operation: ['create', 'update'], autoReplyScope: [2, 3], }, }, description: 'Danh sách ID bạn bè áp dụng (cách nhau bởi dấu phẩy), bắt buộc khi chọn "Bạn Bè Cụ Thể" hoặc "Trừ Bạn Bè Cụ Thể"', }, { displayName: 'ID Tự Động Trả Lời', name: 'autoReplyId', type: 'number', required: true, default: '', displayOptions: { show: { resource: ['autoReply'], operation: ['delete'], }, }, description: 'ID của mục tự động trả lời cần xóa', }, { displayName: 'Tên Danh Mục', name: 'catalogName', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['catalog'], operation: ['create'], }, }, description: 'Tên danh mục sản phẩm mới', }, { displayName: 'ID Danh Mục', name: 'catalogId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['catalog'], operation: ['update'], }, }, description: 'ID danh mục cần cập nhật', }, { displayName: 'Tên Danh Mục Mới', name: 'catalogName', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['catalog'], operation: ['update'], }, }, description: 'Tên mới cho danh mục', }, { displayName: 'ID Danh Mục', name: 'catalogId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['catalog'], operation: ['delete'], }, }, description: 'ID danh mục cần xóa', }, { displayName: 'Giới Hạn', name: 'catalogLimit', type: 'number', default: 20, displayOptions: { show: { resource: ['catalog'], operation: ['list'], }, }, description: 'Max number of results to return', }, { displayName: 'Trang', name: 'catalogPage', type: 'number', default: 0, displayOptions: { show: { resource: ['catalog'], operation: ['list'], }, }, description: 'Số trang cần lấy', }, { displayName: 'ID Danh Mục', name: 'productCatalogId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['create'], }, }, description: 'ID danh mục chứa sản phẩm', }, { displayName: 'Tên Sản Phẩm', name: 'productName', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['create', 'update'], }, }, }, { displayName: 'Giá', name: 'productPrice', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['create', 'update'], }, }, description: 'Giá sản phẩm (dạng chuỗi, theo upstream)', }, { displayName: 'Mô Tả', name: 'productDescription', type: 'string', default: '', displayOptions: { show: { resource: ['product'], operation: ['create', 'update'], }, }, typeOptions: { rows: 3, }, description: 'Mô tả sản phẩm', }, { displayName: 'URL Ảnh Sản Phẩm', name: 'productPhotos', type: 'string', default: '', displayOptions: { show: { resource: ['product'], operation: ['create', 'update'], }, }, description: 'Danh sách URL ảnh sản phẩm, tối đa 5, cách nhau bởi dấu phẩy (lấy từ Tải Lên Ảnh Sản Phẩm)', }, { displayName: 'ID Danh Mục', name: 'productCatalogId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['update'], }, }, description: 'ID danh mục chứa sản phẩm', }, { displayName: 'ID Sản Phẩm', name: 'productId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['update'], }, }, description: 'ID sản phẩm cần cập nhật', }, { displayName: 'Thời Gian Tạo (createTime)', name: 'productCreateTime', type: 'number', required: true, default: 0, displayOptions: { show: { resource: ['product'], operation: ['update'], }, }, description: 'Timestamp tạo sản phẩm gốc (upstream yêu cầu gửi lại giá trị này)', }, { displayName: 'ID Danh Mục', name: 'productCatalogId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['delete'], }, }, description: 'ID danh mục chứa sản phẩm', }, { displayName: 'Danh Sách ID Sản Phẩm', name: 'productIds', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['delete'], }, }, description: 'Danh sách ID sản phẩm cần xóa, cách nhau bởi dấu phẩy', }, { displayName: 'ID Danh Mục', name: 'productCatalogId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['list'], }, }, description: 'ID danh mục cần lấy danh sách sản phẩm', }, { displayName: 'Giới Hạn', name: 'productLimit', type: 'number', default: 50, displayOptions: { show: { resource: ['product'], operation: ['list'], }, }, description: 'Max number of results to return', }, { displayName: 'Trang', name: 'productPage', type: 'number', default: 0, displayOptions: { show: { resource: ['product'], operation: ['list'], }, }, description: 'Số trang cần lấy', }, { displayName: 'URL Ảnh', name: 'uploadPhotoUrl', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['product'], operation: ['uploadPhoto'], }, }, description: 'URL ảnh cần tải lên trước khi gắn vào sản phẩm', }, { displayName: 'ID Người Dùng', name: 'bizFriendId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['profile'], operation: ['get'], }, }, description: 'ID người dùng/Official Account cần lấy hồ sơ doanh nghiệp', }, ]; //# sourceMappingURL=ZaloBusinessDescription.js.map