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,237 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supportRequestFields = exports.supportRequestOperations = void 0;
4
+ exports.supportRequestOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: { resource: ['supportRequest'] },
12
+ },
13
+ options: [
14
+ {
15
+ name: 'Add Comment',
16
+ value: 'add_comment',
17
+ action: 'Add comment to support request',
18
+ description: 'Add a comment to a support request',
19
+ },
20
+ {
21
+ name: 'Change Status',
22
+ value: 'change_status',
23
+ action: 'Change support request status',
24
+ description: 'Change the status of a support request',
25
+ },
26
+ {
27
+ name: 'Close',
28
+ value: 'close',
29
+ action: 'Close a support request',
30
+ description: 'Close a support request',
31
+ },
32
+ {
33
+ name: 'Create',
34
+ value: 'create',
35
+ action: 'Create a support request',
36
+ description: 'Create a new support request',
37
+ },
38
+ {
39
+ name: 'Edit',
40
+ value: 'edit',
41
+ action: 'Edit a support request',
42
+ description: 'Edit a support request',
43
+ },
44
+ {
45
+ name: 'Get',
46
+ value: 'get',
47
+ action: 'Get a support request',
48
+ description: 'Get a single support request by ID',
49
+ },
50
+ {
51
+ name: 'List All',
52
+ value: 'list',
53
+ action: 'List all support requests',
54
+ description: 'List all support requests',
55
+ },
56
+ {
57
+ name: 'My Assigned',
58
+ value: 'my_assigned',
59
+ action: 'List my assigned support requests',
60
+ description: 'List support requests assigned to me',
61
+ },
62
+ {
63
+ name: 'Reassign',
64
+ value: 'reassign',
65
+ action: 'Reassign a support request',
66
+ description: 'Reassign a support request',
67
+ },
68
+ {
69
+ name: 'Reopen',
70
+ value: 'reopen',
71
+ action: 'Reopen a support request',
72
+ description: 'Reopen a support request',
73
+ },
74
+ ],
75
+ default: 'add_comment',
76
+ },
77
+ ];
78
+ exports.supportRequestFields = [
79
+ {
80
+ displayName: 'Support Request ID',
81
+ name: 'support_request_id',
82
+ type: 'string',
83
+ required: true,
84
+ default: '',
85
+ displayOptions: {
86
+ show: {
87
+ resource: ['supportRequest'],
88
+ operation: ["get", "edit", "close", "reopen", "change_status", "reassign", "add_comment"],
89
+ },
90
+ },
91
+ },
92
+ {
93
+ displayName: 'Request Type',
94
+ name: 'request_type',
95
+ type: 'string',
96
+ required: true,
97
+ default: '',
98
+ displayOptions: {
99
+ show: {
100
+ resource: ['supportRequest'],
101
+ operation: ["create", "edit"],
102
+ },
103
+ },
104
+ },
105
+ {
106
+ displayName: 'Request Severity',
107
+ name: 'request_severity',
108
+ type: 'string',
109
+ required: true,
110
+ default: '',
111
+ displayOptions: {
112
+ show: {
113
+ resource: ['supportRequest'],
114
+ operation: ["create", "edit"],
115
+ },
116
+ },
117
+ },
118
+ {
119
+ displayName: 'Title',
120
+ name: 'title',
121
+ type: 'string',
122
+ required: true,
123
+ default: '',
124
+ displayOptions: {
125
+ show: {
126
+ resource: ['supportRequest'],
127
+ operation: ["create", "edit"],
128
+ },
129
+ },
130
+ },
131
+ {
132
+ displayName: 'Description',
133
+ name: 'description',
134
+ type: 'string',
135
+ required: true,
136
+ default: '',
137
+ displayOptions: {
138
+ show: {
139
+ resource: ['supportRequest'],
140
+ operation: ["create", "edit"],
141
+ },
142
+ },
143
+ },
144
+ {
145
+ displayName: 'Status ID',
146
+ name: 'status_id',
147
+ type: 'string',
148
+ required: true,
149
+ default: '',
150
+ displayOptions: {
151
+ show: {
152
+ resource: ['supportRequest'],
153
+ operation: ["close", "change_status"],
154
+ },
155
+ },
156
+ },
157
+ {
158
+ displayName: 'Resolution',
159
+ name: 'resolution',
160
+ type: 'options',
161
+ required: true,
162
+ options: [
163
+ { name: 'Cannot Reproduce', value: 'CANNOT_REPRODUCE' },
164
+ { name: 'Done', value: 'DONE' },
165
+ { name: 'Duplicate', value: 'DUPLICATE' },
166
+ { name: 'Expired', value: 'EXPIRED' },
167
+ { name: 'Fixed', value: 'FIXED' },
168
+ { name: 'Merged', value: 'MERGED' },
169
+ { name: 'No Longer Required', value: 'NO_LONGER_REQUIRED' },
170
+ { name: 'Not An Issue', value: 'NOT_AN_ISSUE' },
171
+ { name: 'Wont Fix', value: 'WONT_FIX' },
172
+ ],
173
+ default: 'FIXED',
174
+ displayOptions: {
175
+ show: {
176
+ resource: ['supportRequest'],
177
+ operation: ["close"],
178
+ },
179
+ },
180
+ },
181
+ {
182
+ displayName: 'Reason',
183
+ name: 'reason',
184
+ type: 'string',
185
+ required: true,
186
+ default: '',
187
+ displayOptions: {
188
+ show: {
189
+ resource: ['supportRequest'],
190
+ operation: ["close", "change_status"],
191
+ },
192
+ },
193
+ description: 'Reason for closing the support request',
194
+ },
195
+ {
196
+ displayName: 'Assignee ID',
197
+ name: 'assignee_id',
198
+ type: 'string',
199
+ required: true,
200
+ default: '',
201
+ displayOptions: {
202
+ show: {
203
+ resource: ['supportRequest'],
204
+ operation: ["reassign"],
205
+ },
206
+ },
207
+ },
208
+ {
209
+ displayName: 'Content',
210
+ name: 'content',
211
+ type: 'string',
212
+ required: true,
213
+ default: '',
214
+ displayOptions: {
215
+ show: {
216
+ resource: ['supportRequest'],
217
+ operation: ["add_comment"],
218
+ },
219
+ },
220
+ },
221
+ {
222
+ displayName: 'Parent Name or ID',
223
+ name: 'parent_id',
224
+ type: 'options',
225
+ typeOptions: {
226
+ loadOptionsMethod: 'getCustomers',
227
+ },
228
+ default: '',
229
+ displayOptions: {
230
+ show: {
231
+ resource: ['supportRequest'],
232
+ operation: ["add_comment"],
233
+ },
234
+ },
235
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
236
+ },
237
+ ];
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const tagOperations: INodeProperties[];
3
+ export declare const tagFields: INodeProperties[];
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tagFields = exports.tagOperations = void 0;
4
+ exports.tagOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: { resource: ['tag'] },
12
+ },
13
+ options: [
14
+ {
15
+ name: 'Create',
16
+ value: 'create',
17
+ action: 'Create a tag',
18
+ description: 'Create a new tag',
19
+ },
20
+ {
21
+ name: 'Delete',
22
+ value: 'delete',
23
+ action: 'Delete a tag',
24
+ description: 'Delete a tag',
25
+ },
26
+ {
27
+ name: 'List All',
28
+ value: 'list',
29
+ action: 'List all tags',
30
+ description: 'List all tags in the workspace',
31
+ },
32
+ {
33
+ name: 'Tag Customer',
34
+ value: 'tag_customer',
35
+ action: 'Tag a customer',
36
+ description: 'Attach a tag to a customer',
37
+ },
38
+ {
39
+ name: 'Tag Member',
40
+ value: 'tag_member',
41
+ action: 'Tag a team member',
42
+ description: 'Attach a tag to a team member',
43
+ },
44
+ {
45
+ name: 'Tag Operational Work Item',
46
+ value: 'tag_operational_item',
47
+ action: 'Tag an operational work item',
48
+ description: 'Attach a tag to an operational work item',
49
+ },
50
+ {
51
+ name: 'Tag Proposal',
52
+ value: 'tag_proposal',
53
+ action: 'Tag a proposal',
54
+ description: 'Attach a tag to a proposal',
55
+ },
56
+ {
57
+ name: 'Tag Resource',
58
+ value: 'tag_resource',
59
+ action: 'Tag a resource',
60
+ description: 'Attach a tag to a resource',
61
+ },
62
+ {
63
+ name: 'Tag Work Item',
64
+ value: 'tag_work_item',
65
+ action: 'Tag a work item',
66
+ description: 'Attach a tag to a project work item',
67
+ },
68
+ {
69
+ name: 'Untag Customer',
70
+ value: 'untag_customer',
71
+ action: 'Untag a customer',
72
+ description: 'Remove a tag from a customer',
73
+ },
74
+ {
75
+ name: 'Untag Member',
76
+ value: 'untag_member',
77
+ action: 'Untag a team member',
78
+ description: 'Remove a tag from a team member',
79
+ },
80
+ {
81
+ name: 'Untag Operational Work Item',
82
+ value: 'untag_operational_item',
83
+ action: 'Untag an operational work item',
84
+ description: 'Remove a tag from an operational work item',
85
+ },
86
+ {
87
+ name: 'Untag Proposal',
88
+ value: 'untag_proposal',
89
+ action: 'Untag a proposal',
90
+ description: 'Remove a tag from a proposal',
91
+ },
92
+ {
93
+ name: 'Untag Resource',
94
+ value: 'untag_resource',
95
+ action: 'Untag a resource',
96
+ description: 'Remove a tag from a resource',
97
+ },
98
+ {
99
+ name: 'Untag Work Item',
100
+ value: 'untag_work_item',
101
+ action: 'Untag a work item',
102
+ description: 'Remove a tag from a project work item',
103
+ },
104
+ {
105
+ name: 'Update',
106
+ value: 'update',
107
+ action: 'Update a tag',
108
+ description: 'Update a tag',
109
+ },
110
+ ],
111
+ default: 'create',
112
+ },
113
+ ];
114
+ exports.tagFields = [
115
+ {
116
+ displayName: 'Name',
117
+ name: 'name',
118
+ type: 'string',
119
+ required: true,
120
+ default: '',
121
+ displayOptions: {
122
+ show: {
123
+ resource: ['tag'],
124
+ operation: ["create", "update"],
125
+ },
126
+ },
127
+ },
128
+ {
129
+ displayName: 'Color',
130
+ name: 'color',
131
+ type: 'color',
132
+ required: true,
133
+ default: '',
134
+ displayOptions: {
135
+ show: {
136
+ resource: ['tag'],
137
+ operation: ["create", "update"],
138
+ },
139
+ },
140
+ },
141
+ {
142
+ displayName: 'Tag Name or ID',
143
+ name: 'tag_id',
144
+ type: 'options',
145
+ required: true,
146
+ typeOptions: {
147
+ loadOptionsMethod: 'getTags',
148
+ },
149
+ default: '',
150
+ displayOptions: {
151
+ show: {
152
+ resource: ['tag'],
153
+ operation: ["update", "delete", "tag_customer", "untag_customer", "tag_member", "untag_member", "tag_resource", "untag_resource", "tag_proposal", "untag_proposal", "tag_work_item", "untag_work_item", "tag_operational_item", "untag_operational_item"],
154
+ },
155
+ },
156
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
157
+ },
158
+ {
159
+ displayName: 'Org Name or ID',
160
+ name: 'org_id',
161
+ type: 'options',
162
+ required: true,
163
+ typeOptions: {
164
+ loadOptionsMethod: 'getCustomers',
165
+ },
166
+ default: '',
167
+ displayOptions: {
168
+ show: {
169
+ resource: ['tag'],
170
+ operation: ["tag_customer", "untag_customer"],
171
+ },
172
+ },
173
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
174
+ },
175
+ {
176
+ displayName: 'Member Name or ID',
177
+ name: 'member_id',
178
+ type: 'options',
179
+ required: true,
180
+ typeOptions: {
181
+ loadOptionsMethod: 'getMembers',
182
+ },
183
+ default: '',
184
+ displayOptions: {
185
+ show: {
186
+ resource: ['tag'],
187
+ operation: ["tag_member", "untag_member"],
188
+ },
189
+ },
190
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
191
+ },
192
+ {
193
+ displayName: 'Resource ID',
194
+ name: 'resource_id',
195
+ type: 'string',
196
+ required: true,
197
+ default: '',
198
+ displayOptions: {
199
+ show: {
200
+ resource: ['tag'],
201
+ operation: ["tag_resource", "untag_resource"],
202
+ },
203
+ },
204
+ },
205
+ {
206
+ displayName: 'Proposal Name or ID',
207
+ name: 'proposal_id',
208
+ type: 'options',
209
+ required: true,
210
+ typeOptions: {
211
+ loadOptionsMethod: 'getProposals',
212
+ },
213
+ default: '',
214
+ displayOptions: {
215
+ show: {
216
+ resource: ['tag'],
217
+ operation: ["tag_proposal", "untag_proposal"],
218
+ },
219
+ },
220
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
221
+ },
222
+ {
223
+ displayName: 'Work Item ID',
224
+ name: 'work_item_id',
225
+ type: 'string',
226
+ required: true,
227
+ default: '',
228
+ displayOptions: {
229
+ show: {
230
+ resource: ['tag'],
231
+ operation: ["tag_work_item", "untag_work_item", "tag_operational_item", "untag_operational_item"],
232
+ },
233
+ },
234
+ },
235
+ ];
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const teamMemberOperations: INodeProperties[];
3
+ export declare const teamMemberFields: INodeProperties[];
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.teamMemberFields = exports.teamMemberOperations = void 0;
4
+ exports.teamMemberOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: { resource: ['teamMember'] },
12
+ },
13
+ options: [
14
+ {
15
+ name: 'Edit',
16
+ value: 'edit',
17
+ action: 'Edit a team member',
18
+ description: 'Edit a team member\'s preferences',
19
+ },
20
+ {
21
+ name: 'Invite',
22
+ value: 'invite',
23
+ action: 'Invite a team member',
24
+ description: 'Invite someone to join the team',
25
+ },
26
+ {
27
+ name: 'List All',
28
+ value: 'list',
29
+ action: 'List all team members',
30
+ description: 'List all team members',
31
+ },
32
+ {
33
+ name: 'Remove',
34
+ value: 'remove',
35
+ action: 'Remove a team member',
36
+ description: 'Remove a member from the team',
37
+ },
38
+ ],
39
+ default: 'edit',
40
+ },
41
+ ];
42
+ exports.teamMemberFields = [
43
+ {
44
+ displayName: 'Email',
45
+ name: 'email',
46
+ type: 'string',
47
+ required: true,
48
+ placeholder: 'name@email.com',
49
+ default: '',
50
+ displayOptions: {
51
+ show: {
52
+ resource: ['teamMember'],
53
+ operation: ["invite"],
54
+ },
55
+ },
56
+ },
57
+ {
58
+ displayName: 'Member Name or ID',
59
+ name: 'member_id',
60
+ type: 'options',
61
+ required: true,
62
+ typeOptions: {
63
+ loadOptionsMethod: 'getMembers',
64
+ },
65
+ default: '',
66
+ displayOptions: {
67
+ show: {
68
+ resource: ['teamMember'],
69
+ operation: ["edit"],
70
+ },
71
+ },
72
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
73
+ },
74
+ {
75
+ displayName: 'Nickname',
76
+ name: 'nickname',
77
+ type: 'string',
78
+ required: true,
79
+ default: '',
80
+ displayOptions: {
81
+ show: {
82
+ resource: ['teamMember'],
83
+ operation: ["edit"],
84
+ },
85
+ },
86
+ },
87
+ {
88
+ displayName: 'Work Email',
89
+ name: 'work_email',
90
+ type: 'string',
91
+ default: '',
92
+ displayOptions: {
93
+ show: {
94
+ resource: ['teamMember'],
95
+ operation: ["edit"],
96
+ },
97
+ },
98
+ },
99
+ {
100
+ displayName: 'Work Email Alternative',
101
+ name: 'work_email_alternative',
102
+ type: 'string',
103
+ default: '',
104
+ displayOptions: {
105
+ show: {
106
+ resource: ['teamMember'],
107
+ operation: ["edit"],
108
+ },
109
+ },
110
+ description: 'Email address visible to customers in their portal',
111
+ },
112
+ {
113
+ displayName: 'Work Phone',
114
+ name: 'work_phone',
115
+ type: 'string',
116
+ default: '',
117
+ displayOptions: {
118
+ show: {
119
+ resource: ['teamMember'],
120
+ operation: ["edit"],
121
+ },
122
+ },
123
+ },
124
+ {
125
+ displayName: 'Work Phone Alternative',
126
+ name: 'work_phone_alternative',
127
+ type: 'string',
128
+ default: '',
129
+ displayOptions: {
130
+ show: {
131
+ resource: ['teamMember'],
132
+ operation: ["edit"],
133
+ },
134
+ },
135
+ description: 'Phone number visible to customers in their portal',
136
+ },
137
+ {
138
+ displayName: 'Territory',
139
+ name: 'territory',
140
+ type: 'string',
141
+ default: '',
142
+ displayOptions: {
143
+ show: {
144
+ resource: ['teamMember'],
145
+ operation: ["edit"],
146
+ },
147
+ },
148
+ },
149
+ {
150
+ displayName: 'Team Name or ID',
151
+ name: 'team_id',
152
+ type: 'options',
153
+ required: true,
154
+ typeOptions: {
155
+ loadOptionsMethod: 'getMembers',
156
+ },
157
+ default: '',
158
+ displayOptions: {
159
+ show: {
160
+ resource: ['teamMember'],
161
+ operation: ["remove"],
162
+ },
163
+ },
164
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
165
+ },
166
+ ];
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const webhookOperations: INodeProperties[];
3
+ export declare const webhookFields: INodeProperties[];