n8n-nodes-zalo-loma-funnel 1.0.3 → 1.1.0
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/{LICENSE → LICENSE.md} +7 -9
- package/README.md +67 -56
- package/dist/credentials/N8nZaloApi.credentials.d.ts +8 -0
- package/dist/credentials/N8nZaloApi.credentials.js +31 -0
- package/dist/credentials/N8nZaloApi.credentials.js.map +1 -0
- package/dist/credentials/N8nZaloApi.credentials.ts +32 -0
- package/dist/credentials/{zalo-api.credentials.d.ts → ZaloApi.credentials.d.ts} +2 -2
- package/dist/credentials/ZaloApi.credentials.js +64 -0
- package/dist/credentials/ZaloApi.credentials.js.map +1 -0
- package/dist/credentials/ZaloApi.credentials.ts +66 -0
- package/dist/credentials/shared/n8n.png +0 -0
- package/dist/credentials/shared/zalo.svg +10 -0
- package/dist/nodes/ZaloFriendTrigger/ZaloFriendTrigger.node.d.ts +12 -0
- package/dist/nodes/ZaloFriendTrigger/ZaloFriendTrigger.node.js +129 -0
- package/dist/nodes/ZaloFriendTrigger/ZaloFriendTrigger.node.js.map +1 -0
- package/dist/nodes/{ZaloSend/zalo-send.node.d.ts → ZaloGroup/ZaloGroup.node.d.ts} +1 -2
- package/dist/nodes/ZaloGroup/ZaloGroup.node.js +228 -0
- package/dist/nodes/ZaloGroup/ZaloGroup.node.js.map +1 -0
- package/dist/nodes/ZaloGroup/ZaloGroupDescription.d.ts +3 -0
- package/dist/nodes/ZaloGroup/ZaloGroupDescription.js +348 -0
- package/dist/nodes/ZaloGroup/ZaloGroupDescription.js.map +1 -0
- package/dist/nodes/{ZaloManage/zalo-manage.node.d.ts → ZaloLoginByQr/ZaloLoginByQr.node.d.ts} +1 -2
- package/dist/nodes/ZaloLoginByQr/ZaloLoginByQr.node.js +422 -0
- package/dist/nodes/ZaloLoginByQr/ZaloLoginByQr.node.js.map +1 -0
- package/dist/nodes/ZaloMessageTrigger/ZaloMessageTrigger.node.d.ts +12 -0
- package/dist/nodes/ZaloMessageTrigger/ZaloMessageTrigger.node.js +147 -0
- package/dist/nodes/ZaloMessageTrigger/ZaloMessageTrigger.node.js.map +1 -0
- package/dist/nodes/ZaloPoll/ZaloPoll.node.d.ts +5 -0
- package/dist/nodes/ZaloPoll/ZaloPoll.node.js +187 -0
- package/dist/nodes/ZaloPoll/ZaloPoll.node.js.map +1 -0
- package/dist/nodes/ZaloPoll/ZaloPollDescription.d.ts +3 -0
- package/dist/nodes/ZaloPoll/ZaloPollDescription.js +260 -0
- package/dist/nodes/ZaloPoll/ZaloPollDescription.js.map +1 -0
- package/dist/nodes/ZaloSendMessage/ZaloSendMessage.node.d.ts +5 -0
- package/dist/nodes/ZaloSendMessage/ZaloSendMessage.node.js +307 -0
- package/dist/nodes/ZaloSendMessage/ZaloSendMessage.node.js.map +1 -0
- package/dist/nodes/ZaloTag/ZaloTag.node.d.ts +5 -0
- package/dist/nodes/ZaloTag/ZaloTag.node.js +81 -0
- package/dist/nodes/ZaloTag/ZaloTag.node.js.map +1 -0
- package/dist/nodes/ZaloUser/ZaloUser.node.d.ts +5 -0
- package/dist/nodes/ZaloUser/ZaloUser.node.js +229 -0
- package/dist/nodes/ZaloUser/ZaloUser.node.js.map +1 -0
- package/dist/nodes/ZaloUser/ZaloUserDescription.d.ts +3 -0
- package/dist/nodes/ZaloUser/ZaloUserDescription.js +361 -0
- package/dist/nodes/ZaloUser/ZaloUserDescription.js.map +1 -0
- package/dist/nodes/shared/zalo.svg +10 -0
- package/dist/nodes/utils/helper.d.ts +2 -0
- package/dist/nodes/utils/helper.js +42 -0
- package/dist/nodes/utils/helper.js.map +1 -0
- package/dist/package.json +74 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +72 -74
- package/dist/bridge/zalo-bridge.d.ts +0 -46
- package/dist/bridge/zalo-bridge.d.ts.map +0 -1
- package/dist/bridge/zalo-bridge.js +0 -213
- package/dist/bridge/zalo-bridge.js.map +0 -1
- package/dist/credentials/zalo-api.credentials.d.ts.map +0 -1
- package/dist/credentials/zalo-api.credentials.js +0 -82
- package/dist/credentials/zalo-api.credentials.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -36
- package/dist/index.js.map +0 -1
- package/dist/interfaces/auth.interface.d.ts +0 -33
- package/dist/interfaces/auth.interface.d.ts.map +0 -1
- package/dist/interfaces/auth.interface.js +0 -3
- package/dist/interfaces/auth.interface.js.map +0 -1
- package/dist/interfaces/config.interface.d.ts +0 -37
- package/dist/interfaces/config.interface.d.ts.map +0 -1
- package/dist/interfaces/config.interface.js +0 -3
- package/dist/interfaces/config.interface.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -4
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -20
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/zalo.interface.d.ts +0 -74
- package/dist/interfaces/zalo.interface.d.ts.map +0 -1
- package/dist/interfaces/zalo.interface.js +0 -14
- package/dist/interfaces/zalo.interface.js.map +0 -1
- package/dist/nodes/ZaloManage/zalo-manage.node.d.ts.map +0 -1
- package/dist/nodes/ZaloManage/zalo-manage.node.js +0 -426
- package/dist/nodes/ZaloManage/zalo-manage.node.js.map +0 -1
- package/dist/nodes/ZaloManage/zalo.svg +0 -5
- package/dist/nodes/ZaloSend/zalo-send.node.d.ts.map +0 -1
- package/dist/nodes/ZaloSend/zalo-send.node.js +0 -538
- package/dist/nodes/ZaloSend/zalo-send.node.js.map +0 -1
- package/dist/nodes/ZaloSend/zalo.svg +0 -5
- package/dist/nodes/ZaloTrigger/zalo-trigger.node.d.ts +0 -6
- package/dist/nodes/ZaloTrigger/zalo-trigger.node.d.ts.map +0 -1
- package/dist/nodes/ZaloTrigger/zalo-trigger.node.js +0 -308
- package/dist/nodes/ZaloTrigger/zalo-trigger.node.js.map +0 -1
- package/dist/nodes/ZaloTrigger/zalo.svg +0 -5
- package/dist/queues/in-memory-queue.d.ts +0 -20
- package/dist/queues/in-memory-queue.d.ts.map +0 -1
- package/dist/queues/in-memory-queue.js +0 -68
- package/dist/queues/in-memory-queue.js.map +0 -1
- package/dist/queues/index.d.ts +0 -4
- package/dist/queues/index.d.ts.map +0 -1
- package/dist/queues/index.js +0 -8
- package/dist/queues/index.js.map +0 -1
- package/dist/queues/queue.interface.d.ts +0 -15
- package/dist/queues/queue.interface.d.ts.map +0 -1
- package/dist/queues/queue.interface.js +0 -3
- package/dist/queues/queue.interface.js.map +0 -1
- package/dist/queues/redis-queue.d.ts +0 -22
- package/dist/queues/redis-queue.d.ts.map +0 -1
- package/dist/queues/redis-queue.js +0 -65
- package/dist/queues/redis-queue.js.map +0 -1
- package/dist/services/error-handler.service.d.ts +0 -67
- package/dist/services/error-handler.service.d.ts.map +0 -1
- package/dist/services/error-handler.service.js +0 -201
- package/dist/services/error-handler.service.js.map +0 -1
- package/dist/services/index.d.ts +0 -4
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/index.js +0 -13
- package/dist/services/index.js.map +0 -1
- package/dist/services/rate-limiter.service.d.ts +0 -68
- package/dist/services/rate-limiter.service.d.ts.map +0 -1
- package/dist/services/rate-limiter.service.js +0 -149
- package/dist/services/rate-limiter.service.js.map +0 -1
- package/dist/services/zalo-connection-manager.service.d.ts +0 -85
- package/dist/services/zalo-connection-manager.service.d.ts.map +0 -1
- package/dist/services/zalo-connection-manager.service.js +0 -243
- package/dist/services/zalo-connection-manager.service.js.map +0 -1
- package/dist/utils/auth-helpers.d.ts +0 -25
- package/dist/utils/auth-helpers.d.ts.map +0 -1
- package/dist/utils/auth-helpers.js +0 -66
- package/dist/utils/auth-helpers.js.map +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rate limiter configuration
|
|
3
|
-
*/
|
|
4
|
-
export interface IRateLimitConfig {
|
|
5
|
-
minDelayMs: number;
|
|
6
|
-
maxDelayMs: number;
|
|
7
|
-
mode: 'memory' | 'redis';
|
|
8
|
-
redisUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Queue configuration
|
|
12
|
-
*/
|
|
13
|
-
export interface IQueueConfig {
|
|
14
|
-
mode: 'memory' | 'redis';
|
|
15
|
-
redisUrl?: string;
|
|
16
|
-
maxSize?: number;
|
|
17
|
-
ttlSeconds?: number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Connection manager configuration
|
|
21
|
-
*/
|
|
22
|
-
export interface IConnectionConfig {
|
|
23
|
-
autoReconnect: boolean;
|
|
24
|
-
reconnectIntervalMs: number;
|
|
25
|
-
maxReconnectAttempts: number;
|
|
26
|
-
healthCheckIntervalMs: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Error handler configuration
|
|
30
|
-
*/
|
|
31
|
-
export interface IErrorHandlerConfig {
|
|
32
|
-
maxRetries: number;
|
|
33
|
-
baseDelayMs: number;
|
|
34
|
-
maxDelayMs: number;
|
|
35
|
-
retryableErrors: string[];
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=config.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/config.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.interface.js","sourceRoot":"","sources":["../../src/interfaces/config.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
package/dist/interfaces/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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("./auth.interface"), exports);
|
|
18
|
-
__exportStar(require("./config.interface"), exports);
|
|
19
|
-
__exportStar(require("./zalo.interface"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qDAAmC;AACnC,mDAAiC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zalo message structure
|
|
3
|
-
*/
|
|
4
|
-
export interface IZaloMessage {
|
|
5
|
-
msgId: string;
|
|
6
|
-
threadId: string;
|
|
7
|
-
senderId: string;
|
|
8
|
-
senderName?: string;
|
|
9
|
-
content: string;
|
|
10
|
-
type: ZaloMessageType;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
quote?: IZaloQuote;
|
|
13
|
-
attachments?: IZaloAttachment[];
|
|
14
|
-
}
|
|
15
|
-
export declare enum ZaloMessageType {
|
|
16
|
-
TEXT = "text",
|
|
17
|
-
IMAGE = "image",
|
|
18
|
-
VIDEO = "video",
|
|
19
|
-
FILE = "file",
|
|
20
|
-
STICKER = "sticker",
|
|
21
|
-
GIF = "gif",
|
|
22
|
-
VOICE = "voice"
|
|
23
|
-
}
|
|
24
|
-
export interface IZaloQuote {
|
|
25
|
-
msgId: string;
|
|
26
|
-
content: string;
|
|
27
|
-
senderId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IZaloAttachment {
|
|
30
|
-
type: ZaloMessageType;
|
|
31
|
-
url?: string;
|
|
32
|
-
thumbnail?: string;
|
|
33
|
-
fileName?: string;
|
|
34
|
-
fileSize?: number;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Zalo user/group info
|
|
38
|
-
*/
|
|
39
|
-
export interface IZaloUser {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
avatar?: string;
|
|
43
|
-
phone?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface IZaloGroup {
|
|
46
|
-
id: string;
|
|
47
|
-
name: string;
|
|
48
|
-
avatar?: string;
|
|
49
|
-
memberCount: number;
|
|
50
|
-
admins: string[];
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Zalo send message options
|
|
54
|
-
*/
|
|
55
|
-
export interface IZaloSendOptions {
|
|
56
|
-
threadId: string;
|
|
57
|
-
threadType: 'user' | 'group';
|
|
58
|
-
typing?: boolean;
|
|
59
|
-
typingDuration?: number;
|
|
60
|
-
quote?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface IZaloSendTextOptions extends IZaloSendOptions {
|
|
63
|
-
message: string;
|
|
64
|
-
}
|
|
65
|
-
export interface IZaloSendMediaOptions extends IZaloSendOptions {
|
|
66
|
-
filePath?: string;
|
|
67
|
-
fileUrl?: string;
|
|
68
|
-
fileName?: string;
|
|
69
|
-
}
|
|
70
|
-
export interface IZaloSendStickerOptions extends IZaloSendOptions {
|
|
71
|
-
stickerId: string;
|
|
72
|
-
stickerPackId?: string;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=zalo.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zalo.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/zalo.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;CACjC;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;I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,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZaloMessageType = void 0;
|
|
4
|
-
var ZaloMessageType;
|
|
5
|
-
(function (ZaloMessageType) {
|
|
6
|
-
ZaloMessageType["TEXT"] = "text";
|
|
7
|
-
ZaloMessageType["IMAGE"] = "image";
|
|
8
|
-
ZaloMessageType["VIDEO"] = "video";
|
|
9
|
-
ZaloMessageType["FILE"] = "file";
|
|
10
|
-
ZaloMessageType["STICKER"] = "sticker";
|
|
11
|
-
ZaloMessageType["GIF"] = "gif";
|
|
12
|
-
ZaloMessageType["VOICE"] = "voice";
|
|
13
|
-
})(ZaloMessageType || (exports.ZaloMessageType = ZaloMessageType = {}));
|
|
14
|
-
//# sourceMappingURL=zalo.interface.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zalo.interface.js","sourceRoot":"","sources":["../../src/interfaces/zalo.interface.ts"],"names":[],"mappings":";;;AAeA,IAAY,eAQX;AARD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,8BAAW,CAAA;IACX,kCAAe,CAAA;AACjB,CAAC,EARW,eAAe,+BAAf,eAAe,QAQ1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zalo-manage.node.d.ts","sourceRoot":"","sources":["../../../src/nodes/ZaloManage/zalo-manage.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAKtB,qBAAa,UAAW,YAAW,SAAS;IAC1C,WAAW,EAAE,oBAAoB,CA+R/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAkIxE"}
|
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZaloManage = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
const zalo_connection_manager_service_1 = require("../../services/zalo-connection-manager.service");
|
|
6
|
-
const error_handler_service_1 = require("../../services/error-handler.service");
|
|
7
|
-
class ZaloManage {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.description = {
|
|
10
|
-
displayName: 'Zalo Manage',
|
|
11
|
-
name: 'zaloManage',
|
|
12
|
-
icon: 'file:zalo.svg',
|
|
13
|
-
group: ['transform'],
|
|
14
|
-
version: 1,
|
|
15
|
-
subtitle: '={{$parameter["resource"]}} - {{$parameter["operation"]}}',
|
|
16
|
-
description: 'Manage Zalo resources (profile, contacts, groups)',
|
|
17
|
-
defaults: {
|
|
18
|
-
name: 'Zalo Manage',
|
|
19
|
-
},
|
|
20
|
-
inputs: ['main'],
|
|
21
|
-
outputs: ['main'],
|
|
22
|
-
credentials: [
|
|
23
|
-
{
|
|
24
|
-
name: 'zaloApi',
|
|
25
|
-
required: true,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
properties: [
|
|
29
|
-
{
|
|
30
|
-
displayName: 'Resource',
|
|
31
|
-
name: 'resource',
|
|
32
|
-
type: 'options',
|
|
33
|
-
noDataExpression: true,
|
|
34
|
-
options: [
|
|
35
|
-
{
|
|
36
|
-
name: 'Profile',
|
|
37
|
-
value: 'profile',
|
|
38
|
-
description: 'Account profile operations',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'Contact',
|
|
42
|
-
value: 'contact',
|
|
43
|
-
description: 'Friend/contact operations',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'Group',
|
|
47
|
-
value: 'group',
|
|
48
|
-
description: 'Group operations',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'User',
|
|
52
|
-
value: 'user',
|
|
53
|
-
description: 'User lookup operations',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
default: 'profile',
|
|
57
|
-
},
|
|
58
|
-
// Profile operations
|
|
59
|
-
{
|
|
60
|
-
displayName: 'Operation',
|
|
61
|
-
name: 'operation',
|
|
62
|
-
type: 'options',
|
|
63
|
-
noDataExpression: true,
|
|
64
|
-
displayOptions: {
|
|
65
|
-
show: {
|
|
66
|
-
resource: ['profile'],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
options: [
|
|
70
|
-
{
|
|
71
|
-
name: 'Get Account Info',
|
|
72
|
-
value: 'getAccountInfo',
|
|
73
|
-
description: 'Get current account information',
|
|
74
|
-
action: 'Get account info',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: 'Get Context',
|
|
78
|
-
value: 'getContext',
|
|
79
|
-
description: 'Get API context information',
|
|
80
|
-
action: 'Get context',
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
default: 'getAccountInfo',
|
|
84
|
-
},
|
|
85
|
-
// Contact operations
|
|
86
|
-
{
|
|
87
|
-
displayName: 'Operation',
|
|
88
|
-
name: 'operation',
|
|
89
|
-
type: 'options',
|
|
90
|
-
noDataExpression: true,
|
|
91
|
-
displayOptions: {
|
|
92
|
-
show: {
|
|
93
|
-
resource: ['contact'],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
options: [
|
|
97
|
-
{
|
|
98
|
-
name: 'Get All Friends',
|
|
99
|
-
value: 'getAllFriends',
|
|
100
|
-
description: 'Get list of all friends',
|
|
101
|
-
action: 'Get all friends',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: 'Find User',
|
|
105
|
-
value: 'findUser',
|
|
106
|
-
description: 'Find user by phone number',
|
|
107
|
-
action: 'Find user',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'Get Friend Online Status',
|
|
111
|
-
value: 'getFriendOnlines',
|
|
112
|
-
description: 'Get online status of friends',
|
|
113
|
-
action: 'Get friend online status',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'Block User',
|
|
117
|
-
value: 'blockUser',
|
|
118
|
-
description: 'Block a user',
|
|
119
|
-
action: 'Block user',
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
default: 'getAllFriends',
|
|
123
|
-
},
|
|
124
|
-
// Group operations
|
|
125
|
-
{
|
|
126
|
-
displayName: 'Operation',
|
|
127
|
-
name: 'operation',
|
|
128
|
-
type: 'options',
|
|
129
|
-
noDataExpression: true,
|
|
130
|
-
displayOptions: {
|
|
131
|
-
show: {
|
|
132
|
-
resource: ['group'],
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
options: [
|
|
136
|
-
{
|
|
137
|
-
name: 'Get All Groups',
|
|
138
|
-
value: 'getAllGroups',
|
|
139
|
-
description: 'Get list of all groups',
|
|
140
|
-
action: 'Get all groups',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: 'Get Group Info',
|
|
144
|
-
value: 'getGroupInfo',
|
|
145
|
-
description: 'Get detailed group information',
|
|
146
|
-
action: 'Get group info',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
name: 'Get Group Members',
|
|
150
|
-
value: 'getGroupMembersInfo',
|
|
151
|
-
description: 'Get group members information',
|
|
152
|
-
action: 'Get group members',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name: 'Create Group',
|
|
156
|
-
value: 'createGroup',
|
|
157
|
-
description: 'Create a new group',
|
|
158
|
-
action: 'Create group',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: 'Add User to Group',
|
|
162
|
-
value: 'addUserToGroup',
|
|
163
|
-
description: 'Add a user to group',
|
|
164
|
-
action: 'Add user to group',
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
name: 'Remove User from Group',
|
|
168
|
-
value: 'removeUserFromGroup',
|
|
169
|
-
description: 'Remove a user from group',
|
|
170
|
-
action: 'Remove user from group',
|
|
171
|
-
},
|
|
172
|
-
],
|
|
173
|
-
default: 'getAllGroups',
|
|
174
|
-
},
|
|
175
|
-
// User operations
|
|
176
|
-
{
|
|
177
|
-
displayName: 'Operation',
|
|
178
|
-
name: 'operation',
|
|
179
|
-
type: 'options',
|
|
180
|
-
noDataExpression: true,
|
|
181
|
-
displayOptions: {
|
|
182
|
-
show: {
|
|
183
|
-
resource: ['user'],
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
options: [
|
|
187
|
-
{
|
|
188
|
-
name: 'Get User Info',
|
|
189
|
-
value: 'getUserInfo',
|
|
190
|
-
description: 'Get user information by ID',
|
|
191
|
-
action: 'Get user info',
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
default: 'getUserInfo',
|
|
195
|
-
},
|
|
196
|
-
// Parameters for specific operations
|
|
197
|
-
{
|
|
198
|
-
displayName: 'Phone Number',
|
|
199
|
-
name: 'phoneNumber',
|
|
200
|
-
type: 'string',
|
|
201
|
-
default: '',
|
|
202
|
-
required: true,
|
|
203
|
-
displayOptions: {
|
|
204
|
-
show: {
|
|
205
|
-
resource: ['contact'],
|
|
206
|
-
operation: ['findUser'],
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
description: 'Phone number to search for',
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
displayName: 'User ID',
|
|
213
|
-
name: 'userId',
|
|
214
|
-
type: 'string',
|
|
215
|
-
default: '',
|
|
216
|
-
required: true,
|
|
217
|
-
displayOptions: {
|
|
218
|
-
show: {
|
|
219
|
-
resource: ['contact'],
|
|
220
|
-
operation: ['blockUser'],
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
description: 'User ID to block',
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
displayName: 'User ID',
|
|
227
|
-
name: 'userId',
|
|
228
|
-
type: 'string',
|
|
229
|
-
default: '',
|
|
230
|
-
required: true,
|
|
231
|
-
displayOptions: {
|
|
232
|
-
show: {
|
|
233
|
-
resource: ['user'],
|
|
234
|
-
operation: ['getUserInfo'],
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
description: 'User ID to get info for',
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
displayName: 'Group ID',
|
|
241
|
-
name: 'groupId',
|
|
242
|
-
type: 'string',
|
|
243
|
-
default: '',
|
|
244
|
-
required: true,
|
|
245
|
-
displayOptions: {
|
|
246
|
-
show: {
|
|
247
|
-
resource: ['group'],
|
|
248
|
-
operation: ['getGroupInfo', 'getGroupMembersInfo', 'addUserToGroup', 'removeUserFromGroup'],
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
description: 'Group ID',
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
displayName: 'User ID',
|
|
255
|
-
name: 'userId',
|
|
256
|
-
type: 'string',
|
|
257
|
-
default: '',
|
|
258
|
-
required: true,
|
|
259
|
-
displayOptions: {
|
|
260
|
-
show: {
|
|
261
|
-
resource: ['group'],
|
|
262
|
-
operation: ['addUserToGroup', 'removeUserFromGroup'],
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
description: 'User ID to add/remove',
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
displayName: 'Group Name',
|
|
269
|
-
name: 'groupName',
|
|
270
|
-
type: 'string',
|
|
271
|
-
default: '',
|
|
272
|
-
required: true,
|
|
273
|
-
displayOptions: {
|
|
274
|
-
show: {
|
|
275
|
-
resource: ['group'],
|
|
276
|
-
operation: ['createGroup'],
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
description: 'Name for the new group',
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
displayName: 'Member IDs',
|
|
283
|
-
name: 'memberIds',
|
|
284
|
-
type: 'string',
|
|
285
|
-
default: '',
|
|
286
|
-
required: true,
|
|
287
|
-
displayOptions: {
|
|
288
|
-
show: {
|
|
289
|
-
resource: ['group'],
|
|
290
|
-
operation: ['createGroup'],
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
description: 'Comma-separated list of user IDs to add to group',
|
|
294
|
-
},
|
|
295
|
-
],
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
async execute() {
|
|
299
|
-
const items = this.getInputData();
|
|
300
|
-
const returnData = [];
|
|
301
|
-
const credentials = (await this.getCredentials('zaloApi'));
|
|
302
|
-
const connectionManager = zalo_connection_manager_service_1.ZaloConnectionManager.getInstance();
|
|
303
|
-
const errorHandler = (0, error_handler_service_1.createDefaultErrorHandler)();
|
|
304
|
-
const api = await errorHandler.withRetry(() => connectionManager.connect(credentials));
|
|
305
|
-
for (let i = 0; i < items.length; i++) {
|
|
306
|
-
try {
|
|
307
|
-
const resource = this.getNodeParameter('resource', i);
|
|
308
|
-
const operation = this.getNodeParameter('operation', i);
|
|
309
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
310
|
-
let result;
|
|
311
|
-
if (resource === 'profile') {
|
|
312
|
-
switch (operation) {
|
|
313
|
-
case 'getAccountInfo':
|
|
314
|
-
result = await errorHandler.withRetry(() => api.fetchAccountInfo());
|
|
315
|
-
break;
|
|
316
|
-
case 'getContext':
|
|
317
|
-
result = api.getContext();
|
|
318
|
-
break;
|
|
319
|
-
default:
|
|
320
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
else if (resource === 'contact') {
|
|
324
|
-
switch (operation) {
|
|
325
|
-
case 'getAllFriends':
|
|
326
|
-
result = await errorHandler.withRetry(() => api.getAllFriends());
|
|
327
|
-
break;
|
|
328
|
-
case 'findUser': {
|
|
329
|
-
const phoneNumber = this.getNodeParameter('phoneNumber', i);
|
|
330
|
-
result = await errorHandler.withRetry(() => api.findUser(phoneNumber));
|
|
331
|
-
break;
|
|
332
|
-
}
|
|
333
|
-
case 'getFriendOnlines':
|
|
334
|
-
result = await errorHandler.withRetry(() => api.getFriendOnlines());
|
|
335
|
-
break;
|
|
336
|
-
case 'blockUser': {
|
|
337
|
-
const userId = this.getNodeParameter('userId', i);
|
|
338
|
-
result = await errorHandler.withRetry(() => api.blockUser(userId));
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
default:
|
|
342
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
else if (resource === 'group') {
|
|
346
|
-
switch (operation) {
|
|
347
|
-
case 'getAllGroups':
|
|
348
|
-
result = await errorHandler.withRetry(() => api.getAllGroups());
|
|
349
|
-
break;
|
|
350
|
-
case 'getGroupInfo': {
|
|
351
|
-
const groupId = this.getNodeParameter('groupId', i);
|
|
352
|
-
result = await errorHandler.withRetry(() => api.getGroupInfo(groupId));
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
case 'getGroupMembersInfo': {
|
|
356
|
-
const groupId = this.getNodeParameter('groupId', i);
|
|
357
|
-
result = await errorHandler.withRetry(() => api.getGroupMembersInfo(groupId));
|
|
358
|
-
break;
|
|
359
|
-
}
|
|
360
|
-
case 'createGroup': {
|
|
361
|
-
const groupName = this.getNodeParameter('groupName', i);
|
|
362
|
-
const memberIds = this.getNodeParameter('memberIds', i)
|
|
363
|
-
.split(',')
|
|
364
|
-
.map((id) => id.trim());
|
|
365
|
-
result = await errorHandler.withRetry(() => api.createGroup({ name: groupName, members: memberIds }));
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
case 'addUserToGroup': {
|
|
369
|
-
const groupId = this.getNodeParameter('groupId', i);
|
|
370
|
-
const userId = this.getNodeParameter('userId', i);
|
|
371
|
-
result = await errorHandler.withRetry(() => api.addUserToGroup(userId, groupId));
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
case 'removeUserFromGroup': {
|
|
375
|
-
const groupId = this.getNodeParameter('groupId', i);
|
|
376
|
-
const userId = this.getNodeParameter('userId', i);
|
|
377
|
-
result = await errorHandler.withRetry(() => api.removeUserFromGroup(userId, groupId));
|
|
378
|
-
break;
|
|
379
|
-
}
|
|
380
|
-
default:
|
|
381
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
else if (resource === 'user') {
|
|
385
|
-
switch (operation) {
|
|
386
|
-
case 'getUserInfo': {
|
|
387
|
-
const userId = this.getNodeParameter('userId', i);
|
|
388
|
-
result = await errorHandler.withRetry(() => api.getUserInfo(userId));
|
|
389
|
-
break;
|
|
390
|
-
}
|
|
391
|
-
default:
|
|
392
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`);
|
|
397
|
-
}
|
|
398
|
-
returnData.push({
|
|
399
|
-
json: {
|
|
400
|
-
success: true,
|
|
401
|
-
resource,
|
|
402
|
-
operation,
|
|
403
|
-
data: result,
|
|
404
|
-
},
|
|
405
|
-
pairedItem: { item: i },
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
catch (error) {
|
|
409
|
-
if (this.continueOnFail()) {
|
|
410
|
-
returnData.push({
|
|
411
|
-
json: {
|
|
412
|
-
success: false,
|
|
413
|
-
error: error.message,
|
|
414
|
-
},
|
|
415
|
-
pairedItem: { item: i },
|
|
416
|
-
});
|
|
417
|
-
continue;
|
|
418
|
-
}
|
|
419
|
-
throw error;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
return [returnData];
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
exports.ZaloManage = ZaloManage;
|
|
426
|
-
//# sourceMappingURL=zalo-manage.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zalo-manage.node.js","sourceRoot":"","sources":["../../../src/nodes/ZaloManage/zalo-manage.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AACtB,oGAAuF;AACvF,gFAAiF;AAGjF,MAAa,UAAU;IAAvB;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,2DAA2D;YACrE,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE;gBACR,IAAI,EAAE,aAAa;aACpB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,UAAU,EAAE;gBACV;oBACE,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACP;4BACE,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;4BAChB,WAAW,EAAE,4BAA4B;yBAC1C;wBACD;4BACE,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;4BAChB,WAAW,EAAE,2BAA2B;yBACzC;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,OAAO;4BACd,WAAW,EAAE,kBAAkB;yBAChC;wBACD;4BACE,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;4BACb,WAAW,EAAE,wBAAwB;yBACtC;qBACF;oBACD,OAAO,EAAE,SAAS;iBACnB;gBACD,qBAAqB;gBAC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