n8n-nodes-waha-split 2025.1226.12 → 2026.15.10-dev1
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.
|
@@ -87,6 +87,81 @@ const config = {
|
|
|
87
87
|
};
|
|
88
88
|
const parser = new n8n_openapi_node_1.N8NPropertiesBuilder(doc, config);
|
|
89
89
|
const properties = parser.build(customDefaults);
|
|
90
|
+
const chattingOp = properties.find((p) => { var _a, _b, _c; return p.name === 'operation' && ((_c = (_b = (_a = p.displayOptions) === null || _a === void 0 ? void 0 : _a.show) === null || _b === void 0 ? void 0 : _b.resource) === null || _c === void 0 ? void 0 : _c.includes('Chatting')); });
|
|
91
|
+
if (chattingOp && chattingOp.options) {
|
|
92
|
+
const endpoints = [
|
|
93
|
+
{ name: 'Send Image', path: '/api/sendImage' },
|
|
94
|
+
{ name: 'Send File', path: '/api/sendFile' },
|
|
95
|
+
{ name: 'Send Voice', path: '/api/sendVoice' },
|
|
96
|
+
{ name: 'Send Video', path: '/api/sendVideo' },
|
|
97
|
+
];
|
|
98
|
+
endpoints.forEach((ep) => {
|
|
99
|
+
chattingOp.options.push({
|
|
100
|
+
name: `${ep.name} (Binary)`,
|
|
101
|
+
value: `${ep.name} (Binary)`,
|
|
102
|
+
action: `${ep.name} (Binary)`,
|
|
103
|
+
description: 'This feature usable with mininxd/waha v2026.1.5',
|
|
104
|
+
routing: {
|
|
105
|
+
request: {
|
|
106
|
+
method: 'POST',
|
|
107
|
+
url: `=${ep.path}`,
|
|
108
|
+
headers: {
|
|
109
|
+
'Content-Type': 'multipart/form-data',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
send: {
|
|
113
|
+
type: 'body',
|
|
114
|
+
property: 'file',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
properties.forEach((p) => {
|
|
121
|
+
var _a, _b;
|
|
122
|
+
if ((_b = (_a = p.displayOptions) === null || _a === void 0 ? void 0 : _a.show) === null || _b === void 0 ? void 0 : _b.operation) {
|
|
123
|
+
const ops = p.displayOptions.show.operation;
|
|
124
|
+
const newOps = [];
|
|
125
|
+
if (p.name !== 'file') {
|
|
126
|
+
if (ops.includes('Send Image'))
|
|
127
|
+
newOps.push('Send Image (Binary)');
|
|
128
|
+
if (ops.includes('Send File'))
|
|
129
|
+
newOps.push('Send File (Binary)');
|
|
130
|
+
if (ops.includes('Send Voice'))
|
|
131
|
+
newOps.push('Send Voice (Binary)');
|
|
132
|
+
if (ops.includes('Send Video'))
|
|
133
|
+
newOps.push('Send Video (Binary)');
|
|
134
|
+
}
|
|
135
|
+
if (newOps.length > 0) {
|
|
136
|
+
if (p.displayOptions) {
|
|
137
|
+
p.displayOptions = { ...p.displayOptions };
|
|
138
|
+
if (p.displayOptions.show) {
|
|
139
|
+
p.displayOptions.show = { ...p.displayOptions.show };
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
p.displayOptions.show.operation = [...new Set([...ops, ...newOps])];
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
properties.push({
|
|
147
|
+
displayName: 'File (Binary)',
|
|
148
|
+
name: 'binaryPropertyName',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: 'data',
|
|
151
|
+
required: true,
|
|
152
|
+
displayOptions: {
|
|
153
|
+
show: {
|
|
154
|
+
resource: ['Chatting'],
|
|
155
|
+
operation: [
|
|
156
|
+
'Send Image (Binary)',
|
|
157
|
+
'Send File (Binary)',
|
|
158
|
+
'Send Voice (Binary)',
|
|
159
|
+
'Send Video (Binary)',
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
description: 'Name of the binary property to upload',
|
|
164
|
+
});
|
|
90
165
|
class WAHAv202502 {
|
|
91
166
|
constructor() {
|
|
92
167
|
this.description = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WAHAv202502.js","sourceRoot":"","sources":["../../../../nodes/WAHA/v202502/WAHAv202502.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAAsC;AACtC,uCAAkE;AAClE,gFAA6E;AAC7E,oEAIuC;AACvC,wEAAmE;AACnE,sEAAiE;AAEjE,MAAM,cAAc,GAAe;IAClC;QACC,IAAI,EAAE;YACL,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;SACd;QACD,OAAO,EAAE;YACR,OAAO,EAAE,sBAAsB;SAC/B;KACD;IACD;QACC,IAAI,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;SACd;QACD,OAAO,EAAE;YACR,OAAO,EAAE,2BAA2B;SACpC;KACD;IACD;QACC,IAAI,EAAE;YACL,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;SACd;QACD,OAAO,EAAE;YACR,OAAO,EAAE,yBAAyB;SAClC;KACD;IACD;QACC,IAAI,EAAE;YACL,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,QAAQ;SACd;QACD,OAAO,EAAE;YACR,OAAO,EAAE,EAAE;SACX;KACD;CACD,CAAC;AAEF,MAAM,MAAM,GAA+B;IAC1C,mBAAmB,EAAE,iDAA8B;IACnD,SAAS,EAAE,IAAI,yCAAmB,EAAE;IACpC,QAAQ,EAAE,IAAI,uCAAkB,EAAE;CAClC,CAAC;AACF,MAAM,MAAM,GAAG,IAAI,uCAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"WAHAv202502.js","sourceRoot":"","sources":["../../../../nodes/WAHA/v202502/WAHAv202502.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAAsC;AACtC,uCAAk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