n8n-nodes-zalo-custom 1.1.0 → 1.1.1
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/README.md +65 -60
- package/credentials/shared/zalo.svg +21 -9
- package/credentials/shared/zalo_original.svg +10 -0
- package/nodes/MessageDebouncer/MessageDebouncer.node.js +1 -0
- package/nodes/ZaloCommunication/ZaloCommunication.node.js +83 -413
- package/nodes/ZaloGroup/ZaloGroup.node.js +86 -322
- package/nodes/ZaloLoginByQr/ZaloLoginByQr.node.js +81 -551
- package/nodes/ZaloSendMessage/ZaloSendMessage.node.js +86 -232
- package/nodes/ZaloTrigger/ZaloTrigger.node.js +90 -537
- package/nodes/ZaloUser/ZaloUser.node.js +83 -379
- package/nodes/shared/zalo.svg +21 -9
- package/nodes/shared/zalo_clock.svg +25 -0
- package/nodes/shared/zalo_message.svg +30 -0
- package/nodes/shared/zalo_trigger.svg +27 -0
- package/nodes/utils/zalo_clock.svg +29 -0
- package/package.json +28 -16
- package/nodes/ZaloCommunication/ZaloCommunicationDescription.js +0 -524
- package/nodes/ZaloGroup/ZaloGroupDescription.js +0 -395
- package/nodes/ZaloSendMessage/ZaloSendMessageDescription.js +0 -389
- package/nodes/ZaloUploadAttachment/ZaloUploadAttachment.node.js +0 -263
- package/nodes/ZaloUploadAttachment/ZaloUploadAttachmentDescription.js +0 -187
- package/nodes/ZaloUser/ZaloUserDescription.js +0 -644
- package/nodes/shared/ZaloNodeProperties.js +0 -55
- package/nodes/utils/crypto.helper.js +0 -57
- package/nodes/utils/helper.js +0 -189
- package/nodes/utils/zalo.helper.js +0 -304
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZaloUploadAttachmentDescription = void 0;
|
|
4
|
-
exports.ZaloUploadAttachmentDescription = {
|
|
5
|
-
displayName: 'Zalo Upload Attachment',
|
|
6
|
-
name: 'zaloUploadAttachment',
|
|
7
|
-
icon: 'file:../shared/zalo.svg',
|
|
8
|
-
group: ['Zalo'],
|
|
9
|
-
version: 1,
|
|
10
|
-
description: 'Upload attachment (ảnh, video, file) lên Zalo sử dụng kết nối đăng nhập bằng cookie',
|
|
11
|
-
defaults: {
|
|
12
|
-
name: 'Zalo Upload Attachment',
|
|
13
|
-
},
|
|
14
|
-
inputs: ['main'],
|
|
15
|
-
outputs: ['main'],
|
|
16
|
-
credentials: [
|
|
17
|
-
{
|
|
18
|
-
name: 'zaloApi',
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
properties: [
|
|
23
|
-
{
|
|
24
|
-
displayName: 'Thread ID',
|
|
25
|
-
name: 'threadId',
|
|
26
|
-
type: 'string',
|
|
27
|
-
default: '',
|
|
28
|
-
required: true,
|
|
29
|
-
description: 'ID của thread để upload attachment (User ID hoặc Group ID)',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Type',
|
|
33
|
-
name: 'type',
|
|
34
|
-
type: 'options',
|
|
35
|
-
options: [
|
|
36
|
-
{
|
|
37
|
-
name: 'User',
|
|
38
|
-
value: 0,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'Group',
|
|
42
|
-
value: 1,
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
default: 0,
|
|
46
|
-
description: 'Loại của thread (user hoặc group)',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
displayName: 'Attachment Source',
|
|
50
|
-
name: 'attachmentSource',
|
|
51
|
-
type: 'options',
|
|
52
|
-
options: [
|
|
53
|
-
{
|
|
54
|
-
name: 'File Path',
|
|
55
|
-
value: 'filePath',
|
|
56
|
-
description: 'Đường dẫn file (nên lưu tại: /home/node/.n8n/temp_files)',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: 'URL',
|
|
60
|
-
value: 'url',
|
|
61
|
-
description: 'URL công khai của file',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'Binary Data',
|
|
65
|
-
value: 'binary',
|
|
66
|
-
description: 'Binary data từ n8n workflow',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
default: 'filePath',
|
|
70
|
-
description: 'Nguồn của attachment',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
displayName: 'File Path',
|
|
74
|
-
name: 'filePath',
|
|
75
|
-
type: 'string',
|
|
76
|
-
default: '',
|
|
77
|
-
displayOptions: {
|
|
78
|
-
show: {
|
|
79
|
-
attachmentSource: ['filePath'],
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
description: 'Đường dẫn tuyệt đối đến file trên server n8n',
|
|
83
|
-
placeholder: '/path/to/your/file.jpg',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
displayName: 'File URL',
|
|
87
|
-
name: 'fileUrl',
|
|
88
|
-
type: 'string',
|
|
89
|
-
default: '',
|
|
90
|
-
displayOptions: {
|
|
91
|
-
show: {
|
|
92
|
-
attachmentSource: ['url'],
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
description: 'URL công khai của file cần upload',
|
|
96
|
-
placeholder: 'https://example.com/image.jpg',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
displayName: 'Binary Property',
|
|
100
|
-
name: 'binaryProperty',
|
|
101
|
-
type: 'string',
|
|
102
|
-
default: 'data',
|
|
103
|
-
displayOptions: {
|
|
104
|
-
show: {
|
|
105
|
-
attachmentSource: ['binary'],
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
description: 'Tên của binary property chứa file data',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
displayName: 'Filename',
|
|
112
|
-
name: 'filename',
|
|
113
|
-
type: 'string',
|
|
114
|
-
default: '',
|
|
115
|
-
displayOptions: {
|
|
116
|
-
show: {
|
|
117
|
-
attachmentSource: ['binary'],
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
description: 'Tên file với extension (ví dụ: image.jpg, document.pdf)',
|
|
121
|
-
placeholder: 'image.jpg',
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
displayName: 'Multiple Files',
|
|
125
|
-
name: 'multipleFiles',
|
|
126
|
-
type: 'boolean',
|
|
127
|
-
default: false,
|
|
128
|
-
description: 'Upload nhiều file cùng lúc',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
displayName: 'File Paths (Multiple)',
|
|
132
|
-
name: 'filePaths',
|
|
133
|
-
type: 'string',
|
|
134
|
-
default: '',
|
|
135
|
-
displayOptions: {
|
|
136
|
-
show: {
|
|
137
|
-
attachmentSource: ['filePath'],
|
|
138
|
-
multipleFiles: [true],
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
description: 'Danh sách đường dẫn file cách nhau bởi dấu phẩy hoặc xuống dòng',
|
|
142
|
-
placeholder: '/path/to/file1.jpg\n/path/to/file2.pdf\n/path/to/file3.mp4',
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
displayName: 'File URLs (Multiple)',
|
|
146
|
-
name: 'fileUrls',
|
|
147
|
-
type: 'string',
|
|
148
|
-
default: '',
|
|
149
|
-
displayOptions: {
|
|
150
|
-
show: {
|
|
151
|
-
attachmentSource: ['url'],
|
|
152
|
-
multipleFiles: [true],
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
description: 'Danh sách URL file cách nhau bởi dấu phẩy hoặc xuống dòng',
|
|
156
|
-
placeholder: 'https://example.com/file1.jpg\nhttps://example.com/file2.pdf',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
displayName: 'Binary Properties (Multiple)',
|
|
160
|
-
name: 'binaryProperties',
|
|
161
|
-
type: 'string',
|
|
162
|
-
default: '',
|
|
163
|
-
displayOptions: {
|
|
164
|
-
show: {
|
|
165
|
-
attachmentSource: ['binary'],
|
|
166
|
-
multipleFiles: [true],
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
description: 'Tên các binary properties cách nhau bởi dấu phẩy',
|
|
170
|
-
placeholder: 'data1,data2,data3',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
displayName: 'Filenames (Multiple)',
|
|
174
|
-
name: 'filenames',
|
|
175
|
-
type: 'string',
|
|
176
|
-
default: '',
|
|
177
|
-
displayOptions: {
|
|
178
|
-
show: {
|
|
179
|
-
attachmentSource: ['binary'],
|
|
180
|
-
multipleFiles: [true],
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
description: 'Tên các file với extension cách nhau bởi dấu phẩy',
|
|
184
|
-
placeholder: 'file1.jpg,file2.pdf,file3.mp4',
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
};
|