n8n-nodes-digitalsac 0.5.2 → 0.5.4

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 CHANGED
@@ -211,6 +211,7 @@ Onde:
211
211
  - `copy`: Copia texto para área de transferência
212
212
  - `call`: Inicia uma chamada telefônica
213
213
 
214
+ <!-- TEMPORARIAMENTE DESABILITADO - ENVIAR LISTA
214
215
  ### 📋 Enviar Lista
215
216
  1. Selecione a operação **Enviar Lista**
216
217
  2. No campo **Parâmetro**, insira o UUID da conexão
@@ -267,6 +268,7 @@ Onde:
267
268
  }
268
269
  ]
269
270
  ```
271
+ -->
270
272
 
271
273
  ### 🖼️ Enviar Mídia com Caption
272
274
  1. **Conecte um nó com arquivo** (ex: HTTP Request, Read Binary File, Google Drive)
@@ -37,7 +37,7 @@ class Digitalsac {
37
37
  { name: 'Fechar Ticket', value: 'closeTicket' },
38
38
  { name: 'Enviar Mensagem', value: 'sendMessage' },
39
39
  { name: 'Enviar Botões', value: 'sendButtons' },
40
- { name: 'Enviar Lista', value: 'sendList' },
40
+ // { name: 'Enviar Lista', value: 'sendList' }, // TEMPORARIAMENTE DESABILITADO
41
41
  { name: 'Enviar Mídia com Caption', value: 'sendMediaCaption' },
42
42
  { name: 'Enviar Base64', value: 'sendBase64' },
43
43
  { name: 'Listar Tags', value: 'listTags' },
@@ -65,7 +65,7 @@ class Digitalsac {
65
65
  default: '',
66
66
  displayOptions: {
67
67
  show: {
68
- operation: ['validateWhatsapp', 'validateCpf', 'sendMessage', 'sendButtons', 'sendList', 'sendMediaCaption', 'sendBase64'],
68
+ operation: ['validateWhatsapp', 'validateCpf', 'sendMessage', 'sendButtons', /* 'sendList', */ 'sendMediaCaption', 'sendBase64'],
69
69
  },
70
70
  },
71
71
  description: 'Número, CPF ou UUID da conexão (conforme operação)',
@@ -113,7 +113,7 @@ class Digitalsac {
113
113
  default: 'Digitalsac123',
114
114
  displayOptions: {
115
115
  show: {
116
- operation: ['sendMessage', 'sendButtons', 'sendList', 'sendMediaCaption', 'sendBase64'],
116
+ operation: ['sendMessage', 'sendButtons', /* 'sendList', */ 'sendMediaCaption', 'sendBase64'],
117
117
  },
118
118
  },
119
119
  description: 'Identificador único opcional para a mensagem',
@@ -167,7 +167,8 @@ class Digitalsac {
167
167
  },
168
168
  description: 'Array de botões em formato JSON',
169
169
  },
170
- // Campos para Enviar Lista
170
+ // Campos para Enviar Lista - TEMPORARIAMENTE DESABILITADO
171
+ /*
171
172
  {
172
173
  displayName: 'Título',
173
174
  name: 'listTitle',
@@ -240,6 +241,7 @@ class Digitalsac {
240
241
  },
241
242
  description: 'Array de seções da lista em formato JSON',
242
243
  },
244
+ */
243
245
  // Campos para Enviar Mídia com Caption
244
246
  {
245
247
  displayName: 'Caption',
@@ -1032,27 +1034,32 @@ class Digitalsac {
1032
1034
  json: true,
1033
1035
  };
1034
1036
  break;
1037
+ // TEMPORARIAMENTE DESABILITADO - sendList
1038
+ /*
1035
1039
  case 'sendList':
1036
1040
  // Validar se o UUID foi fornecido
1037
1041
  if (!param || param.trim() === '') {
1038
1042
  throw new Error('UUID da conexão é obrigatório para enviar lista. Preencha o campo "Parâmetro" com o UUID da conexão.');
1039
1043
  }
1044
+
1040
1045
  url = `/v1/api/external/${param}/send-list`;
1041
1046
  method = 'POST';
1042
- const listTitle = this.getNodeParameter('listTitle', i);
1043
- const listText = this.getNodeParameter('listText', i);
1044
- const listButtonText = this.getNodeParameter('listButtonText', i);
1045
- const listFooter = this.getNodeParameter('listFooter', i);
1046
- const listPhoneNumber = this.getNodeParameter('listPhoneNumber', i);
1047
- const listExternalKey = this.getNodeParameter('externalKey', i);
1048
- const sectionsData = this.getNodeParameter('sectionsData', i);
1047
+
1048
+ const listTitle = this.getNodeParameter('listTitle', i) as string;
1049
+ const listText = this.getNodeParameter('listText', i) as string;
1050
+ const listButtonText = this.getNodeParameter('listButtonText', i) as string;
1051
+ const listFooter = this.getNodeParameter('listFooter', i) as string;
1052
+ const listPhoneNumber = this.getNodeParameter('listPhoneNumber', i) as string;
1053
+ const listExternalKey = this.getNodeParameter('externalKey', i) as string;
1054
+ const sectionsData = this.getNodeParameter('sectionsData', i) as string;
1055
+
1049
1056
  let parsedSections;
1050
1057
  try {
1051
1058
  parsedSections = JSON.parse(sectionsData);
1052
- }
1053
- catch (error) {
1059
+ } catch (error) {
1054
1060
  throw new Error('Erro ao fazer parse do JSON das seções. Verifique a sintaxe.');
1055
1061
  }
1062
+
1056
1063
  body = {
1057
1064
  title: listTitle,
1058
1065
  text: listText,
@@ -1062,6 +1069,7 @@ class Digitalsac {
1062
1069
  sections: parsedSections,
1063
1070
  externalKey: listExternalKey
1064
1071
  };
1072
+
1065
1073
  headers['Content-Type'] = 'application/json';
1066
1074
  options = {
1067
1075
  method,
@@ -1071,6 +1079,7 @@ class Digitalsac {
1071
1079
  json: true,
1072
1080
  };
1073
1081
  break;
1082
+ */
1074
1083
  case 'sendMediaCaption':
1075
1084
  // Validar se o UUID foi fornecido
1076
1085
  if (!param || param.trim() === '') {
@@ -44,7 +44,7 @@ export class Digitalsac implements INodeType {
44
44
  { name: 'Fechar Ticket', value: 'closeTicket' },
45
45
  { name: 'Enviar Mensagem', value: 'sendMessage' },
46
46
  { name: 'Enviar Botões', value: 'sendButtons' },
47
- { name: 'Enviar Lista', value: 'sendList' },
47
+ // { name: 'Enviar Lista', value: 'sendList' }, // TEMPORARIAMENTE DESABILITADO
48
48
  { name: 'Enviar Mídia com Caption', value: 'sendMediaCaption' },
49
49
  { name: 'Enviar Base64', value: 'sendBase64' },
50
50
  { name: 'Listar Tags', value: 'listTags' },
@@ -72,7 +72,7 @@ export class Digitalsac implements INodeType {
72
72
  default: '',
73
73
  displayOptions: {
74
74
  show: {
75
- operation: ['validateWhatsapp', 'validateCpf', 'sendMessage', 'sendButtons', 'sendList', 'sendMediaCaption', 'sendBase64'],
75
+ operation: ['validateWhatsapp', 'validateCpf', 'sendMessage', 'sendButtons', /* 'sendList', */ 'sendMediaCaption', 'sendBase64'],
76
76
  },
77
77
  },
78
78
  description: 'Número, CPF ou UUID da conexão (conforme operação)',
@@ -120,7 +120,7 @@ export class Digitalsac implements INodeType {
120
120
  default: 'Digitalsac123',
121
121
  displayOptions: {
122
122
  show: {
123
- operation: ['sendMessage', 'sendButtons', 'sendList', 'sendMediaCaption', 'sendBase64'],
123
+ operation: ['sendMessage', 'sendButtons', /* 'sendList', */ 'sendMediaCaption', 'sendBase64'],
124
124
  },
125
125
  },
126
126
  description: 'Identificador único opcional para a mensagem',
@@ -174,7 +174,8 @@ export class Digitalsac implements INodeType {
174
174
  },
175
175
  description: 'Array de botões em formato JSON',
176
176
  },
177
- // Campos para Enviar Lista
177
+ // Campos para Enviar Lista - TEMPORARIAMENTE DESABILITADO
178
+ /*
178
179
  {
179
180
  displayName: 'Título',
180
181
  name: 'listTitle',
@@ -247,6 +248,7 @@ export class Digitalsac implements INodeType {
247
248
  },
248
249
  description: 'Array de seções da lista em formato JSON',
249
250
  },
251
+ */
250
252
  // Campos para Enviar Mídia com Caption
251
253
  {
252
254
  displayName: 'Caption',
@@ -1068,6 +1070,8 @@ export class Digitalsac implements INodeType {
1068
1070
  json: true,
1069
1071
  };
1070
1072
  break;
1073
+ // TEMPORARIAMENTE DESABILITADO - sendList
1074
+ /*
1071
1075
  case 'sendList':
1072
1076
  // Validar se o UUID foi fornecido
1073
1077
  if (!param || param.trim() === '') {
@@ -1111,6 +1115,7 @@ export class Digitalsac implements INodeType {
1111
1115
  json: true,
1112
1116
  };
1113
1117
  break;
1118
+ */
1114
1119
  case 'sendMediaCaption':
1115
1120
  // Validar se o UUID foi fornecido
1116
1121
  if (!param || param.trim() === '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-digitalsac",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Izing Pro Digitalsac",
5
5
  "keywords": [
6
6
  "n8n",