n8n-nodes-skodecrm 0.1.9 → 0.1.10
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/README.md +4 -4
- package/dist/credentials/SkodeCrmOAuth2Api.credentials.d.ts +2 -2
- package/dist/credentials/SkodeCrmOAuth2Api.credentials.js +5 -5
- package/dist/nodes/SkodeCrm/SkodeCrm.node.js +4 -4
- package/dist/nodes/SkodeCrm/SkodeCrmTrigger.node.d.ts +1 -1
- package/dist/nodes/SkodeCrm/SkodeCrmTrigger.node.js +5 -5
- package/dist/nodes/SkodeCrm/skodecrm.dark.svg +1 -1
- package/dist/nodes/SkodeCrm/skodecrm.light.svg +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# n8n-nodes-skodecrm
|
|
2
2
|
|
|
3
|
-
An [n8n](https://n8n.io) community node for **[
|
|
3
|
+
An [n8n](https://n8n.io) community node for **[SkedX CRM](https://skedx.io)**. Create, update
|
|
4
4
|
and search leads, and trigger workflows on lead events.
|
|
5
5
|
|
|
6
6
|
[Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) ·
|
|
@@ -13,7 +13,7 @@ guide. In n8n: **Settings → Community Nodes → Install**, enter `n8n-nodes-sk
|
|
|
13
13
|
|
|
14
14
|
## Credentials
|
|
15
15
|
|
|
16
|
-
This node authenticates with **OAuth2** against your
|
|
16
|
+
This node authenticates with **OAuth2** against your SkedX CRM — the same OAuth server the SkedX
|
|
17
17
|
Zapier integration uses.
|
|
18
18
|
|
|
19
19
|
**CRM admin, one-time:** register an OAuth application for n8n in the CRM and note the **client ID**
|
|
@@ -22,7 +22,7 @@ and **client secret**. Add n8n's redirect URL to the app's allowed redirect URIs
|
|
|
22
22
|
- n8n Cloud: `https://oauth.n8n.cloud/oauth2/callback`
|
|
23
23
|
- self-hosted: `https://<your-n8n-host>/rest/oauth2-credential/callback`
|
|
24
24
|
|
|
25
|
-
**In n8n**, create a *
|
|
25
|
+
**In n8n**, create a *SkedX CRM OAuth2 API* credential:
|
|
26
26
|
|
|
27
27
|
| Field | Value |
|
|
28
28
|
| --- | --- |
|
|
@@ -52,7 +52,7 @@ Field keys match your org's schema. Use the CRM's *fields* endpoint
|
|
|
52
52
|
|
|
53
53
|
## Trigger
|
|
54
54
|
|
|
55
|
-
**
|
|
55
|
+
**SkedX CRM Trigger** fires on a lead event (created / updated / status changed). It registers
|
|
56
56
|
n8n's webhook URL with the CRM (`POST /api/partner/v1/hooks/`) when the workflow activates and
|
|
57
57
|
removes it on deactivate — no polling.
|
|
58
58
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
2
|
/**
|
|
3
|
-
* OAuth2 (authorization-code) against
|
|
4
|
-
*
|
|
3
|
+
* OAuth2 (authorization-code) against SkedX CRM — the SAME OAuth server the
|
|
4
|
+
* SkedX Zapier integration uses (django-oauth-toolkit):
|
|
5
5
|
* authorize: <baseUrl>/oauth/authorize/
|
|
6
6
|
* token: <baseUrl>/oauth/token/
|
|
7
7
|
*
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SkodeCrmOAuth2Api = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* OAuth2 (authorization-code) against
|
|
6
|
-
*
|
|
5
|
+
* OAuth2 (authorization-code) against SkedX CRM — the SAME OAuth server the
|
|
6
|
+
* SkedX Zapier integration uses (django-oauth-toolkit):
|
|
7
7
|
* authorize: <baseUrl>/oauth/authorize/
|
|
8
8
|
* token: <baseUrl>/oauth/token/
|
|
9
9
|
*
|
|
@@ -19,8 +19,8 @@ class SkodeCrmOAuth2Api {
|
|
|
19
19
|
this.extends = ['oAuth2Api'];
|
|
20
20
|
// Themed variants so the mark reads correctly on light and dark canvases.
|
|
21
21
|
this.icon = { light: 'file:../nodes/SkodeCrm/skodecrm.light.svg', dark: 'file:../nodes/SkodeCrm/skodecrm.dark.svg' };
|
|
22
|
-
this.displayName = '
|
|
23
|
-
this.documentationUrl = 'https://
|
|
22
|
+
this.displayName = 'SkedX CRM OAuth2 API';
|
|
23
|
+
this.documentationUrl = 'https://skedx.io';
|
|
24
24
|
this.properties = [
|
|
25
25
|
{
|
|
26
26
|
displayName: 'CRM Base URL',
|
|
@@ -28,7 +28,7 @@ class SkodeCrmOAuth2Api {
|
|
|
28
28
|
type: 'string',
|
|
29
29
|
default: 'https://crmserver.skode.ai',
|
|
30
30
|
required: true,
|
|
31
|
-
description: 'Your
|
|
31
|
+
description: 'Your SkedX CRM origin, no trailing slash. Both the API (/api) and OAuth (/oauth) live here.',
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
displayName: 'Grant Type',
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SkodeCrm = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* SkedX CRM — declarative node.
|
|
7
7
|
*
|
|
8
8
|
* Talks to the CRM's PARTNER integration surface — deliberately NOT the Zapier
|
|
9
9
|
* one, which is owner-locked, shares Zapier's throttle bucket, and stamps every
|
|
@@ -52,7 +52,7 @@ function normaliseOptions(options) {
|
|
|
52
52
|
class SkodeCrm {
|
|
53
53
|
constructor() {
|
|
54
54
|
this.description = {
|
|
55
|
-
displayName: '
|
|
55
|
+
displayName: 'SkedX CRM',
|
|
56
56
|
name: 'skodeCrm',
|
|
57
57
|
icon: { light: 'file:skodecrm.light.svg', dark: 'file:skodecrm.dark.svg' },
|
|
58
58
|
group: ['transform'],
|
|
@@ -61,9 +61,9 @@ class SkodeCrm {
|
|
|
61
61
|
// described CRM action against one org, gated by the credential.
|
|
62
62
|
usableAsTool: true,
|
|
63
63
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
64
|
-
description: 'Create, update and search leads in
|
|
64
|
+
description: 'Create, update and search leads in SkedX CRM',
|
|
65
65
|
defaults: {
|
|
66
|
-
name: '
|
|
66
|
+
name: 'SkedX CRM',
|
|
67
67
|
},
|
|
68
68
|
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
69
69
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IHookFunctions, IWebhookFunctions, INodeType, INodeTypeDescription, IWebhookResponseData } from 'n8n-workflow';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* SkedX CRM Trigger — fires a workflow when a lead event happens.
|
|
4
4
|
*
|
|
5
5
|
* Uses the CRM's REST-hook endpoints (the same ones the Zapier app uses):
|
|
6
6
|
* POST /api/partner/v1/hooks/ { target_url, event } -> subscription
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SkodeCrmTrigger = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* SkedX CRM Trigger — fires a workflow when a lead event happens.
|
|
7
7
|
*
|
|
8
8
|
* Uses the CRM's REST-hook endpoints (the same ones the Zapier app uses):
|
|
9
9
|
* POST /api/partner/v1/hooks/ { target_url, event } -> subscription
|
|
@@ -15,15 +15,15 @@ const n8n_workflow_1 = require("n8n-workflow");
|
|
|
15
15
|
class SkodeCrmTrigger {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.description = {
|
|
18
|
-
displayName: '
|
|
18
|
+
displayName: 'SkedX CRM Trigger',
|
|
19
19
|
name: 'skodeCrmTrigger',
|
|
20
20
|
icon: { light: 'file:skodecrm.light.svg', dark: 'file:skodecrm.dark.svg' },
|
|
21
21
|
group: ['trigger'],
|
|
22
22
|
version: 1,
|
|
23
23
|
subtitle: '={{$parameter["event"]}}',
|
|
24
|
-
description: 'Starts a workflow on a
|
|
24
|
+
description: 'Starts a workflow on a SkedX CRM lead event',
|
|
25
25
|
defaults: {
|
|
26
|
-
name: '
|
|
26
|
+
name: 'SkedX CRM Trigger',
|
|
27
27
|
},
|
|
28
28
|
inputs: [],
|
|
29
29
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -107,7 +107,7 @@ class SkodeCrmTrigger {
|
|
|
107
107
|
// is fine, but we must not pretend nothing happened: log it so
|
|
108
108
|
// a genuine failure (auth expired, CRM down) is visible rather
|
|
109
109
|
// than silently leaving a live subscription behind.
|
|
110
|
-
this.logger.warn(`
|
|
110
|
+
this.logger.warn(`SkedX CRM Trigger: could not remove webhook subscription ${webhookData.subscriptionId}: ${error?.message ?? error}`);
|
|
111
111
|
}
|
|
112
112
|
delete webhookData.subscriptionId;
|
|
113
113
|
return true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="60" height="60" role="img" aria-label="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="60" height="60" role="img" aria-label="SkedX">
|
|
2
2
|
<rect width="1024" height="1024" fill="#5B9BF8"/>
|
|
3
3
|
<circle cx="512" cy="410" r="100" fill="#FFFFFF"/>
|
|
4
4
|
<path d="M339 575 Q512 700 684 575" fill="none" stroke="#FFFFFF" stroke-width="40" stroke-linecap="round"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="60" height="60" role="img" aria-label="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="60" height="60" role="img" aria-label="SkedX">
|
|
2
2
|
<rect width="1024" height="1024" fill="#4285F4"/>
|
|
3
3
|
<circle cx="512" cy="410" r="100" fill="#FFFFFF"/>
|
|
4
4
|
<path d="M339 575 Q512 700 684 575" fill="none" stroke="#FFFFFF" stroke-width="40" stroke-linecap="round"/>
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-skodecrm",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "n8n community node for
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"description": "n8n community node for SkedX CRM — manage leads and trigger on lead events.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
7
7
|
"skode",
|
|
8
|
+
"skedx",
|
|
8
9
|
"crm",
|
|
9
10
|
"leads"
|
|
10
11
|
],
|
|
11
12
|
"license": "MIT",
|
|
12
|
-
"homepage": "https://
|
|
13
|
+
"homepage": "https://skedx.io",
|
|
13
14
|
"author": {
|
|
14
|
-
"name": "
|
|
15
|
-
"email": "info@
|
|
15
|
+
"name": "SkedX",
|
|
16
|
+
"email": "info@skedx.io"
|
|
16
17
|
},
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|