@mspcopilot/n8n-nodes-connectwise 0.3.0 → 0.3.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.
|
@@ -117,9 +117,18 @@ class ConnectWisePsaApi {
|
|
|
117
117
|
name: "checkForUpdates",
|
|
118
118
|
type: "boolean",
|
|
119
119
|
default: !0,
|
|
120
|
-
hint: "Current version: 0.3.
|
|
120
|
+
hint: "Current version: 0.3.1 (community 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: "Access Key",
|
|
124
|
+
name: "accessKey",
|
|
125
|
+
type: "string",
|
|
126
|
+
typeOptions: {
|
|
127
|
+
password: !0
|
|
128
|
+
},
|
|
129
|
+
default: "",
|
|
130
|
+
hint: "To enable beta or server-side features"
|
|
131
|
+
} ] : [] ];
|
|
123
132
|
async authenticate(credentials, requestOptions) {
|
|
124
133
|
const serverUrl = credentials.site === "custom" ? credentials.customServer : credentials.site, base64Auth = Buffer.from(`${credentials.companyId}+${credentials.publicKey}:${credentials.privateKey}`).toString("base64");
|
|
125
134
|
return requestOptions.baseURL || (requestOptions.baseURL = `https://${serverUrl}`),
|
|
@@ -74,7 +74,7 @@ const resources = {
|
|
|
74
74
|
|
|
75
75
|
class ConnectWisePsa {
|
|
76
76
|
constructor() {
|
|
77
|
-
console.log(`🔌 ConnectWise PSA Node Loaded | 📦 v0.3.
|
|
77
|
+
console.log(`🔌 ConnectWise PSA Node Loaded | 📦 v0.3.1 | 🏗️ Build: ${"community".toUpperCase()} (${"prod".toUpperCase()} mode)`);
|
|
78
78
|
}
|
|
79
79
|
description={
|
|
80
80
|
displayName: "ConnectWise PSA",
|
|
@@ -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.3.
|
|
42
|
+
const CACHE_FILE_PATH = path.join(os.tmpdir(), "connectwise-n8n-version-cache.json"), CURRENT_VERSION = "0.3.1";
|
|
43
43
|
|
|
44
44
|
let inMemoryCache = null, cacheLoadPromise = null, fetchInProgress = !1;
|
|
45
45
|
|