@mspcopilot/n8n-nodes-connectwise 0.2.1-beta.3 → 0.2.1-beta.5
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.
- package/dist-beta/credentials/ConnectWisePsaApi.credentials.js +3 -3
- package/dist-beta/nodes/ConnectWise/PSA/ConnectWisePsa.node.js +1 -1
- package/dist-beta/nodes/ConnectWise/PSA/ConnectWisePsaTrigger.node.js +4 -4
- package/dist-beta/nodes/ConnectWise/PSA/IfSchedule.node.js +3 -2
- package/dist-beta/nodes/ConnectWise/PSA/descriptions/common.descriptions.js +3 -1
- package/dist-beta/nodes/ConnectWise/PSA/descriptions/common.properties.js +3 -3
- package/dist-beta/nodes/ConnectWise/PSA/helpers/hint-collector.js +12 -3
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/activity.schema.js +12 -12
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/company.schema.js +22 -22
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/contact.schema.js +4 -4
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/custom.schema.js +1 -1
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/members.schema.js +1 -1
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/reports.schema.js +1 -1
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/ticket.schema.js +21 -21
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/ticketNote.schema.js +2 -2
- package/dist-beta/nodes/ConnectWise/PSA/schema/resources/timeEntry.schema.js +4 -4
- package/dist-beta/nodes/ConnectWise/PSA/transport/version-check.js +3 -2
- package/package.json +2 -1
|
@@ -87,7 +87,7 @@ class ConnectWisePsaApi {
|
|
|
87
87
|
name: "clientId",
|
|
88
88
|
type: "string",
|
|
89
89
|
default: "",
|
|
90
|
-
hint: 'The Client ID from your ConnectWise developer account. Create them at <a href="https://developer.connectwise.com/ClientID">https://developer.connectwise.com/ClientID</a>.',
|
|
90
|
+
hint: 'The Client ID from your ConnectWise developer account. Create them at <a href="https://developer.connectwise.com/ClientID" target="_blank">https://developer.connectwise.com/ClientID</a>.',
|
|
91
91
|
required: !0
|
|
92
92
|
}, {
|
|
93
93
|
displayName: "Public Key",
|
|
@@ -117,10 +117,10 @@ class ConnectWisePsaApi {
|
|
|
117
117
|
name: "checkForUpdates",
|
|
118
118
|
type: "boolean",
|
|
119
119
|
default: !0,
|
|
120
|
-
hint: "Current version: 0.2.1-beta.
|
|
120
|
+
hint: "Current version: 0.2.1-beta.5 (beta edition)",
|
|
121
121
|
description: "Check for new versions of this node package and show notifications when updates are available"
|
|
122
122
|
} ] : [], ...process.env.MSPCOPILOT_BETA === "true" ? [ {
|
|
123
|
-
displayName: "Current version: 0.2.1-beta.
|
|
123
|
+
displayName: "Current version: 0.2.1-beta.5 (beta)",
|
|
124
124
|
name: "versionInfo",
|
|
125
125
|
type: "notice",
|
|
126
126
|
default: ""
|
|
@@ -85,7 +85,7 @@ const resources = {
|
|
|
85
85
|
|
|
86
86
|
class ConnectWisePsa {
|
|
87
87
|
constructor() {
|
|
88
|
-
console.log(`🔌 ConnectWise PSA Node Loaded | 📦 v0.2.1-beta.
|
|
88
|
+
console.log(`🔌 ConnectWise PSA Node Loaded | 📦 v0.2.1-beta.5 | 🏗️ Build: ${"beta".toUpperCase()} (${"prod".toUpperCase()} mode)`);
|
|
89
89
|
}
|
|
90
90
|
description={
|
|
91
91
|
displayName: "ConnectWise PSA",
|
|
@@ -232,7 +232,7 @@ class ConnectWisePsaTrigger {
|
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
default: [],
|
|
235
|
-
description: 'Filter by boards. Leave empty for all boards. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.'
|
|
235
|
+
description: 'Filter by boards. Leave empty for all boards. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.'
|
|
236
236
|
}, {
|
|
237
237
|
displayName: "Status Names or IDs",
|
|
238
238
|
name: "statusIds",
|
|
@@ -247,7 +247,7 @@ class ConnectWisePsaTrigger {
|
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
default: [],
|
|
250
|
-
description: 'Filter by statuses (select boards first to filter). Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.'
|
|
250
|
+
description: 'Filter by statuses (select boards first to filter). Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.'
|
|
251
251
|
}, {
|
|
252
252
|
displayName: "Priority Names or IDs",
|
|
253
253
|
name: "priorityIds",
|
|
@@ -261,7 +261,7 @@ class ConnectWisePsaTrigger {
|
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
263
|
default: [],
|
|
264
|
-
description: 'Filter by priorities. Leave empty for all priorities. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.'
|
|
264
|
+
description: 'Filter by priorities. Leave empty for all priorities. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.'
|
|
265
265
|
}, {
|
|
266
266
|
displayName: "Source Names or IDs",
|
|
267
267
|
name: "sourceIds",
|
|
@@ -275,7 +275,7 @@ class ConnectWisePsaTrigger {
|
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
default: [],
|
|
278
|
-
description: 'Filter by ticket sources. Leave empty for all sources. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.'
|
|
278
|
+
description: 'Filter by ticket sources. Leave empty for all sources. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.'
|
|
279
279
|
}, {
|
|
280
280
|
displayName: "Timing Conditions",
|
|
281
281
|
name: "timingConditions",
|
|
@@ -132,6 +132,7 @@ const WINDOWS_TO_IANA_TIMEZONE = {
|
|
|
132
132
|
|
|
133
133
|
class IfSchedule {
|
|
134
134
|
description={
|
|
135
|
+
hidden: process.env.MSPCOPILOT_BETA !== "true",
|
|
135
136
|
displayName: "If ConnectWise Schedule ✨",
|
|
136
137
|
name: "ifConnectWiseSchedule",
|
|
137
138
|
icon: {
|
|
@@ -160,7 +161,7 @@ class IfSchedule {
|
|
|
160
161
|
loadOptionsMethod: "loadOptions_schedule_calendars"
|
|
161
162
|
},
|
|
162
163
|
default: "",
|
|
163
|
-
description: 'Select the business hours calendar to check against. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.'
|
|
164
|
+
description: 'Select the business hours calendar to check against. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.'
|
|
164
165
|
}, {
|
|
165
166
|
displayName: "Time Zone Name or ID",
|
|
166
167
|
name: "timeZoneSetupId",
|
|
@@ -170,7 +171,7 @@ class IfSchedule {
|
|
|
170
171
|
loadOptionsMethod: "loadTimeZoneOptions"
|
|
171
172
|
},
|
|
172
173
|
default: "",
|
|
173
|
-
description: 'Select the time zone for interpreting the calendar business hours. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.'
|
|
174
|
+
description: 'Select the time zone for interpreting the calendar business hours. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.'
|
|
174
175
|
}, {
|
|
175
176
|
displayName: "Check Day Only",
|
|
176
177
|
name: "checkDateOnly",
|
|
@@ -29,6 +29,7 @@ __export(common_descriptions_exports, {
|
|
|
29
29
|
CHANGELOG_URL: () => CHANGELOG_URL,
|
|
30
30
|
DOCURL_PREFIX: () => DOCURL_PREFIX,
|
|
31
31
|
DOCURL_SUFFIX: () => DOCURL_SUFFIX,
|
|
32
|
+
PACKAGE_NAME: () => PACKAGE_NAME,
|
|
32
33
|
SUPPORTER_URL: () => SUPPORTER_URL,
|
|
33
34
|
VERSION_CHECK_CACHE_TTL: () => VERSION_CHECK_CACHE_TTL,
|
|
34
35
|
VERSION_CHECK_URL: () => VERSION_CHECK_URL
|
|
@@ -36,12 +37,13 @@ __export(common_descriptions_exports, {
|
|
|
36
37
|
|
|
37
38
|
module.exports = __toCommonJS(common_descriptions_exports);
|
|
38
39
|
|
|
39
|
-
const DOCURL_PREFIX = "mspcopilot.io/docs/n8n-nodes-connectwise", DOCURL_SUFFIX = "?utm_source=n8n_node_connectwise", CHANGELOG_URL = "mspcopilot.io/changelog${DOCURL_SUFFIX}", SUPPORTER_URL = "mspcopilot.io/support?utm_source=n8n", VERSION_CHECK_URL = "https://api.mspcopilot.io/version-check/n8n-nodes-connectwise", VERSION_CHECK_CACHE_TTL = 36e5;
|
|
40
|
+
const DOCURL_PREFIX = "mspcopilot.io/docs/n8n-nodes-connectwise", DOCURL_SUFFIX = "?utm_source=n8n_node_connectwise", PACKAGE_NAME = "@mspcopilot/n8n-nodes-connectwise", CHANGELOG_URL = "mspcopilot.io/changelog${DOCURL_SUFFIX}", SUPPORTER_URL = "mspcopilot.io/support?utm_source=n8n", VERSION_CHECK_URL = "https://api.mspcopilot.io/version-check/n8n-nodes-connectwise", VERSION_CHECK_CACHE_TTL = 36e5;
|
|
40
41
|
|
|
41
42
|
0 && (module.exports = {
|
|
42
43
|
CHANGELOG_URL: CHANGELOG_URL,
|
|
43
44
|
DOCURL_PREFIX: DOCURL_PREFIX,
|
|
44
45
|
DOCURL_SUFFIX: DOCURL_SUFFIX,
|
|
46
|
+
PACKAGE_NAME: PACKAGE_NAME,
|
|
45
47
|
SUPPORTER_URL: SUPPORTER_URL,
|
|
46
48
|
VERSION_CHECK_CACHE_TTL: VERSION_CHECK_CACHE_TTL,
|
|
47
49
|
VERSION_CHECK_URL: VERSION_CHECK_URL
|
|
@@ -157,7 +157,7 @@ const additionalFieldsProperty = {
|
|
|
157
157
|
default: "",
|
|
158
158
|
placeholder: 'e.g. name like "Acme%"',
|
|
159
159
|
description: "Filter conditions using ConnectWise query syntax",
|
|
160
|
-
hint: `Use <a href="https://${import_common.DOCURL_PREFIX}/conditions${import_common.DOCURL_SUFFIX}">ConnectWise query syntax</a> for filtering results`
|
|
160
|
+
hint: `Use <a href="https://${import_common.DOCURL_PREFIX}/conditions${import_common.DOCURL_SUFFIX}" target="_blank">ConnectWise query syntax</a> for filtering results`
|
|
161
161
|
},
|
|
162
162
|
fields: {
|
|
163
163
|
displayName: "Field Names",
|
|
@@ -167,7 +167,7 @@ const additionalFieldsProperty = {
|
|
|
167
167
|
loadOptionsMethod: "loadFieldsOptions"
|
|
168
168
|
},
|
|
169
169
|
default: [],
|
|
170
|
-
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
170
|
+
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
171
171
|
hint: "Limit the output to reduce n8n load. *In Schema but not seen in API †Found in API only"
|
|
172
172
|
},
|
|
173
173
|
orderBy: {
|
|
@@ -178,7 +178,7 @@ const additionalFieldsProperty = {
|
|
|
178
178
|
loadOptionsMethod: "loadOrderByFieldsOptions"
|
|
179
179
|
},
|
|
180
180
|
default: "",
|
|
181
|
-
description: 'Choose from the list, or specify a field name using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
181
|
+
description: 'Choose from the list, or specify a field name using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
182
182
|
hint: "Select a field to sort the results by"
|
|
183
183
|
},
|
|
184
184
|
descending: {
|
|
@@ -59,7 +59,7 @@ const HINT_TYPES = {
|
|
|
59
59
|
},
|
|
60
60
|
cache_upgrade: {
|
|
61
61
|
aggregate: "dedupe",
|
|
62
|
-
template: () => `✨ Caching is available for supporters only. Learn more at <a href="https://${import_common.SUPPORTER_URL}">${import_common.SUPPORTER_URL.split("?")[0]}</a>`
|
|
62
|
+
template: () => `✨ Caching is available for supporters only. Learn more at <a href="https://${import_common.SUPPORTER_URL}" target="_blank">${import_common.SUPPORTER_URL.split("?")[0]}</a>`
|
|
63
63
|
},
|
|
64
64
|
cache_error: {
|
|
65
65
|
aggregate: "dedupe",
|
|
@@ -70,13 +70,22 @@ const HINT_TYPES = {
|
|
|
70
70
|
aggregate: "dedupe",
|
|
71
71
|
template: data => `🎉 ConnectWise PSA Node v${data.version} is available! <a href="https://${import_common.CHANGELOG_URL}" target="_blank">View changelog</a>` + (data.message ? `<br>${data.message}` : "")
|
|
72
72
|
},
|
|
73
|
+
beta_downgrade: {
|
|
74
|
+
aggregate: "dedupe",
|
|
75
|
+
type: "warning",
|
|
76
|
+
template: () => `You have <code>MSPCOPILOT_BETA=true</code> set, but you're running a stable build. Beta features are not available. You may have been silently downgraded by n8n's "update available" prompt.<br><br>To reinstall the beta, go to <b>Settings > Community Nodes</b>, uninstall this node, then install:<br><br><code>${import_common.PACKAGE_NAME}@beta</code><br><br>See the <a href="https://${import_common.DOCURL_PREFIX}/beta-upgrade${import_common.DOCURL_SUFFIX}" target="_blank">beta upgrade guide</a> for details.`
|
|
77
|
+
},
|
|
78
|
+
beta_update: {
|
|
79
|
+
aggregate: "dedupe",
|
|
80
|
+
template: data => `🎉 ConnectWise PSA Node v${data.version} is available! To upgrade, go to <b>Settings > Community Nodes</b>, uninstall this node, then install:<br><br><code>${import_common.PACKAGE_NAME}@${data.version}</code><br><br>See the <a href="https://${import_common.DOCURL_PREFIX}/beta-upgrade${import_common.DOCURL_SUFFIX}" target="_blank">beta upgrade guide</a> for details.` + (data.message ? `<br>${data.message}` : "")
|
|
81
|
+
},
|
|
73
82
|
pro_upgrade: {
|
|
74
83
|
aggregate: "dedupe",
|
|
75
|
-
template: () => `✨ This helpful feature is available to supporters. See <a href="https://${import_common.SUPPORTER_URL}">${import_common.SUPPORTER_URL.split("?")[0]}</a> for other benefits.<br><br><hr><br>Simplify and speed up your development with these other functions. <ul><li>Smart Alert Consolidation</li><li>Reports</li><li>Ticket Management</li></ul>`
|
|
84
|
+
template: () => `✨ This helpful feature is available to supporters. See <a href="https://${import_common.SUPPORTER_URL}" target="_blank">${import_common.SUPPORTER_URL.split("?")[0]}</a> for other benefits.<br><br><hr><br>Simplify and speed up your development with these other functions. <ul><li>Smart Alert Consolidation</li><li>Reports</li><li>Ticket Management</li></ul>`
|
|
76
85
|
},
|
|
77
86
|
accesskey_valid: {
|
|
78
87
|
aggregate: "dedupe",
|
|
79
|
-
template: () => '🔑 Beta Feature. Please contact <a href="mailto:dan.buhler@mspcopilot.io?subject=n8n-nodes-connectwise%20Beta%20Feedback">dan.buhler@mspcopilot.io</a> with your feedback'
|
|
88
|
+
template: () => '🔑 Beta Feature. Please contact <a href="mailto:dan.buhler@mspcopilot.io?subject=n8n-nodes-connectwise%20Beta%20Feedback" target="_blank">dan.buhler@mspcopilot.io</a> with your feedback'
|
|
80
89
|
},
|
|
81
90
|
accesskey_missing_feature: {
|
|
82
91
|
aggregate: "dedupe",
|
|
@@ -104,7 +104,7 @@ const activityFields = [ {
|
|
|
104
104
|
type: "options",
|
|
105
105
|
x_requiredOnCreate: !0,
|
|
106
106
|
default: "",
|
|
107
|
-
description: 'Member to assign the activity to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
107
|
+
description: 'Member to assign the activity to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
108
108
|
displayOptions: {
|
|
109
109
|
show: {
|
|
110
110
|
operation: [ "create", "update" ]
|
|
@@ -119,7 +119,7 @@ const activityFields = [ {
|
|
|
119
119
|
name: "type",
|
|
120
120
|
type: "options",
|
|
121
121
|
default: "",
|
|
122
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
122
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
123
123
|
displayOptions: {
|
|
124
124
|
show: {
|
|
125
125
|
operation: [ "create", "update" ]
|
|
@@ -134,7 +134,7 @@ const activityFields = [ {
|
|
|
134
134
|
name: "status",
|
|
135
135
|
type: "options",
|
|
136
136
|
default: "",
|
|
137
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
137
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
138
138
|
displayOptions: {
|
|
139
139
|
show: {
|
|
140
140
|
operation: [ "create", "update" ]
|
|
@@ -201,7 +201,7 @@ const activityFields = [ {
|
|
|
201
201
|
name: "company",
|
|
202
202
|
type: "options",
|
|
203
203
|
default: "",
|
|
204
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
204
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
205
205
|
displayOptions: {
|
|
206
206
|
show: {
|
|
207
207
|
operation: [ "create", "update" ]
|
|
@@ -216,7 +216,7 @@ const activityFields = [ {
|
|
|
216
216
|
name: "contact",
|
|
217
217
|
type: "options",
|
|
218
218
|
default: "",
|
|
219
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
219
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
220
220
|
displayOptions: {
|
|
221
221
|
show: {
|
|
222
222
|
operation: [ "create", "update" ]
|
|
@@ -261,7 +261,7 @@ const activityFields = [ {
|
|
|
261
261
|
name: "assignedBy",
|
|
262
262
|
type: "options",
|
|
263
263
|
default: "",
|
|
264
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
264
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
265
265
|
displayOptions: {
|
|
266
266
|
show: {
|
|
267
267
|
operation: [ "create", "update" ]
|
|
@@ -276,7 +276,7 @@ const activityFields = [ {
|
|
|
276
276
|
name: "scheduleStatus",
|
|
277
277
|
type: "options",
|
|
278
278
|
default: "",
|
|
279
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
279
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
280
280
|
displayOptions: {
|
|
281
281
|
show: {
|
|
282
282
|
operation: [ "create", "update" ]
|
|
@@ -291,7 +291,7 @@ const activityFields = [ {
|
|
|
291
291
|
name: "reminder",
|
|
292
292
|
type: "options",
|
|
293
293
|
default: "",
|
|
294
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
294
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
295
295
|
displayOptions: {
|
|
296
296
|
show: {
|
|
297
297
|
operation: [ "create", "update" ]
|
|
@@ -306,7 +306,7 @@ const activityFields = [ {
|
|
|
306
306
|
name: "where",
|
|
307
307
|
type: "options",
|
|
308
308
|
default: "",
|
|
309
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
309
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
310
310
|
displayOptions: {
|
|
311
311
|
show: {
|
|
312
312
|
operation: [ "create", "update" ]
|
|
@@ -332,7 +332,7 @@ const activityFields = [ {
|
|
|
332
332
|
name: "opportunity",
|
|
333
333
|
type: "options",
|
|
334
334
|
default: "",
|
|
335
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
335
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
336
336
|
typeOptions: {
|
|
337
337
|
loadOptionsMethod: "loadOptions_sales_opportunities",
|
|
338
338
|
loadOptionsDependsOn: [ "company" ]
|
|
@@ -350,7 +350,7 @@ const activityFields = [ {
|
|
|
350
350
|
name: "agreement",
|
|
351
351
|
type: "options",
|
|
352
352
|
default: "",
|
|
353
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
353
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
354
354
|
typeOptions: {
|
|
355
355
|
loadOptionsMethod: "loadOptions_finance_agreements",
|
|
356
356
|
loadOptionsDependsOn: [ "company" ]
|
|
@@ -361,7 +361,7 @@ const activityFields = [ {
|
|
|
361
361
|
name: "campaign",
|
|
362
362
|
type: "options",
|
|
363
363
|
default: "",
|
|
364
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
364
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
365
365
|
typeOptions: {
|
|
366
366
|
loadOptionsMethod: "loadOptions_marketing_campaigns"
|
|
367
367
|
},
|
|
@@ -92,7 +92,7 @@ const companyFields = [ {
|
|
|
92
92
|
mode: "id",
|
|
93
93
|
value: ""
|
|
94
94
|
},
|
|
95
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
95
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
96
96
|
displayOptions: {
|
|
97
97
|
show: {
|
|
98
98
|
operation: [ "get" ]
|
|
@@ -167,7 +167,7 @@ const companyFields = [ {
|
|
|
167
167
|
displayName: "Company Status",
|
|
168
168
|
name: "status",
|
|
169
169
|
type: "options",
|
|
170
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
170
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
171
171
|
default: "",
|
|
172
172
|
displayOptions: {
|
|
173
173
|
show: {
|
|
@@ -183,7 +183,7 @@ const companyFields = [ {
|
|
|
183
183
|
name: "types",
|
|
184
184
|
type: "multiOptions",
|
|
185
185
|
default: [],
|
|
186
|
-
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
186
|
+
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
187
187
|
hint: "This will replace all existing types",
|
|
188
188
|
displayOptions: {
|
|
189
189
|
show: {
|
|
@@ -199,7 +199,7 @@ const companyFields = [ {
|
|
|
199
199
|
name: "country",
|
|
200
200
|
type: "options",
|
|
201
201
|
default: "",
|
|
202
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
202
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
203
203
|
displayOptions: {
|
|
204
204
|
show: {
|
|
205
205
|
operation: [ "create", "update" ]
|
|
@@ -214,7 +214,7 @@ const companyFields = [ {
|
|
|
214
214
|
name: "state",
|
|
215
215
|
type: "options",
|
|
216
216
|
default: "",
|
|
217
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
217
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
218
218
|
displayOptions: {
|
|
219
219
|
show: {
|
|
220
220
|
operation: [ "create", "update" ]
|
|
@@ -279,7 +279,7 @@ const companyFields = [ {
|
|
|
279
279
|
name: "timeZoneSetupId",
|
|
280
280
|
type: "options",
|
|
281
281
|
default: "",
|
|
282
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
282
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
283
283
|
typeOptions: {
|
|
284
284
|
loadOptionsMethod: "loadOptions_system_timeZoneSetups"
|
|
285
285
|
},
|
|
@@ -411,7 +411,7 @@ const companyFields = [ {
|
|
|
411
411
|
displayName: "SIC Code",
|
|
412
412
|
name: "sicCode",
|
|
413
413
|
type: "options",
|
|
414
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
414
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
415
415
|
default: "",
|
|
416
416
|
typeOptions: {
|
|
417
417
|
loadOptionsMethod: "loadOptions_company_sicCodes"
|
|
@@ -421,7 +421,7 @@ const companyFields = [ {
|
|
|
421
421
|
displayName: "Parent Company",
|
|
422
422
|
name: "parentCompany",
|
|
423
423
|
type: "options",
|
|
424
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
424
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
425
425
|
default: "",
|
|
426
426
|
typeOptions: {
|
|
427
427
|
loadOptionsMethod: "loadOptions_company_companies"
|
|
@@ -431,7 +431,7 @@ const companyFields = [ {
|
|
|
431
431
|
displayName: "Ownership Type",
|
|
432
432
|
name: "ownershipType",
|
|
433
433
|
type: "options",
|
|
434
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
434
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
435
435
|
default: "",
|
|
436
436
|
typeOptions: {
|
|
437
437
|
loadOptionsMethod: "loadOptions_company_ownershipTypes"
|
|
@@ -493,7 +493,7 @@ const companyFields = [ {
|
|
|
493
493
|
name: "territory",
|
|
494
494
|
type: "options",
|
|
495
495
|
default: "",
|
|
496
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
496
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
497
497
|
typeOptions: {
|
|
498
498
|
loadOptionsMethod: "loadOptions_system_locations"
|
|
499
499
|
},
|
|
@@ -503,7 +503,7 @@ const companyFields = [ {
|
|
|
503
503
|
name: "market",
|
|
504
504
|
type: "options",
|
|
505
505
|
default: "",
|
|
506
|
-
description: 'Market classification. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
506
|
+
description: 'Market classification. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
507
507
|
typeOptions: {
|
|
508
508
|
loadOptionsMethod: "loadOptions_company_marketDescriptions"
|
|
509
509
|
},
|
|
@@ -512,7 +512,7 @@ const companyFields = [ {
|
|
|
512
512
|
displayName: "Territory Manager",
|
|
513
513
|
name: "territoryManager",
|
|
514
514
|
type: "options",
|
|
515
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
515
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
516
516
|
default: "",
|
|
517
517
|
typeOptions: {
|
|
518
518
|
loadOptionsMethod: "loadOptions_system_members"
|
|
@@ -523,7 +523,7 @@ const companyFields = [ {
|
|
|
523
523
|
name: "calendar",
|
|
524
524
|
type: "options",
|
|
525
525
|
default: "",
|
|
526
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
526
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
527
527
|
typeOptions: {
|
|
528
528
|
loadOptionsMethod: "loadOptions_schedule_calendars"
|
|
529
529
|
},
|
|
@@ -557,7 +557,7 @@ const companyFields = [ {
|
|
|
557
557
|
name: "taxCode",
|
|
558
558
|
type: "options",
|
|
559
559
|
default: "",
|
|
560
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
560
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
561
561
|
typeOptions: {
|
|
562
562
|
loadOptionsMethod: "loadOptions_finance_taxCodes"
|
|
563
563
|
},
|
|
@@ -567,7 +567,7 @@ const companyFields = [ {
|
|
|
567
567
|
name: "billingTerms",
|
|
568
568
|
type: "options",
|
|
569
569
|
default: "",
|
|
570
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
570
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
571
571
|
typeOptions: {
|
|
572
572
|
loadOptionsMethod: "loadOptions_finance_billingTerms"
|
|
573
573
|
},
|
|
@@ -577,7 +577,7 @@ const companyFields = [ {
|
|
|
577
577
|
name: "invoiceTemplate",
|
|
578
578
|
type: "options",
|
|
579
579
|
default: "",
|
|
580
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
580
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
581
581
|
typeOptions: {
|
|
582
582
|
loadOptionsMethod: "loadOptions_finance_invoiceTemplates"
|
|
583
583
|
},
|
|
@@ -587,7 +587,7 @@ const companyFields = [ {
|
|
|
587
587
|
name: "pricingSchedule",
|
|
588
588
|
type: "options",
|
|
589
589
|
default: "",
|
|
590
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
590
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
591
591
|
typeOptions: {
|
|
592
592
|
loadOptionsMethod: "loadOptions_procurement_pricingSchedules"
|
|
593
593
|
},
|
|
@@ -597,7 +597,7 @@ const companyFields = [ {
|
|
|
597
597
|
name: "companyEntityType",
|
|
598
598
|
type: "options",
|
|
599
599
|
default: "",
|
|
600
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
600
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
601
601
|
typeOptions: {
|
|
602
602
|
loadOptionsMethod: "loadOptions_company_entityTypes"
|
|
603
603
|
},
|
|
@@ -607,7 +607,7 @@ const companyFields = [ {
|
|
|
607
607
|
name: "billToCompany",
|
|
608
608
|
type: "options",
|
|
609
609
|
default: "",
|
|
610
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
610
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
611
611
|
typeOptions: {
|
|
612
612
|
loadOptionsMethod: "loadOptions_company_companies"
|
|
613
613
|
},
|
|
@@ -617,7 +617,7 @@ const companyFields = [ {
|
|
|
617
617
|
name: "billingSite",
|
|
618
618
|
type: "options",
|
|
619
619
|
default: "",
|
|
620
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
620
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
621
621
|
typeOptions: {
|
|
622
622
|
loadOptionsMethod: "loadOptions_company_sites"
|
|
623
623
|
},
|
|
@@ -634,7 +634,7 @@ const companyFields = [ {
|
|
|
634
634
|
name: "invoiceDeliveryMethod",
|
|
635
635
|
type: "options",
|
|
636
636
|
default: "",
|
|
637
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
637
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
638
638
|
typeOptions: {
|
|
639
639
|
loadOptionsMethod: "loadOptions_finance_invoiceDeliveryMethods"
|
|
640
640
|
},
|
|
@@ -658,7 +658,7 @@ const companyFields = [ {
|
|
|
658
658
|
name: "currency",
|
|
659
659
|
type: "options",
|
|
660
660
|
default: "",
|
|
661
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
661
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
662
662
|
typeOptions: {
|
|
663
663
|
loadOptionsMethod: "loadOptions_finance_currencies"
|
|
664
664
|
},
|
|
@@ -112,7 +112,7 @@ const contactFields = [ {
|
|
|
112
112
|
name: "companyId",
|
|
113
113
|
type: "options",
|
|
114
114
|
x_requiredOnCreate: !0,
|
|
115
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
|
115
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/" target="_blank">expression</a>',
|
|
116
116
|
default: "",
|
|
117
117
|
typeOptions: {
|
|
118
118
|
loadOptionsMethod: "loadOptions_company_companies",
|
|
@@ -189,7 +189,7 @@ const contactFields = [ {
|
|
|
189
189
|
displayName: "Types",
|
|
190
190
|
name: "typeIds",
|
|
191
191
|
type: "multiOptions",
|
|
192
|
-
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
|
192
|
+
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/" target="_blank">expression</a>',
|
|
193
193
|
default: [],
|
|
194
194
|
typeOptions: {
|
|
195
195
|
loadOptionsMethod: "loadOptions_contact_types"
|
|
@@ -230,7 +230,7 @@ const contactFields = [ {
|
|
|
230
230
|
displayName: "Site ID",
|
|
231
231
|
name: "siteId",
|
|
232
232
|
type: "options",
|
|
233
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
|
233
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/" target="_blank">expression</a>',
|
|
234
234
|
default: "",
|
|
235
235
|
typeOptions: {
|
|
236
236
|
loadOptionsMethod: "loadOptions_company_companies_sites",
|
|
@@ -241,7 +241,7 @@ const contactFields = [ {
|
|
|
241
241
|
displayName: "Department ID",
|
|
242
242
|
name: "departmentId",
|
|
243
243
|
type: "options",
|
|
244
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
|
244
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/" target="_blank">expression</a>',
|
|
245
245
|
default: "",
|
|
246
246
|
typeOptions: {
|
|
247
247
|
loadOptionsMethod: "loadOptions_contact_departments"
|
|
@@ -82,7 +82,7 @@ const customFields = [ {
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
default: "",
|
|
85
|
-
hint: `View list of endpoints in the <a href="https://${import_common2.DOCURL_PREFIX}/connectwise-api">documentation</a>`,
|
|
85
|
+
hint: `View list of endpoints in the <a href="https://${import_common2.DOCURL_PREFIX}/connectwise-api" target="_blank">documentation</a>`,
|
|
86
86
|
placeholder: "e.g., /company/companies/:id or https://api.connectwise.com/...",
|
|
87
87
|
description: "The API endpoint. Can be a full URL or a partial path. Include any parameters like the ID directly in the URL."
|
|
88
88
|
}, ...process.env.MSPCOPILOT_BETA === "true" ? [ {
|
|
@@ -219,7 +219,7 @@ const membersFields = [ {
|
|
|
219
219
|
name: "timeZone",
|
|
220
220
|
type: "options",
|
|
221
221
|
default: "",
|
|
222
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
222
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
223
223
|
typeOptions: {
|
|
224
224
|
loadOptionsMethod: "loadOptions_system_timeZones"
|
|
225
225
|
},
|
|
@@ -141,7 +141,7 @@ const reportsFields = [ {
|
|
|
141
141
|
loadOptionsMethod: "loadReportColumns",
|
|
142
142
|
loadOptionsDependsOn: [ "reportName" ]
|
|
143
143
|
},
|
|
144
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Leave empty to return all columns.'
|
|
144
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>. Leave empty to return all columns.'
|
|
145
145
|
},
|
|
146
146
|
orderBy: {
|
|
147
147
|
type: "string",
|
|
@@ -161,7 +161,7 @@ const ticketFields = [ {
|
|
|
161
161
|
mode: "list",
|
|
162
162
|
value: ""
|
|
163
163
|
},
|
|
164
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
164
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
165
165
|
displayOptions: {
|
|
166
166
|
show: {
|
|
167
167
|
operation: [ "create", "update" ],
|
|
@@ -187,7 +187,7 @@ const ticketFields = [ {
|
|
|
187
187
|
name: "board",
|
|
188
188
|
type: "options",
|
|
189
189
|
default: "",
|
|
190
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
190
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
191
191
|
typeOptions: {
|
|
192
192
|
loadOptionsMethod: "loadOptions_service_boards",
|
|
193
193
|
loadOptionsDependsOn: [ "ticketType" ]
|
|
@@ -204,7 +204,7 @@ const ticketFields = [ {
|
|
|
204
204
|
name: "project",
|
|
205
205
|
type: "options",
|
|
206
206
|
default: "",
|
|
207
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
207
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
208
208
|
typeOptions: {
|
|
209
209
|
loadOptionsMethod: "loadOptions_project_projects"
|
|
210
210
|
},
|
|
@@ -220,7 +220,7 @@ const ticketFields = [ {
|
|
|
220
220
|
type: "options",
|
|
221
221
|
required: !0,
|
|
222
222
|
default: "",
|
|
223
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
223
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
224
224
|
typeOptions: {
|
|
225
225
|
loadOptionsMethod: "loadOptions_project_projects_phases",
|
|
226
226
|
loadOptionsDependsOn: [ "project" ]
|
|
@@ -241,7 +241,7 @@ const ticketFields = [ {
|
|
|
241
241
|
name: "phase",
|
|
242
242
|
type: "options",
|
|
243
243
|
default: "",
|
|
244
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
244
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
245
245
|
typeOptions: {
|
|
246
246
|
loadOptionsMethod: "loadOptions_project_projects_phases",
|
|
247
247
|
loadOptionsDependsOn: [ "project" ]
|
|
@@ -262,7 +262,7 @@ const ticketFields = [ {
|
|
|
262
262
|
name: "status",
|
|
263
263
|
type: "options",
|
|
264
264
|
default: "",
|
|
265
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
265
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
266
266
|
typeOptions: {
|
|
267
267
|
loadOptionsMethod: "loadOptions_service_boards_statuses",
|
|
268
268
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -283,7 +283,7 @@ const ticketFields = [ {
|
|
|
283
283
|
name: "priority",
|
|
284
284
|
type: "options",
|
|
285
285
|
default: "",
|
|
286
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
286
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
287
287
|
typeOptions: {
|
|
288
288
|
loadOptionsMethod: "loadOptions_service_priorities"
|
|
289
289
|
},
|
|
@@ -298,7 +298,7 @@ const ticketFields = [ {
|
|
|
298
298
|
name: "type",
|
|
299
299
|
type: "options",
|
|
300
300
|
default: "",
|
|
301
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
301
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
302
302
|
typeOptions: {
|
|
303
303
|
loadOptionsMethod: "loadOptions_service_boards_types",
|
|
304
304
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -320,7 +320,7 @@ const ticketFields = [ {
|
|
|
320
320
|
type: "options",
|
|
321
321
|
default: "",
|
|
322
322
|
hint: "Ensure the Type, SubType, and Item combo you select is valid.",
|
|
323
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
323
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
324
324
|
typeOptions: {
|
|
325
325
|
loadOptionsMethod: "loadOptions_service_boards_subtypes",
|
|
326
326
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -341,7 +341,7 @@ const ticketFields = [ {
|
|
|
341
341
|
name: "item",
|
|
342
342
|
type: "options",
|
|
343
343
|
default: "",
|
|
344
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
344
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
345
345
|
typeOptions: {
|
|
346
346
|
loadOptionsMethod: "loadOptions_service_boards_items",
|
|
347
347
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -401,7 +401,7 @@ const ticketFields = [ {
|
|
|
401
401
|
name: "serviceLocation",
|
|
402
402
|
type: "options",
|
|
403
403
|
default: "",
|
|
404
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
404
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
405
405
|
typeOptions: {
|
|
406
406
|
loadOptionsMethod: "loadOptions_service_locations",
|
|
407
407
|
loadOptionsDependsOn: [ "company" ]
|
|
@@ -419,7 +419,7 @@ const ticketFields = [ {
|
|
|
419
419
|
name: "workRole",
|
|
420
420
|
type: "options",
|
|
421
421
|
default: "",
|
|
422
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
422
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
423
423
|
typeOptions: {
|
|
424
424
|
loadOptionsMethod: "loadOptions_time_workRoles",
|
|
425
425
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -430,7 +430,7 @@ const ticketFields = [ {
|
|
|
430
430
|
name: "workType",
|
|
431
431
|
type: "options",
|
|
432
432
|
default: "",
|
|
433
|
-
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
433
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>',
|
|
434
434
|
typeOptions: {
|
|
435
435
|
loadOptionsMethod: "loadOptions_time_workTypes",
|
|
436
436
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -513,7 +513,7 @@ const ticketFields = [ {
|
|
|
513
513
|
}
|
|
514
514
|
}, ...process.env.MSPCOPILOT_BETA === "true" ? [ (0, import_common.getCustomFieldsProperty)("service_tickets") ] : [], ...(0,
|
|
515
515
|
import_common.getCommonFields)(), {
|
|
516
|
-
displayName: `New to Smart Alert Consolidation? Start with the <a href="https://${import_common2.DOCURL_PREFIX}/smart-alert-consolidation${import_common2.DOCURL_SUFFIX}">setup guide</a> for a walkthrough of all options.`,
|
|
516
|
+
displayName: `New to Smart Alert Consolidation? Start with the <a href="https://${import_common2.DOCURL_PREFIX}/smart-alert-consolidation${import_common2.DOCURL_SUFFIX}" target="_blank">setup guide</a> for a walkthrough of all options.`,
|
|
517
517
|
name: "smartAlertConsolidationNotice",
|
|
518
518
|
type: "notice",
|
|
519
519
|
default: "",
|
|
@@ -528,7 +528,7 @@ import_common.getCommonFields)(), {
|
|
|
528
528
|
type: "options",
|
|
529
529
|
required: !0,
|
|
530
530
|
default: "",
|
|
531
|
-
description: 'Company to associate with the alert. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
531
|
+
description: 'Company to associate with the alert. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
532
532
|
typeOptions: {
|
|
533
533
|
loadOptionsMethod: "loadOptions_company_companies"
|
|
534
534
|
},
|
|
@@ -587,7 +587,7 @@ import_common.getCommonFields)(), {
|
|
|
587
587
|
type: "options",
|
|
588
588
|
required: !0,
|
|
589
589
|
default: "",
|
|
590
|
-
description: 'Service board for the ticket. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
590
|
+
description: 'Service board for the ticket. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
591
591
|
typeOptions: {
|
|
592
592
|
loadOptionsMethod: "loadOptions_service_boards"
|
|
593
593
|
},
|
|
@@ -602,7 +602,7 @@ import_common.getCommonFields)(), {
|
|
|
602
602
|
name: "failStatus",
|
|
603
603
|
type: "options",
|
|
604
604
|
default: "",
|
|
605
|
-
description: 'Status to set when alert fails. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
605
|
+
description: 'Status to set when alert fails. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
606
606
|
typeOptions: {
|
|
607
607
|
loadOptionsMethod: "loadOptions_service_boards_statuses",
|
|
608
608
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -623,7 +623,7 @@ import_common.getCommonFields)(), {
|
|
|
623
623
|
name: "successStatus",
|
|
624
624
|
type: "options",
|
|
625
625
|
default: "",
|
|
626
|
-
description: 'Status to set when alert succeeds. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
626
|
+
description: 'Status to set when alert succeeds. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
627
627
|
typeOptions: {
|
|
628
628
|
loadOptionsMethod: "loadOptions_service_boards_statuses",
|
|
629
629
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -644,7 +644,7 @@ import_common.getCommonFields)(), {
|
|
|
644
644
|
name: "priority",
|
|
645
645
|
type: "options",
|
|
646
646
|
default: "",
|
|
647
|
-
description: 'Priority for new tickets. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. You may also specify a priority name for a case-insensitive lookup.',
|
|
647
|
+
description: 'Priority for new tickets. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>. You may also specify a priority name for a case-insensitive lookup.',
|
|
648
648
|
typeOptions: {
|
|
649
649
|
loadOptionsMethod: "loadOptions_service_priorities"
|
|
650
650
|
},
|
|
@@ -769,7 +769,7 @@ import_common.getCommonFields)(), {
|
|
|
769
769
|
name: "reopenStatus",
|
|
770
770
|
type: "options",
|
|
771
771
|
default: "",
|
|
772
|
-
description: 'Status to set when reopening a closed ticket. If not set, uses the Failure Status. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
772
|
+
description: 'Status to set when reopening a closed ticket. If not set, uses the Failure Status. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
773
773
|
typeOptions: {
|
|
774
774
|
loadOptionsMethod: "loadOptions_service_boards_statuses",
|
|
775
775
|
loadOptionsDependsOn: [ "board" ]
|
|
@@ -900,7 +900,7 @@ import_common.getCommonFields)(), {
|
|
|
900
900
|
name: "configurationTypeId",
|
|
901
901
|
type: "multiOptions",
|
|
902
902
|
default: [],
|
|
903
|
-
description: 'Filter configurations by one or more types. Leave empty to search all types. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
903
|
+
description: 'Filter configurations by one or more types. Leave empty to search all types. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
904
904
|
typeOptions: {
|
|
905
905
|
loadOptionsMethod: "loadOptions_company_configurations_types"
|
|
906
906
|
}
|
|
@@ -214,7 +214,7 @@ const ticketNoteFields = [ {
|
|
|
214
214
|
name: "member",
|
|
215
215
|
type: "options",
|
|
216
216
|
default: "",
|
|
217
|
-
description: 'The member associated with this note. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
217
|
+
description: 'The member associated with this note. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
218
218
|
hint: "Optional member ID to assign to the note. If not provided, will use API user.",
|
|
219
219
|
typeOptions: {
|
|
220
220
|
loadOptionsMethod: "loadOptions_system_members"
|
|
@@ -230,7 +230,7 @@ const ticketNoteFields = [ {
|
|
|
230
230
|
name: "contact",
|
|
231
231
|
type: "options",
|
|
232
232
|
default: "",
|
|
233
|
-
description: 'The contact associated with this note. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
233
|
+
description: 'The contact associated with this note. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
234
234
|
typeOptions: {
|
|
235
235
|
loadOptionsMethod: "loadOptions_company_contacts"
|
|
236
236
|
},
|
|
@@ -129,7 +129,7 @@ const timeEntryFields = [ {
|
|
|
129
129
|
name: "chargeToId",
|
|
130
130
|
type: "options",
|
|
131
131
|
default: "",
|
|
132
|
-
description: 'Select the charge code to charge time against. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
132
|
+
description: 'Select the charge code to charge time against. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
133
133
|
typeOptions: {
|
|
134
134
|
loadOptionsMethod: "loadOptions_time_chargeCodes"
|
|
135
135
|
},
|
|
@@ -145,7 +145,7 @@ const timeEntryFields = [ {
|
|
|
145
145
|
name: "companyId",
|
|
146
146
|
type: "options",
|
|
147
147
|
default: "",
|
|
148
|
-
description: 'The company for this time entry. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
148
|
+
description: 'The company for this time entry. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
149
149
|
typeOptions: {
|
|
150
150
|
loadOptionsMethod: "loadOptions_company_companies"
|
|
151
151
|
},
|
|
@@ -215,7 +215,7 @@ const timeEntryFields = [ {
|
|
|
215
215
|
name: "workType",
|
|
216
216
|
type: "options",
|
|
217
217
|
default: "",
|
|
218
|
-
description: 'The type of work performed. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
218
|
+
description: 'The type of work performed. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
219
219
|
typeOptions: {
|
|
220
220
|
loadOptionsMethod: "loadOptions_time_workTypes"
|
|
221
221
|
},
|
|
@@ -230,7 +230,7 @@ const timeEntryFields = [ {
|
|
|
230
230
|
name: "workRole",
|
|
231
231
|
type: "options",
|
|
232
232
|
default: "",
|
|
233
|
-
description: 'The role for this work. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
233
|
+
description: 'The role for this work. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.',
|
|
234
234
|
typeOptions: {
|
|
235
235
|
loadOptionsMethod: "loadOptions_time_workRoles"
|
|
236
236
|
},
|
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(version_check_exports);
|
|
|
39
39
|
|
|
40
40
|
var fs = __toESM(require("fs/promises")), path = __toESM(require("path")), os = __toESM(require("os")), import_common = require("../descriptions/common.descriptions"), import_hint_collector = require("../helpers/hint-collector");
|
|
41
41
|
|
|
42
|
-
const CACHE_FILE_PATH = path.join(os.tmpdir(), "connectwise-n8n-version-cache.json"), CURRENT_VERSION = "0.2.1-beta.
|
|
42
|
+
const CACHE_FILE_PATH = path.join(os.tmpdir(), "connectwise-n8n-version-cache.json"), CURRENT_VERSION = "0.2.1-beta.5";
|
|
43
43
|
|
|
44
44
|
let inMemoryCache = null, cacheLoadPromise = null, fetchInProgress = !1;
|
|
45
45
|
|
|
@@ -122,9 +122,10 @@ function checkForUpdatesAsync(accessKey) {
|
|
|
122
122
|
|
|
123
123
|
async function checkAndNotifyUpdate(context) {
|
|
124
124
|
try {
|
|
125
|
+
process.env.MSPCOPILOT_BETA;
|
|
125
126
|
const accessKey = (await context.getCredentials("connectWisePsaApi")).accessKey;
|
|
126
127
|
if (!!0) return;
|
|
127
|
-
checkForUpdatesAsync(accessKey), inMemoryCache?.updateAvailable && (0, import_hint_collector.hint)(context, "
|
|
128
|
+
checkForUpdatesAsync(accessKey), inMemoryCache?.updateAvailable && (0, import_hint_collector.hint)(context, "beta_update", {
|
|
128
129
|
version: inMemoryCache.latest,
|
|
129
130
|
message: inMemoryCache.message
|
|
130
131
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mspcopilot/n8n-nodes-connectwise",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.5",
|
|
4
4
|
"description": "n8n node to integrate with ConnectWise PSA",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package"
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"nodes": [
|
|
35
35
|
"dist-beta/nodes/ConnectWise/PSA/ConnectWisePsa.node.js",
|
|
36
|
+
"dist-beta/nodes/ConnectWise/PSA/ConnectWisePsaTrigger.node.js",
|
|
36
37
|
"dist-beta/nodes/ConnectWise/PSA/IfSchedule.node.js"
|
|
37
38
|
]
|
|
38
39
|
},
|