n8n-nodes-tukimate 1.6.2 → 1.6.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/dist/nodes/TukiMate/TukiMate.node.js +236 -56
- package/package.json +1 -1
|
@@ -171,9 +171,7 @@ async function getConversationTypeOptions() {
|
|
|
171
171
|
}
|
|
172
172
|
// Fields to keep for simplified output per resource (using API field names - snake_case)
|
|
173
173
|
const SIMPLIFIED_FIELDS = {
|
|
174
|
-
conversation: ['id', 'title', 'description', 'date_time', 'duration_minutes', '
|
|
175
|
-
' conversation_type_key',
|
|
176
|
-
'ai_context', 'sentiment'],
|
|
174
|
+
conversation: ['id', 'title', 'description', 'date_time', 'duration_minutes', 'team_id', 'project_id', 'client_id', 'source_key', 'source_meeting_id', 'conversation_type_key', 'has_analyses'],
|
|
177
175
|
contact: ['id', 'first_name', 'last_name', 'email', 'phone', 'company_name', 'job_title'],
|
|
178
176
|
team: ['id', 'name', 'description'],
|
|
179
177
|
project: ['id', 'name', 'description', 'status', 'client_id', 'ai_context'],
|
|
@@ -281,11 +279,11 @@ class TukiMate {
|
|
|
281
279
|
},
|
|
282
280
|
},
|
|
283
281
|
options: [
|
|
284
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of conversations' },
|
|
285
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single conversation' },
|
|
286
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new conversation' },
|
|
287
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a conversation' },
|
|
288
|
-
{ name: 'Analyze', value: OPERATIONS.ANALYZE, description: 'Trigger AI analysis on a conversation' },
|
|
282
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of conversations', action: 'List conversations' },
|
|
283
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single conversation', action: 'Get a conversation' },
|
|
284
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new conversation', action: 'Create a conversation' },
|
|
285
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a conversation', action: 'Update a conversation' },
|
|
286
|
+
{ name: 'Analyze', value: OPERATIONS.ANALYZE, description: 'Trigger AI analysis on a conversation', action: 'Analyze a conversation' },
|
|
289
287
|
],
|
|
290
288
|
default: OPERATIONS.LIST,
|
|
291
289
|
},
|
|
@@ -740,11 +738,11 @@ class TukiMate {
|
|
|
740
738
|
},
|
|
741
739
|
},
|
|
742
740
|
options: [
|
|
743
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of contacts' },
|
|
744
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single contact' },
|
|
745
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new contact' },
|
|
746
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a contact' },
|
|
747
|
-
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a contact' },
|
|
741
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of contacts', action: 'List contacts' },
|
|
742
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single contact', action: 'Get a contact' },
|
|
743
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new contact', action: 'Create a contact' },
|
|
744
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a contact', action: 'Update a contact' },
|
|
745
|
+
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a contact', action: 'Delete a contact' },
|
|
748
746
|
],
|
|
749
747
|
default: OPERATIONS.LIST,
|
|
750
748
|
},
|
|
@@ -942,11 +940,11 @@ class TukiMate {
|
|
|
942
940
|
},
|
|
943
941
|
},
|
|
944
942
|
options: [
|
|
945
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of teams' },
|
|
946
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single team' },
|
|
947
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new team' },
|
|
948
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a team' },
|
|
949
|
-
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a team' },
|
|
943
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of teams', action: 'List teams' },
|
|
944
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single team', action: 'Get a team' },
|
|
945
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new team', action: 'Create a team' },
|
|
946
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a team', action: 'Update a team' },
|
|
947
|
+
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a team', action: 'Delete a team' },
|
|
950
948
|
],
|
|
951
949
|
default: OPERATIONS.LIST,
|
|
952
950
|
},
|
|
@@ -1019,11 +1017,11 @@ class TukiMate {
|
|
|
1019
1017
|
},
|
|
1020
1018
|
},
|
|
1021
1019
|
options: [
|
|
1022
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of projects' },
|
|
1023
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single project' },
|
|
1024
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new project' },
|
|
1025
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a project' },
|
|
1026
|
-
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a project' },
|
|
1020
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of projects', action: 'List projects' },
|
|
1021
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single project', action: 'Get a project' },
|
|
1022
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new project', action: 'Create a project' },
|
|
1023
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a project', action: 'Update a project' },
|
|
1024
|
+
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a project', action: 'Delete a project' },
|
|
1027
1025
|
],
|
|
1028
1026
|
default: OPERATIONS.LIST,
|
|
1029
1027
|
},
|
|
@@ -1116,15 +1114,33 @@ class TukiMate {
|
|
|
1116
1114
|
},
|
|
1117
1115
|
},
|
|
1118
1116
|
options: [
|
|
1119
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of clients' },
|
|
1120
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single client' },
|
|
1121
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new client' },
|
|
1122
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a client' },
|
|
1123
|
-
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a client' },
|
|
1117
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of clients', action: 'List clients' },
|
|
1118
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single client', action: 'Get a client' },
|
|
1119
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new client', action: 'Create a client' },
|
|
1120
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a client', action: 'Update a client' },
|
|
1121
|
+
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a client', action: 'Delete a client' },
|
|
1124
1122
|
],
|
|
1125
1123
|
default: OPERATIONS.LIST,
|
|
1126
1124
|
},
|
|
1127
1125
|
// Client List Filters
|
|
1126
|
+
// Type Filter with List/Id mode
|
|
1127
|
+
{
|
|
1128
|
+
displayName: 'Type Filter Mode',
|
|
1129
|
+
name: 'clientTypeFilterMode',
|
|
1130
|
+
type: 'options',
|
|
1131
|
+
displayOptions: {
|
|
1132
|
+
show: {
|
|
1133
|
+
resource: [RESOURCES.CLIENT],
|
|
1134
|
+
operation: [OPERATIONS.LIST],
|
|
1135
|
+
},
|
|
1136
|
+
},
|
|
1137
|
+
options: [
|
|
1138
|
+
{ name: 'From List', value: 'list' },
|
|
1139
|
+
{ name: 'Manual', value: 'manual' },
|
|
1140
|
+
],
|
|
1141
|
+
default: 'list',
|
|
1142
|
+
description: 'Choose how to specify the type filter',
|
|
1143
|
+
},
|
|
1128
1144
|
{
|
|
1129
1145
|
displayName: 'Type Filter',
|
|
1130
1146
|
name: 'clientTypeFilter',
|
|
@@ -1133,6 +1149,7 @@ class TukiMate {
|
|
|
1133
1149
|
show: {
|
|
1134
1150
|
resource: [RESOURCES.CLIENT],
|
|
1135
1151
|
operation: [OPERATIONS.LIST],
|
|
1152
|
+
clientTypeFilterMode: ['list'],
|
|
1136
1153
|
},
|
|
1137
1154
|
},
|
|
1138
1155
|
options: [
|
|
@@ -1144,6 +1161,38 @@ class TukiMate {
|
|
|
1144
1161
|
default: '',
|
|
1145
1162
|
description: 'Filter by client type',
|
|
1146
1163
|
},
|
|
1164
|
+
{
|
|
1165
|
+
displayName: 'Type Filter',
|
|
1166
|
+
name: 'clientTypeFilterManual',
|
|
1167
|
+
type: 'string',
|
|
1168
|
+
displayOptions: {
|
|
1169
|
+
show: {
|
|
1170
|
+
resource: [RESOURCES.CLIENT],
|
|
1171
|
+
operation: [OPERATIONS.LIST],
|
|
1172
|
+
clientTypeFilterMode: ['manual'],
|
|
1173
|
+
},
|
|
1174
|
+
},
|
|
1175
|
+
default: '',
|
|
1176
|
+
description: 'Filter by client type (corporate, individual, partner, or empty for all)',
|
|
1177
|
+
},
|
|
1178
|
+
// Status Filter with List/Id mode
|
|
1179
|
+
{
|
|
1180
|
+
displayName: 'Status Filter Mode',
|
|
1181
|
+
name: 'clientStatusFilterMode',
|
|
1182
|
+
type: 'options',
|
|
1183
|
+
displayOptions: {
|
|
1184
|
+
show: {
|
|
1185
|
+
resource: [RESOURCES.CLIENT],
|
|
1186
|
+
operation: [OPERATIONS.LIST],
|
|
1187
|
+
},
|
|
1188
|
+
},
|
|
1189
|
+
options: [
|
|
1190
|
+
{ name: 'From List', value: 'list' },
|
|
1191
|
+
{ name: 'Manual', value: 'manual' },
|
|
1192
|
+
],
|
|
1193
|
+
default: 'list',
|
|
1194
|
+
description: 'Choose how to specify the status filter',
|
|
1195
|
+
},
|
|
1147
1196
|
{
|
|
1148
1197
|
displayName: 'Status Filter',
|
|
1149
1198
|
name: 'clientStatusFilter',
|
|
@@ -1152,6 +1201,7 @@ class TukiMate {
|
|
|
1152
1201
|
show: {
|
|
1153
1202
|
resource: [RESOURCES.CLIENT],
|
|
1154
1203
|
operation: [OPERATIONS.LIST],
|
|
1204
|
+
clientStatusFilterMode: ['list'],
|
|
1155
1205
|
},
|
|
1156
1206
|
},
|
|
1157
1207
|
options: [
|
|
@@ -1163,6 +1213,38 @@ class TukiMate {
|
|
|
1163
1213
|
default: '',
|
|
1164
1214
|
description: 'Filter by client status',
|
|
1165
1215
|
},
|
|
1216
|
+
{
|
|
1217
|
+
displayName: 'Status Filter',
|
|
1218
|
+
name: 'clientStatusFilterManual',
|
|
1219
|
+
type: 'string',
|
|
1220
|
+
displayOptions: {
|
|
1221
|
+
show: {
|
|
1222
|
+
resource: [RESOURCES.CLIENT],
|
|
1223
|
+
operation: [OPERATIONS.LIST],
|
|
1224
|
+
clientStatusFilterMode: ['manual'],
|
|
1225
|
+
},
|
|
1226
|
+
},
|
|
1227
|
+
default: '',
|
|
1228
|
+
description: 'Filter by client status (active, inactive, prospect, or empty for all)',
|
|
1229
|
+
},
|
|
1230
|
+
// Tier Filter with List/Id mode
|
|
1231
|
+
{
|
|
1232
|
+
displayName: 'Tier Filter Mode',
|
|
1233
|
+
name: 'clientTierFilterMode',
|
|
1234
|
+
type: 'options',
|
|
1235
|
+
displayOptions: {
|
|
1236
|
+
show: {
|
|
1237
|
+
resource: [RESOURCES.CLIENT],
|
|
1238
|
+
operation: [OPERATIONS.LIST],
|
|
1239
|
+
},
|
|
1240
|
+
},
|
|
1241
|
+
options: [
|
|
1242
|
+
{ name: 'From List', value: 'list' },
|
|
1243
|
+
{ name: 'Manual', value: 'manual' },
|
|
1244
|
+
],
|
|
1245
|
+
default: 'list',
|
|
1246
|
+
description: 'Choose how to specify the tier filter',
|
|
1247
|
+
},
|
|
1166
1248
|
{
|
|
1167
1249
|
displayName: 'Tier Filter',
|
|
1168
1250
|
name: 'clientTierFilter',
|
|
@@ -1171,6 +1253,7 @@ class TukiMate {
|
|
|
1171
1253
|
show: {
|
|
1172
1254
|
resource: [RESOURCES.CLIENT],
|
|
1173
1255
|
operation: [OPERATIONS.LIST],
|
|
1256
|
+
clientTierFilterMode: ['list'],
|
|
1174
1257
|
},
|
|
1175
1258
|
},
|
|
1176
1259
|
options: [
|
|
@@ -1182,6 +1265,20 @@ class TukiMate {
|
|
|
1182
1265
|
default: '',
|
|
1183
1266
|
description: 'Filter by client tier',
|
|
1184
1267
|
},
|
|
1268
|
+
{
|
|
1269
|
+
displayName: 'Tier Filter',
|
|
1270
|
+
name: 'clientTierFilterManual',
|
|
1271
|
+
type: 'string',
|
|
1272
|
+
displayOptions: {
|
|
1273
|
+
show: {
|
|
1274
|
+
resource: [RESOURCES.CLIENT],
|
|
1275
|
+
operation: [OPERATIONS.LIST],
|
|
1276
|
+
clientTierFilterMode: ['manual'],
|
|
1277
|
+
},
|
|
1278
|
+
},
|
|
1279
|
+
default: '',
|
|
1280
|
+
description: 'Filter by client tier (standard, premium, enterprise, or empty for all)',
|
|
1281
|
+
},
|
|
1185
1282
|
{
|
|
1186
1283
|
displayName: 'Search',
|
|
1187
1284
|
name: 'clientSearch',
|
|
@@ -1195,6 +1292,24 @@ class TukiMate {
|
|
|
1195
1292
|
default: '',
|
|
1196
1293
|
description: 'Search in client name',
|
|
1197
1294
|
},
|
|
1295
|
+
// Order By with List/Manual mode
|
|
1296
|
+
{
|
|
1297
|
+
displayName: 'Order By Mode',
|
|
1298
|
+
name: 'clientOrderByMode',
|
|
1299
|
+
type: 'options',
|
|
1300
|
+
displayOptions: {
|
|
1301
|
+
show: {
|
|
1302
|
+
resource: [RESOURCES.CLIENT],
|
|
1303
|
+
operation: [OPERATIONS.LIST],
|
|
1304
|
+
},
|
|
1305
|
+
},
|
|
1306
|
+
options: [
|
|
1307
|
+
{ name: 'From List', value: 'list' },
|
|
1308
|
+
{ name: 'Manual', value: 'manual' },
|
|
1309
|
+
],
|
|
1310
|
+
default: 'list',
|
|
1311
|
+
description: 'Choose how to specify the order by field',
|
|
1312
|
+
},
|
|
1198
1313
|
{
|
|
1199
1314
|
displayName: 'Order By',
|
|
1200
1315
|
name: 'clientOrderBy',
|
|
@@ -1203,6 +1318,7 @@ class TukiMate {
|
|
|
1203
1318
|
show: {
|
|
1204
1319
|
resource: [RESOURCES.CLIENT],
|
|
1205
1320
|
operation: [OPERATIONS.LIST],
|
|
1321
|
+
clientOrderByMode: ['list'],
|
|
1206
1322
|
},
|
|
1207
1323
|
},
|
|
1208
1324
|
options: [
|
|
@@ -1212,6 +1328,38 @@ class TukiMate {
|
|
|
1212
1328
|
default: 'name',
|
|
1213
1329
|
description: 'Field to order by',
|
|
1214
1330
|
},
|
|
1331
|
+
{
|
|
1332
|
+
displayName: 'Order By',
|
|
1333
|
+
name: 'clientOrderByManual',
|
|
1334
|
+
type: 'string',
|
|
1335
|
+
displayOptions: {
|
|
1336
|
+
show: {
|
|
1337
|
+
resource: [RESOURCES.CLIENT],
|
|
1338
|
+
operation: [OPERATIONS.LIST],
|
|
1339
|
+
clientOrderByMode: ['manual'],
|
|
1340
|
+
},
|
|
1341
|
+
},
|
|
1342
|
+
default: 'name',
|
|
1343
|
+
description: 'Field to order by (name, created_at)',
|
|
1344
|
+
},
|
|
1345
|
+
// Order with List/Manual mode
|
|
1346
|
+
{
|
|
1347
|
+
displayName: 'Order Mode',
|
|
1348
|
+
name: 'clientOrderMode',
|
|
1349
|
+
type: 'options',
|
|
1350
|
+
displayOptions: {
|
|
1351
|
+
show: {
|
|
1352
|
+
resource: [RESOURCES.CLIENT],
|
|
1353
|
+
operation: [OPERATIONS.LIST],
|
|
1354
|
+
},
|
|
1355
|
+
},
|
|
1356
|
+
options: [
|
|
1357
|
+
{ name: 'From List', value: 'list' },
|
|
1358
|
+
{ name: 'Manual', value: 'manual' },
|
|
1359
|
+
],
|
|
1360
|
+
default: 'list',
|
|
1361
|
+
description: 'Choose how to specify the sort order',
|
|
1362
|
+
},
|
|
1215
1363
|
{
|
|
1216
1364
|
displayName: 'Order',
|
|
1217
1365
|
name: 'clientOrder',
|
|
@@ -1220,6 +1368,7 @@ class TukiMate {
|
|
|
1220
1368
|
show: {
|
|
1221
1369
|
resource: [RESOURCES.CLIENT],
|
|
1222
1370
|
operation: [OPERATIONS.LIST],
|
|
1371
|
+
clientOrderMode: ['list'],
|
|
1223
1372
|
},
|
|
1224
1373
|
},
|
|
1225
1374
|
options: [
|
|
@@ -1229,6 +1378,20 @@ class TukiMate {
|
|
|
1229
1378
|
default: 'asc',
|
|
1230
1379
|
description: 'Sort order',
|
|
1231
1380
|
},
|
|
1381
|
+
{
|
|
1382
|
+
displayName: 'Order',
|
|
1383
|
+
name: 'clientOrderManual',
|
|
1384
|
+
type: 'string',
|
|
1385
|
+
displayOptions: {
|
|
1386
|
+
show: {
|
|
1387
|
+
resource: [RESOURCES.CLIENT],
|
|
1388
|
+
operation: [OPERATIONS.LIST],
|
|
1389
|
+
clientOrderMode: ['manual'],
|
|
1390
|
+
},
|
|
1391
|
+
},
|
|
1392
|
+
default: 'asc',
|
|
1393
|
+
description: 'Sort order (asc, desc)',
|
|
1394
|
+
},
|
|
1232
1395
|
{
|
|
1233
1396
|
displayName: 'Client ID',
|
|
1234
1397
|
name: 'clientId',
|
|
@@ -1343,10 +1506,10 @@ class TukiMate {
|
|
|
1343
1506
|
},
|
|
1344
1507
|
},
|
|
1345
1508
|
options: [
|
|
1346
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of sources' },
|
|
1347
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single source' },
|
|
1348
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new source' },
|
|
1349
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a source' },
|
|
1509
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of sources', action: 'List sources' },
|
|
1510
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single source', action: 'Get a source' },
|
|
1511
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new source', action: 'Create a source' },
|
|
1512
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a source', action: 'Update a source' },
|
|
1350
1513
|
],
|
|
1351
1514
|
default: OPERATIONS.LIST,
|
|
1352
1515
|
},
|
|
@@ -1415,7 +1578,7 @@ class TukiMate {
|
|
|
1415
1578
|
},
|
|
1416
1579
|
},
|
|
1417
1580
|
options: [
|
|
1418
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of conversation types' },
|
|
1581
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of conversation types', action: 'List conversation types' },
|
|
1419
1582
|
],
|
|
1420
1583
|
default: OPERATIONS.LIST,
|
|
1421
1584
|
},
|
|
@@ -1431,10 +1594,10 @@ class TukiMate {
|
|
|
1431
1594
|
},
|
|
1432
1595
|
},
|
|
1433
1596
|
options: [
|
|
1434
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of all available tags' },
|
|
1435
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single tag by ID' },
|
|
1436
|
-
{ name: 'Get Conversation Tags', value: 'getConversationTags', description: 'Get tags for a specific conversation' },
|
|
1437
|
-
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a tag' },
|
|
1597
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of all available tags', action: 'List tags' },
|
|
1598
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single tag by ID', action: 'Get a tag' },
|
|
1599
|
+
{ name: 'Get Conversation Tags', value: 'getConversationTags', description: 'Get tags for a specific conversation', action: 'Get conversation tags' },
|
|
1600
|
+
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a tag', action: 'Delete a tag' },
|
|
1438
1601
|
],
|
|
1439
1602
|
default: OPERATIONS.LIST,
|
|
1440
1603
|
},
|
|
@@ -1478,8 +1641,8 @@ class TukiMate {
|
|
|
1478
1641
|
},
|
|
1479
1642
|
},
|
|
1480
1643
|
options: [
|
|
1481
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of tag definitions' },
|
|
1482
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new tag definition' },
|
|
1644
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of tag definitions', action: 'List tag definitions' },
|
|
1645
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new tag definition', action: 'Create a tag definition' },
|
|
1483
1646
|
],
|
|
1484
1647
|
default: OPERATIONS.LIST,
|
|
1485
1648
|
},
|
|
@@ -1573,11 +1736,11 @@ class TukiMate {
|
|
|
1573
1736
|
},
|
|
1574
1737
|
},
|
|
1575
1738
|
options: [
|
|
1576
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of categories' },
|
|
1577
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single category' },
|
|
1578
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new category' },
|
|
1579
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a category' },
|
|
1580
|
-
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a category' },
|
|
1739
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of categories', action: 'List categories' },
|
|
1740
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single category', action: 'Get a category' },
|
|
1741
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new category', action: 'Create a category' },
|
|
1742
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a category', action: 'Update a category' },
|
|
1743
|
+
{ name: 'Delete', value: OPERATIONS.DELETE, description: 'Delete a category', action: 'Delete a category' },
|
|
1581
1744
|
],
|
|
1582
1745
|
default: OPERATIONS.LIST,
|
|
1583
1746
|
},
|
|
@@ -1646,8 +1809,8 @@ class TukiMate {
|
|
|
1646
1809
|
},
|
|
1647
1810
|
},
|
|
1648
1811
|
options: [
|
|
1649
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of analyses' },
|
|
1650
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single analysis' },
|
|
1812
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of analyses', action: 'List analyses' },
|
|
1813
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single analysis', action: 'Get an analysis' },
|
|
1651
1814
|
],
|
|
1652
1815
|
default: OPERATIONS.LIST,
|
|
1653
1816
|
},
|
|
@@ -1752,10 +1915,10 @@ class TukiMate {
|
|
|
1752
1915
|
},
|
|
1753
1916
|
},
|
|
1754
1917
|
options: [
|
|
1755
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of opportunities' },
|
|
1756
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single opportunity' },
|
|
1757
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new opportunity' },
|
|
1758
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update an opportunity' },
|
|
1918
|
+
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of opportunities', action: 'List opportunities' },
|
|
1919
|
+
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single opportunity', action: 'Get an opportunity' },
|
|
1920
|
+
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new opportunity', action: 'Create an opportunity' },
|
|
1921
|
+
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update an opportunity', action: 'Update an opportunity' },
|
|
1759
1922
|
],
|
|
1760
1923
|
default: OPERATIONS.LIST,
|
|
1761
1924
|
},
|
|
@@ -1996,7 +2159,7 @@ class TukiMate {
|
|
|
1996
2159
|
if (additionalOptions.projectId)
|
|
1997
2160
|
query.project = additionalOptions.projectId;
|
|
1998
2161
|
if (additionalOptions.externalMeetingId)
|
|
1999
|
-
query.
|
|
2162
|
+
query.sourceMeetingId = additionalOptions.externalMeetingId;
|
|
2000
2163
|
if (additionalOptions.offset !== undefined)
|
|
2001
2164
|
query.offset = additionalOptions.offset;
|
|
2002
2165
|
if (additionalOptions.dateFrom)
|
|
@@ -2297,12 +2460,29 @@ class TukiMate {
|
|
|
2297
2460
|
// ==================== CLIENT ====================
|
|
2298
2461
|
else if (resource === RESOURCES.CLIENT) {
|
|
2299
2462
|
if (operation === OPERATIONS.LIST) {
|
|
2300
|
-
|
|
2301
|
-
const
|
|
2302
|
-
const
|
|
2463
|
+
// Get filter values based on mode
|
|
2464
|
+
const clientTypeFilterMode = this.getNodeParameter('clientTypeFilterMode', i, 'list');
|
|
2465
|
+
const clientStatusFilterMode = this.getNodeParameter('clientStatusFilterMode', i, 'list');
|
|
2466
|
+
const clientTierFilterMode = this.getNodeParameter('clientTierFilterMode', i, 'list');
|
|
2467
|
+
const clientTypeFilter = clientTypeFilterMode === 'manual'
|
|
2468
|
+
? this.getNodeParameter('clientTypeFilterManual', i, '')
|
|
2469
|
+
: this.getNodeParameter('clientTypeFilter', i, '');
|
|
2470
|
+
const clientStatusFilter = clientStatusFilterMode === 'manual'
|
|
2471
|
+
? this.getNodeParameter('clientStatusFilterManual', i, '')
|
|
2472
|
+
: this.getNodeParameter('clientStatusFilter', i, '');
|
|
2473
|
+
const clientTierFilter = clientTierFilterMode === 'manual'
|
|
2474
|
+
? this.getNodeParameter('clientTierFilterManual', i, '')
|
|
2475
|
+
: this.getNodeParameter('clientTierFilter', i, '');
|
|
2303
2476
|
const clientSearch = this.getNodeParameter('clientSearch', i, '');
|
|
2304
|
-
|
|
2305
|
-
const
|
|
2477
|
+
// Order By and Order modes
|
|
2478
|
+
const clientOrderByMode = this.getNodeParameter('clientOrderByMode', i, 'list');
|
|
2479
|
+
const clientOrderMode = this.getNodeParameter('clientOrderMode', i, 'list');
|
|
2480
|
+
const clientOrderBy = clientOrderByMode === 'manual'
|
|
2481
|
+
? this.getNodeParameter('clientOrderByManual', i, 'name')
|
|
2482
|
+
: this.getNodeParameter('clientOrderBy', i, 'name');
|
|
2483
|
+
const clientOrder = clientOrderMode === 'manual'
|
|
2484
|
+
? this.getNodeParameter('clientOrderManual', i, 'asc')
|
|
2485
|
+
: this.getNodeParameter('clientOrder', i, 'asc');
|
|
2306
2486
|
const query = {};
|
|
2307
2487
|
if (clientTypeFilter)
|
|
2308
2488
|
query.type = clientTypeFilter;
|