n8n-nodes-tukimate 1.6.3 → 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 +234 -52
- package/package.json +1 -1
|
@@ -279,11 +279,11 @@ class TukiMate {
|
|
|
279
279
|
},
|
|
280
280
|
},
|
|
281
281
|
options: [
|
|
282
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of conversations' },
|
|
283
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single conversation' },
|
|
284
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new conversation' },
|
|
285
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a conversation' },
|
|
286
|
-
{ 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' },
|
|
287
287
|
],
|
|
288
288
|
default: OPERATIONS.LIST,
|
|
289
289
|
},
|
|
@@ -738,11 +738,11 @@ class TukiMate {
|
|
|
738
738
|
},
|
|
739
739
|
},
|
|
740
740
|
options: [
|
|
741
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of contacts' },
|
|
742
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single contact' },
|
|
743
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new contact' },
|
|
744
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a contact' },
|
|
745
|
-
{ 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' },
|
|
746
746
|
],
|
|
747
747
|
default: OPERATIONS.LIST,
|
|
748
748
|
},
|
|
@@ -940,11 +940,11 @@ class TukiMate {
|
|
|
940
940
|
},
|
|
941
941
|
},
|
|
942
942
|
options: [
|
|
943
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of teams' },
|
|
944
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single team' },
|
|
945
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new team' },
|
|
946
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a team' },
|
|
947
|
-
{ 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' },
|
|
948
948
|
],
|
|
949
949
|
default: OPERATIONS.LIST,
|
|
950
950
|
},
|
|
@@ -1017,11 +1017,11 @@ class TukiMate {
|
|
|
1017
1017
|
},
|
|
1018
1018
|
},
|
|
1019
1019
|
options: [
|
|
1020
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of projects' },
|
|
1021
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single project' },
|
|
1022
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new project' },
|
|
1023
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a project' },
|
|
1024
|
-
{ 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' },
|
|
1025
1025
|
],
|
|
1026
1026
|
default: OPERATIONS.LIST,
|
|
1027
1027
|
},
|
|
@@ -1114,15 +1114,33 @@ class TukiMate {
|
|
|
1114
1114
|
},
|
|
1115
1115
|
},
|
|
1116
1116
|
options: [
|
|
1117
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of clients' },
|
|
1118
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single client' },
|
|
1119
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new client' },
|
|
1120
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a client' },
|
|
1121
|
-
{ 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' },
|
|
1122
1122
|
],
|
|
1123
1123
|
default: OPERATIONS.LIST,
|
|
1124
1124
|
},
|
|
1125
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
|
+
},
|
|
1126
1144
|
{
|
|
1127
1145
|
displayName: 'Type Filter',
|
|
1128
1146
|
name: 'clientTypeFilter',
|
|
@@ -1131,6 +1149,7 @@ class TukiMate {
|
|
|
1131
1149
|
show: {
|
|
1132
1150
|
resource: [RESOURCES.CLIENT],
|
|
1133
1151
|
operation: [OPERATIONS.LIST],
|
|
1152
|
+
clientTypeFilterMode: ['list'],
|
|
1134
1153
|
},
|
|
1135
1154
|
},
|
|
1136
1155
|
options: [
|
|
@@ -1142,6 +1161,38 @@ class TukiMate {
|
|
|
1142
1161
|
default: '',
|
|
1143
1162
|
description: 'Filter by client type',
|
|
1144
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
|
+
},
|
|
1145
1196
|
{
|
|
1146
1197
|
displayName: 'Status Filter',
|
|
1147
1198
|
name: 'clientStatusFilter',
|
|
@@ -1150,6 +1201,7 @@ class TukiMate {
|
|
|
1150
1201
|
show: {
|
|
1151
1202
|
resource: [RESOURCES.CLIENT],
|
|
1152
1203
|
operation: [OPERATIONS.LIST],
|
|
1204
|
+
clientStatusFilterMode: ['list'],
|
|
1153
1205
|
},
|
|
1154
1206
|
},
|
|
1155
1207
|
options: [
|
|
@@ -1161,6 +1213,38 @@ class TukiMate {
|
|
|
1161
1213
|
default: '',
|
|
1162
1214
|
description: 'Filter by client status',
|
|
1163
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
|
+
},
|
|
1164
1248
|
{
|
|
1165
1249
|
displayName: 'Tier Filter',
|
|
1166
1250
|
name: 'clientTierFilter',
|
|
@@ -1169,6 +1253,7 @@ class TukiMate {
|
|
|
1169
1253
|
show: {
|
|
1170
1254
|
resource: [RESOURCES.CLIENT],
|
|
1171
1255
|
operation: [OPERATIONS.LIST],
|
|
1256
|
+
clientTierFilterMode: ['list'],
|
|
1172
1257
|
},
|
|
1173
1258
|
},
|
|
1174
1259
|
options: [
|
|
@@ -1180,6 +1265,20 @@ class TukiMate {
|
|
|
1180
1265
|
default: '',
|
|
1181
1266
|
description: 'Filter by client tier',
|
|
1182
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
|
+
},
|
|
1183
1282
|
{
|
|
1184
1283
|
displayName: 'Search',
|
|
1185
1284
|
name: 'clientSearch',
|
|
@@ -1193,6 +1292,24 @@ class TukiMate {
|
|
|
1193
1292
|
default: '',
|
|
1194
1293
|
description: 'Search in client name',
|
|
1195
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
|
+
},
|
|
1196
1313
|
{
|
|
1197
1314
|
displayName: 'Order By',
|
|
1198
1315
|
name: 'clientOrderBy',
|
|
@@ -1201,6 +1318,7 @@ class TukiMate {
|
|
|
1201
1318
|
show: {
|
|
1202
1319
|
resource: [RESOURCES.CLIENT],
|
|
1203
1320
|
operation: [OPERATIONS.LIST],
|
|
1321
|
+
clientOrderByMode: ['list'],
|
|
1204
1322
|
},
|
|
1205
1323
|
},
|
|
1206
1324
|
options: [
|
|
@@ -1210,6 +1328,38 @@ class TukiMate {
|
|
|
1210
1328
|
default: 'name',
|
|
1211
1329
|
description: 'Field to order by',
|
|
1212
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
|
+
},
|
|
1213
1363
|
{
|
|
1214
1364
|
displayName: 'Order',
|
|
1215
1365
|
name: 'clientOrder',
|
|
@@ -1218,6 +1368,7 @@ class TukiMate {
|
|
|
1218
1368
|
show: {
|
|
1219
1369
|
resource: [RESOURCES.CLIENT],
|
|
1220
1370
|
operation: [OPERATIONS.LIST],
|
|
1371
|
+
clientOrderMode: ['list'],
|
|
1221
1372
|
},
|
|
1222
1373
|
},
|
|
1223
1374
|
options: [
|
|
@@ -1227,6 +1378,20 @@ class TukiMate {
|
|
|
1227
1378
|
default: 'asc',
|
|
1228
1379
|
description: 'Sort order',
|
|
1229
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
|
+
},
|
|
1230
1395
|
{
|
|
1231
1396
|
displayName: 'Client ID',
|
|
1232
1397
|
name: 'clientId',
|
|
@@ -1341,10 +1506,10 @@ class TukiMate {
|
|
|
1341
1506
|
},
|
|
1342
1507
|
},
|
|
1343
1508
|
options: [
|
|
1344
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of sources' },
|
|
1345
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single source' },
|
|
1346
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new source' },
|
|
1347
|
-
{ 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' },
|
|
1348
1513
|
],
|
|
1349
1514
|
default: OPERATIONS.LIST,
|
|
1350
1515
|
},
|
|
@@ -1413,7 +1578,7 @@ class TukiMate {
|
|
|
1413
1578
|
},
|
|
1414
1579
|
},
|
|
1415
1580
|
options: [
|
|
1416
|
-
{ 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' },
|
|
1417
1582
|
],
|
|
1418
1583
|
default: OPERATIONS.LIST,
|
|
1419
1584
|
},
|
|
@@ -1429,10 +1594,10 @@ class TukiMate {
|
|
|
1429
1594
|
},
|
|
1430
1595
|
},
|
|
1431
1596
|
options: [
|
|
1432
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of all available tags' },
|
|
1433
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single tag by ID' },
|
|
1434
|
-
{ name: 'Get Conversation Tags', value: 'getConversationTags', description: 'Get tags for a specific conversation' },
|
|
1435
|
-
{ 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' },
|
|
1436
1601
|
],
|
|
1437
1602
|
default: OPERATIONS.LIST,
|
|
1438
1603
|
},
|
|
@@ -1476,8 +1641,8 @@ class TukiMate {
|
|
|
1476
1641
|
},
|
|
1477
1642
|
},
|
|
1478
1643
|
options: [
|
|
1479
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of tag definitions' },
|
|
1480
|
-
{ 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' },
|
|
1481
1646
|
],
|
|
1482
1647
|
default: OPERATIONS.LIST,
|
|
1483
1648
|
},
|
|
@@ -1571,11 +1736,11 @@ class TukiMate {
|
|
|
1571
1736
|
},
|
|
1572
1737
|
},
|
|
1573
1738
|
options: [
|
|
1574
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of categories' },
|
|
1575
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single category' },
|
|
1576
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new category' },
|
|
1577
|
-
{ name: 'Update', value: OPERATIONS.UPDATE, description: 'Update a category' },
|
|
1578
|
-
{ 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' },
|
|
1579
1744
|
],
|
|
1580
1745
|
default: OPERATIONS.LIST,
|
|
1581
1746
|
},
|
|
@@ -1644,8 +1809,8 @@ class TukiMate {
|
|
|
1644
1809
|
},
|
|
1645
1810
|
},
|
|
1646
1811
|
options: [
|
|
1647
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of analyses' },
|
|
1648
|
-
{ 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' },
|
|
1649
1814
|
],
|
|
1650
1815
|
default: OPERATIONS.LIST,
|
|
1651
1816
|
},
|
|
@@ -1750,10 +1915,10 @@ class TukiMate {
|
|
|
1750
1915
|
},
|
|
1751
1916
|
},
|
|
1752
1917
|
options: [
|
|
1753
|
-
{ name: 'List', value: OPERATIONS.LIST, description: 'Get a list of opportunities' },
|
|
1754
|
-
{ name: 'Get', value: OPERATIONS.GET, description: 'Get a single opportunity' },
|
|
1755
|
-
{ name: 'Create', value: OPERATIONS.CREATE, description: 'Create a new opportunity' },
|
|
1756
|
-
{ 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' },
|
|
1757
1922
|
],
|
|
1758
1923
|
default: OPERATIONS.LIST,
|
|
1759
1924
|
},
|
|
@@ -2295,12 +2460,29 @@ class TukiMate {
|
|
|
2295
2460
|
// ==================== CLIENT ====================
|
|
2296
2461
|
else if (resource === RESOURCES.CLIENT) {
|
|
2297
2462
|
if (operation === OPERATIONS.LIST) {
|
|
2298
|
-
|
|
2299
|
-
const
|
|
2300
|
-
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, '');
|
|
2301
2476
|
const clientSearch = this.getNodeParameter('clientSearch', i, '');
|
|
2302
|
-
|
|
2303
|
-
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');
|
|
2304
2486
|
const query = {};
|
|
2305
2487
|
if (clientTypeFilter)
|
|
2306
2488
|
query.type = clientTypeFilter;
|