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,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webhookFields = exports.webhookOperations = void 0;
4
+ exports.webhookOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: { resource: ['webhook'] },
12
+ },
13
+ options: [
14
+ {
15
+ name: 'Create',
16
+ value: 'create',
17
+ action: 'Create a webhook',
18
+ description: 'Create a new webhook subscription',
19
+ },
20
+ {
21
+ name: 'Delete',
22
+ value: 'delete',
23
+ action: 'Delete a webhook',
24
+ description: 'Delete a webhook subscription',
25
+ },
26
+ {
27
+ name: 'List All',
28
+ value: 'list',
29
+ action: 'List all webhooks',
30
+ description: 'List all webhooks',
31
+ },
32
+ {
33
+ name: 'Update',
34
+ value: 'update',
35
+ action: 'Update a webhook',
36
+ description: 'Update a webhook subscription',
37
+ },
38
+ ],
39
+ default: 'create',
40
+ },
41
+ ];
42
+ exports.webhookFields = [
43
+ {
44
+ displayName: 'Name',
45
+ name: 'name',
46
+ type: 'string',
47
+ required: true,
48
+ default: '',
49
+ displayOptions: {
50
+ show: {
51
+ resource: ['webhook'],
52
+ operation: ["create", "update"],
53
+ },
54
+ },
55
+ },
56
+ {
57
+ displayName: 'Target Url',
58
+ name: 'target_url',
59
+ type: 'string',
60
+ required: true,
61
+ default: '',
62
+ displayOptions: {
63
+ show: {
64
+ resource: ['webhook'],
65
+ operation: ["create", "update"],
66
+ },
67
+ },
68
+ },
69
+ {
70
+ displayName: 'Event Types',
71
+ name: 'event_types',
72
+ type: 'json',
73
+ default: '',
74
+ displayOptions: {
75
+ show: {
76
+ resource: ['webhook'],
77
+ operation: ["create", "update"],
78
+ },
79
+ },
80
+ },
81
+ {
82
+ displayName: 'Is Active',
83
+ name: 'is_active',
84
+ type: 'boolean',
85
+ default: false,
86
+ displayOptions: {
87
+ show: {
88
+ resource: ['webhook'],
89
+ operation: ["create", "update"],
90
+ },
91
+ },
92
+ },
93
+ {
94
+ displayName: 'Is Secure',
95
+ name: 'is_secure',
96
+ type: 'boolean',
97
+ default: false,
98
+ displayOptions: {
99
+ show: {
100
+ resource: ['webhook'],
101
+ operation: ["create", "update"],
102
+ },
103
+ },
104
+ },
105
+ {
106
+ displayName: 'Webhook ID',
107
+ name: 'webhook_id',
108
+ type: 'string',
109
+ required: true,
110
+ default: '',
111
+ displayOptions: {
112
+ show: {
113
+ resource: ['webhook'],
114
+ operation: ["update", "delete"],
115
+ },
116
+ },
117
+ },
118
+ ];
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const workItemOperations: INodeProperties[];
3
+ export declare const workItemFields: INodeProperties[];
@@ -0,0 +1,288 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workItemFields = exports.workItemOperations = void 0;
4
+ exports.workItemOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: { resource: ['workItem'] },
12
+ },
13
+ options: [
14
+ {
15
+ name: 'Change Status',
16
+ value: 'change_status',
17
+ action: 'Change work item status',
18
+ description: 'Change a work item\'s status',
19
+ },
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ action: 'Create a work item',
24
+ description: 'Create a new work item',
25
+ },
26
+ {
27
+ name: 'Delete',
28
+ value: 'delete',
29
+ action: 'Delete a work item',
30
+ description: 'Delete a work item',
31
+ },
32
+ {
33
+ name: 'Update',
34
+ value: 'update',
35
+ action: 'Update a work item',
36
+ description: 'Update a work item\'s details',
37
+ },
38
+ ],
39
+ default: 'change_status',
40
+ },
41
+ ];
42
+ exports.workItemFields = [
43
+ {
44
+ displayName: 'Name',
45
+ name: 'name',
46
+ type: 'string',
47
+ required: true,
48
+ default: '',
49
+ displayOptions: {
50
+ show: {
51
+ resource: ['workItem'],
52
+ operation: ["create", "update"],
53
+ },
54
+ },
55
+ },
56
+ {
57
+ displayName: 'Description',
58
+ name: 'description',
59
+ type: 'string',
60
+ default: '',
61
+ displayOptions: {
62
+ show: {
63
+ resource: ['workItem'],
64
+ operation: ["create", "update"],
65
+ },
66
+ },
67
+ },
68
+ {
69
+ displayName: 'Estimated Work Hours',
70
+ name: 'estimated_work_hours',
71
+ type: 'number',
72
+ default: 0,
73
+ displayOptions: {
74
+ show: {
75
+ resource: ['workItem'],
76
+ operation: ["create", "update"],
77
+ },
78
+ },
79
+ },
80
+ {
81
+ displayName: 'Planned Start Date',
82
+ name: 'planned_start_date',
83
+ type: 'string',
84
+ default: '',
85
+ displayOptions: {
86
+ show: {
87
+ resource: ['workItem'],
88
+ operation: ["create", "update"],
89
+ },
90
+ },
91
+ },
92
+ {
93
+ displayName: 'Planned Finish Date',
94
+ name: 'planned_finish_date',
95
+ type: 'string',
96
+ default: '',
97
+ displayOptions: {
98
+ show: {
99
+ resource: ['workItem'],
100
+ operation: ["create", "update"],
101
+ },
102
+ },
103
+ },
104
+ {
105
+ displayName: 'Estimated Duration Days',
106
+ name: 'estimated_duration_days',
107
+ type: 'number',
108
+ default: 0,
109
+ displayOptions: {
110
+ show: {
111
+ resource: ['workItem'],
112
+ operation: ["create", "update"],
113
+ },
114
+ },
115
+ },
116
+ {
117
+ displayName: 'Constraint Type',
118
+ name: 'constraint_type',
119
+ type: 'string',
120
+ default: '',
121
+ displayOptions: {
122
+ show: {
123
+ resource: ['workItem'],
124
+ operation: ["create", "update"],
125
+ },
126
+ },
127
+ },
128
+ {
129
+ displayName: 'Constraint Date',
130
+ name: 'constraint_date',
131
+ type: 'string',
132
+ default: '',
133
+ displayOptions: {
134
+ show: {
135
+ resource: ['workItem'],
136
+ operation: ["create", "update"],
137
+ },
138
+ },
139
+ },
140
+ {
141
+ displayName: 'Owner Name or ID',
142
+ name: 'owner',
143
+ type: 'options',
144
+ typeOptions: {
145
+ loadOptionsMethod: 'getMembers',
146
+ },
147
+ default: '',
148
+ displayOptions: {
149
+ show: {
150
+ resource: ['workItem'],
151
+ operation: ["create", "update"],
152
+ },
153
+ },
154
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
155
+ },
156
+ {
157
+ displayName: 'Visible To Customer',
158
+ name: 'visible_to_customer',
159
+ type: 'boolean',
160
+ default: false,
161
+ displayOptions: {
162
+ show: {
163
+ resource: ['workItem'],
164
+ operation: ["create", "update"],
165
+ },
166
+ },
167
+ },
168
+ {
169
+ displayName: 'Product',
170
+ name: 'product',
171
+ type: 'string',
172
+ default: '',
173
+ displayOptions: {
174
+ show: {
175
+ resource: ['workItem'],
176
+ operation: ["create", "update"],
177
+ },
178
+ },
179
+ },
180
+ {
181
+ displayName: 'Project Name or ID',
182
+ name: 'project_id',
183
+ type: 'options',
184
+ required: true,
185
+ typeOptions: {
186
+ loadOptionsMethod: 'getProjects',
187
+ },
188
+ default: '',
189
+ displayOptions: {
190
+ show: {
191
+ resource: ['workItem'],
192
+ operation: ["create"],
193
+ },
194
+ },
195
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
196
+ },
197
+ {
198
+ displayName: 'Work Item Type Name or ID',
199
+ name: 'work_item_type_id',
200
+ type: 'options',
201
+ required: true,
202
+ typeOptions: {
203
+ loadOptionsMethod: 'getWorkItemTypes',
204
+ },
205
+ default: '',
206
+ displayOptions: {
207
+ show: {
208
+ resource: ['workItem'],
209
+ operation: ["create"],
210
+ },
211
+ },
212
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
213
+ },
214
+ {
215
+ displayName: 'Parent Work Item ID',
216
+ name: 'parent_work_item_id',
217
+ type: 'string',
218
+ default: '',
219
+ displayOptions: {
220
+ show: {
221
+ resource: ['workItem'],
222
+ operation: ["create"],
223
+ },
224
+ },
225
+ },
226
+ {
227
+ displayName: 'Work Item ID',
228
+ name: 'work_item_id',
229
+ type: 'string',
230
+ required: true,
231
+ default: '',
232
+ displayOptions: {
233
+ show: {
234
+ resource: ['workItem'],
235
+ operation: ["update", "change_status", "delete"],
236
+ },
237
+ },
238
+ },
239
+ {
240
+ displayName: 'Parent',
241
+ name: 'parent',
242
+ type: 'string',
243
+ required: true,
244
+ default: '',
245
+ displayOptions: {
246
+ show: {
247
+ resource: ['workItem'],
248
+ operation: ["update"],
249
+ },
250
+ },
251
+ },
252
+ {
253
+ displayName: 'Percent Complete',
254
+ name: 'percent_complete',
255
+ type: 'number',
256
+ default: 0,
257
+ displayOptions: {
258
+ show: {
259
+ resource: ['workItem'],
260
+ operation: ["change_status"],
261
+ },
262
+ },
263
+ },
264
+ {
265
+ displayName: 'Is Finished',
266
+ name: 'is_finished',
267
+ type: 'boolean',
268
+ default: false,
269
+ displayOptions: {
270
+ show: {
271
+ resource: ['workItem'],
272
+ operation: ["change_status"],
273
+ },
274
+ },
275
+ },
276
+ {
277
+ displayName: 'Finished At',
278
+ name: 'finished_at',
279
+ type: 'string',
280
+ default: '',
281
+ displayOptions: {
282
+ show: {
283
+ resource: ['workItem'],
284
+ operation: ["change_status"],
285
+ },
286
+ },
287
+ },
288
+ ];
@@ -0,0 +1,44 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="30 -100 740 740" width="64" height="64">
2
+ <g transform="translate(800, 0) scale(-1, 1)">
3
+ <path style="fill:#424242;" d="M632.115,235.586c0.023-0.286,0.065-0.566,0.091-0.851c0.051,0.281,0.086,0.56,0.14,0.841
4
+ c3.265,16.979,11.42,31.773,22.716,43.222c13.379,5.757,28.249,7.104,42.189,3.538c-11.178-8.804-20.277-20.557-25.967-34.707
5
+ c-0.107-0.266-0.195-0.535-0.299-0.802c0.171,0.228,0.327,0.463,0.501,0.689c10.764,14.047,25.087,23.743,40.731,28.835
6
+ c8.541-4.724,15.624-10.989,21.506-18.192c-9.168-2.816-18.009-7.247-26.101-13.374c-0.229-0.173-0.442-0.359-0.669-0.534
7
+ c0.264,0.108,0.518,0.228,0.784,0.333c10.377,4.104,21.078,5.984,31.591,5.906c4.002-6.113,7.314-12.67,10.046-19.396
8
+ c-6.147,0.978-12.499,1.286-18.974,0.851c-0.286-0.019-0.567-0.057-0.852-0.079c0.28-0.055,0.559-0.094,0.838-0.152
9
+ c7.719-1.6,14.957-4.228,21.633-7.679c7.125-20.651,9.348-41.834,9.98-55.346c-3.665,27.027-42.182,58.991-67.043,58.991
10
+ c-36.059,0-83.053-50.432-83.053-50.432l-51.726,17.828l33.405,24.356c11.143,22.514,27.333,37.951,42.109,48.22
11
+ C632.532,257.583,631.203,246.754,632.115,235.586z"/>
12
+ <path style="fill:#424242;" d="M361.611,187.54l3.003-21.261c-38.452-14.01-79.556-16.126-118.255-7.305l1.346,30.236
13
+ l-8.931-28.364c-7.643,2.043-15.175,4.519-22.561,7.419l10.813,29.2l-18.608-25.966c-19.561,8.602-37.936,20.266-54.362,34.826
14
+ l19.958,28.329l-25.509-23.232c-10.345,9.86-19.836,20.927-28.252,33.174l30.122,18.951l200.661-26.582l40.698-58.556
15
+ c-6.873-3.682-13.884-6.932-20.993-9.779L361.611,187.54z"/>
16
+ <polygon style="fill:#424242;" points="459.372,446.3 57.926,446.3 685.202,436.06 688.373,446.3 "/>
17
+ <polygon style="fill:#424242;" points="293.72,300.045 236.956,379.153 191.315,446.3 237.003,446.3 259.322,386.433
18
+ 333.369,318.69 334.682,288.492 "/>
19
+ <polygon style="fill:#424242;" points="453.892,446.3 502.536,372.126 452.054,344.158 445.489,323.152 473.648,269.849
20
+ 512.709,269.849 548.944,301.358 515.728,331.506 539.101,354.191 499.58,446.3 "/>
21
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="419.5821" y1="461.8794" x2="342.3846" y2="82.1935">
22
+ <stop offset="0" style="stop-color:#424242"/>
23
+ <stop offset="1" style="stop-color:#BDBDBD"/>
24
+ </linearGradient>
25
+ <path style="fill:url(#SVGID_1_);" d="M659.752,353.873l-53.828-41.093l-8.18-112.395l-97.592-38.498L395.6,201.316l-0.297,0.104
26
+ c-85.496-45.277-191.51-18.206-244.918,62.129l-0.011-0.003l-43.609-2.625l29.266,21.291l9.805,99.144l13.049,12.779l23.779-12.975
27
+ l7.731-37.265l10.897-19.431l-2.459-20.049c17.339-19.415,42.224-30.572,68.134-30.719l35.48,20.014l0.135,1.177l-68.368,27.8
28
+ l-7.19,14.381l9.931,42.085l58.801,36.035l-13.153-43.723l-26.302-6.017l-3.282-25.689l95.709-13.465l3.428-8.788h51.713
29
+ l88.996-44.758l67.311,64.45l77.846,27.662l4.661,81.44h45.688L659.752,353.873z"/>
30
+ <polygon style="opacity:0.3;fill:#FFFFFF;" points="492.866,272.748 512.064,231.134 560.178,337.198 638.024,364.86
31
+ 560.178,337.198 "/>
32
+ <polygon style="opacity:0.5;fill:#FFFFFF;" points="395.6,201.316 520.083,169.75 500.152,161.887 "/>
33
+ <polygon style="opacity:0.3;fill:#FFFFFF;" points="298.118,256.063 316.865,302.933 241.435,326.855 233.721,338.119
34
+ 236.956,379.153 227.025,337.068 234.216,322.687 302.583,294.887 "/>
35
+ <polygon style="fill:#424242;" points="369.211,273.787 366.06,317.506 352.158,317.506 "/>
36
+ <polygon style="fill:#424242;" points="153.767,304.509 156.917,365.814 163.613,317.506 "/>
37
+ <polygon style="opacity:0.3;fill:#FFFFFF;" points="145.837,381.357 136.032,282.212 146.602,289.971 150.386,376.974 "/>
38
+ <polygon style="fill:#424242;" points="145.837,381.357 156.786,370.809 171.884,373.566 186.309,363.599 182.665,381.161
39
+ 158.887,394.136 "/>
40
+ <path style="opacity:0.3;fill:#FFFFFF;" d="M150.386,263.55l21.63,6.509c43.623-68.365,129.706-99.55,208.589-75.642
41
+ C297.977,159.371,200.772,187.761,150.386,263.55z"/>
42
+ <polygon style="fill:#424242;" points="38,329.446 128.265,276.511 146.602,289.971 "/>
43
+ </g>
44
+ </svg>
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "n8n-nodes-proiectro",
3
+ "version": "0.1.1",
4
+ "description": "n8n nodes to automate your business workflows with Proiect.ro",
5
+ "keywords": ["n8n-community-node-package"],
6
+ "license": "MIT",
7
+ "author": {
8
+ "name": "Online Projects EU",
9
+ "url": "https://proiect.ro"
10
+ },
11
+ "homepage": "https://proiect.ro",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/Online-Projects-EU/n8n-nodes-proiectro"
15
+ },
16
+ "main": "index.js",
17
+ "scripts": {
18
+ "build": "n8n-node build",
19
+ "dev": "n8n-node dev",
20
+ "lint": "n8n-node lint",
21
+ "lint:fix": "n8n-node lint --fix",
22
+ "release": "n8n-node release"
23
+ },
24
+ "n8n": {
25
+ "n8nNodesApiVersion": 1,
26
+ "strict": true,
27
+ "nodes": [
28
+ "dist/nodes/Proiectro/Proiectro.node.js",
29
+ "dist/nodes/Proiectro/ProiectroTrigger.node.js"
30
+ ],
31
+ "credentials": [
32
+ "dist/credentials/ProiectroApi.credentials.js"
33
+ ]
34
+ },
35
+ "files": ["dist"],
36
+ "peerDependencies": {
37
+ "n8n-workflow": "*"
38
+ },
39
+ "devDependencies": {
40
+ "@n8n/node-cli": "*",
41
+ "typescript": "~5.9.0",
42
+ "eslint": "~9.32.0",
43
+ "prettier": "~3.6.0"
44
+ }
45
+ }