@crono-one/n8n-nodes-crono-public-api 1.1.0 → 1.1.1
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.
|
@@ -794,6 +794,21 @@ class CronoPublicApi {
|
|
|
794
794
|
},
|
|
795
795
|
description: 'Generate AI variables request payload',
|
|
796
796
|
},
|
|
797
|
+
{
|
|
798
|
+
displayName: 'Account ID',
|
|
799
|
+
name: 'companyUpdateAccountId',
|
|
800
|
+
type: 'string',
|
|
801
|
+
default: '',
|
|
802
|
+
required: true,
|
|
803
|
+
displayOptions: {
|
|
804
|
+
show: {
|
|
805
|
+
resource: ['company'],
|
|
806
|
+
operation: ['update'],
|
|
807
|
+
useRawJsonData: [false],
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
description: 'Account ID to update',
|
|
811
|
+
},
|
|
797
812
|
{
|
|
798
813
|
displayName: 'Name',
|
|
799
814
|
name: 'companyUpdateName',
|
|
@@ -1485,6 +1500,21 @@ class CronoPublicApi {
|
|
|
1485
1500
|
},
|
|
1486
1501
|
description: 'Generate AI variables request payload',
|
|
1487
1502
|
},
|
|
1503
|
+
{
|
|
1504
|
+
displayName: 'Prospect ID',
|
|
1505
|
+
name: 'contactUpdateProspectId',
|
|
1506
|
+
type: 'string',
|
|
1507
|
+
default: '',
|
|
1508
|
+
required: true,
|
|
1509
|
+
displayOptions: {
|
|
1510
|
+
show: {
|
|
1511
|
+
resource: ['contact'],
|
|
1512
|
+
operation: ['update'],
|
|
1513
|
+
useRawJsonData: [false],
|
|
1514
|
+
},
|
|
1515
|
+
},
|
|
1516
|
+
description: 'Prospect ID to update',
|
|
1517
|
+
},
|
|
1488
1518
|
{
|
|
1489
1519
|
displayName: 'First Name',
|
|
1490
1520
|
name: 'contactUpdateFirstName',
|
|
@@ -3354,6 +3384,8 @@ class CronoPublicApi {
|
|
|
3354
3384
|
{ name: 'Owner Desc', value: 'OwnerDesc' },
|
|
3355
3385
|
{ name: 'Progress', value: 'Progress' },
|
|
3356
3386
|
{ name: 'Progress Desc', value: 'ProgressDesc' },
|
|
3387
|
+
{ name: 'Score', value: 'Score' },
|
|
3388
|
+
{ name: 'Score Desc', value: 'ScoreDesc' },
|
|
3357
3389
|
{ name: 'Status', value: 'Status' },
|
|
3358
3390
|
{ name: 'Status Desc', value: 'StatusDesc' },
|
|
3359
3391
|
{ name: 'Tasks', value: 'Tasks' },
|
|
@@ -4003,6 +4035,27 @@ class CronoPublicApi {
|
|
|
4003
4035
|
},
|
|
4004
4036
|
},
|
|
4005
4037
|
},
|
|
4038
|
+
{
|
|
4039
|
+
displayName: 'LinkedIn Status',
|
|
4040
|
+
name: 'contactSearchLinkedinStatus',
|
|
4041
|
+
type: 'options',
|
|
4042
|
+
default: '',
|
|
4043
|
+
displayOptions: {
|
|
4044
|
+
show: {
|
|
4045
|
+
resource: ['contact'],
|
|
4046
|
+
operation: ['search'],
|
|
4047
|
+
useRawJsonSearch: [false],
|
|
4048
|
+
},
|
|
4049
|
+
},
|
|
4050
|
+
options: [
|
|
4051
|
+
{ name: 'Any', value: '' },
|
|
4052
|
+
{ name: 'Connected', value: 'Connected' },
|
|
4053
|
+
{ name: 'Invitation Sent', value: 'InvitationSent' },
|
|
4054
|
+
{ name: 'Not Connected', value: 'NotConnected' },
|
|
4055
|
+
{ name: 'Unknown', value: 'Unknown' },
|
|
4056
|
+
],
|
|
4057
|
+
description: 'Filter by LinkedIn connection status related to the owner',
|
|
4058
|
+
},
|
|
4006
4059
|
{
|
|
4007
4060
|
displayName: 'Sort',
|
|
4008
4061
|
name: 'contactSearchSort',
|
|
@@ -4026,10 +4079,9 @@ class CronoPublicApi {
|
|
|
4026
4079
|
{ name: 'Name Desc', value: 'NameDesc' },
|
|
4027
4080
|
{ name: 'Owner', value: 'Owner' },
|
|
4028
4081
|
{ name: 'Owner Desc', value: 'OwnerDesc' },
|
|
4029
|
-
{ name: '
|
|
4030
|
-
{ name: '
|
|
4031
|
-
{ name: '
|
|
4032
|
-
{ name: 'Tasks Desc', value: 'TasksDesc' },
|
|
4082
|
+
{ name: 'Prospect ID', value: 'ProspectId' },
|
|
4083
|
+
{ name: 'Score', value: 'Score' },
|
|
4084
|
+
{ name: 'Score Desc', value: 'ScoreDesc' },
|
|
4033
4085
|
],
|
|
4034
4086
|
description: 'Sort order',
|
|
4035
4087
|
},
|
|
@@ -4046,10 +4098,10 @@ class CronoPublicApi {
|
|
|
4046
4098
|
},
|
|
4047
4099
|
},
|
|
4048
4100
|
options: [
|
|
4049
|
-
{ name: 'Accept All', value: '
|
|
4050
|
-
{ name: 'Invalid', value: '
|
|
4051
|
-
{ name: 'Unknown', value: '
|
|
4052
|
-
{ name: 'Valid', value: '
|
|
4101
|
+
{ name: 'Accept All', value: 'AcceptAll' },
|
|
4102
|
+
{ name: 'Invalid', value: 'Invalid' },
|
|
4103
|
+
{ name: 'Unknown', value: 'Unknown' },
|
|
4104
|
+
{ name: 'Valid', value: 'Valid' },
|
|
4053
4105
|
],
|
|
4054
4106
|
description: 'Verification status filters',
|
|
4055
4107
|
},
|
|
@@ -5055,7 +5107,7 @@ class CronoPublicApi {
|
|
|
5055
5107
|
displayName: 'Type',
|
|
5056
5108
|
name: 'listSearchType',
|
|
5057
5109
|
type: 'options',
|
|
5058
|
-
default: '
|
|
5110
|
+
default: '',
|
|
5059
5111
|
displayOptions: {
|
|
5060
5112
|
show: {
|
|
5061
5113
|
resource: ['list'],
|
|
@@ -5065,10 +5117,12 @@ class CronoPublicApi {
|
|
|
5065
5117
|
},
|
|
5066
5118
|
options: [
|
|
5067
5119
|
{ name: 'Account', value: 'Account' },
|
|
5120
|
+
{ name: 'All', value: '' },
|
|
5068
5121
|
{ name: 'Lead', value: 'Lead' },
|
|
5069
5122
|
{ name: 'Prospect', value: 'Prospect' },
|
|
5070
5123
|
{ name: 'Strategy', value: 'Strategy' },
|
|
5071
5124
|
{ name: 'Template', value: 'Template' },
|
|
5125
|
+
{ name: 'User', value: 'User' },
|
|
5072
5126
|
],
|
|
5073
5127
|
description: 'List table type',
|
|
5074
5128
|
},
|
|
@@ -5397,6 +5451,8 @@ class CronoPublicApi {
|
|
|
5397
5451
|
{ name: 'Last Interaction Desc', value: 'LastInteractionDesc' },
|
|
5398
5452
|
{ name: 'Progress Asc', value: 'ProgressAsc' },
|
|
5399
5453
|
{ name: 'Progress Desc', value: 'ProgressDesc' },
|
|
5454
|
+
{ name: 'Score Asc', value: 'ScoreAsc' },
|
|
5455
|
+
{ name: 'Score Desc', value: 'ScoreDesc' },
|
|
5400
5456
|
],
|
|
5401
5457
|
description: 'Sort order',
|
|
5402
5458
|
},
|
|
@@ -5404,7 +5460,7 @@ class CronoPublicApi {
|
|
|
5404
5460
|
displayName: 'Status',
|
|
5405
5461
|
name: 'strategyDetailsStatus',
|
|
5406
5462
|
type: 'options',
|
|
5407
|
-
default: '
|
|
5463
|
+
default: '',
|
|
5408
5464
|
displayOptions: {
|
|
5409
5465
|
show: {
|
|
5410
5466
|
resource: ['strategy'],
|
|
@@ -5415,6 +5471,7 @@ class CronoPublicApi {
|
|
|
5415
5471
|
options: [
|
|
5416
5472
|
{ name: 'Active', value: 'Active' },
|
|
5417
5473
|
{ name: 'Answered', value: 'Answered' },
|
|
5474
|
+
{ name: 'Any', value: '' },
|
|
5418
5475
|
{ name: 'Completed', value: 'Completed' },
|
|
5419
5476
|
{ name: 'Converted', value: 'Converted' },
|
|
5420
5477
|
{ name: 'Dead', value: 'Dead' },
|
|
@@ -5478,7 +5535,7 @@ class CronoPublicApi {
|
|
|
5478
5535
|
displayName: 'Table Type',
|
|
5479
5536
|
name: 'externalPropertySearchTableType',
|
|
5480
5537
|
type: 'options',
|
|
5481
|
-
default: '
|
|
5538
|
+
default: '',
|
|
5482
5539
|
displayOptions: {
|
|
5483
5540
|
show: {
|
|
5484
5541
|
resource: ['externalProperty'],
|
|
@@ -5488,6 +5545,7 @@ class CronoPublicApi {
|
|
|
5488
5545
|
},
|
|
5489
5546
|
options: [
|
|
5490
5547
|
{ name: 'Account', value: 'Account' },
|
|
5548
|
+
{ name: 'All', value: '' },
|
|
5491
5549
|
{ name: 'Lead', value: 'Lead' },
|
|
5492
5550
|
{ name: 'Opportunity', value: 'Opportunity' },
|
|
5493
5551
|
{ name: 'Prospect', value: 'Prospect' },
|
|
@@ -5691,6 +5749,7 @@ class CronoPublicApi {
|
|
|
5691
5749
|
{ name: 'Prospect', value: 'Prospect' },
|
|
5692
5750
|
{ name: 'Strategy', value: 'Strategy' },
|
|
5693
5751
|
{ name: 'Template', value: 'Template' },
|
|
5752
|
+
{ name: 'User', value: 'User' },
|
|
5694
5753
|
],
|
|
5695
5754
|
description: 'List table type',
|
|
5696
5755
|
},
|
|
@@ -6145,7 +6204,7 @@ class CronoPublicApi {
|
|
|
6145
6204
|
if (operation === 'getAll') {
|
|
6146
6205
|
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
6147
6206
|
const offset = this.getNodeParameter('offset', itemIndex, 0);
|
|
6148
|
-
qs = { limit, offset };
|
|
6207
|
+
qs = { Limit: limit, Offset: offset };
|
|
6149
6208
|
}
|
|
6150
6209
|
switch (resource) {
|
|
6151
6210
|
case 'company': {
|
|
@@ -6305,6 +6364,7 @@ class CronoPublicApi {
|
|
|
6305
6364
|
? getJsonParameter(this, 'data', itemIndex)
|
|
6306
6365
|
: {};
|
|
6307
6366
|
if (!useRawJsonData) {
|
|
6367
|
+
addIfNotEmpty(data, 'AccountId', this.getNodeParameter('companyUpdateAccountId', itemIndex, ''));
|
|
6308
6368
|
addIfNotEmpty(data, 'Name', this.getNodeParameter('companyUpdateName', itemIndex, ''));
|
|
6309
6369
|
const numberOfEmployees = this.getNodeParameter('companyUpdateNumberOfEmployees', itemIndex, 0);
|
|
6310
6370
|
if (numberOfEmployees) {
|
|
@@ -6506,6 +6566,7 @@ class CronoPublicApi {
|
|
|
6506
6566
|
if (this.getNodeParameter('contactSearchOptedOut', itemIndex, false)) {
|
|
6507
6567
|
searchBody.OptedOut = true;
|
|
6508
6568
|
}
|
|
6569
|
+
addIfNotEmpty(searchBody, 'LinkedinStatus', this.getNodeParameter('contactSearchLinkedinStatus', itemIndex, ''));
|
|
6509
6570
|
const pagination = {};
|
|
6510
6571
|
addIfNotEmpty(pagination, 'Limit', this.getNodeParameter('contactSearchLimit', itemIndex, 50));
|
|
6511
6572
|
addIfNotEmpty(pagination, 'Offset', this.getNodeParameter('contactSearchOffset', itemIndex, 0));
|
|
@@ -6580,6 +6641,7 @@ class CronoPublicApi {
|
|
|
6580
6641
|
? getJsonParameter(this, 'data', itemIndex)
|
|
6581
6642
|
: {};
|
|
6582
6643
|
if (!useRawJsonData) {
|
|
6644
|
+
addIfNotEmpty(data, 'ProspectId', this.getNodeParameter('contactUpdateProspectId', itemIndex, ''));
|
|
6583
6645
|
addIfNotEmpty(data, 'FirstName', this.getNodeParameter('contactUpdateFirstName', itemIndex, ''));
|
|
6584
6646
|
addIfNotEmpty(data, 'LastName', this.getNodeParameter('contactUpdateLastName', itemIndex, ''));
|
|
6585
6647
|
addIfNotEmpty(data, 'Phone', this.getNodeParameter('contactUpdatePhone', itemIndex, ''));
|
|
@@ -7125,7 +7187,7 @@ class CronoPublicApi {
|
|
|
7125
7187
|
if (Object.keys(pagination).length) {
|
|
7126
7188
|
searchBody.Pagination = pagination;
|
|
7127
7189
|
}
|
|
7128
|
-
addIfNotEmpty(searchBody, 'Type', this.getNodeParameter('listSearchType', itemIndex, '
|
|
7190
|
+
addIfNotEmpty(searchBody, 'Type', this.getNodeParameter('listSearchType', itemIndex, ''));
|
|
7129
7191
|
addIfNotEmpty(searchBody, 'SortType', this.getNodeParameter('listSearchSortType', itemIndex, ''));
|
|
7130
7192
|
Object.assign(searchBody, getAdditionalFields(this, 'searchAdditionalFields', itemIndex));
|
|
7131
7193
|
body = searchBody;
|
|
@@ -7174,7 +7236,7 @@ class CronoPublicApi {
|
|
|
7174
7236
|
}
|
|
7175
7237
|
const sharedUsersIds = parseCsv(this.getNodeParameter('listUpdateSharedUsersIds', itemIndex, ''));
|
|
7176
7238
|
if (sharedUsersIds.length) {
|
|
7177
|
-
data.SharedUsersIds = sharedUsersIds
|
|
7239
|
+
data.SharedUsersIds = sharedUsersIds;
|
|
7178
7240
|
}
|
|
7179
7241
|
Object.assign(data, getAdditionalFields(this, 'dataAdditionalFields', itemIndex));
|
|
7180
7242
|
}
|
|
@@ -7279,7 +7341,7 @@ class CronoPublicApi {
|
|
|
7279
7341
|
addIfNotEmpty(searchBody, 'UserId', this.getNodeParameter('strategySearchUserId', itemIndex, ''));
|
|
7280
7342
|
const ids = parseCsv(this.getNodeParameter('strategySearchIds', itemIndex, ''));
|
|
7281
7343
|
if (ids.length) {
|
|
7282
|
-
searchBody.Ids = ids;
|
|
7344
|
+
searchBody.Ids = ids.map((id) => parseInt(id, 10));
|
|
7283
7345
|
}
|
|
7284
7346
|
const pagination = {};
|
|
7285
7347
|
addIfNotEmpty(pagination, 'Limit', this.getNodeParameter('strategySearchLimit', itemIndex, 50));
|