n8n-nodes-typebot 1.3.21 → 1.3.22

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.
@@ -963,7 +963,7 @@ class Typebot {
963
963
  if (additionalFields.textBubbleContentFormat) {
964
964
  body.textBubbleContentFormat = additionalFields.textBubbleContentFormat;
965
965
  }
966
- responseData = await this.helpers.request({
966
+ responseData = await this.helpers.httpRequest({
967
967
  method: 'POST',
968
968
  url: `${chatBaseUrl}/v1/typebots/${publicId}/startChat`,
969
969
  body,
@@ -973,7 +973,7 @@ class Typebot {
973
973
  else if (operation === 'continueChat') {
974
974
  const sessionId = this.getNodeParameter('sessionId', i);
975
975
  const message = this.getNodeParameter('message', i);
976
- responseData = await this.helpers.request({
976
+ responseData = await this.helpers.httpRequest({
977
977
  method: 'POST',
978
978
  url: `${chatBaseUrl}/v1/sessions/${sessionId}/continueChat`,
979
979
  body: { message },
@@ -998,7 +998,7 @@ class Typebot {
998
998
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Prefilled Variables must be valid JSON');
999
999
  }
1000
1000
  }
1001
- responseData = await this.helpers.request({
1001
+ responseData = await this.helpers.httpRequest({
1002
1002
  method: 'POST',
1003
1003
  url: `${chatBaseUrl}/v1/typebots/${typebotId}/preview/startChat`,
1004
1004
  body,
@@ -1007,7 +1007,7 @@ class Typebot {
1007
1007
  }
1008
1008
  else if (operation === 'updateTypebotInSession') {
1009
1009
  const sessionId = this.getNodeParameter('sessionId', i);
1010
- responseData = await this.helpers.request({
1010
+ responseData = await this.helpers.httpRequest({
1011
1011
  method: 'POST',
1012
1012
  url: `${chatBaseUrl}/v1/sessions/${sessionId}/updateTypebot`,
1013
1013
  json: true,
@@ -1023,7 +1023,7 @@ class Typebot {
1023
1023
  catch (error) {
1024
1024
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Client Logs must be valid JSON');
1025
1025
  }
1026
- responseData = await this.helpers.request({
1026
+ responseData = await this.helpers.httpRequest({
1027
1027
  method: 'POST',
1028
1028
  url: `${chatBaseUrl}/v2/sessions/${sessionId}/clientLogs`,
1029
1029
  body: { clientLogs: logs },
@@ -1040,7 +1040,7 @@ class Typebot {
1040
1040
  if (fileType) {
1041
1041
  body.fileType = fileType;
1042
1042
  }
1043
- responseData = await this.helpers.request({
1043
+ responseData = await this.helpers.httpRequest({
1044
1044
  method: 'POST',
1045
1045
  url: `${chatBaseUrl}/v2/generate-upload-url`,
1046
1046
  qs: { sessionId },
@@ -1062,7 +1062,7 @@ class Typebot {
1062
1062
  if (additionalFields.folderId) {
1063
1063
  qs.folderId = additionalFields.folderId;
1064
1064
  }
1065
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1065
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1066
1066
  method: 'GET',
1067
1067
  url: `${baseUrl}/v1/typebots`,
1068
1068
  qs,
@@ -1076,7 +1076,7 @@ class Typebot {
1076
1076
  if (migrateToLatestVersion) {
1077
1077
  qs.migrateToLatestVersion = true;
1078
1078
  }
1079
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1079
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1080
1080
  method: 'GET',
1081
1081
  url: `${baseUrl}/v1/typebots/${typebotId}`,
1082
1082
  qs,
@@ -1093,7 +1093,7 @@ class Typebot {
1093
1093
  catch (error) {
1094
1094
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Typebot Data must be valid JSON');
1095
1095
  }
1096
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1096
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1097
1097
  method: 'POST',
1098
1098
  url: `${baseUrl}/v1/typebots`,
1099
1099
  body: {
@@ -1113,7 +1113,7 @@ class Typebot {
1113
1113
  catch (error) {
1114
1114
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Update Data must be valid JSON');
1115
1115
  }
1116
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1116
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1117
1117
  method: 'PATCH',
1118
1118
  url: `${baseUrl}/v1/typebots/${typebotId}`,
1119
1119
  body: updates,
@@ -1122,7 +1122,7 @@ class Typebot {
1122
1122
  }
1123
1123
  else if (operation === 'delete') {
1124
1124
  const typebotId = this.getNodeParameter('typebotId', i);
1125
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1125
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1126
1126
  method: 'DELETE',
1127
1127
  url: `${baseUrl}/v1/typebots/${typebotId}`,
1128
1128
  json: true,
@@ -1130,7 +1130,7 @@ class Typebot {
1130
1130
  }
1131
1131
  else if (operation === 'publish') {
1132
1132
  const typebotId = this.getNodeParameter('typebotId', i);
1133
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1133
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1134
1134
  method: 'POST',
1135
1135
  url: `${baseUrl}/v1/typebots/${typebotId}/publish`,
1136
1136
  json: true,
@@ -1138,7 +1138,7 @@ class Typebot {
1138
1138
  }
1139
1139
  else if (operation === 'unpublish') {
1140
1140
  const typebotId = this.getNodeParameter('typebotId', i);
1141
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1141
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1142
1142
  method: 'POST',
1143
1143
  url: `${baseUrl}/v1/typebots/${typebotId}/unpublish`,
1144
1144
  json: true,
@@ -1146,7 +1146,7 @@ class Typebot {
1146
1146
  }
1147
1147
  else if (operation === 'getPublished') {
1148
1148
  const publicId = this.getNodeParameter('publicId', i);
1149
- responseData = await this.helpers.request({
1149
+ responseData = await this.helpers.httpRequest({
1150
1150
  method: 'GET',
1151
1151
  url: `${chatBaseUrl}/v1/publicTypebots/${publicId}`,
1152
1152
  json: true,
@@ -1162,7 +1162,7 @@ class Typebot {
1162
1162
  catch (error) {
1163
1163
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Typebot Data must be valid JSON');
1164
1164
  }
1165
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1165
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1166
1166
  method: 'POST',
1167
1167
  url: `${baseUrl}/v1/typebots/import`,
1168
1168
  body: {
@@ -1179,7 +1179,7 @@ class Typebot {
1179
1179
  else if (resource === 'result') {
1180
1180
  if (operation === 'list') {
1181
1181
  const typebotId = this.getNodeParameter('typebotId', i);
1182
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1182
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1183
1183
  method: 'GET',
1184
1184
  url: `${baseUrl}/v1/typebots/${typebotId}/results`,
1185
1185
  json: true,
@@ -1188,7 +1188,7 @@ class Typebot {
1188
1188
  else if (operation === 'get') {
1189
1189
  const typebotId = this.getNodeParameter('typebotId', i);
1190
1190
  const resultId = this.getNodeParameter('resultId', i);
1191
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1191
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1192
1192
  method: 'GET',
1193
1193
  url: `${baseUrl}/v1/typebots/${typebotId}/results/${resultId}`,
1194
1194
  json: true,
@@ -1198,7 +1198,7 @@ class Typebot {
1198
1198
  const typebotId = this.getNodeParameter('typebotId', i);
1199
1199
  const resultIds = this.getNodeParameter('resultIds', i);
1200
1200
  const ids = resultIds.split(',').map(id => id.trim());
1201
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1201
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1202
1202
  method: 'DELETE',
1203
1203
  url: `${baseUrl}/v1/typebots/${typebotId}/results`,
1204
1204
  body: { resultIds: ids },
@@ -1207,7 +1207,7 @@ class Typebot {
1207
1207
  }
1208
1208
  else if (operation === 'getStats') {
1209
1209
  const typebotId = this.getNodeParameter('typebotId', i);
1210
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1210
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1211
1211
  method: 'GET',
1212
1212
  url: `${baseUrl}/v1/typebots/${typebotId}/analytics/stats`,
1213
1213
  json: true,
@@ -1216,7 +1216,7 @@ class Typebot {
1216
1216
  else if (operation === 'listLogs') {
1217
1217
  const typebotId = this.getNodeParameter('typebotId', i);
1218
1218
  const resultId = this.getNodeParameter('resultId', i);
1219
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1219
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1220
1220
  method: 'GET',
1221
1221
  url: `${baseUrl}/v1/typebots/${typebotId}/results/${resultId}/logs`,
1222
1222
  json: true,
@@ -1228,7 +1228,7 @@ class Typebot {
1228
1228
  // =====================================
1229
1229
  else if (resource === 'workspace') {
1230
1230
  if (operation === 'list') {
1231
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1231
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1232
1232
  method: 'GET',
1233
1233
  url: `${baseUrl}/v1/workspaces`,
1234
1234
  json: true,
@@ -1236,7 +1236,7 @@ class Typebot {
1236
1236
  }
1237
1237
  else if (operation === 'get') {
1238
1238
  const workspaceId = this.getNodeParameter('workspaceId', i);
1239
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1239
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1240
1240
  method: 'GET',
1241
1241
  url: `${baseUrl}/v1/workspaces/${workspaceId}`,
1242
1242
  json: true,
@@ -1244,7 +1244,7 @@ class Typebot {
1244
1244
  }
1245
1245
  else if (operation === 'create') {
1246
1246
  const name = this.getNodeParameter('name', i);
1247
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1247
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1248
1248
  method: 'POST',
1249
1249
  url: `${baseUrl}/v1/workspaces`,
1250
1250
  body: { name },
@@ -1261,7 +1261,7 @@ class Typebot {
1261
1261
  catch (error) {
1262
1262
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Update Data must be valid JSON');
1263
1263
  }
1264
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1264
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1265
1265
  method: 'PATCH',
1266
1266
  url: `${baseUrl}/v1/workspaces/${workspaceId}`,
1267
1267
  body: updates,
@@ -1270,7 +1270,7 @@ class Typebot {
1270
1270
  }
1271
1271
  else if (operation === 'delete') {
1272
1272
  const workspaceId = this.getNodeParameter('workspaceId', i);
1273
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1273
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1274
1274
  method: 'DELETE',
1275
1275
  url: `${baseUrl}/v1/workspaces/${workspaceId}`,
1276
1276
  json: true,
@@ -1278,7 +1278,7 @@ class Typebot {
1278
1278
  }
1279
1279
  else if (operation === 'listMembers') {
1280
1280
  const workspaceId = this.getNodeParameter('workspaceId', i);
1281
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1281
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1282
1282
  method: 'GET',
1283
1283
  url: `${baseUrl}/v1/workspaces/${workspaceId}/members`,
1284
1284
  json: true,
@@ -1291,7 +1291,7 @@ class Typebot {
1291
1291
  else if (resource === 'folder') {
1292
1292
  if (operation === 'list') {
1293
1293
  const workspaceId = this.getNodeParameter('workspaceId', i);
1294
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1294
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1295
1295
  method: 'GET',
1296
1296
  url: `${baseUrl}/v1/folders`,
1297
1297
  qs: { workspaceId },
@@ -1308,7 +1308,7 @@ class Typebot {
1308
1308
  catch (error) {
1309
1309
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Folder Data must be valid JSON');
1310
1310
  }
1311
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1311
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1312
1312
  method: 'POST',
1313
1313
  url: `${baseUrl}/v1/folders`,
1314
1314
  body: {
@@ -1328,7 +1328,7 @@ class Typebot {
1328
1328
  catch (error) {
1329
1329
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Update Data must be valid JSON');
1330
1330
  }
1331
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1331
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1332
1332
  method: 'PATCH',
1333
1333
  url: `${baseUrl}/v1/folders/${folderId}`,
1334
1334
  body: updates,
@@ -1337,7 +1337,7 @@ class Typebot {
1337
1337
  }
1338
1338
  else if (operation === 'delete') {
1339
1339
  const folderId = this.getNodeParameter('folderId', i);
1340
- responseData = await this.helpers.requestWithAuthentication.call(this, 'typebotApi', {
1340
+ responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'typebotApi', {
1341
1341
  method: 'DELETE',
1342
1342
  url: `${baseUrl}/v1/folders/${folderId}`,
1343
1343
  json: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-typebot",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "description": "n8n community node for Typebot - A powerful chatbot builder integration",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -10,6 +10,14 @@
10
10
  "conversational-ai"
11
11
  ],
12
12
  "license": "MIT",
13
+ "homepage": "https://github.com/achiya-automation/n8n-nodes-typebot#readme",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/achiya-automation/n8n-nodes-typebot.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/achiya-automation/n8n-nodes-typebot/issues"
20
+ },
13
21
  "author": {
14
22
  "name": "אחיה אוטומציה",
15
23
  "email": "a.c0504197060@gmail.com"