@crono-one/n8n-nodes-crono-public-api 1.1.1 → 1.2.0
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.
|
@@ -29,12 +29,15 @@ function addIfNotEmpty(target, key, value) {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
function getAdditionalFields(executeFunctions, parameterName, itemIndex) {
|
|
32
|
-
var _a;
|
|
33
|
-
const
|
|
32
|
+
var _a, _b;
|
|
33
|
+
const rawValue = executeFunctions.getNodeParameter(parameterName, itemIndex, {});
|
|
34
34
|
const additional = {};
|
|
35
|
+
const entries = Array.isArray(rawValue)
|
|
36
|
+
? rawValue
|
|
37
|
+
: ((_a = Object.values(rawValue).find((value) => Array.isArray(value))) !== null && _a !== void 0 ? _a : []);
|
|
35
38
|
for (const entry of entries) {
|
|
36
39
|
if (entry.field) {
|
|
37
|
-
additional[entry.field] = (
|
|
40
|
+
additional[entry.field] = (_b = entry.value) !== null && _b !== void 0 ? _b : '';
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
return additional;
|
|
@@ -48,6 +51,139 @@ function parseCsv(value) {
|
|
|
48
51
|
.map((item) => item.trim())
|
|
49
52
|
.filter((item) => item.length > 0);
|
|
50
53
|
}
|
|
54
|
+
function cloneDataObject(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return JSON.parse(JSON.stringify(value));
|
|
59
|
+
}
|
|
60
|
+
function getPaginationConfig(qs, body) {
|
|
61
|
+
const queryLimitKey = typeof qs.Limit === 'number' ? 'Limit' : 'limit';
|
|
62
|
+
const queryOffsetKey = typeof qs.Offset === 'number' ? 'Offset' : 'offset';
|
|
63
|
+
const queryLimit = qs[queryLimitKey];
|
|
64
|
+
const queryOffset = qs[queryOffsetKey];
|
|
65
|
+
if (typeof queryLimit === 'number' && typeof queryOffset === 'number') {
|
|
66
|
+
return {
|
|
67
|
+
type: 'query',
|
|
68
|
+
limit: queryLimit,
|
|
69
|
+
offset: queryOffset,
|
|
70
|
+
limitKey: queryLimitKey,
|
|
71
|
+
offsetKey: queryOffsetKey,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (!body) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
const bodyLimit = body.Limit;
|
|
78
|
+
const bodyOffset = body.Offset;
|
|
79
|
+
if (typeof bodyLimit === 'number' && typeof bodyOffset === 'number') {
|
|
80
|
+
return {
|
|
81
|
+
type: 'body',
|
|
82
|
+
limit: bodyLimit,
|
|
83
|
+
offset: bodyOffset,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
const pagination = body.Pagination;
|
|
87
|
+
if (pagination && typeof pagination.Limit === 'number' && typeof pagination.Offset === 'number') {
|
|
88
|
+
return {
|
|
89
|
+
type: 'bodyPagination',
|
|
90
|
+
limit: pagination.Limit,
|
|
91
|
+
offset: pagination.Offset,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
function setPaginationOffset(qs, body, pagination, offset) {
|
|
97
|
+
if (pagination.type === 'query') {
|
|
98
|
+
const offsetKey = pagination.offsetKey in qs ? pagination.offsetKey : 'Offset' in qs ? 'Offset' : 'offset';
|
|
99
|
+
qs[offsetKey] = offset;
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (!body) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (pagination.type === 'body') {
|
|
106
|
+
body.Offset = offset;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const currentPagination = body.Pagination;
|
|
110
|
+
if (currentPagination) {
|
|
111
|
+
currentPagination.Offset = offset;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function extractItemsFromResponse(responseData) {
|
|
115
|
+
if (Array.isArray(responseData)) {
|
|
116
|
+
const items = responseData.filter((item) => item !== null && typeof item === 'object' && !Array.isArray(item));
|
|
117
|
+
return items.length > 0 ? items : null;
|
|
118
|
+
}
|
|
119
|
+
if (!responseData || typeof responseData !== 'object') {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
const preferredKeys = [
|
|
123
|
+
'Accounts',
|
|
124
|
+
'Prospects',
|
|
125
|
+
'Opportunities',
|
|
126
|
+
'Notes',
|
|
127
|
+
'Activities',
|
|
128
|
+
'Users',
|
|
129
|
+
'Imports',
|
|
130
|
+
'CronoLists',
|
|
131
|
+
'Strategies',
|
|
132
|
+
'Sequences',
|
|
133
|
+
'Templates',
|
|
134
|
+
'Tasks',
|
|
135
|
+
'Results',
|
|
136
|
+
'Items',
|
|
137
|
+
'Data',
|
|
138
|
+
];
|
|
139
|
+
const responseObject = responseData;
|
|
140
|
+
for (const key of preferredKeys) {
|
|
141
|
+
const value = responseObject[key];
|
|
142
|
+
if (Array.isArray(value)) {
|
|
143
|
+
const items = value.filter((item) => item !== null && typeof item === 'object' && !Array.isArray(item));
|
|
144
|
+
if (items.length > 0) {
|
|
145
|
+
return items;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
for (const value of Object.values(responseObject)) {
|
|
150
|
+
if (Array.isArray(value)) {
|
|
151
|
+
const items = value.filter((item) => item !== null && typeof item === 'object' && !Array.isArray(item));
|
|
152
|
+
if (items.length > 0) {
|
|
153
|
+
return items;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (value && typeof value === 'object') {
|
|
157
|
+
const nestedItems = extractItemsFromResponse(value);
|
|
158
|
+
if (nestedItems && nestedItems.length > 0) {
|
|
159
|
+
return nestedItems;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
function getTotalCount(responseData) {
|
|
166
|
+
if (!responseData || typeof responseData !== 'object' || Array.isArray(responseData)) {
|
|
167
|
+
return undefined;
|
|
168
|
+
}
|
|
169
|
+
const responseObject = responseData;
|
|
170
|
+
const preferredKeys = ['TotalCount', 'Total', 'Count'];
|
|
171
|
+
for (const key of preferredKeys) {
|
|
172
|
+
const value = responseObject[key];
|
|
173
|
+
if (typeof value === 'number') {
|
|
174
|
+
return value;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
for (const value of Object.values(responseObject)) {
|
|
178
|
+
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
|
179
|
+
const nestedTotal = getTotalCount(value);
|
|
180
|
+
if (nestedTotal !== undefined) {
|
|
181
|
+
return nestedTotal;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return undefined;
|
|
186
|
+
}
|
|
51
187
|
async function cronoApiRequest(method, endpoint, qs = {}, body = undefined) {
|
|
52
188
|
const credentials = await this.getCredentials('cronoPublicApi');
|
|
53
189
|
const baseUrl = credentials.baseUrl || 'https://ext.crono.one';
|
|
@@ -108,7 +244,7 @@ class CronoPublicApi {
|
|
|
108
244
|
{ name: 'List', value: 'list' },
|
|
109
245
|
{ name: 'Note', value: 'note' },
|
|
110
246
|
{ name: 'Pipeline', value: 'pipeline' },
|
|
111
|
-
{ name: '
|
|
247
|
+
{ name: 'Sequence', value: 'sequence' },
|
|
112
248
|
{ name: 'Task', value: 'task' },
|
|
113
249
|
{ name: 'Template', value: 'template' },
|
|
114
250
|
{ name: 'User', value: 'user' },
|
|
@@ -229,10 +365,26 @@ class CronoPublicApi {
|
|
|
229
365
|
{ name: 'Create', value: 'create', action: 'Create a list' },
|
|
230
366
|
{ name: 'Delete', value: 'delete', action: 'Delete a list' },
|
|
231
367
|
{ name: 'Get', value: 'get', action: 'Get a list' },
|
|
232
|
-
{
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
368
|
+
{
|
|
369
|
+
name: 'Remove Companies',
|
|
370
|
+
value: 'removeCompanies',
|
|
371
|
+
action: 'Remove companies from a list',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: 'Remove Contacts',
|
|
375
|
+
value: 'removeContacts',
|
|
376
|
+
action: 'Remove contacts from a list',
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: 'Remove Sequences',
|
|
380
|
+
value: 'removeSequences',
|
|
381
|
+
action: 'Remove sequences from a list',
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: 'Remove Templates',
|
|
385
|
+
value: 'removeTemplates',
|
|
386
|
+
action: 'Remove templates from a list',
|
|
387
|
+
},
|
|
236
388
|
{ name: 'Search', value: 'search', action: 'Search lists' },
|
|
237
389
|
{ name: 'Update', value: 'update', action: 'Update a list' },
|
|
238
390
|
],
|
|
@@ -255,16 +407,20 @@ class CronoPublicApi {
|
|
|
255
407
|
type: 'options',
|
|
256
408
|
noDataExpression: true,
|
|
257
409
|
displayOptions: {
|
|
258
|
-
show: { resource: ['
|
|
410
|
+
show: { resource: ['sequence'] },
|
|
259
411
|
},
|
|
260
412
|
options: [
|
|
261
413
|
{
|
|
262
414
|
name: 'Add Contacts',
|
|
263
415
|
value: 'addContacts',
|
|
264
|
-
action: 'Add contacts to a
|
|
416
|
+
action: 'Add contacts to a sequence',
|
|
417
|
+
},
|
|
418
|
+
{ name: 'Search Sequence', value: 'search', action: 'Search sequence' },
|
|
419
|
+
{
|
|
420
|
+
name: 'Search Sequence Details',
|
|
421
|
+
value: 'searchDetails',
|
|
422
|
+
action: 'Search sequence details',
|
|
265
423
|
},
|
|
266
|
-
{ name: 'Search', value: 'search', action: 'Search strategies' },
|
|
267
|
-
{ name: 'Search Details', value: 'searchDetails', action: 'Search strategy details' },
|
|
268
424
|
{
|
|
269
425
|
name: 'Stop Contact Sequence',
|
|
270
426
|
value: 'stopContactSequence',
|
|
@@ -379,6 +535,19 @@ class CronoPublicApi {
|
|
|
379
535
|
},
|
|
380
536
|
},
|
|
381
537
|
},
|
|
538
|
+
{
|
|
539
|
+
displayName: 'Return All',
|
|
540
|
+
name: 'returnAll',
|
|
541
|
+
type: 'boolean',
|
|
542
|
+
default: false,
|
|
543
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
544
|
+
displayOptions: {
|
|
545
|
+
show: {
|
|
546
|
+
resource: ['company', 'contact', 'deal', 'note', 'activity', 'user', 'import'],
|
|
547
|
+
operation: ['getAll'],
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
},
|
|
382
551
|
{
|
|
383
552
|
displayName: 'Limit',
|
|
384
553
|
name: 'limit',
|
|
@@ -420,6 +589,31 @@ class CronoPublicApi {
|
|
|
420
589
|
},
|
|
421
590
|
description: 'JSON object of include options to add as query parameters',
|
|
422
591
|
},
|
|
592
|
+
{
|
|
593
|
+
displayName: 'Return All',
|
|
594
|
+
name: 'returnAll',
|
|
595
|
+
type: 'boolean',
|
|
596
|
+
default: false,
|
|
597
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
598
|
+
displayOptions: {
|
|
599
|
+
show: {
|
|
600
|
+
resource: [
|
|
601
|
+
'company',
|
|
602
|
+
'contact',
|
|
603
|
+
'deal',
|
|
604
|
+
'note',
|
|
605
|
+
'activity',
|
|
606
|
+
'list',
|
|
607
|
+
'sequence',
|
|
608
|
+
'template',
|
|
609
|
+
'user',
|
|
610
|
+
'task',
|
|
611
|
+
],
|
|
612
|
+
operation: ['search', 'searchDetails'],
|
|
613
|
+
useRawJsonSearch: [false],
|
|
614
|
+
},
|
|
615
|
+
},
|
|
616
|
+
},
|
|
423
617
|
{
|
|
424
618
|
displayName: 'Use Raw JSON',
|
|
425
619
|
name: 'useRawJsonSearch',
|
|
@@ -434,7 +628,7 @@ class CronoPublicApi {
|
|
|
434
628
|
'note',
|
|
435
629
|
'activity',
|
|
436
630
|
'list',
|
|
437
|
-
'
|
|
631
|
+
'sequence',
|
|
438
632
|
'template',
|
|
439
633
|
'externalProperty',
|
|
440
634
|
'user',
|
|
@@ -459,7 +653,7 @@ class CronoPublicApi {
|
|
|
459
653
|
'note',
|
|
460
654
|
'activity',
|
|
461
655
|
'list',
|
|
462
|
-
'
|
|
656
|
+
'sequence',
|
|
463
657
|
'template',
|
|
464
658
|
'externalProperty',
|
|
465
659
|
'user',
|
|
@@ -478,7 +672,7 @@ class CronoPublicApi {
|
|
|
478
672
|
default: false,
|
|
479
673
|
displayOptions: {
|
|
480
674
|
show: {
|
|
481
|
-
resource: ['company', 'contact', 'deal', 'note', 'task', 'list', '
|
|
675
|
+
resource: ['company', 'contact', 'deal', 'note', 'task', 'list', 'sequence'],
|
|
482
676
|
operation: ['create', 'update', 'import', 'addContacts', 'stopContactSequence'],
|
|
483
677
|
},
|
|
484
678
|
},
|
|
@@ -491,7 +685,7 @@ class CronoPublicApi {
|
|
|
491
685
|
default: {},
|
|
492
686
|
displayOptions: {
|
|
493
687
|
show: {
|
|
494
|
-
resource: ['company', 'contact', 'deal', 'note', 'task', 'list', '
|
|
688
|
+
resource: ['company', 'contact', 'deal', 'note', 'task', 'list', 'sequence'],
|
|
495
689
|
operation: ['create', 'update', 'import', 'addContacts', 'stopContactSequence'],
|
|
496
690
|
useRawJsonData: [true],
|
|
497
691
|
},
|
|
@@ -501,15 +695,14 @@ class CronoPublicApi {
|
|
|
501
695
|
{
|
|
502
696
|
displayName: 'Additional Fields',
|
|
503
697
|
name: 'dataAdditionalFields',
|
|
504
|
-
type: '
|
|
698
|
+
type: 'fixedCollection',
|
|
505
699
|
typeOptions: {
|
|
506
|
-
multipleValueButtonText: 'Add Field',
|
|
507
700
|
multipleValues: true,
|
|
508
701
|
},
|
|
509
|
-
default:
|
|
702
|
+
default: {},
|
|
510
703
|
displayOptions: {
|
|
511
704
|
show: {
|
|
512
|
-
resource: ['company', 'contact', 'deal', 'note', 'task', 'list', '
|
|
705
|
+
resource: ['company', 'contact', 'deal', 'note', 'task', 'list', 'sequence'],
|
|
513
706
|
operation: ['create', 'update', 'import', 'addContacts', 'stopContactSequence'],
|
|
514
707
|
useRawJsonData: [false],
|
|
515
708
|
},
|
|
@@ -517,28 +710,33 @@ class CronoPublicApi {
|
|
|
517
710
|
description: 'Additional data fields to merge into the payload',
|
|
518
711
|
options: [
|
|
519
712
|
{
|
|
520
|
-
displayName: 'Field',
|
|
521
713
|
name: 'field',
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
714
|
+
displayName: 'Field',
|
|
715
|
+
values: [
|
|
716
|
+
{
|
|
717
|
+
displayName: 'Field',
|
|
718
|
+
name: 'field',
|
|
719
|
+
type: 'string',
|
|
720
|
+
default: '',
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
displayName: 'Value',
|
|
724
|
+
name: 'value',
|
|
725
|
+
type: 'string',
|
|
726
|
+
default: '',
|
|
727
|
+
},
|
|
728
|
+
],
|
|
530
729
|
},
|
|
531
730
|
],
|
|
532
731
|
},
|
|
533
732
|
{
|
|
534
733
|
displayName: 'Additional Fields',
|
|
535
734
|
name: 'searchAdditionalFields',
|
|
536
|
-
type: '
|
|
735
|
+
type: 'fixedCollection',
|
|
537
736
|
typeOptions: {
|
|
538
|
-
multipleValueButtonText: 'Add Field',
|
|
539
737
|
multipleValues: true,
|
|
540
738
|
},
|
|
541
|
-
default:
|
|
739
|
+
default: {},
|
|
542
740
|
displayOptions: {
|
|
543
741
|
show: {
|
|
544
742
|
resource: [
|
|
@@ -548,7 +746,7 @@ class CronoPublicApi {
|
|
|
548
746
|
'note',
|
|
549
747
|
'activity',
|
|
550
748
|
'list',
|
|
551
|
-
'
|
|
749
|
+
'sequence',
|
|
552
750
|
'template',
|
|
553
751
|
'externalProperty',
|
|
554
752
|
'user',
|
|
@@ -561,16 +759,22 @@ class CronoPublicApi {
|
|
|
561
759
|
description: 'Additional search fields to merge into the payload',
|
|
562
760
|
options: [
|
|
563
761
|
{
|
|
564
|
-
displayName: 'Field',
|
|
565
762
|
name: 'field',
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
763
|
+
displayName: 'Field',
|
|
764
|
+
values: [
|
|
765
|
+
{
|
|
766
|
+
displayName: 'Field',
|
|
767
|
+
name: 'field',
|
|
768
|
+
type: 'string',
|
|
769
|
+
default: '',
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
displayName: 'Value',
|
|
773
|
+
name: 'value',
|
|
774
|
+
type: 'string',
|
|
775
|
+
default: '',
|
|
776
|
+
},
|
|
777
|
+
],
|
|
574
778
|
},
|
|
575
779
|
],
|
|
576
780
|
},
|
|
@@ -795,7 +999,7 @@ class CronoPublicApi {
|
|
|
795
999
|
description: 'Generate AI variables request payload',
|
|
796
1000
|
},
|
|
797
1001
|
{
|
|
798
|
-
displayName: '
|
|
1002
|
+
displayName: 'Company ID',
|
|
799
1003
|
name: 'companyUpdateAccountId',
|
|
800
1004
|
type: 'string',
|
|
801
1005
|
default: '',
|
|
@@ -807,7 +1011,7 @@ class CronoPublicApi {
|
|
|
807
1011
|
useRawJsonData: [false],
|
|
808
1012
|
},
|
|
809
1013
|
},
|
|
810
|
-
description: '
|
|
1014
|
+
description: 'Company ID to update',
|
|
811
1015
|
},
|
|
812
1016
|
{
|
|
813
1017
|
displayName: 'Name',
|
|
@@ -961,7 +1165,7 @@ class CronoPublicApi {
|
|
|
961
1165
|
},
|
|
962
1166
|
},
|
|
963
1167
|
{
|
|
964
|
-
displayName: '
|
|
1168
|
+
displayName: 'Companies',
|
|
965
1169
|
name: 'companyImportAccounts',
|
|
966
1170
|
type: 'fixedCollection',
|
|
967
1171
|
typeOptions: {
|
|
@@ -975,11 +1179,11 @@ class CronoPublicApi {
|
|
|
975
1179
|
useRawJsonData: [false],
|
|
976
1180
|
},
|
|
977
1181
|
},
|
|
978
|
-
description: '
|
|
1182
|
+
description: 'Companies to import',
|
|
979
1183
|
options: [
|
|
980
1184
|
{
|
|
981
1185
|
name: 'account',
|
|
982
|
-
displayName: '
|
|
1186
|
+
displayName: 'Company',
|
|
983
1187
|
values: [
|
|
984
1188
|
{
|
|
985
1189
|
displayName: 'Annual Revenue',
|
|
@@ -1203,7 +1407,7 @@ class CronoPublicApi {
|
|
|
1203
1407
|
description: 'Company name',
|
|
1204
1408
|
},
|
|
1205
1409
|
{
|
|
1206
|
-
displayName: '
|
|
1410
|
+
displayName: 'Company ID',
|
|
1207
1411
|
name: 'contactCreateAccountId',
|
|
1208
1412
|
type: 'string',
|
|
1209
1413
|
default: '',
|
|
@@ -1214,7 +1418,7 @@ class CronoPublicApi {
|
|
|
1214
1418
|
useRawJsonData: [false],
|
|
1215
1419
|
},
|
|
1216
1420
|
},
|
|
1217
|
-
description: '
|
|
1421
|
+
description: 'Company ID to associate with the contact',
|
|
1218
1422
|
},
|
|
1219
1423
|
{
|
|
1220
1424
|
displayName: 'Company Annual Revenue',
|
|
@@ -1446,7 +1650,7 @@ class CronoPublicApi {
|
|
|
1446
1650
|
description: 'Contact mobile phone',
|
|
1447
1651
|
},
|
|
1448
1652
|
{
|
|
1449
|
-
displayName: '
|
|
1653
|
+
displayName: 'Sequence ID',
|
|
1450
1654
|
name: 'contactCreateStrategyId',
|
|
1451
1655
|
type: 'number',
|
|
1452
1656
|
default: 0,
|
|
@@ -1457,7 +1661,7 @@ class CronoPublicApi {
|
|
|
1457
1661
|
useRawJsonData: [false],
|
|
1458
1662
|
},
|
|
1459
1663
|
},
|
|
1460
|
-
description: '
|
|
1664
|
+
description: 'Sequence ID to add the contact to',
|
|
1461
1665
|
},
|
|
1462
1666
|
{
|
|
1463
1667
|
displayName: 'Time Zone',
|
|
@@ -1501,7 +1705,7 @@ class CronoPublicApi {
|
|
|
1501
1705
|
description: 'Generate AI variables request payload',
|
|
1502
1706
|
},
|
|
1503
1707
|
{
|
|
1504
|
-
displayName: '
|
|
1708
|
+
displayName: 'Contact ID',
|
|
1505
1709
|
name: 'contactUpdateProspectId',
|
|
1506
1710
|
type: 'string',
|
|
1507
1711
|
default: '',
|
|
@@ -1513,7 +1717,7 @@ class CronoPublicApi {
|
|
|
1513
1717
|
useRawJsonData: [false],
|
|
1514
1718
|
},
|
|
1515
1719
|
},
|
|
1516
|
-
description: '
|
|
1720
|
+
description: 'Contact ID to update',
|
|
1517
1721
|
},
|
|
1518
1722
|
{
|
|
1519
1723
|
displayName: 'First Name',
|
|
@@ -1668,7 +1872,7 @@ class CronoPublicApi {
|
|
|
1668
1872
|
},
|
|
1669
1873
|
},
|
|
1670
1874
|
{
|
|
1671
|
-
displayName: '
|
|
1875
|
+
displayName: 'Contacts',
|
|
1672
1876
|
name: 'contactImportProspects',
|
|
1673
1877
|
type: 'fixedCollection',
|
|
1674
1878
|
typeOptions: {
|
|
@@ -1682,18 +1886,12 @@ class CronoPublicApi {
|
|
|
1682
1886
|
useRawJsonData: [false],
|
|
1683
1887
|
},
|
|
1684
1888
|
},
|
|
1685
|
-
description: '
|
|
1889
|
+
description: 'Contacts to import',
|
|
1686
1890
|
options: [
|
|
1687
1891
|
{
|
|
1688
1892
|
name: 'prospect',
|
|
1689
|
-
displayName: '
|
|
1893
|
+
displayName: 'Contact',
|
|
1690
1894
|
values: [
|
|
1691
|
-
{
|
|
1692
|
-
displayName: 'Account External Values (JSON)',
|
|
1693
|
-
name: 'accountExternalValues',
|
|
1694
|
-
type: 'json',
|
|
1695
|
-
default: {},
|
|
1696
|
-
},
|
|
1697
1895
|
{
|
|
1698
1896
|
displayName: 'Company',
|
|
1699
1897
|
name: 'company',
|
|
@@ -1712,6 +1910,12 @@ class CronoPublicApi {
|
|
|
1712
1910
|
type: 'string',
|
|
1713
1911
|
default: '',
|
|
1714
1912
|
},
|
|
1913
|
+
{
|
|
1914
|
+
displayName: 'Company External Values (JSON)',
|
|
1915
|
+
name: 'accountExternalValues',
|
|
1916
|
+
type: 'json',
|
|
1917
|
+
default: {},
|
|
1918
|
+
},
|
|
1715
1919
|
{
|
|
1716
1920
|
displayName: 'Company Industry',
|
|
1717
1921
|
name: 'companyIndustry',
|
|
@@ -1804,7 +2008,7 @@ class CronoPublicApi {
|
|
|
1804
2008
|
default: '',
|
|
1805
2009
|
},
|
|
1806
2010
|
{
|
|
1807
|
-
displayName: '
|
|
2011
|
+
displayName: 'Sequence ID',
|
|
1808
2012
|
name: 'strategyId',
|
|
1809
2013
|
type: 'number',
|
|
1810
2014
|
default: 0,
|
|
@@ -1922,7 +2126,7 @@ class CronoPublicApi {
|
|
|
1922
2126
|
description: 'Comma-separated list of AI external property IDs to generate',
|
|
1923
2127
|
},
|
|
1924
2128
|
{
|
|
1925
|
-
displayName: '
|
|
2129
|
+
displayName: 'Company ID',
|
|
1926
2130
|
name: 'dealCreateAccountId',
|
|
1927
2131
|
type: 'string',
|
|
1928
2132
|
default: '',
|
|
@@ -1934,7 +2138,7 @@ class CronoPublicApi {
|
|
|
1934
2138
|
useRawJsonData: [false],
|
|
1935
2139
|
},
|
|
1936
2140
|
},
|
|
1937
|
-
description: '
|
|
2141
|
+
description: 'Company ID linked to the deal',
|
|
1938
2142
|
},
|
|
1939
2143
|
{
|
|
1940
2144
|
displayName: 'Name',
|
|
@@ -2052,7 +2256,7 @@ class CronoPublicApi {
|
|
|
2052
2256
|
description: 'Owner user ID',
|
|
2053
2257
|
},
|
|
2054
2258
|
{
|
|
2055
|
-
displayName: '
|
|
2259
|
+
displayName: 'Company ID',
|
|
2056
2260
|
name: 'dealUpdateAccountId',
|
|
2057
2261
|
type: 'string',
|
|
2058
2262
|
default: '',
|
|
@@ -2064,10 +2268,10 @@ class CronoPublicApi {
|
|
|
2064
2268
|
useRawJsonData: [false],
|
|
2065
2269
|
},
|
|
2066
2270
|
},
|
|
2067
|
-
description: '
|
|
2271
|
+
description: 'Company ID linked to the deal',
|
|
2068
2272
|
},
|
|
2069
2273
|
{
|
|
2070
|
-
displayName: '
|
|
2274
|
+
displayName: 'Deal ID',
|
|
2071
2275
|
name: 'dealUpdateOpportunityId',
|
|
2072
2276
|
type: 'string',
|
|
2073
2277
|
default: '',
|
|
@@ -2079,7 +2283,7 @@ class CronoPublicApi {
|
|
|
2079
2283
|
useRawJsonData: [false],
|
|
2080
2284
|
},
|
|
2081
2285
|
},
|
|
2082
|
-
description: '
|
|
2286
|
+
description: 'Deal ID to update',
|
|
2083
2287
|
},
|
|
2084
2288
|
{
|
|
2085
2289
|
displayName: 'Name',
|
|
@@ -2229,7 +2433,7 @@ class CronoPublicApi {
|
|
|
2229
2433
|
description: 'Note content',
|
|
2230
2434
|
},
|
|
2231
2435
|
{
|
|
2232
|
-
displayName: '
|
|
2436
|
+
displayName: 'Company ID',
|
|
2233
2437
|
name: 'noteCreateAccountId',
|
|
2234
2438
|
type: 'string',
|
|
2235
2439
|
default: '',
|
|
@@ -2241,10 +2445,10 @@ class CronoPublicApi {
|
|
|
2241
2445
|
useRawJsonData: [false],
|
|
2242
2446
|
},
|
|
2243
2447
|
},
|
|
2244
|
-
description: '
|
|
2448
|
+
description: 'Company ID linked to the note',
|
|
2245
2449
|
},
|
|
2246
2450
|
{
|
|
2247
|
-
displayName: '
|
|
2451
|
+
displayName: 'Deal ID',
|
|
2248
2452
|
name: 'noteCreateOpportunityId',
|
|
2249
2453
|
type: 'string',
|
|
2250
2454
|
default: '',
|
|
@@ -2255,10 +2459,10 @@ class CronoPublicApi {
|
|
|
2255
2459
|
useRawJsonData: [false],
|
|
2256
2460
|
},
|
|
2257
2461
|
},
|
|
2258
|
-
description: '
|
|
2462
|
+
description: 'Deal ID linked to the note',
|
|
2259
2463
|
},
|
|
2260
2464
|
{
|
|
2261
|
-
displayName: '
|
|
2465
|
+
displayName: 'Contact IDs',
|
|
2262
2466
|
name: 'noteCreateProspectIds',
|
|
2263
2467
|
type: 'string',
|
|
2264
2468
|
default: '',
|
|
@@ -2269,10 +2473,10 @@ class CronoPublicApi {
|
|
|
2269
2473
|
useRawJsonData: [false],
|
|
2270
2474
|
},
|
|
2271
2475
|
},
|
|
2272
|
-
description: 'Comma-separated list of
|
|
2476
|
+
description: 'Comma-separated list of contact IDs',
|
|
2273
2477
|
},
|
|
2274
2478
|
{
|
|
2275
|
-
displayName: '
|
|
2479
|
+
displayName: 'Company ID',
|
|
2276
2480
|
name: 'taskCreateAccountId',
|
|
2277
2481
|
type: 'string',
|
|
2278
2482
|
default: '',
|
|
@@ -2284,10 +2488,10 @@ class CronoPublicApi {
|
|
|
2284
2488
|
useRawJsonData: [false],
|
|
2285
2489
|
},
|
|
2286
2490
|
},
|
|
2287
|
-
description: '
|
|
2491
|
+
description: 'Company ID linked to the task',
|
|
2288
2492
|
},
|
|
2289
2493
|
{
|
|
2290
|
-
displayName: '
|
|
2494
|
+
displayName: 'Contact ID',
|
|
2291
2495
|
name: 'taskCreateProspectId',
|
|
2292
2496
|
type: 'string',
|
|
2293
2497
|
default: '',
|
|
@@ -2298,7 +2502,7 @@ class CronoPublicApi {
|
|
|
2298
2502
|
useRawJsonData: [false],
|
|
2299
2503
|
},
|
|
2300
2504
|
},
|
|
2301
|
-
description: '
|
|
2505
|
+
description: 'Contact ID linked to the task',
|
|
2302
2506
|
},
|
|
2303
2507
|
{
|
|
2304
2508
|
displayName: 'Type',
|
|
@@ -2387,7 +2591,7 @@ class CronoPublicApi {
|
|
|
2387
2591
|
description: 'Whether the task is automatic',
|
|
2388
2592
|
},
|
|
2389
2593
|
{
|
|
2390
|
-
displayName: '
|
|
2594
|
+
displayName: 'Deal ID',
|
|
2391
2595
|
name: 'taskCreateOpportunityId',
|
|
2392
2596
|
type: 'string',
|
|
2393
2597
|
default: '',
|
|
@@ -2398,7 +2602,7 @@ class CronoPublicApi {
|
|
|
2398
2602
|
useRawJsonData: [false],
|
|
2399
2603
|
},
|
|
2400
2604
|
},
|
|
2401
|
-
description: '
|
|
2605
|
+
description: 'Deal ID linked to the task',
|
|
2402
2606
|
},
|
|
2403
2607
|
{
|
|
2404
2608
|
displayName: 'Assign To User',
|
|
@@ -2520,7 +2724,7 @@ class CronoPublicApi {
|
|
|
2520
2724
|
description: 'Filter tasks by a specific date',
|
|
2521
2725
|
},
|
|
2522
2726
|
{
|
|
2523
|
-
displayName: '
|
|
2727
|
+
displayName: 'Contact ID',
|
|
2524
2728
|
name: 'taskSearchProspectId',
|
|
2525
2729
|
type: 'string',
|
|
2526
2730
|
default: '',
|
|
@@ -2531,10 +2735,10 @@ class CronoPublicApi {
|
|
|
2531
2735
|
useRawJsonSearch: [false],
|
|
2532
2736
|
},
|
|
2533
2737
|
},
|
|
2534
|
-
description: 'Filter tasks by
|
|
2738
|
+
description: 'Filter tasks by contact ID',
|
|
2535
2739
|
},
|
|
2536
2740
|
{
|
|
2537
|
-
displayName: '
|
|
2741
|
+
displayName: 'Deal ID',
|
|
2538
2742
|
name: 'taskSearchOpportunityId',
|
|
2539
2743
|
type: 'string',
|
|
2540
2744
|
default: '',
|
|
@@ -2545,7 +2749,7 @@ class CronoPublicApi {
|
|
|
2545
2749
|
useRawJsonSearch: [false],
|
|
2546
2750
|
},
|
|
2547
2751
|
},
|
|
2548
|
-
description: 'Filter tasks by
|
|
2752
|
+
description: 'Filter tasks by deal ID',
|
|
2549
2753
|
},
|
|
2550
2754
|
{
|
|
2551
2755
|
displayName: 'Completed',
|
|
@@ -2701,7 +2905,7 @@ class CronoPublicApi {
|
|
|
2701
2905
|
},
|
|
2702
2906
|
},
|
|
2703
2907
|
{
|
|
2704
|
-
displayName: 'Has
|
|
2908
|
+
displayName: 'Has Deal',
|
|
2705
2909
|
name: 'taskSearchHasOpportunity',
|
|
2706
2910
|
type: 'boolean',
|
|
2707
2911
|
default: false,
|
|
@@ -2740,7 +2944,7 @@ class CronoPublicApi {
|
|
|
2740
2944
|
},
|
|
2741
2945
|
},
|
|
2742
2946
|
{
|
|
2743
|
-
displayName: '
|
|
2947
|
+
displayName: 'Company ID',
|
|
2744
2948
|
name: 'taskSearchAccountId',
|
|
2745
2949
|
type: 'string',
|
|
2746
2950
|
default: '',
|
|
@@ -2751,10 +2955,10 @@ class CronoPublicApi {
|
|
|
2751
2955
|
useRawJsonSearch: [false],
|
|
2752
2956
|
},
|
|
2753
2957
|
},
|
|
2754
|
-
description: 'Filter by
|
|
2958
|
+
description: 'Filter by company ID',
|
|
2755
2959
|
},
|
|
2756
2960
|
{
|
|
2757
|
-
displayName: '
|
|
2961
|
+
displayName: 'Contact List ID',
|
|
2758
2962
|
name: 'taskSearchProspectListId',
|
|
2759
2963
|
type: 'number',
|
|
2760
2964
|
default: 0,
|
|
@@ -2765,7 +2969,7 @@ class CronoPublicApi {
|
|
|
2765
2969
|
useRawJsonSearch: [false],
|
|
2766
2970
|
},
|
|
2767
2971
|
},
|
|
2768
|
-
description: 'Filter by
|
|
2972
|
+
description: 'Filter by contact list ID',
|
|
2769
2973
|
},
|
|
2770
2974
|
{
|
|
2771
2975
|
displayName: 'Lead List ID',
|
|
@@ -2782,7 +2986,7 @@ class CronoPublicApi {
|
|
|
2782
2986
|
description: 'Filter by lead list ID',
|
|
2783
2987
|
},
|
|
2784
2988
|
{
|
|
2785
|
-
displayName: '
|
|
2989
|
+
displayName: 'Company List ID',
|
|
2786
2990
|
name: 'taskSearchAccountListId',
|
|
2787
2991
|
type: 'number',
|
|
2788
2992
|
default: 0,
|
|
@@ -2793,10 +2997,10 @@ class CronoPublicApi {
|
|
|
2793
2997
|
useRawJsonSearch: [false],
|
|
2794
2998
|
},
|
|
2795
2999
|
},
|
|
2796
|
-
description: 'Filter by
|
|
3000
|
+
description: 'Filter by company list ID',
|
|
2797
3001
|
},
|
|
2798
3002
|
{
|
|
2799
|
-
displayName: '
|
|
3003
|
+
displayName: 'Sequence ID',
|
|
2800
3004
|
name: 'taskSearchStrategyId',
|
|
2801
3005
|
type: 'number',
|
|
2802
3006
|
default: 0,
|
|
@@ -2807,7 +3011,7 @@ class CronoPublicApi {
|
|
|
2807
3011
|
useRawJsonSearch: [false],
|
|
2808
3012
|
},
|
|
2809
3013
|
},
|
|
2810
|
-
description: 'Filter by
|
|
3014
|
+
description: 'Filter by sequence ID',
|
|
2811
3015
|
},
|
|
2812
3016
|
{
|
|
2813
3017
|
displayName: 'Sort By',
|
|
@@ -2832,7 +3036,7 @@ class CronoPublicApi {
|
|
|
2832
3036
|
description: 'Sort order',
|
|
2833
3037
|
},
|
|
2834
3038
|
{
|
|
2835
|
-
displayName: '
|
|
3039
|
+
displayName: 'Company External Properties (JSON)',
|
|
2836
3040
|
name: 'taskSearchAccountExternalProperties',
|
|
2837
3041
|
type: 'json',
|
|
2838
3042
|
default: {},
|
|
@@ -2843,10 +3047,10 @@ class CronoPublicApi {
|
|
|
2843
3047
|
useRawJsonSearch: [false],
|
|
2844
3048
|
},
|
|
2845
3049
|
},
|
|
2846
|
-
description: '
|
|
3050
|
+
description: 'Company external property filters',
|
|
2847
3051
|
},
|
|
2848
3052
|
{
|
|
2849
|
-
displayName: '
|
|
3053
|
+
displayName: 'Contact External Properties (JSON)',
|
|
2850
3054
|
name: 'taskSearchProspectExternalProperties',
|
|
2851
3055
|
type: 'json',
|
|
2852
3056
|
default: {},
|
|
@@ -2857,7 +3061,7 @@ class CronoPublicApi {
|
|
|
2857
3061
|
useRawJsonSearch: [false],
|
|
2858
3062
|
},
|
|
2859
3063
|
},
|
|
2860
|
-
description: '
|
|
3064
|
+
description: 'Contact external property filters',
|
|
2861
3065
|
},
|
|
2862
3066
|
{
|
|
2863
3067
|
displayName: 'Lead External Properties (JSON)',
|
|
@@ -2874,7 +3078,7 @@ class CronoPublicApi {
|
|
|
2874
3078
|
description: 'Lead external property filters',
|
|
2875
3079
|
},
|
|
2876
3080
|
{
|
|
2877
|
-
displayName: 'With
|
|
3081
|
+
displayName: 'With Contact Score',
|
|
2878
3082
|
name: 'taskSearchWithProspectScore',
|
|
2879
3083
|
type: 'boolean',
|
|
2880
3084
|
default: false,
|
|
@@ -2887,7 +3091,7 @@ class CronoPublicApi {
|
|
|
2887
3091
|
},
|
|
2888
3092
|
},
|
|
2889
3093
|
{
|
|
2890
|
-
displayName: 'With
|
|
3094
|
+
displayName: 'With Company Score',
|
|
2891
3095
|
name: 'taskSearchWithAccountScore',
|
|
2892
3096
|
type: 'boolean',
|
|
2893
3097
|
default: false,
|
|
@@ -2918,7 +3122,7 @@ class CronoPublicApi {
|
|
|
2918
3122
|
],
|
|
2919
3123
|
},
|
|
2920
3124
|
{
|
|
2921
|
-
displayName: '
|
|
3125
|
+
displayName: 'Contact Score Levels',
|
|
2922
3126
|
name: 'taskSearchProspectScoreLevels',
|
|
2923
3127
|
type: 'multiOptions',
|
|
2924
3128
|
default: [],
|
|
@@ -2936,7 +3140,7 @@ class CronoPublicApi {
|
|
|
2936
3140
|
],
|
|
2937
3141
|
},
|
|
2938
3142
|
{
|
|
2939
|
-
displayName: '
|
|
3143
|
+
displayName: 'Company Score Levels',
|
|
2940
3144
|
name: 'taskSearchAccountScoreLevels',
|
|
2941
3145
|
type: 'multiOptions',
|
|
2942
3146
|
default: [],
|
|
@@ -3057,7 +3261,7 @@ class CronoPublicApi {
|
|
|
3057
3261
|
{ name: 'Customer', value: 'Customer' },
|
|
3058
3262
|
{ name: 'Inactive', value: 'Inactive' },
|
|
3059
3263
|
{ name: 'Nurture', value: 'Nurture' },
|
|
3060
|
-
{ name: 'Open
|
|
3264
|
+
{ name: 'Open Deal', value: 'OpenOpportunity' },
|
|
3061
3265
|
{ name: 'Working', value: 'Working' },
|
|
3062
3266
|
],
|
|
3063
3267
|
description: 'Company status filters',
|
|
@@ -3533,7 +3737,7 @@ class CronoPublicApi {
|
|
|
3533
3737
|
description: 'Number of results to skip',
|
|
3534
3738
|
},
|
|
3535
3739
|
{
|
|
3536
|
-
displayName: '
|
|
3740
|
+
displayName: 'Company External Properties (JSON)',
|
|
3537
3741
|
name: 'contactSearchAccountExternalProperties',
|
|
3538
3742
|
type: 'json',
|
|
3539
3743
|
default: {},
|
|
@@ -3544,10 +3748,10 @@ class CronoPublicApi {
|
|
|
3544
3748
|
useRawJsonSearch: [false],
|
|
3545
3749
|
},
|
|
3546
3750
|
},
|
|
3547
|
-
description: '
|
|
3751
|
+
description: 'Company external property filters',
|
|
3548
3752
|
},
|
|
3549
3753
|
{
|
|
3550
|
-
displayName: '
|
|
3754
|
+
displayName: 'Company External Property Empty IDs',
|
|
3551
3755
|
name: 'contactSearchAccountExternalPropertyEmptyIds',
|
|
3552
3756
|
type: 'string',
|
|
3553
3757
|
default: '',
|
|
@@ -3558,10 +3762,10 @@ class CronoPublicApi {
|
|
|
3558
3762
|
useRawJsonSearch: [false],
|
|
3559
3763
|
},
|
|
3560
3764
|
},
|
|
3561
|
-
description: 'Comma-separated list of
|
|
3765
|
+
description: 'Comma-separated list of company external property IDs to match empty values',
|
|
3562
3766
|
},
|
|
3563
3767
|
{
|
|
3564
|
-
displayName: '
|
|
3768
|
+
displayName: 'Company External Property Numeric Filters (JSON)',
|
|
3565
3769
|
name: 'contactSearchAccountExternalPropertyNumericFilters',
|
|
3566
3770
|
type: 'json',
|
|
3567
3771
|
default: {},
|
|
@@ -3572,10 +3776,10 @@ class CronoPublicApi {
|
|
|
3572
3776
|
useRawJsonSearch: [false],
|
|
3573
3777
|
},
|
|
3574
3778
|
},
|
|
3575
|
-
description: '
|
|
3779
|
+
description: 'Company external property numeric filters',
|
|
3576
3780
|
},
|
|
3577
3781
|
{
|
|
3578
|
-
displayName: '
|
|
3782
|
+
displayName: 'Company ID',
|
|
3579
3783
|
name: 'contactSearchAccountId',
|
|
3580
3784
|
type: 'string',
|
|
3581
3785
|
default: '',
|
|
@@ -3588,7 +3792,7 @@ class CronoPublicApi {
|
|
|
3588
3792
|
},
|
|
3589
3793
|
},
|
|
3590
3794
|
{
|
|
3591
|
-
displayName: '
|
|
3795
|
+
displayName: 'Company Status',
|
|
3592
3796
|
name: 'contactSearchAccountStatus',
|
|
3593
3797
|
type: 'multiOptions',
|
|
3594
3798
|
default: [],
|
|
@@ -3604,10 +3808,10 @@ class CronoPublicApi {
|
|
|
3604
3808
|
{ name: 'Customer', value: 'Customer' },
|
|
3605
3809
|
{ name: 'Inactive', value: 'Inactive' },
|
|
3606
3810
|
{ name: 'Nurture', value: 'Nurture' },
|
|
3607
|
-
{ name: 'Open
|
|
3811
|
+
{ name: 'Open Deal', value: 'OpenOpportunity' },
|
|
3608
3812
|
{ name: 'Working', value: 'Working' },
|
|
3609
3813
|
],
|
|
3610
|
-
description: '
|
|
3814
|
+
description: 'Company status filters',
|
|
3611
3815
|
},
|
|
3612
3816
|
{
|
|
3613
3817
|
displayName: 'Actual Status',
|
|
@@ -3794,7 +3998,7 @@ class CronoPublicApi {
|
|
|
3794
3998
|
},
|
|
3795
3999
|
},
|
|
3796
4000
|
{
|
|
3797
|
-
displayName: 'Has Email',
|
|
4001
|
+
displayName: 'Has Email Address',
|
|
3798
4002
|
name: 'contactSearchHasEmail',
|
|
3799
4003
|
type: 'boolean',
|
|
3800
4004
|
default: false,
|
|
@@ -3820,7 +4024,7 @@ class CronoPublicApi {
|
|
|
3820
4024
|
},
|
|
3821
4025
|
},
|
|
3822
4026
|
{
|
|
3823
|
-
displayName: 'Has LinkedIn',
|
|
4027
|
+
displayName: 'Has LinkedIn Url',
|
|
3824
4028
|
name: 'contactSearchHasLinkedin',
|
|
3825
4029
|
type: 'boolean',
|
|
3826
4030
|
default: false,
|
|
@@ -4071,6 +4275,7 @@ class CronoPublicApi {
|
|
|
4071
4275
|
options: [
|
|
4072
4276
|
{ name: 'Company Name', value: 'CompanyName' },
|
|
4073
4277
|
{ name: 'Company Name Desc', value: 'CompanyNameDesc' },
|
|
4278
|
+
{ name: 'Contact ID', value: 'ProspectId' },
|
|
4074
4279
|
{ name: 'Created Date', value: 'CreatedDate' },
|
|
4075
4280
|
{ name: 'Created Date Desc', value: 'CreatedDateDesc' },
|
|
4076
4281
|
{ name: 'Last Activity', value: 'LastActivity' },
|
|
@@ -4079,7 +4284,6 @@ class CronoPublicApi {
|
|
|
4079
4284
|
{ name: 'Name Desc', value: 'NameDesc' },
|
|
4080
4285
|
{ name: 'Owner', value: 'Owner' },
|
|
4081
4286
|
{ name: 'Owner Desc', value: 'OwnerDesc' },
|
|
4082
|
-
{ name: 'Prospect ID', value: 'ProspectId' },
|
|
4083
4287
|
{ name: 'Score', value: 'Score' },
|
|
4084
4288
|
{ name: 'Score Desc', value: 'ScoreDesc' },
|
|
4085
4289
|
],
|
|
@@ -4120,7 +4324,7 @@ class CronoPublicApi {
|
|
|
4120
4324
|
description: 'Deal name',
|
|
4121
4325
|
},
|
|
4122
4326
|
{
|
|
4123
|
-
displayName: '
|
|
4327
|
+
displayName: 'Company ID',
|
|
4124
4328
|
name: 'dealSearchAccountId',
|
|
4125
4329
|
type: 'string',
|
|
4126
4330
|
default: '',
|
|
@@ -4131,7 +4335,7 @@ class CronoPublicApi {
|
|
|
4131
4335
|
useRawJsonSearch: [false],
|
|
4132
4336
|
},
|
|
4133
4337
|
},
|
|
4134
|
-
description: '
|
|
4338
|
+
description: 'Company ID linked to the deal',
|
|
4135
4339
|
},
|
|
4136
4340
|
{
|
|
4137
4341
|
displayName: 'User ID',
|
|
@@ -4381,7 +4585,7 @@ class CronoPublicApi {
|
|
|
4381
4585
|
description: 'Sort order',
|
|
4382
4586
|
},
|
|
4383
4587
|
{
|
|
4384
|
-
displayName: 'Include
|
|
4588
|
+
displayName: 'Include Company',
|
|
4385
4589
|
name: 'dealSearchIncludeAccount',
|
|
4386
4590
|
type: 'boolean',
|
|
4387
4591
|
default: false,
|
|
@@ -4434,7 +4638,7 @@ class CronoPublicApi {
|
|
|
4434
4638
|
description: 'Text to match in note content',
|
|
4435
4639
|
},
|
|
4436
4640
|
{
|
|
4437
|
-
displayName: '
|
|
4641
|
+
displayName: 'Company ID',
|
|
4438
4642
|
name: 'noteSearchAccountId',
|
|
4439
4643
|
type: 'string',
|
|
4440
4644
|
default: '',
|
|
@@ -4445,10 +4649,10 @@ class CronoPublicApi {
|
|
|
4445
4649
|
useRawJsonSearch: [false],
|
|
4446
4650
|
},
|
|
4447
4651
|
},
|
|
4448
|
-
description: '
|
|
4652
|
+
description: 'Company ID linked to the note',
|
|
4449
4653
|
},
|
|
4450
4654
|
{
|
|
4451
|
-
displayName: '
|
|
4655
|
+
displayName: 'Deal ID',
|
|
4452
4656
|
name: 'noteSearchOpportunityId',
|
|
4453
4657
|
type: 'string',
|
|
4454
4658
|
default: '',
|
|
@@ -4459,7 +4663,7 @@ class CronoPublicApi {
|
|
|
4459
4663
|
useRawJsonSearch: [false],
|
|
4460
4664
|
},
|
|
4461
4665
|
},
|
|
4462
|
-
description: '
|
|
4666
|
+
description: 'Deal ID linked to the note',
|
|
4463
4667
|
},
|
|
4464
4668
|
{
|
|
4465
4669
|
displayName: 'User ID',
|
|
@@ -4603,7 +4807,7 @@ class CronoPublicApi {
|
|
|
4603
4807
|
},
|
|
4604
4808
|
},
|
|
4605
4809
|
{
|
|
4606
|
-
displayName: 'Include
|
|
4810
|
+
displayName: 'Include Company',
|
|
4607
4811
|
name: 'noteSearchIncludeAccount',
|
|
4608
4812
|
type: 'boolean',
|
|
4609
4813
|
default: false,
|
|
@@ -4616,7 +4820,7 @@ class CronoPublicApi {
|
|
|
4616
4820
|
},
|
|
4617
4821
|
},
|
|
4618
4822
|
{
|
|
4619
|
-
displayName: 'Include
|
|
4823
|
+
displayName: 'Include Deal',
|
|
4620
4824
|
name: 'noteSearchIncludeOpportunity',
|
|
4621
4825
|
type: 'boolean',
|
|
4622
4826
|
default: false,
|
|
@@ -4629,7 +4833,7 @@ class CronoPublicApi {
|
|
|
4629
4833
|
},
|
|
4630
4834
|
},
|
|
4631
4835
|
{
|
|
4632
|
-
displayName: 'Include
|
|
4836
|
+
displayName: 'Include Contacts',
|
|
4633
4837
|
name: 'noteSearchIncludeProspects',
|
|
4634
4838
|
type: 'boolean',
|
|
4635
4839
|
default: false,
|
|
@@ -4656,7 +4860,7 @@ class CronoPublicApi {
|
|
|
4656
4860
|
description: 'Activity subject',
|
|
4657
4861
|
},
|
|
4658
4862
|
{
|
|
4659
|
-
displayName: '
|
|
4863
|
+
displayName: 'Company ID',
|
|
4660
4864
|
name: 'activitySearchAccountId',
|
|
4661
4865
|
type: 'string',
|
|
4662
4866
|
default: '',
|
|
@@ -4667,10 +4871,10 @@ class CronoPublicApi {
|
|
|
4667
4871
|
useRawJsonSearch: [false],
|
|
4668
4872
|
},
|
|
4669
4873
|
},
|
|
4670
|
-
description: '
|
|
4874
|
+
description: 'Company ID linked to the activity',
|
|
4671
4875
|
},
|
|
4672
4876
|
{
|
|
4673
|
-
displayName: '
|
|
4877
|
+
displayName: 'Contact ID',
|
|
4674
4878
|
name: 'activitySearchProspectId',
|
|
4675
4879
|
type: 'string',
|
|
4676
4880
|
default: '',
|
|
@@ -4681,10 +4885,10 @@ class CronoPublicApi {
|
|
|
4681
4885
|
useRawJsonSearch: [false],
|
|
4682
4886
|
},
|
|
4683
4887
|
},
|
|
4684
|
-
description: '
|
|
4888
|
+
description: 'Contact ID linked to the activity',
|
|
4685
4889
|
},
|
|
4686
4890
|
{
|
|
4687
|
-
displayName: '
|
|
4891
|
+
displayName: 'Deal ID',
|
|
4688
4892
|
name: 'activitySearchOpportunityId',
|
|
4689
4893
|
type: 'string',
|
|
4690
4894
|
default: '',
|
|
@@ -4695,7 +4899,7 @@ class CronoPublicApi {
|
|
|
4695
4899
|
useRawJsonSearch: [false],
|
|
4696
4900
|
},
|
|
4697
4901
|
},
|
|
4698
|
-
description: '
|
|
4902
|
+
description: 'Deal ID linked to the activity',
|
|
4699
4903
|
},
|
|
4700
4904
|
{
|
|
4701
4905
|
displayName: 'User ID',
|
|
@@ -4943,7 +5147,7 @@ class CronoPublicApi {
|
|
|
4943
5147
|
},
|
|
4944
5148
|
},
|
|
4945
5149
|
{
|
|
4946
|
-
displayName: 'Include
|
|
5150
|
+
displayName: 'Include Company',
|
|
4947
5151
|
name: 'activitySearchIncludeAccount',
|
|
4948
5152
|
type: 'boolean',
|
|
4949
5153
|
default: false,
|
|
@@ -4995,7 +5199,7 @@ class CronoPublicApi {
|
|
|
4995
5199
|
},
|
|
4996
5200
|
},
|
|
4997
5201
|
{
|
|
4998
|
-
displayName: 'Include
|
|
5202
|
+
displayName: 'Include Deal',
|
|
4999
5203
|
name: 'activitySearchIncludeOpportunity',
|
|
5000
5204
|
type: 'boolean',
|
|
5001
5205
|
default: false,
|
|
@@ -5021,7 +5225,7 @@ class CronoPublicApi {
|
|
|
5021
5225
|
},
|
|
5022
5226
|
},
|
|
5023
5227
|
{
|
|
5024
|
-
displayName: 'Include
|
|
5228
|
+
displayName: 'Include Contact',
|
|
5025
5229
|
name: 'activitySearchIncludeProspect',
|
|
5026
5230
|
type: 'boolean',
|
|
5027
5231
|
default: false,
|
|
@@ -5048,7 +5252,7 @@ class CronoPublicApi {
|
|
|
5048
5252
|
description: 'List name',
|
|
5049
5253
|
},
|
|
5050
5254
|
{
|
|
5051
|
-
displayName: '
|
|
5255
|
+
displayName: 'Company ID',
|
|
5052
5256
|
name: 'listSearchAccountId',
|
|
5053
5257
|
type: 'string',
|
|
5054
5258
|
default: '',
|
|
@@ -5059,10 +5263,10 @@ class CronoPublicApi {
|
|
|
5059
5263
|
useRawJsonSearch: [false],
|
|
5060
5264
|
},
|
|
5061
5265
|
},
|
|
5062
|
-
description: '
|
|
5266
|
+
description: 'Company ID linked to the list',
|
|
5063
5267
|
},
|
|
5064
5268
|
{
|
|
5065
|
-
displayName: '
|
|
5269
|
+
displayName: 'Contact ID',
|
|
5066
5270
|
name: 'listSearchProspectId',
|
|
5067
5271
|
type: 'string',
|
|
5068
5272
|
default: '',
|
|
@@ -5073,10 +5277,10 @@ class CronoPublicApi {
|
|
|
5073
5277
|
useRawJsonSearch: [false],
|
|
5074
5278
|
},
|
|
5075
5279
|
},
|
|
5076
|
-
description: '
|
|
5280
|
+
description: 'Contact ID linked to the list',
|
|
5077
5281
|
},
|
|
5078
5282
|
{
|
|
5079
|
-
displayName: '
|
|
5283
|
+
displayName: 'Sequence ID',
|
|
5080
5284
|
name: 'listSearchStrategyId',
|
|
5081
5285
|
type: 'number',
|
|
5082
5286
|
default: 0,
|
|
@@ -5087,7 +5291,7 @@ class CronoPublicApi {
|
|
|
5087
5291
|
useRawJsonSearch: [false],
|
|
5088
5292
|
},
|
|
5089
5293
|
},
|
|
5090
|
-
description: '
|
|
5294
|
+
description: 'Sequence ID linked to the list',
|
|
5091
5295
|
},
|
|
5092
5296
|
{
|
|
5093
5297
|
displayName: 'Template ID',
|
|
@@ -5116,11 +5320,11 @@ class CronoPublicApi {
|
|
|
5116
5320
|
},
|
|
5117
5321
|
},
|
|
5118
5322
|
options: [
|
|
5119
|
-
{ name: 'Account', value: 'Account' },
|
|
5120
5323
|
{ name: 'All', value: '' },
|
|
5324
|
+
{ name: 'Company', value: 'Account' },
|
|
5325
|
+
{ name: 'Contact', value: 'Prospect' },
|
|
5121
5326
|
{ name: 'Lead', value: 'Lead' },
|
|
5122
|
-
{ name: '
|
|
5123
|
-
{ name: 'Strategy', value: 'Strategy' },
|
|
5327
|
+
{ name: 'Sequence', value: 'Strategy' },
|
|
5124
5328
|
{ name: 'Template', value: 'Template' },
|
|
5125
5329
|
{ name: 'User', value: 'User' },
|
|
5126
5330
|
],
|
|
@@ -5186,40 +5390,40 @@ class CronoPublicApi {
|
|
|
5186
5390
|
default: '',
|
|
5187
5391
|
displayOptions: {
|
|
5188
5392
|
show: {
|
|
5189
|
-
resource: ['
|
|
5393
|
+
resource: ['sequence'],
|
|
5190
5394
|
operation: ['search'],
|
|
5191
5395
|
useRawJsonSearch: [false],
|
|
5192
5396
|
},
|
|
5193
5397
|
},
|
|
5194
|
-
description: '
|
|
5398
|
+
description: 'Sequence name',
|
|
5195
5399
|
},
|
|
5196
5400
|
{
|
|
5197
|
-
displayName: '
|
|
5401
|
+
displayName: 'Company ID',
|
|
5198
5402
|
name: 'strategySearchAccountId',
|
|
5199
5403
|
type: 'string',
|
|
5200
5404
|
default: '',
|
|
5201
5405
|
displayOptions: {
|
|
5202
5406
|
show: {
|
|
5203
|
-
resource: ['
|
|
5407
|
+
resource: ['sequence'],
|
|
5204
5408
|
operation: ['search'],
|
|
5205
5409
|
useRawJsonSearch: [false],
|
|
5206
5410
|
},
|
|
5207
5411
|
},
|
|
5208
|
-
description: '
|
|
5412
|
+
description: 'Company ID linked to the sequence',
|
|
5209
5413
|
},
|
|
5210
5414
|
{
|
|
5211
|
-
displayName: '
|
|
5415
|
+
displayName: 'Contact ID',
|
|
5212
5416
|
name: 'strategySearchProspectId',
|
|
5213
5417
|
type: 'string',
|
|
5214
5418
|
default: '',
|
|
5215
5419
|
displayOptions: {
|
|
5216
5420
|
show: {
|
|
5217
|
-
resource: ['
|
|
5421
|
+
resource: ['sequence'],
|
|
5218
5422
|
operation: ['search'],
|
|
5219
5423
|
useRawJsonSearch: [false],
|
|
5220
5424
|
},
|
|
5221
5425
|
},
|
|
5222
|
-
description: '
|
|
5426
|
+
description: 'Contact ID linked to the sequence',
|
|
5223
5427
|
},
|
|
5224
5428
|
{
|
|
5225
5429
|
displayName: 'User ID',
|
|
@@ -5228,7 +5432,7 @@ class CronoPublicApi {
|
|
|
5228
5432
|
default: '',
|
|
5229
5433
|
displayOptions: {
|
|
5230
5434
|
show: {
|
|
5231
|
-
resource: ['
|
|
5435
|
+
resource: ['sequence'],
|
|
5232
5436
|
operation: ['search'],
|
|
5233
5437
|
useRawJsonSearch: [false],
|
|
5234
5438
|
},
|
|
@@ -5242,12 +5446,12 @@ class CronoPublicApi {
|
|
|
5242
5446
|
default: '',
|
|
5243
5447
|
displayOptions: {
|
|
5244
5448
|
show: {
|
|
5245
|
-
resource: ['
|
|
5449
|
+
resource: ['sequence'],
|
|
5246
5450
|
operation: ['search'],
|
|
5247
5451
|
useRawJsonSearch: [false],
|
|
5248
5452
|
},
|
|
5249
5453
|
},
|
|
5250
|
-
description: 'Comma-separated list of
|
|
5454
|
+
description: 'Comma-separated list of sequence IDs',
|
|
5251
5455
|
},
|
|
5252
5456
|
{
|
|
5253
5457
|
displayName: 'Limit',
|
|
@@ -5259,7 +5463,7 @@ class CronoPublicApi {
|
|
|
5259
5463
|
default: 50,
|
|
5260
5464
|
displayOptions: {
|
|
5261
5465
|
show: {
|
|
5262
|
-
resource: ['
|
|
5466
|
+
resource: ['sequence'],
|
|
5263
5467
|
operation: ['search'],
|
|
5264
5468
|
useRawJsonSearch: [false],
|
|
5265
5469
|
},
|
|
@@ -5273,7 +5477,7 @@ class CronoPublicApi {
|
|
|
5273
5477
|
default: 0,
|
|
5274
5478
|
displayOptions: {
|
|
5275
5479
|
show: {
|
|
5276
|
-
resource: ['
|
|
5480
|
+
resource: ['sequence'],
|
|
5277
5481
|
operation: ['search'],
|
|
5278
5482
|
useRawJsonSearch: [false],
|
|
5279
5483
|
},
|
|
@@ -5287,7 +5491,7 @@ class CronoPublicApi {
|
|
|
5287
5491
|
default: 'Created',
|
|
5288
5492
|
displayOptions: {
|
|
5289
5493
|
show: {
|
|
5290
|
-
resource: ['
|
|
5494
|
+
resource: ['sequence'],
|
|
5291
5495
|
operation: ['search'],
|
|
5292
5496
|
useRawJsonSearch: [false],
|
|
5293
5497
|
},
|
|
@@ -5305,18 +5509,18 @@ class CronoPublicApi {
|
|
|
5305
5509
|
description: 'Sort order',
|
|
5306
5510
|
},
|
|
5307
5511
|
{
|
|
5308
|
-
displayName: '
|
|
5512
|
+
displayName: 'Sequence Tags (JSON)',
|
|
5309
5513
|
name: 'strategySearchTags',
|
|
5310
5514
|
type: 'json',
|
|
5311
5515
|
default: {},
|
|
5312
5516
|
displayOptions: {
|
|
5313
5517
|
show: {
|
|
5314
|
-
resource: ['
|
|
5518
|
+
resource: ['sequence'],
|
|
5315
5519
|
operation: ['search'],
|
|
5316
5520
|
useRawJsonSearch: [false],
|
|
5317
5521
|
},
|
|
5318
5522
|
},
|
|
5319
|
-
description: 'Array of
|
|
5523
|
+
description: 'Array of sequence tags',
|
|
5320
5524
|
},
|
|
5321
5525
|
{
|
|
5322
5526
|
displayName: 'Include Active Sequence Instances',
|
|
@@ -5325,7 +5529,7 @@ class CronoPublicApi {
|
|
|
5325
5529
|
default: false,
|
|
5326
5530
|
displayOptions: {
|
|
5327
5531
|
show: {
|
|
5328
|
-
resource: ['
|
|
5532
|
+
resource: ['sequence'],
|
|
5329
5533
|
operation: ['search'],
|
|
5330
5534
|
useRawJsonSearch: [false],
|
|
5331
5535
|
},
|
|
@@ -5338,7 +5542,7 @@ class CronoPublicApi {
|
|
|
5338
5542
|
default: false,
|
|
5339
5543
|
displayOptions: {
|
|
5340
5544
|
show: {
|
|
5341
|
-
resource: ['
|
|
5545
|
+
resource: ['sequence'],
|
|
5342
5546
|
operation: ['search'],
|
|
5343
5547
|
useRawJsonSearch: [false],
|
|
5344
5548
|
},
|
|
@@ -5351,7 +5555,7 @@ class CronoPublicApi {
|
|
|
5351
5555
|
default: false,
|
|
5352
5556
|
displayOptions: {
|
|
5353
5557
|
show: {
|
|
5354
|
-
resource: ['
|
|
5558
|
+
resource: ['sequence'],
|
|
5355
5559
|
operation: ['search'],
|
|
5356
5560
|
useRawJsonSearch: [false],
|
|
5357
5561
|
},
|
|
@@ -5364,26 +5568,26 @@ class CronoPublicApi {
|
|
|
5364
5568
|
default: false,
|
|
5365
5569
|
displayOptions: {
|
|
5366
5570
|
show: {
|
|
5367
|
-
resource: ['
|
|
5571
|
+
resource: ['sequence'],
|
|
5368
5572
|
operation: ['search'],
|
|
5369
5573
|
useRawJsonSearch: [false],
|
|
5370
5574
|
},
|
|
5371
5575
|
},
|
|
5372
5576
|
},
|
|
5373
5577
|
{
|
|
5374
|
-
displayName: '
|
|
5578
|
+
displayName: 'Sequence ID',
|
|
5375
5579
|
name: 'strategyDetailsStrategyId',
|
|
5376
5580
|
type: 'number',
|
|
5377
5581
|
default: 0,
|
|
5378
5582
|
required: true,
|
|
5379
5583
|
displayOptions: {
|
|
5380
5584
|
show: {
|
|
5381
|
-
resource: ['
|
|
5585
|
+
resource: ['sequence'],
|
|
5382
5586
|
operation: ['searchDetails'],
|
|
5383
5587
|
useRawJsonSearch: [false],
|
|
5384
5588
|
},
|
|
5385
5589
|
},
|
|
5386
|
-
description: '
|
|
5590
|
+
description: 'Sequence ID to retrieve details for',
|
|
5387
5591
|
},
|
|
5388
5592
|
{
|
|
5389
5593
|
displayName: 'Text',
|
|
@@ -5392,12 +5596,12 @@ class CronoPublicApi {
|
|
|
5392
5596
|
default: '',
|
|
5393
5597
|
displayOptions: {
|
|
5394
5598
|
show: {
|
|
5395
|
-
resource: ['
|
|
5599
|
+
resource: ['sequence'],
|
|
5396
5600
|
operation: ['searchDetails'],
|
|
5397
5601
|
useRawJsonSearch: [false],
|
|
5398
5602
|
},
|
|
5399
5603
|
},
|
|
5400
|
-
description: 'Free-text filter for
|
|
5604
|
+
description: 'Free-text filter for sequence details',
|
|
5401
5605
|
},
|
|
5402
5606
|
{
|
|
5403
5607
|
displayName: 'Limit',
|
|
@@ -5409,7 +5613,7 @@ class CronoPublicApi {
|
|
|
5409
5613
|
default: 50,
|
|
5410
5614
|
displayOptions: {
|
|
5411
5615
|
show: {
|
|
5412
|
-
resource: ['
|
|
5616
|
+
resource: ['sequence'],
|
|
5413
5617
|
operation: ['searchDetails'],
|
|
5414
5618
|
useRawJsonSearch: [false],
|
|
5415
5619
|
},
|
|
@@ -5423,7 +5627,7 @@ class CronoPublicApi {
|
|
|
5423
5627
|
default: 0,
|
|
5424
5628
|
displayOptions: {
|
|
5425
5629
|
show: {
|
|
5426
|
-
resource: ['
|
|
5630
|
+
resource: ['sequence'],
|
|
5427
5631
|
operation: ['searchDetails'],
|
|
5428
5632
|
useRawJsonSearch: [false],
|
|
5429
5633
|
},
|
|
@@ -5437,7 +5641,7 @@ class CronoPublicApi {
|
|
|
5437
5641
|
default: 'ContactsAsc',
|
|
5438
5642
|
displayOptions: {
|
|
5439
5643
|
show: {
|
|
5440
|
-
resource: ['
|
|
5644
|
+
resource: ['sequence'],
|
|
5441
5645
|
operation: ['searchDetails'],
|
|
5442
5646
|
useRawJsonSearch: [false],
|
|
5443
5647
|
},
|
|
@@ -5463,7 +5667,7 @@ class CronoPublicApi {
|
|
|
5463
5667
|
default: '',
|
|
5464
5668
|
displayOptions: {
|
|
5465
5669
|
show: {
|
|
5466
|
-
resource: ['
|
|
5670
|
+
resource: ['sequence'],
|
|
5467
5671
|
operation: ['searchDetails'],
|
|
5468
5672
|
useRawJsonSearch: [false],
|
|
5469
5673
|
},
|
|
@@ -5487,7 +5691,7 @@ class CronoPublicApi {
|
|
|
5487
5691
|
default: [],
|
|
5488
5692
|
displayOptions: {
|
|
5489
5693
|
show: {
|
|
5490
|
-
resource: ['
|
|
5694
|
+
resource: ['sequence'],
|
|
5491
5695
|
operation: ['searchDetails'],
|
|
5492
5696
|
useRawJsonSearch: [false],
|
|
5493
5697
|
},
|
|
@@ -5512,20 +5716,20 @@ class CronoPublicApi {
|
|
|
5512
5716
|
default: false,
|
|
5513
5717
|
displayOptions: {
|
|
5514
5718
|
show: {
|
|
5515
|
-
resource: ['
|
|
5719
|
+
resource: ['sequence'],
|
|
5516
5720
|
operation: ['searchDetails'],
|
|
5517
5721
|
useRawJsonSearch: [false],
|
|
5518
5722
|
},
|
|
5519
5723
|
},
|
|
5520
5724
|
},
|
|
5521
5725
|
{
|
|
5522
|
-
displayName: 'Only My
|
|
5726
|
+
displayName: 'Only My Contacts',
|
|
5523
5727
|
name: 'strategyDetailsOnlyMyProspects',
|
|
5524
5728
|
type: 'boolean',
|
|
5525
5729
|
default: false,
|
|
5526
5730
|
displayOptions: {
|
|
5527
5731
|
show: {
|
|
5528
|
-
resource: ['
|
|
5732
|
+
resource: ['sequence'],
|
|
5529
5733
|
operation: ['searchDetails'],
|
|
5530
5734
|
useRawJsonSearch: [false],
|
|
5531
5735
|
},
|
|
@@ -5544,11 +5748,11 @@ class CronoPublicApi {
|
|
|
5544
5748
|
},
|
|
5545
5749
|
},
|
|
5546
5750
|
options: [
|
|
5547
|
-
{ name: 'Account', value: 'Account' },
|
|
5548
5751
|
{ name: 'All', value: '' },
|
|
5752
|
+
{ name: 'Company', value: 'Account' },
|
|
5753
|
+
{ name: 'Contact', value: 'Prospect' },
|
|
5754
|
+
{ name: 'Deal', value: 'Opportunity' },
|
|
5549
5755
|
{ name: 'Lead', value: 'Lead' },
|
|
5550
|
-
{ name: 'Opportunity', value: 'Opportunity' },
|
|
5551
|
-
{ name: 'Prospect', value: 'Prospect' },
|
|
5552
5756
|
],
|
|
5553
5757
|
description: 'External properties table type',
|
|
5554
5758
|
},
|
|
@@ -5744,10 +5948,10 @@ class CronoPublicApi {
|
|
|
5744
5948
|
},
|
|
5745
5949
|
},
|
|
5746
5950
|
options: [
|
|
5747
|
-
{ name: '
|
|
5951
|
+
{ name: 'Company', value: 'Account' },
|
|
5952
|
+
{ name: 'Contact', value: 'Prospect' },
|
|
5748
5953
|
{ name: 'Lead', value: 'Lead' },
|
|
5749
|
-
{ name: '
|
|
5750
|
-
{ name: 'Strategy', value: 'Strategy' },
|
|
5954
|
+
{ name: 'Sequence', value: 'Strategy' },
|
|
5751
5955
|
{ name: 'Template', value: 'Template' },
|
|
5752
5956
|
{ name: 'User', value: 'User' },
|
|
5753
5957
|
],
|
|
@@ -5793,7 +5997,7 @@ class CronoPublicApi {
|
|
|
5793
5997
|
useRawJsonData: [false],
|
|
5794
5998
|
},
|
|
5795
5999
|
},
|
|
5796
|
-
description: 'Comma-separated object IDs for
|
|
6000
|
+
description: 'Comma-separated object IDs for Company/Contact lists',
|
|
5797
6001
|
},
|
|
5798
6002
|
{
|
|
5799
6003
|
displayName: 'IDs',
|
|
@@ -5807,7 +6011,7 @@ class CronoPublicApi {
|
|
|
5807
6011
|
useRawJsonData: [false],
|
|
5808
6012
|
},
|
|
5809
6013
|
},
|
|
5810
|
-
description: 'Comma-separated numeric IDs for Template/
|
|
6014
|
+
description: 'Comma-separated numeric IDs for Template/Sequence lists',
|
|
5811
6015
|
},
|
|
5812
6016
|
{
|
|
5813
6017
|
displayName: 'List ID',
|
|
@@ -5932,48 +6136,48 @@ class CronoPublicApi {
|
|
|
5932
6136
|
description: 'Comma-separated numeric IDs',
|
|
5933
6137
|
},
|
|
5934
6138
|
{
|
|
5935
|
-
displayName: '
|
|
6139
|
+
displayName: 'Sequence ID',
|
|
5936
6140
|
name: 'strategyAddContactsStrategyId',
|
|
5937
6141
|
type: 'number',
|
|
5938
6142
|
default: 0,
|
|
5939
6143
|
required: true,
|
|
5940
6144
|
displayOptions: {
|
|
5941
6145
|
show: {
|
|
5942
|
-
resource: ['
|
|
6146
|
+
resource: ['sequence'],
|
|
5943
6147
|
operation: ['addContacts'],
|
|
5944
6148
|
useRawJsonData: [false],
|
|
5945
6149
|
},
|
|
5946
6150
|
},
|
|
5947
|
-
description: '
|
|
6151
|
+
description: 'Sequence ID to enroll contacts into',
|
|
5948
6152
|
},
|
|
5949
6153
|
{
|
|
5950
|
-
displayName: '
|
|
6154
|
+
displayName: 'Contact IDs',
|
|
5951
6155
|
name: 'strategyAddContactsProspectIds',
|
|
5952
6156
|
type: 'string',
|
|
5953
6157
|
default: '',
|
|
5954
6158
|
displayOptions: {
|
|
5955
6159
|
show: {
|
|
5956
|
-
resource: ['
|
|
6160
|
+
resource: ['sequence'],
|
|
5957
6161
|
operation: ['addContacts'],
|
|
5958
6162
|
useRawJsonData: [false],
|
|
5959
6163
|
},
|
|
5960
6164
|
},
|
|
5961
|
-
description: 'Comma-separated
|
|
6165
|
+
description: 'Comma-separated contact object IDs',
|
|
5962
6166
|
},
|
|
5963
6167
|
{
|
|
5964
|
-
displayName: '
|
|
6168
|
+
displayName: 'Contact ID',
|
|
5965
6169
|
name: 'strategyStopContactProspectId',
|
|
5966
6170
|
type: 'string',
|
|
5967
6171
|
default: '',
|
|
5968
6172
|
required: true,
|
|
5969
6173
|
displayOptions: {
|
|
5970
6174
|
show: {
|
|
5971
|
-
resource: ['
|
|
6175
|
+
resource: ['sequence'],
|
|
5972
6176
|
operation: ['stopContactSequence'],
|
|
5973
6177
|
useRawJsonData: [false],
|
|
5974
6178
|
},
|
|
5975
6179
|
},
|
|
5976
|
-
description: '
|
|
6180
|
+
description: 'Contact object ID whose sequence must be stopped',
|
|
5977
6181
|
},
|
|
5978
6182
|
{
|
|
5979
6183
|
displayName: 'Title',
|
|
@@ -6153,11 +6357,11 @@ class CronoPublicApi {
|
|
|
6153
6357
|
},
|
|
6154
6358
|
},
|
|
6155
6359
|
options: [
|
|
6156
|
-
{ name: 'Account', value: 'Account' },
|
|
6157
6360
|
{ name: 'All', value: '' },
|
|
6361
|
+
{ name: 'Company', value: 'Account' },
|
|
6362
|
+
{ name: 'Contact', value: 'Prospect' },
|
|
6363
|
+
{ name: 'Deal', value: 'Opportunity' },
|
|
6158
6364
|
{ name: 'Lead', value: 'Lead' },
|
|
6159
|
-
{ name: 'Opportunity', value: 'Opportunity' },
|
|
6160
|
-
{ name: 'Prospect', value: 'Prospect' },
|
|
6161
6365
|
],
|
|
6162
6366
|
description: 'Filter imports by table type',
|
|
6163
6367
|
},
|
|
@@ -6197,6 +6401,7 @@ class CronoPublicApi {
|
|
|
6197
6401
|
const basePath = `/api/v${apiVersion}`;
|
|
6198
6402
|
const useRawJsonData = this.getNodeParameter('useRawJsonData', itemIndex, false);
|
|
6199
6403
|
const useRawJsonSearch = this.getNodeParameter('useRawJsonSearch', itemIndex, false);
|
|
6404
|
+
const returnAll = this.getNodeParameter('returnAll', itemIndex, false);
|
|
6200
6405
|
let endpoint = '';
|
|
6201
6406
|
let method = 'GET';
|
|
6202
6407
|
let qs = {};
|
|
@@ -7268,7 +7473,7 @@ class CronoPublicApi {
|
|
|
7268
7473
|
endpoint = `${basePath}/Pipelines`;
|
|
7269
7474
|
break;
|
|
7270
7475
|
}
|
|
7271
|
-
case '
|
|
7476
|
+
case 'sequence': {
|
|
7272
7477
|
endpoint = `${basePath}/Strategies`;
|
|
7273
7478
|
if (operation === 'addContacts') {
|
|
7274
7479
|
method = 'POST';
|
|
@@ -7521,8 +7726,63 @@ class CronoPublicApi {
|
|
|
7521
7726
|
itemIndex,
|
|
7522
7727
|
});
|
|
7523
7728
|
}
|
|
7524
|
-
const
|
|
7525
|
-
|
|
7729
|
+
const pagination = returnAll && !useRawJsonSearch ? getPaginationConfig(qs, body) : undefined;
|
|
7730
|
+
if (pagination) {
|
|
7731
|
+
const maxIterations = 100;
|
|
7732
|
+
const aggregatedItems = [];
|
|
7733
|
+
let currentOffset = pagination.offset;
|
|
7734
|
+
let iterationCount = 0;
|
|
7735
|
+
let fallbackResponse;
|
|
7736
|
+
let reachedMaxIterations = false;
|
|
7737
|
+
const pageSize = pagination.limit > 0 ? pagination.limit : 1;
|
|
7738
|
+
while (true) {
|
|
7739
|
+
iterationCount += 1;
|
|
7740
|
+
if (iterationCount > maxIterations) {
|
|
7741
|
+
reachedMaxIterations = true;
|
|
7742
|
+
break;
|
|
7743
|
+
}
|
|
7744
|
+
const requestQs = cloneDataObject(qs);
|
|
7745
|
+
const requestBody = cloneDataObject(body);
|
|
7746
|
+
setPaginationOffset(requestQs, requestBody, pagination, currentOffset);
|
|
7747
|
+
const responseData = await cronoApiRequest.call(this, method, endpoint, requestQs, requestBody);
|
|
7748
|
+
const pageItems = extractItemsFromResponse(responseData);
|
|
7749
|
+
if (!pageItems) {
|
|
7750
|
+
fallbackResponse = responseData;
|
|
7751
|
+
break;
|
|
7752
|
+
}
|
|
7753
|
+
aggregatedItems.push(...pageItems);
|
|
7754
|
+
if (pageItems.length === 0) {
|
|
7755
|
+
break;
|
|
7756
|
+
}
|
|
7757
|
+
const totalCount = getTotalCount(responseData);
|
|
7758
|
+
const nextOffset = currentOffset + pageSize;
|
|
7759
|
+
if (totalCount !== undefined) {
|
|
7760
|
+
if (nextOffset >= totalCount) {
|
|
7761
|
+
break;
|
|
7762
|
+
}
|
|
7763
|
+
}
|
|
7764
|
+
else if (pageItems.length < pageSize) {
|
|
7765
|
+
break;
|
|
7766
|
+
}
|
|
7767
|
+
currentOffset = nextOffset;
|
|
7768
|
+
}
|
|
7769
|
+
if (reachedMaxIterations && fallbackResponse) {
|
|
7770
|
+
returnData.push({ json: fallbackResponse, pairedItem: { item: itemIndex } });
|
|
7771
|
+
}
|
|
7772
|
+
else if (aggregatedItems.length > 0) {
|
|
7773
|
+
returnData.push(...aggregatedItems.map((json) => ({
|
|
7774
|
+
json,
|
|
7775
|
+
pairedItem: { item: itemIndex },
|
|
7776
|
+
})));
|
|
7777
|
+
}
|
|
7778
|
+
else if (fallbackResponse) {
|
|
7779
|
+
returnData.push({ json: fallbackResponse, pairedItem: { item: itemIndex } });
|
|
7780
|
+
}
|
|
7781
|
+
}
|
|
7782
|
+
else {
|
|
7783
|
+
const responseData = await cronoApiRequest.call(this, method, endpoint, qs, body);
|
|
7784
|
+
returnData.push({ json: responseData, pairedItem: { item: itemIndex } });
|
|
7785
|
+
}
|
|
7526
7786
|
}
|
|
7527
7787
|
return [returnData];
|
|
7528
7788
|
}
|