n8n-nodes-proiectro 0.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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/dist/credentials/ProiectroApi.credentials.d.ts +13 -0
  4. package/dist/credentials/ProiectroApi.credentials.js +52 -0
  5. package/dist/credentials/proiectro.svg +44 -0
  6. package/dist/nodes/Proiectro/Proiectro.node.d.ts +17 -0
  7. package/dist/nodes/Proiectro/Proiectro.node.js +1865 -0
  8. package/dist/nodes/Proiectro/ProiectroTrigger.node.d.ts +12 -0
  9. package/dist/nodes/Proiectro/ProiectroTrigger.node.js +214 -0
  10. package/dist/nodes/Proiectro/descriptions/ContactDescription.d.ts +3 -0
  11. package/dist/nodes/Proiectro/descriptions/ContactDescription.js +157 -0
  12. package/dist/nodes/Proiectro/descriptions/CustomerDescription.d.ts +3 -0
  13. package/dist/nodes/Proiectro/descriptions/CustomerDescription.js +152 -0
  14. package/dist/nodes/Proiectro/descriptions/LabelDescription.d.ts +3 -0
  15. package/dist/nodes/Proiectro/descriptions/LabelDescription.js +370 -0
  16. package/dist/nodes/Proiectro/descriptions/OperationalWorkItemDescription.d.ts +3 -0
  17. package/dist/nodes/Proiectro/descriptions/OperationalWorkItemDescription.js +261 -0
  18. package/dist/nodes/Proiectro/descriptions/PaymentDescription.d.ts +3 -0
  19. package/dist/nodes/Proiectro/descriptions/PaymentDescription.js +163 -0
  20. package/dist/nodes/Proiectro/descriptions/ProcessDefinitionDescription.d.ts +3 -0
  21. package/dist/nodes/Proiectro/descriptions/ProcessDefinitionDescription.js +127 -0
  22. package/dist/nodes/Proiectro/descriptions/ProjectDescription.d.ts +3 -0
  23. package/dist/nodes/Proiectro/descriptions/ProjectDescription.js +48 -0
  24. package/dist/nodes/Proiectro/descriptions/ProposalDescription.d.ts +3 -0
  25. package/dist/nodes/Proiectro/descriptions/ProposalDescription.js +460 -0
  26. package/dist/nodes/Proiectro/descriptions/ResourceDescription.d.ts +3 -0
  27. package/dist/nodes/Proiectro/descriptions/ResourceDescription.js +119 -0
  28. package/dist/nodes/Proiectro/descriptions/SupportRequestDescription.d.ts +3 -0
  29. package/dist/nodes/Proiectro/descriptions/SupportRequestDescription.js +237 -0
  30. package/dist/nodes/Proiectro/descriptions/TagDescription.d.ts +3 -0
  31. package/dist/nodes/Proiectro/descriptions/TagDescription.js +235 -0
  32. package/dist/nodes/Proiectro/descriptions/TeamMemberDescription.d.ts +3 -0
  33. package/dist/nodes/Proiectro/descriptions/TeamMemberDescription.js +166 -0
  34. package/dist/nodes/Proiectro/descriptions/WebhookDescription.d.ts +3 -0
  35. package/dist/nodes/Proiectro/descriptions/WebhookDescription.js +118 -0
  36. package/dist/nodes/Proiectro/descriptions/WorkItemDescription.d.ts +3 -0
  37. package/dist/nodes/Proiectro/descriptions/WorkItemDescription.js +288 -0
  38. package/dist/nodes/Proiectro/proiectro.svg +44 -0
  39. package/package.json +45 -0
