n8n-nodes-cention 1.0.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.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/dist/credentials/CentionApi.credentials.d.ts +11 -0
- package/dist/credentials/CentionApi.credentials.d.ts.map +1 -0
- package/dist/credentials/CentionApi.credentials.js +63 -0
- package/dist/credentials/CentionApi.credentials.js.map +1 -0
- package/dist/nodes/Cention/AgentPresenceDescription.d.ts +4 -0
- package/dist/nodes/Cention/AgentPresenceDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/AgentPresenceDescription.js +90 -0
- package/dist/nodes/Cention/AgentPresenceDescription.js.map +1 -0
- package/dist/nodes/Cention/Cention.node.d.ts +7 -0
- package/dist/nodes/Cention/Cention.node.d.ts.map +1 -0
- package/dist/nodes/Cention/Cention.node.js +676 -0
- package/dist/nodes/Cention/Cention.node.js.map +1 -0
- package/dist/nodes/Cention/CentionTrigger.node.d.ts +7 -0
- package/dist/nodes/Cention/CentionTrigger.node.d.ts.map +1 -0
- package/dist/nodes/Cention/CentionTrigger.node.js +165 -0
- package/dist/nodes/Cention/CentionTrigger.node.js.map +1 -0
- package/dist/nodes/Cention/ChannelDescription.d.ts +4 -0
- package/dist/nodes/Cention/ChannelDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ChannelDescription.js +144 -0
- package/dist/nodes/Cention/ChannelDescription.js.map +1 -0
- package/dist/nodes/Cention/ChatMessageDescription.d.ts +4 -0
- package/dist/nodes/Cention/ChatMessageDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ChatMessageDescription.js +86 -0
- package/dist/nodes/Cention/ChatMessageDescription.js.map +1 -0
- package/dist/nodes/Cention/ContactCardDescription.d.ts +4 -0
- package/dist/nodes/Cention/ContactCardDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ContactCardDescription.js +446 -0
- package/dist/nodes/Cention/ContactCardDescription.js.map +1 -0
- package/dist/nodes/Cention/ErrandDescription.d.ts +4 -0
- package/dist/nodes/Cention/ErrandDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ErrandDescription.js +409 -0
- package/dist/nodes/Cention/ErrandDescription.js.map +1 -0
- package/dist/nodes/Cention/GenericFunctions.d.ts +5 -0
- package/dist/nodes/Cention/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Cention/GenericFunctions.js +60 -0
- package/dist/nodes/Cention/GenericFunctions.js.map +1 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.d.ts +4 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.js +216 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.js.map +1 -0
- package/dist/nodes/Cention/StatisticsDescription.d.ts +4 -0
- package/dist/nodes/Cention/StatisticsDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/StatisticsDescription.js +169 -0
- package/dist/nodes/Cention/StatisticsDescription.js.map +1 -0
- package/dist/nodes/Cention/cention.svg +7 -0
- package/dist/nodes/Cention/logo.png +0 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Cention AB
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# n8n-nodes-cention
|
|
2
|
+
|
|
3
|
+
This is an n8n community node for integrating with [Cention](https://cention.com) - a comprehensive customer service platform.
|
|
4
|
+
|
|
5
|
+
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
|
|
6
|
+
|
|
7
|
+
[Installation](#installation)
|
|
8
|
+
[Operations](#operations)
|
|
9
|
+
[Credentials](#credentials)
|
|
10
|
+
[Compatibility](#compatibility)
|
|
11
|
+
[Usage](#usage)
|
|
12
|
+
[Resources](#resources)
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
|
|
17
|
+
|
|
18
|
+
### Community Node Installation
|
|
19
|
+
|
|
20
|
+
1. Go to **Settings > Community Nodes** in your n8n instance
|
|
21
|
+
2. Click **Install**
|
|
22
|
+
3. Enter `n8n-nodes-cention`
|
|
23
|
+
4. Click **Install**
|
|
24
|
+
|
|
25
|
+
### Manual Installation
|
|
26
|
+
|
|
27
|
+
To install manually, run this in your n8n root directory:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install n8n-nodes-cention
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Operations
|
|
34
|
+
|
|
35
|
+
The Cention node supports the following resources and operations:
|
|
36
|
+
|
|
37
|
+
### 🎫 Errand (Support Tickets)
|
|
38
|
+
- **Create** - Create a new errand/ticket
|
|
39
|
+
- **Get** - Retrieve a specific errand by ID
|
|
40
|
+
- **Get Many** - List all changed errands
|
|
41
|
+
- **Update** - Update an existing errand
|
|
42
|
+
- **Close** - Close an errand
|
|
43
|
+
- **Send Message** - Send a message to an errand
|
|
44
|
+
|
|
45
|
+
### 👤 Contact Card
|
|
46
|
+
- **Get** - Retrieve a specific contact
|
|
47
|
+
- **Get Many** - List contacts with filters (email, name)
|
|
48
|
+
|
|
49
|
+
### 📚 Library Question (Knowledge Base)
|
|
50
|
+
- **Get** - Retrieve a specific knowledge base article
|
|
51
|
+
- **Get Many** - List all articles
|
|
52
|
+
- **Search** - Search articles by question/answer
|
|
53
|
+
|
|
54
|
+
### 💬 Chat Message
|
|
55
|
+
- **Get Many** - Retrieve chat messages with filters (email, date range)
|
|
56
|
+
|
|
57
|
+
### 🟢 Agent Presence
|
|
58
|
+
- **Set** - Set agent status (available, busy, away, offline)
|
|
59
|
+
|
|
60
|
+
### 📊 Statistics
|
|
61
|
+
- **Get** - Retrieve reports (Errand Summary, Agent Performance, Response Time, SLA Compliance, Channel Distribution)
|
|
62
|
+
|
|
63
|
+
### 📡 Channel
|
|
64
|
+
- **Get** - Retrieve a specific channel
|
|
65
|
+
- **Get Many** - List all channels with filters
|
|
66
|
+
|
|
67
|
+
### 🔔 Cention Trigger
|
|
68
|
+
- **New Errand** - Triggers when a new or changed errand is detected (polling)
|
|
69
|
+
|
|
70
|
+
## Credentials
|
|
71
|
+
|
|
72
|
+
To use this node, you need to set up Cention API credentials:
|
|
73
|
+
|
|
74
|
+
1. **Workspace** - Your Cention workspace name
|
|
75
|
+
2. **API Token** - JWT token from Cention Admin
|
|
76
|
+
|
|
77
|
+
### How to get your credentials:
|
|
78
|
+
|
|
79
|
+
1. Log in to your Cention Admin panel
|
|
80
|
+
2. Go to **API Management** or **Integrations**
|
|
81
|
+
3. Create a new **API Token** (JWT)
|
|
82
|
+
4. Copy the **Token**
|
|
83
|
+
5. Note your **Workspace** name (visible in the URL: `/s/{workspace}/`)
|
|
84
|
+
|
|
85
|
+
**Note:** The API URL is pre-configured to `https://apid.cention.com`.
|
|
86
|
+
|
|
87
|
+
## Compatibility
|
|
88
|
+
|
|
89
|
+
- Minimum n8n version: **1.0.0**
|
|
90
|
+
- Tested with n8n version: **1.70.0**
|
|
91
|
+
|
|
92
|
+
## Usage
|
|
93
|
+
|
|
94
|
+
### Example: Get New Errands
|
|
95
|
+
|
|
96
|
+
1. Add **Cention Trigger** node
|
|
97
|
+
2. Select **New Errand** operation
|
|
98
|
+
3. Connect your credentials
|
|
99
|
+
4. Set polling interval
|
|
100
|
+
5. Process new errands in your workflow
|
|
101
|
+
|
|
102
|
+
### Example: Create Errand from Email
|
|
103
|
+
|
|
104
|
+
1. **Email Trigger** → Receives email
|
|
105
|
+
2. **Cention Node** → Create Errand
|
|
106
|
+
- Resource: `Errand`
|
|
107
|
+
- Operation: `Create`
|
|
108
|
+
- From Email: `{{$json.from}}`
|
|
109
|
+
- From Name: `{{$json.fromName}}`
|
|
110
|
+
- Body: `{{$json.text}}`
|
|
111
|
+
|
|
112
|
+
### Example: Update Contact Card
|
|
113
|
+
|
|
114
|
+
1. **Webhook** → Receives contact data
|
|
115
|
+
2. **Cention Node** → Get Contact Card
|
|
116
|
+
- Resource: `Contact Card`
|
|
117
|
+
- Operation: `Get Many`
|
|
118
|
+
- Filter By: `Email`
|
|
119
|
+
- Email: `{{$json.email}}`
|
|
120
|
+
|
|
121
|
+
## 📚 Workflow Documentation
|
|
122
|
+
|
|
123
|
+
We've created comprehensive guides to help you get started:
|
|
124
|
+
|
|
125
|
+
- **[Workflow Comparison & Use Cases](./WORKFLOWS_COMPARISON.md)** - Compare with Zendesk and see 10+ real-world workflow patterns
|
|
126
|
+
- **[Ready-to-Use Templates](./WORKFLOW_TEMPLATES.md)** - Copy-paste workflow configurations for common scenarios
|
|
127
|
+
|
|
128
|
+
### Popular Workflows:
|
|
129
|
+
- ✉️ Email/Social Media → Cention Errand Creation
|
|
130
|
+
- 🎯 Auto-assignment based on keywords
|
|
131
|
+
- ⏰ SLA monitoring & escalation
|
|
132
|
+
- 🤖 AI-powered response suggestions
|
|
133
|
+
- 📊 Daily performance reports
|
|
134
|
+
- 😊 Automated CSAT surveys
|
|
135
|
+
- 🔄 CRM synchronization
|
|
136
|
+
- 📢 Proactive customer notifications
|
|
137
|
+
|
|
138
|
+
## 📚 Documentation & Comparisons
|
|
139
|
+
|
|
140
|
+
- **[Zendesk Comparison](./ZENDESK_COMPARISON.md)** - Detailed comparison with Zendesk n8n node (actual operations, not just marketing)
|
|
141
|
+
- **[Workflow Templates](./WORKFLOW_TEMPLATES.md)** - Ready-to-use workflow configurations
|
|
142
|
+
- **[Use Cases & Patterns](./WORKFLOWS_COMPARISON.md)** - Real-world workflow examples
|
|
143
|
+
|
|
144
|
+
### Key Differentiators vs Zendesk:
|
|
145
|
+
- ✅ **Knowledge Base Integration** (Library Questions)
|
|
146
|
+
- ✅ **Real-Time Chat** (Chat Messages API)
|
|
147
|
+
- ✅ **Agent Presence Management** (Set status, track availability)
|
|
148
|
+
- ✅ **Advanced Reporting** (Statistics, SLA tracking, performance metrics)
|
|
149
|
+
- ✅ **Multi-Channel Management** (Unified channel API)
|
|
150
|
+
|
|
151
|
+
## Resources
|
|
152
|
+
|
|
153
|
+
- [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
154
|
+
- [Cention Documentation](https://cention.com/docs/)
|
|
155
|
+
- [Cention API Documentation](https://cention.com/docs/api/)
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
[MIT](LICENSE.md)
|
|
160
|
+
|
|
161
|
+
## Support
|
|
162
|
+
|
|
163
|
+
For issues or questions:
|
|
164
|
+
- GitHub Issues: [https://github.com/cention/n8n-nodes-cention/issues](https://github.com/cention/n8n-nodes-cention/issues)
|
|
165
|
+
- Cention Support: [support@cention.com](mailto:support@cention.com)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class CentionApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
10
|
+
export default CentionApi;
|
|
11
|
+
//# sourceMappingURL=CentionApi.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CentionApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/CentionApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,UAAW,YAAW,eAAe;IACjD,IAAI,SAAgB;IAEpB,WAAW,SAAiB;IAE5B,gBAAgB,SAAa;IAE7B,UAAU,EAAE,eAAe,EAAE,CA6B3B;IAEF,YAAY,EAAE,oBAAoB,CAShC;IAEF,IAAI,EAAE,sBAAsB,CAS1B;CACF;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CentionApi = void 0;
|
|
4
|
+
class CentionApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'centionApi';
|
|
7
|
+
this.displayName = 'Cention API';
|
|
8
|
+
this.documentationUrl = 'cention';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Instance URL',
|
|
12
|
+
name: 'instanceUrl',
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The URL of your Cention API',
|
|
15
|
+
default: 'https://apid.cention.com',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Workspace',
|
|
20
|
+
name: 'workspace',
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'Your Cention workspace name (found in your Cention URL)',
|
|
23
|
+
placeholder: 'demo',
|
|
24
|
+
default: '',
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'API Token (JWT)',
|
|
29
|
+
name: 'apiToken',
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'The JWT token created in Cention Admin > API Settings',
|
|
32
|
+
default: '',
|
|
33
|
+
typeOptions: {
|
|
34
|
+
password: true,
|
|
35
|
+
},
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
this.authenticate = {
|
|
40
|
+
type: 'generic',
|
|
41
|
+
properties: {
|
|
42
|
+
headers: {
|
|
43
|
+
Authorization: '=Bearer {{$credentials.apiToken}}',
|
|
44
|
+
'Content-Type': 'application/vnd.api+json',
|
|
45
|
+
'Accept': 'application/vnd.api+json',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
this.test = {
|
|
50
|
+
request: {
|
|
51
|
+
baseURL: '={{$credentials.instanceUrl}}',
|
|
52
|
+
url: '=/s/{{$credentials.workspace}}/capi/json/c3_errand_reports',
|
|
53
|
+
method: 'GET',
|
|
54
|
+
qs: {
|
|
55
|
+
'page[limit]': 1,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.CentionApi = CentionApi;
|
|
62
|
+
exports.default = CentionApi;
|
|
63
|
+
//# sourceMappingURL=CentionApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CentionApi.credentials.js","sourceRoot":"","sources":["../../credentials/CentionApi.credentials.ts"],"names":[],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sourceRoot":"","sources":["../../../nodes/Cention/AgentPresenceDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,uBAAuB,EAAE,eAAe,EAqBpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,EA+DhD,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.agentPresenceFields = exports.agentPresenceOperations = void 0;
|
|
4
|
+
exports.agentPresenceOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['agentPresence'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Set',
|
|
18
|
+
value: 'set',
|
|
19
|
+
description: 'Set agent presence status',
|
|
20
|
+
action: 'Set agent presence status',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
default: 'set',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
exports.agentPresenceFields = [
|
|
27
|
+
/* -------------------------------------------------------------------------- */
|
|
28
|
+
/* agentPresence:set */
|
|
29
|
+
/* -------------------------------------------------------------------------- */
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Status',
|
|
32
|
+
name: 'status',
|
|
33
|
+
type: 'options',
|
|
34
|
+
required: true,
|
|
35
|
+
displayOptions: {
|
|
36
|
+
show: {
|
|
37
|
+
resource: ['agentPresence'],
|
|
38
|
+
operation: ['set'],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Available',
|
|
44
|
+
value: 'available',
|
|
45
|
+
description: 'Agent is available to take errands',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Busy',
|
|
49
|
+
value: 'busy',
|
|
50
|
+
description: 'Agent is busy',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Away',
|
|
54
|
+
value: 'away',
|
|
55
|
+
description: 'Agent is away',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Offline',
|
|
59
|
+
value: 'offline',
|
|
60
|
+
description: 'Agent is offline',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
default: 'available',
|
|
64
|
+
description: 'The presence status to set for the agent',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: 'Additional Fields',
|
|
68
|
+
name: 'additionalFields',
|
|
69
|
+
type: 'collection',
|
|
70
|
+
placeholder: 'Add Field',
|
|
71
|
+
default: {},
|
|
72
|
+
displayOptions: {
|
|
73
|
+
show: {
|
|
74
|
+
resource: ['agentPresence'],
|
|
75
|
+
operation: ['set'],
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Message',
|
|
81
|
+
name: 'message',
|
|
82
|
+
type: 'string',
|
|
83
|
+
default: '',
|
|
84
|
+
description: 'Optional status message',
|
|
85
|
+
placeholder: 'In a meeting',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
//# sourceMappingURL=AgentPresenceDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentPresenceDescription.js","sourceRoot":"","sources":["../../../nodes/Cention/AgentPresenceDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CA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,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;gBACtC,WAAW,EAAE,cAAc;aAC3B;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class Cention implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|
|
6
|
+
export default Cention;
|
|
7
|
+
//# sourceMappingURL=Cention.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cention.node.d.ts","sourceRoot":"","sources":["../../../nodes/Cention/Cention.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EAEjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAYtB,qBAAa,OAAQ,YAAW,SAAS;IACxC,WAAW,EAAE,oBAAoB,CA+E/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA+xBvE;AAED,eAAe,OAAO,CAAC"}
|