@mspcopilot/n8n-nodes-connectwise 0.1.9 → 0.2.0

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,7 +117,7 @@ class ConnectWisePsaApi {
117
117
  name: "checkForUpdates",
118
118
  type: "boolean",
119
119
  default: !0,
120
- hint: "Current version: 0.1.9 (community edition)",
120
+ hint: "Current version: 0.2.0 (community edition)",
121
121
  description: "Check for new versions of this node package and show notifications when updates are available"
122
122
  } ];
123
123
  async authenticate(credentials, requestOptions) {
@@ -74,7 +74,7 @@ const resources = {
74
74
 
75
75
  class ConnectWisePsa {
76
76
  constructor() {
77
- console.log(`🔌 ConnectWise PSA Node Loaded | 📦 v0.1.9 | 🏗️ Build: ${"community".toUpperCase()} (${"prod".toUpperCase()} mode)`);
77
+ console.log(`🔌 ConnectWise PSA Node Loaded | 📦 v0.2.0 | 🏗️ Build: ${"community".toUpperCase()} (${"prod".toUpperCase()} mode)`);
78
78
  }
79
79
  description={
80
80
  displayName: "ConnectWise PSA",
@@ -36,7 +36,7 @@ __export(common_descriptions_exports, {
36
36
 
37
37
  module.exports = __toCommonJS(common_descriptions_exports);
38
38
 
39
- const DOCURL_PREFIX = "mspcopilot.io/docs", 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;
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
40
 
41
41
  0 && (module.exports = {
42
42
  CHANGELOG_URL: CHANGELOG_URL,
@@ -66,7 +66,7 @@ const HINT_TYPES = {
66
66
  },
67
67
  version_update: {
68
68
  aggregate: "dedupe",
69
- template: version => `🎉 ConnectWise PSA Node v${version} is available! <a href="https://${import_common.CHANGELOG_URL}" target="_blank">View changelog</a>`
69
+ 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}` : "")
70
70
  },
71
71
  pro_upgrade: {
72
72
  aggregate: "dedupe",
@@ -49,6 +49,26 @@ const customFields = [ {
49
49
  value: "getAll",
50
50
  description: "Get many via custom endpoint (GET)",
51
51
  action: "Custom Get"
52
+ }, {
53
+ name: "POST (Create)",
54
+ value: "create",
55
+ description: "Create via custom endpoint (POST)",
56
+ action: "Custom Create"
57
+ }, {
58
+ name: "DELETE",
59
+ value: "delete",
60
+ description: "Delete via custom endpoint (DELETE)",
61
+ action: "Custom Delete"
62
+ }, {
63
+ name: "PUT (Replace)",
64
+ value: "replace",
65
+ description: "Replace via custom endpoint (PUT)",
66
+ action: "Custom Replace"
67
+ }, {
68
+ name: "PATCH (Update)",
69
+ value: "update",
70
+ description: "Update via custom endpoint (PATCH)",
71
+ action: "Custom Update"
52
72
  } ],
53
73
  default: "getAll"
54
74
  }, {
@@ -62,7 +82,7 @@ const customFields = [ {
62
82
  }
63
83
  },
64
84
  default: "",
65
- hint: `View list of endpoints in the <a href="https://${import_common2.DOCURL_PREFIX}/endpoints">documentation</a>`,
85
+ hint: `View list of endpoints in the <a href="https://${import_common2.DOCURL_PREFIX}/connectwise-api">documentation</a>`,
66
86
  placeholder: "e.g., /company/companies/:id or https://api.connectwise.com/...",
67
87
  description: "The API endpoint. Can be a full URL or a partial path. Include any parameters like the ID directly in the URL."
68
88
  }, {
@@ -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.1.9";
42
+ const CACHE_FILE_PATH = path.join(os.tmpdir(), "connectwise-n8n-version-cache.json"), CURRENT_VERSION = "0.2.0";
43
43
 
44
44
  let inMemoryCache = null, cacheLoadPromise = null, fetchInProgress = !1;
45
45
 
@@ -110,7 +110,10 @@ function checkForUpdatesAsync() {
110
110
  async function checkAndNotifyUpdate(context) {
111
111
  try {
112
112
  if (!(await context.getCredentials("connectWisePsaApi")).checkForUpdates) return;
113
- checkForUpdatesAsync(), inMemoryCache?.updateAvailable && (0, import_hint_collector.hint)(context, "version_update", inMemoryCache.latest);
113
+ checkForUpdatesAsync(), inMemoryCache?.updateAvailable && (0, import_hint_collector.hint)(context, "version_update", {
114
+ version: inMemoryCache.latest,
115
+ message: inMemoryCache.message
116
+ });
114
117
  } catch (error) {
115
118
  console.warn("⚠️ Version check failed:", error);
116
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mspcopilot/n8n-nodes-connectwise",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "n8n node to integrate with ConnectWise PSA",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"