@@ -0,0 +1,460 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.proposalFields = exports.proposalOperations = void 0;
4
+ exports.proposalOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: { resource: ['proposal'] },
12
+ },
13
+ options: [
14
+ {
15
+ name: 'Change Stage',
16
+ value: 'change_stage',
17
+ action: 'Change proposal stage',
18
+ description: 'Move a proposal to a different pipeline stage',
19
+ },
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ action: 'Create a proposal',
24
+ description: 'Create a new proposal',
25
+ },
26
+ {
27
+ name: 'Get',
28
+ value: 'get',
29
+ action: 'Get a proposal',
30
+ description: 'Get a single proposal by ID',
31
+ },
32
+ {
33
+ name: 'List',
34
+ value: 'list',
35
+ action: 'List proposals',
36
+ description: 'List proposals for an organization',
37
+ },
38
+ {
39
+ name: 'Reopen',
40
+ value: 'reopen',
41
+ action: 'Reopen a proposal',
42
+ description: 'Reopen a closed proposal',
43
+ },
44
+ {
45
+ name: 'Update',
46
+ value: 'update',
47
+ action: 'Update a proposal',
48
+ description: 'Update an existing proposal',
49
+ },
50
+ ],
51
+ default: 'change_stage',
52
+ },
53
+ ];
54
+ exports.proposalFields = [
55
+ {
56
+ displayName: 'Org Name or ID',
57
+ name: 'org_id',
58
+ type: 'options',
59
+ required: true,
60
+ typeOptions: {
61
+ loadOptionsMethod: 'getCustomers',
62
+ },
63
+ default: '',
64
+ displayOptions: {
65
+ show: {
66
+ resource: ['proposal'],
67
+ operation: ["list"],
68
+ },
69
+ },
70
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
71
+ },
72
+ {
73
+ displayName: 'Proposal Name or ID',
74
+ name: 'proposal_id',
75
+ type: 'options',
76
+ required: true,
77
+ typeOptions: {
78
+ loadOptionsMethod: 'getProposals',
79
+ },
80
+ default: '',
81
+ displayOptions: {
82
+ show: {
83
+ resource: ['proposal'],
84
+ operation: ["get", "update", "change_stage", "reopen"],
85
+ },
86
+ },
87
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
88
+ },
89
+ {
90
+ displayName: 'Internal Code',
91
+ name: 'internal_code',
92
+ type: 'string',
93
+ default: '',
94
+ displayOptions: {
95
+ show: {
96
+ resource: ['proposal'],
97
+ operation: ["create", "update"],
98
+ },
99
+ },
100
+ },
101
+ {
102
+ displayName: 'Name',
103
+ name: 'name',
104
+ type: 'string',
105
+ required: true,
106
+ default: '',
107
+ displayOptions: {
108
+ show: {
109
+ resource: ['proposal'],
110
+ operation: ["create", "update"],
111
+ },
112
+ },
113
+ },
114
+ {
115
+ displayName: 'Description',
116
+ name: 'description',
117
+ type: 'string',
118
+ required: true,
119
+ default: '',
120
+ displayOptions: {
121
+ show: {
122
+ resource: ['proposal'],
123
+ operation: ["create", "update"],
124
+ },
125
+ },
126
+ },
127
+ {
128
+ displayName: 'Customer',
129
+ name: 'customer',
130
+ type: 'string',
131
+ required: true,
132
+ default: '',
133
+ displayOptions: {
134
+ show: {
135
+ resource: ['proposal'],
136
+ operation: ["create", "update"],
137
+ },
138
+ },
139
+ },
140
+ {
141
+ displayName: 'Rfp Publication',
142
+ name: 'rfp_publication',
143
+ type: 'string',
144
+ default: '',
145
+ displayOptions: {
146
+ show: {
147
+ resource: ['proposal'],
148
+ operation: ["create", "update"],
149
+ },
150
+ },
151
+ },
152
+ {
153
+ displayName: 'Owner Name or ID',
154
+ name: 'owner',
155
+ type: 'options',
156
+ required: true,
157
+ typeOptions: {
158
+ loadOptionsMethod: 'getMembers',
159
+ },
160
+ default: '',
161
+ displayOptions: {
162
+ show: {
163
+ resource: ['proposal'],
164
+ operation: ["create", "update"],
165
+ },
166
+ },
167
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
168
+ },
169
+ {
170
+ displayName: 'Manager Name or ID',
171
+ name: 'manager',
172
+ type: 'options',
173
+ required: true,
174
+ typeOptions: {
175
+ loadOptionsMethod: 'getMembers',
176
+ },
177
+ default: '',
178
+ displayOptions: {
179
+ show: {
180
+ resource: ['proposal'],
181
+ operation: ["create"],
182
+ },
183
+ },
184
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
185
+ },
186
+ {
187
+ displayName: 'Sales Stage',
188
+ name: 'sales_stage',
189
+ type: 'string',
190
+ required: true,
191
+ default: '',
192
+ displayOptions: {
193
+ show: {
194
+ resource: ['proposal'],
195
+ operation: ["create"],
196
+ },
197
+ },
198
+ },
199
+ {
200
+ displayName: 'Proposal Currency',
201
+ name: 'proposal_currency',
202
+ type: 'string',
203
+ required: true,
204
+ default: '',
205
+ displayOptions: {
206
+ show: {
207
+ resource: ['proposal'],
208
+ operation: ["create", "update"],
209
+ },
210
+ },
211
+ },
212
+ {
213
+ displayName: 'Pricing Strategy',
214
+ name: 'pricing_strategy',
215
+ type: 'options',
216
+ options: [
217
+ { name: 'Fixed Amount', value: 'fixed_amount' },
218
+ { name: 'Margin Target', value: 'margin_target' },
219
+ { name: 'Percentage', value: 'percentage' },
220
+ { name: 'Product Prices', value: 'product_prices' },
221
+ ],
222
+ default: 'product_prices',
223
+ displayOptions: {
224
+ show: {
225
+ resource: ['proposal'],
226
+ operation: ["create", "update"],
227
+ },
228
+ },
229
+ },
230
+ {
231
+ displayName: 'Pricing Adjustment Percent',
232
+ name: 'pricing_adjustment_percent',
233
+ type: 'number',
234
+ default: 0,
235
+ displayOptions: {
236
+ show: {
237
+ resource: ['proposal'],
238
+ operation: ["create", "update"],
239
+ },
240
+ },
241
+ },
242
+ {
243
+ displayName: 'Pricing Adjustment Amount',
244
+ name: 'pricing_adjustment_amount',
245
+ type: 'number',
246
+ default: 0,
247
+ displayOptions: {
248
+ show: {
249
+ resource: ['proposal'],
250
+ operation: ["create", "update"],
251
+ },
252
+ },
253
+ },
254
+ {
255
+ displayName: 'Target Margin Percent',
256
+ name: 'target_margin_percent',
257
+ type: 'number',
258
+ default: 0,
259
+ displayOptions: {
260
+ show: {
261
+ resource: ['proposal'],
262
+ operation: ["create", "update"],
263
+ },
264
+ },
265
+ },
266
+ {
267
+ displayName: 'Minimum Margin Percent',
268
+ name: 'minimum_margin_percent',
269
+ type: 'number',
270
+ default: 0,
271
+ displayOptions: {
272
+ show: {
273
+ resource: ['proposal'],
274
+ operation: ["create", "update"],
275
+ },
276
+ },
277
+ },
278
+ {
279
+ displayName: 'Proposal Valid Since',
280
+ name: 'proposal_valid_since',
281
+ type: 'string',
282
+ default: '',
283
+ displayOptions: {
284
+ show: {
285
+ resource: ['proposal'],
286
+ operation: ["create", "update"],
287
+ },
288
+ },
289
+ },
290
+ {
291
+ displayName: 'Proposal Valid Until',
292
+ name: 'proposal_valid_until',
293
+ type: 'string',
294
+ default: '',
295
+ displayOptions: {
296
+ show: {
297
+ resource: ['proposal'],
298
+ operation: ["create", "update"],
299
+ },
300
+ },
301
+ },
302
+ {
303
+ displayName: 'Project Start Date',
304
+ name: 'project_start_date',
305
+ type: 'string',
306
+ default: '',
307
+ displayOptions: {
308
+ show: {
309
+ resource: ['proposal'],
310
+ operation: ["create", "update"],
311
+ },
312
+ },
313
+ },
314
+ {
315
+ displayName: 'Project End Date',
316
+ name: 'project_end_date',
317
+ type: 'string',
318
+ default: '',
319
+ displayOptions: {
320
+ show: {
321
+ resource: ['proposal'],
322
+ operation: ["create", "update"],
323
+ },
324
+ },
325
+ },
326
+ {
327
+ displayName: 'Project Enable Booking Management',
328
+ name: 'project_enable_booking_management',
329
+ type: 'boolean',
330
+ default: false,
331
+ displayOptions: {
332
+ show: {
333
+ resource: ['proposal'],
334
+ operation: ["create", "update"],
335
+ },
336
+ },
337
+ },
338
+ {
339
+ displayName: 'Project Enable Resource Management',
340
+ name: 'project_enable_resource_management',
341
+ type: 'boolean',
342
+ default: false,
343
+ displayOptions: {
344
+ show: {
345
+ resource: ['proposal'],
346
+ operation: ["create", "update"],
347
+ },
348
+ },
349
+ },
350
+ {
351
+ displayName: 'Project Enable Effort Management',
352
+ name: 'project_enable_effort_management',
353
+ type: 'boolean',
354
+ default: false,
355
+ displayOptions: {
356
+ show: {
357
+ resource: ['proposal'],
358
+ operation: ["create", "update"],
359
+ },
360
+ },
361
+ },
362
+ {
363
+ displayName: 'Project Enable Financial Management',
364
+ name: 'project_enable_financial_management',
365
+ type: 'boolean',
366
+ default: false,
367
+ displayOptions: {
368
+ show: {
369
+ resource: ['proposal'],
370
+ operation: ["create", "update"],
371
+ },
372
+ },
373
+ },
374
+ {
375
+ displayName: 'Project Enable Schedule Management',
376
+ name: 'project_enable_schedule_management',
377
+ type: 'boolean',
378
+ default: false,
379
+ displayOptions: {
380
+ show: {
381
+ resource: ['proposal'],
382
+ operation: ["create", "update"],
383
+ },
384
+ },
385
+ },
386
+ {
387
+ displayName: 'Project Enable Earned Value Management',
388
+ name: 'project_enable_earned_value_management',
389
+ type: 'boolean',
390
+ default: false,
391
+ displayOptions: {
392
+ show: {
393
+ resource: ['proposal'],
394
+ operation: ["create", "update"],
395
+ },
396
+ },
397
+ },
398
+ {
399
+ displayName: 'Wbsconfiguration',
400
+ name: 'wbsconfiguration',
401
+ type: 'string',
402
+ required: true,
403
+ default: '',
404
+ displayOptions: {
405
+ show: {
406
+ resource: ['proposal'],
407
+ operation: ["create", "update"],
408
+ },
409
+ },
410
+ },
411
+ {
412
+ displayName: 'Stage ID',
413
+ name: 'stage_id',
414
+ type: 'string',
415
+ required: true,
416
+ default: '',
417
+ displayOptions: {
418
+ show: {
419
+ resource: ['proposal'],
420
+ operation: ["change_stage"],
421
+ },
422
+ },
423
+ },
424
+ {
425
+ displayName: 'I Have Followed The Instructions',
426
+ name: 'i_have_followed_the_instructions',
427
+ type: 'boolean',
428
+ default: false,
429
+ displayOptions: {
430
+ show: {
431
+ resource: ['proposal'],
432
+ operation: ["change_stage"],
433
+ },
434
+ },
435
+ },
436
+ {
437
+ displayName: 'Contact ID',
438
+ name: 'contact_id',
439
+ type: 'string',
440
+ default: '',
441
+ displayOptions: {
442
+ show: {
443
+ resource: ['proposal'],
444
+ operation: ["change_stage"],
445
+ },
446
+ },
447
+ },
448
+ {
449
+ displayName: 'Rejection Reason',
450
+ name: 'rejection_reason',
451
+ type: 'string',
452
+ default: '',
453
+ displayOptions: {
454
+ show: {
455
+ resource: ['proposal'],
456
+ operation: ["change_stage"],
457
+ },
458
+ },
459
+ },
460
+ ];
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const resourceOperations: INodeProperties[];
3
+ export declare const resourceFields: INodeProperties[];
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resourceFields = exports.resourceOperations = void 0;
4
+ exports.resourceOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: { resource: ['resource'] },
12
+ },
13
+ options: [
14
+ {
15
+ name: 'Create',
16
+ value: 'create',
17
+ action: 'Create a resource',
18
+ description: 'Create a new resource',
19
+ },
20
+ {
21
+ name: 'Delete',
22
+ value: 'delete',
23
+ action: 'Delete a resource',
24
+ description: 'Delete a resource',
25
+ },
26
+ {
27
+ name: 'List All',
28
+ value: 'list',
29
+ action: 'List all resources',
30
+ description: 'List all resources in the workspace',
31
+ },
32
+ {
33
+ name: 'Update',
34
+ value: 'update',
35
+ action: 'Update a resource',
36
+ description: 'Update a resource',
37
+ },
38
+ ],
39
+ default: 'create',
40
+ },
41
+ ];
42
+ exports.resourceFields = [
43
+ {
44
+ displayName: 'Name',
45
+ name: 'name',
46
+ type: 'string',
47
+ required: true,
48
+ default: '',
49
+ displayOptions: {
50
+ show: {
51
+ resource: ['resource'],
52
+ operation: ["create", "update"],
53
+ },
54
+ },
55
+ },
56
+ {
57
+ displayName: 'Internal Code',
58
+ name: 'internal_code',
59
+ type: 'string',
60
+ default: '',
61
+ displayOptions: {
62
+ show: {
63
+ resource: ['resource'],
64
+ operation: ["create", "update"],
65
+ },
66
+ },
67
+ },
68
+ {
69
+ displayName: 'Description',
70
+ name: 'description',
71
+ type: 'string',
72
+ required: true,
73
+ default: '',
74
+ displayOptions: {
75
+ show: {
76
+ resource: ['resource'],
77
+ operation: ["create", "update"],
78
+ },
79
+ },
80
+ },
81
+ {
82
+ displayName: 'Parent',
83
+ name: 'parent',
84
+ type: 'string',
85
+ default: '',
86
+ displayOptions: {
87
+ show: {
88
+ resource: ['resource'],
89
+ operation: ["create", "update"],
90
+ },
91
+ },
92
+ },
93
+ {
94
+ displayName: 'Timezone',
95
+ name: 'timezone',
96
+ type: 'string',
97
+ required: true,
98
+ default: '',
99
+ displayOptions: {
100
+ show: {
101
+ resource: ['resource'],
102
+ operation: ["create", "update"],
103
+ },
104
+ },
105
+ },
106
+ {
107
+ displayName: 'Resource ID',
108
+ name: 'resource_id',
109
+ type: 'string',
110
+ required: true,
111
+ default: '',
112
+ displayOptions: {
113
+ show: {
114
+ resource: ['resource'],
115
+ operation: ["update", "delete"],
116
+ },
117
+ },
118
+ },
119
+ ];
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const supportRequestOperations: INodeProperties[];
3
+ export declare const supportRequestFields: INodeProperties[];