n8n-nodes-signal-cli-rest-api 0.5.2 → 0.6.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.
@@ -82,7 +82,7 @@ async function executeAttachmentsOperation(operation, itemIndex, params) {
82
82
  'application/x-7z-compressed': '7z'
83
83
  };
84
84
  const extension = mimeToExt[contentType] || 'bin';
85
- fileName = `{attachmentId}`;
85
+ fileName = `${attachmentId}`;
86
86
  }
87
87
  const fileExtension = fileName.split('.').pop() || '';
88
88
  // Convert ArrayBuffer into Buffer for n8n
@@ -63,6 +63,38 @@ async function executeMessagesOperation(operation, itemIndex, params) {
63
63
  }));
64
64
  return { json: response.data || { status: 'Reaction removed' }, pairedItem: { item: itemIndex } };
65
65
  }
66
+ else if (operation === 'startTyping') {
67
+ const response = await retryRequest(() => axios_1.default.put(`${apiUrl}/v1/typing-indicator/${phoneNumber}`, {
68
+ recipient,
69
+ action: "start",
70
+ }, axiosConfig));
71
+ return {
72
+ json: {
73
+ status: 'Typing indicator started',
74
+ recipient,
75
+ action: 'start',
76
+ timestamp: new Date().toISOString(),
77
+ ...response.data
78
+ },
79
+ pairedItem: { item: itemIndex }
80
+ };
81
+ }
82
+ else if (operation === 'stopTyping') {
83
+ const response = await retryRequest(() => axios_1.default.put(`${apiUrl}/v1/typing-indicator/${phoneNumber}`, {
84
+ recipient,
85
+ action: "stop",
86
+ }, axiosConfig));
87
+ return {
88
+ json: {
89
+ status: 'Typing indicator stopped',
90
+ recipient,
91
+ action: 'stop',
92
+ timestamp: new Date().toISOString(),
93
+ ...response.data
94
+ },
95
+ pairedItem: { item: itemIndex }
96
+ };
97
+ }
66
98
  throw new n8n_workflow_1.NodeApiError(this.getNode(), { message: 'Unknown operation' });
67
99
  }
68
100
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-signal-cli-rest-api",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Signal Node for n8n using signal-cli-rest-api",
5
5
  "repository": {
6
6
  "type": "git",