n8n-nodes-perfexcrm 0.1.8 → 0.1.10

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.
@@ -1,5 +1,429 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.leadFields = exports.leadOperations = void 0;
4
- exports.leadOperations = [];
5
- exports.leadFields = [];
4
+ exports.leadOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['lead'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Convert',
18
+ value: 'convert',
19
+ description: 'Convert a lead to a customer',
20
+ action: 'Convert a lead',
21
+ },
22
+ {
23
+ name: 'Create',
24
+ value: 'create',
25
+ description: 'Create a new lead',
26
+ action: 'Create a lead',
27
+ },
28
+ {
29
+ name: 'Delete',
30
+ value: 'delete',
31
+ description: 'Delete a lead',
32
+ action: 'Delete a lead',
33
+ },
34
+ {
35
+ name: 'Get',
36
+ value: 'get',
37
+ description: 'Get a lead',
38
+ action: 'Get a lead',
39
+ },
40
+ {
41
+ name: 'Get Many',
42
+ value: 'getAll',
43
+ description: 'Get many leads',
44
+ action: 'Get many leads',
45
+ },
46
+ {
47
+ name: 'Update',
48
+ value: 'update',
49
+ description: 'Update a lead',
50
+ action: 'Update a lead',
51
+ },
52
+ ],
53
+ default: 'create',
54
+ },
55
+ ];
56
+ exports.leadFields = [
57
+ /* -------------------------------------------------------------------------- */
58
+ /* lead:create */
59
+ /* -------------------------------------------------------------------------- */
60
+ {
61
+ displayName: 'Name',
62
+ name: 'name',
63
+ type: 'string',
64
+ required: true,
65
+ default: '',
66
+ displayOptions: {
67
+ show: {
68
+ resource: ['lead'],
69
+ operation: ['create'],
70
+ },
71
+ },
72
+ description: 'Lead name',
73
+ },
74
+ {
75
+ displayName: 'Additional Fields',
76
+ name: 'additionalFields',
77
+ type: 'collection',
78
+ placeholder: 'Add Field',
79
+ default: {},
80
+ displayOptions: {
81
+ show: {
82
+ resource: ['lead'],
83
+ operation: ['create'],
84
+ },
85
+ },
86
+ options: [
87
+ {
88
+ displayName: 'Title',
89
+ name: 'title',
90
+ type: 'string',
91
+ default: '',
92
+ description: 'Lead title/position',
93
+ },
94
+ {
95
+ displayName: 'Email',
96
+ name: 'email',
97
+ type: 'string',
98
+ default: '',
99
+ description: 'Lead email address',
100
+ },
101
+ {
102
+ displayName: 'Phone',
103
+ name: 'phonenumber',
104
+ type: 'string',
105
+ default: '',
106
+ description: 'Lead phone number',
107
+ },
108
+ {
109
+ displayName: 'Company',
110
+ name: 'company',
111
+ type: 'string',
112
+ default: '',
113
+ description: 'Lead company name',
114
+ },
115
+ {
116
+ displayName: 'Description',
117
+ name: 'description',
118
+ type: 'string',
119
+ typeOptions: {
120
+ alwaysOpenEditWindow: true,
121
+ },
122
+ default: '',
123
+ description: 'Lead description',
124
+ },
125
+ {
126
+ displayName: 'Status',
127
+ name: 'status',
128
+ type: 'string',
129
+ default: '',
130
+ description: 'Lead status ID',
131
+ },
132
+ {
133
+ displayName: 'Source',
134
+ name: 'source',
135
+ type: 'string',
136
+ default: '',
137
+ description: 'Lead source ID',
138
+ },
139
+ {
140
+ displayName: 'Assigned',
141
+ name: 'assigned',
142
+ type: 'string',
143
+ default: '',
144
+ description: 'Staff ID to assign lead to',
145
+ },
146
+ {
147
+ displayName: 'Country',
148
+ name: 'country',
149
+ type: 'string',
150
+ default: '',
151
+ description: 'Country',
152
+ },
153
+ {
154
+ displayName: 'City',
155
+ name: 'city',
156
+ type: 'string',
157
+ default: '',
158
+ description: 'City',
159
+ },
160
+ {
161
+ displayName: 'State',
162
+ name: 'state',
163
+ type: 'string',
164
+ default: '',
165
+ description: 'State',
166
+ },
167
+ {
168
+ displayName: 'Zip',
169
+ name: 'zip',
170
+ type: 'string',
171
+ default: '',
172
+ description: 'Zip code',
173
+ },
174
+ {
175
+ displayName: 'Address',
176
+ name: 'address',
177
+ type: 'string',
178
+ default: '',
179
+ description: 'Address',
180
+ },
181
+ {
182
+ displayName: 'Website',
183
+ name: 'website',
184
+ type: 'string',
185
+ default: '',
186
+ description: 'Website URL',
187
+ },
188
+ {
189
+ displayName: 'Lead Value',
190
+ name: 'lead_value',
191
+ type: 'number',
192
+ default: 0,
193
+ description: 'Estimated lead value',
194
+ },
195
+ ],
196
+ },
197
+ /* -------------------------------------------------------------------------- */
198
+ /* lead:get */
199
+ /* -------------------------------------------------------------------------- */
200
+ {
201
+ displayName: 'Lead ID',
202
+ name: 'leadId',
203
+ type: 'string',
204
+ required: true,
205
+ default: '',
206
+ displayOptions: {
207
+ show: {
208
+ resource: ['lead'],
209
+ operation: ['get'],
210
+ },
211
+ },
212
+ description: 'The ID of the lead',
213
+ },
214
+ /* -------------------------------------------------------------------------- */
215
+ /* lead:getAll */
216
+ /* -------------------------------------------------------------------------- */
217
+ {
218
+ displayName: 'Return All',
219
+ name: 'returnAll',
220
+ type: 'boolean',
221
+ displayOptions: {
222
+ show: {
223
+ resource: ['lead'],
224
+ operation: ['getAll'],
225
+ },
226
+ },
227
+ default: false,
228
+ description: 'Whether to return all results or only up to a given limit',
229
+ },
230
+ {
231
+ displayName: 'Limit',
232
+ name: 'limit',
233
+ type: 'number',
234
+ displayOptions: {
235
+ show: {
236
+ resource: ['lead'],
237
+ operation: ['getAll'],
238
+ returnAll: [false],
239
+ },
240
+ },
241
+ typeOptions: {
242
+ minValue: 1,
243
+ },
244
+ default: 50,
245
+ description: 'Max number of results to return',
246
+ },
247
+ {
248
+ displayName: 'Filters',
249
+ name: 'filters',
250
+ type: 'collection',
251
+ placeholder: 'Add Filter',
252
+ default: {},
253
+ displayOptions: {
254
+ show: {
255
+ resource: ['lead'],
256
+ operation: ['getAll'],
257
+ },
258
+ },
259
+ options: [
260
+ {
261
+ displayName: 'Status',
262
+ name: 'status',
263
+ type: 'string',
264
+ default: '',
265
+ description: 'Filter by status ID',
266
+ },
267
+ {
268
+ displayName: 'Source',
269
+ name: 'source',
270
+ type: 'string',
271
+ default: '',
272
+ description: 'Filter by source ID',
273
+ },
274
+ {
275
+ displayName: 'Assigned',
276
+ name: 'assigned',
277
+ type: 'string',
278
+ default: '',
279
+ description: 'Filter by assigned staff ID',
280
+ },
281
+ {
282
+ displayName: 'Search',
283
+ name: 'search',
284
+ type: 'string',
285
+ default: '',
286
+ description: 'Search term',
287
+ },
288
+ ],
289
+ },
290
+ /* -------------------------------------------------------------------------- */
291
+ /* lead:update */
292
+ /* -------------------------------------------------------------------------- */
293
+ {
294
+ displayName: 'Lead ID',
295
+ name: 'leadId',
296
+ type: 'string',
297
+ required: true,
298
+ default: '',
299
+ displayOptions: {
300
+ show: {
301
+ resource: ['lead'],
302
+ operation: ['update'],
303
+ },
304
+ },
305
+ description: 'The ID of the lead',
306
+ },
307
+ {
308
+ displayName: 'Update Fields',
309
+ name: 'updateFields',
310
+ type: 'collection',
311
+ placeholder: 'Add Field',
312
+ default: {},
313
+ displayOptions: {
314
+ show: {
315
+ resource: ['lead'],
316
+ operation: ['update'],
317
+ },
318
+ },
319
+ options: [
320
+ {
321
+ displayName: 'Name',
322
+ name: 'name',
323
+ type: 'string',
324
+ default: '',
325
+ description: 'Lead name',
326
+ },
327
+ {
328
+ displayName: 'Title',
329
+ name: 'title',
330
+ type: 'string',
331
+ default: '',
332
+ description: 'Lead title/position',
333
+ },
334
+ {
335
+ displayName: 'Email',
336
+ name: 'email',
337
+ type: 'string',
338
+ default: '',
339
+ description: 'Lead email address',
340
+ },
341
+ {
342
+ displayName: 'Phone',
343
+ name: 'phonenumber',
344
+ type: 'string',
345
+ default: '',
346
+ description: 'Lead phone number',
347
+ },
348
+ {
349
+ displayName: 'Company',
350
+ name: 'company',
351
+ type: 'string',
352
+ default: '',
353
+ description: 'Lead company name',
354
+ },
355
+ {
356
+ displayName: 'Description',
357
+ name: 'description',
358
+ type: 'string',
359
+ typeOptions: {
360
+ alwaysOpenEditWindow: true,
361
+ },
362
+ default: '',
363
+ description: 'Lead description',
364
+ },
365
+ {
366
+ displayName: 'Status',
367
+ name: 'status',
368
+ type: 'string',
369
+ default: '',
370
+ description: 'Lead status ID',
371
+ },
372
+ {
373
+ displayName: 'Source',
374
+ name: 'source',
375
+ type: 'string',
376
+ default: '',
377
+ description: 'Lead source ID',
378
+ },
379
+ {
380
+ displayName: 'Assigned',
381
+ name: 'assigned',
382
+ type: 'string',
383
+ default: '',
384
+ description: 'Staff ID to assign lead to',
385
+ },
386
+ {
387
+ displayName: 'Lead Value',
388
+ name: 'lead_value',
389
+ type: 'number',
390
+ default: 0,
391
+ description: 'Estimated lead value',
392
+ },
393
+ ],
394
+ },
395
+ /* -------------------------------------------------------------------------- */
396
+ /* lead:delete */
397
+ /* -------------------------------------------------------------------------- */
398
+ {
399
+ displayName: 'Lead ID',
400
+ name: 'leadId',
401
+ type: 'string',
402
+ required: true,
403
+ default: '',
404
+ displayOptions: {
405
+ show: {
406
+ resource: ['lead'],
407
+ operation: ['delete'],
408
+ },
409
+ },
410
+ description: 'The ID of the lead',
411
+ },
412
+ /* -------------------------------------------------------------------------- */
413
+ /* lead:convert */
414
+ /* -------------------------------------------------------------------------- */
415
+ {
416
+ displayName: 'Lead ID',
417
+ name: 'leadId',
418
+ type: 'string',
419
+ required: true,
420
+ default: '',
421
+ displayOptions: {
422
+ show: {
423
+ resource: ['lead'],
424
+ operation: ['convert'],
425
+ },
426
+ },
427
+ description: 'The ID of the lead to convert to a customer',
428
+ },
429
+ ];