n8n-nodes-mightycall 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 ADDED
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 cderamos-2ct
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.
22
+
23
+
package/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # n8n-nodes-mightycall
2
+
3
+ This is an n8n community node for MightyCall phone system integration.
4
+
5
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
6
+
7
+ [Installation](#installation) | [Operations](#operations) | [Credentials](#credentials) | [Compatibility](#compatibility) | [Resources](#resources)
8
+
9
+ ## Installation
10
+
11
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
12
+
13
+ ### Community Nodes (Recommended)
14
+
15
+ 1. Go to **Settings > Community Nodes**
16
+ 2. Select **Install a community node**
17
+ 3. Enter `n8n-nodes-mightycall`
18
+ 4. Click **Install**
19
+ 5. Restart n8n
20
+
21
+ ### Manual Installation
22
+
23
+ ```bash
24
+ npm install n8n-nodes-mightycall
25
+ ```
26
+
27
+ ## Operations
28
+
29
+ ### Call Management
30
+ - **Get Calls**: Retrieve active calls
31
+ - **Get Call Details**: Get information about a specific call
32
+ - **Make Call**: Initiate outbound call
33
+ - **Transfer Call**: Transfer active call
34
+ - **End Call**: Terminate active call
35
+
36
+ ### Contact Management
37
+ - **List Contacts**: Get all contacts
38
+ - **Get Contact**: Retrieve contact details
39
+ - **Create Contact**: Add new contact
40
+ - **Update Contact**: Modify contact information
41
+ - **Delete Contact**: Remove contact
42
+
43
+ ### Journal (Call History)
44
+ - **List Journal**: Get call history
45
+ - **Get Journal Entry**: Get specific call record
46
+ - **Search Journal**: Search call history
47
+
48
+ ### Number Management
49
+ - **List Numbers**: Get phone numbers
50
+ - **Get Number**: Get number details
51
+ - **Update Number**: Modify number settings
52
+
53
+ ### Queue Operations
54
+ - **List Queues**: Get call queues
55
+ - **Get Queue**: Queue details
56
+ - **Get Queue Stats**: Queue statistics
57
+
58
+ ## Credentials
59
+
60
+ You need a MightyCall API key and API login.
61
+
62
+ Get them from:
63
+ 1. Log into your MightyCall account
64
+ 2. Go to **Settings > API**
65
+ 3. Generate API credentials
66
+
67
+ Required fields:
68
+ - **API Key**: Your MightyCall API key
69
+ - **API Login**: Your MightyCall API login
70
+
71
+ ## Compatibility
72
+
73
+ Tested with:
74
+ - n8n v1.0.0+
75
+ - Node.js 18+
76
+
77
+ ## Usage Example
78
+
79
+ ### Making a Call
80
+
81
+ 1. Add **MightyCall** node to workflow
82
+ 2. Select **Resource**: Call
83
+ 3. Select **Operation**: Make Call
84
+ 4. Set **Phone Number**: +1234567890
85
+ 5. Execute workflow
86
+
87
+ ## Resources
88
+
89
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
90
+ - [MightyCall API Documentation](https://api.mightycall.com/docs)
91
+ - [GitHub Repository](https://github.com/cderamos-2ct/n8n-nodes-mightycall)
92
+
93
+ ## Version History
94
+
95
+ ### 1.0.0
96
+ - Initial release
97
+ - Full API coverage
98
+ - All major operations supported
99
+
100
+ ## License
101
+
102
+ [MIT](LICENSE)
103
+
104
+ ## Author
105
+
106
+ Created by cderamos-2ct
107
+
@@ -0,0 +1,8 @@
1
+ import { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
2
+ export declare class MightyCallApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MightyCallApi = void 0;
4
+ class MightyCallApi {
5
+ constructor() {
6
+ this.name = 'mightyCallApi';
7
+ this.displayName = 'MightyCall API';
8
+ this.icon = 'file:mightycall.svg';
9
+ this.documentationUrl = 'https://api.mightycall.com/v4/doc#tag/Authentication/Auth-POST-authtoken';
10
+ this.properties = [
11
+ {
12
+ displayName: 'Account Type',
13
+ name: 'accountType',
14
+ type: 'options',
15
+ options: [
16
+ {
17
+ name: 'Standard Account',
18
+ value: 'standard',
19
+ description: 'Standard MightyCall account (api.mightycall.com)',
20
+ },
21
+ {
22
+ name: 'Contact Center Account',
23
+ value: 'contactCenter',
24
+ description: 'Contact Center account (ccapi.mightycall.com)',
25
+ },
26
+ ],
27
+ default: 'standard',
28
+ required: true,
29
+ description: 'Select your MightyCall account type',
30
+ },
31
+ {
32
+ displayName: 'API Key',
33
+ name: 'apiKey',
34
+ type: 'string',
35
+ default: '',
36
+ required: true,
37
+ description: 'Your MightyCall API Key',
38
+ placeholder: 'your-api-key-here',
39
+ },
40
+ {
41
+ displayName: 'Authentication Method',
42
+ name: 'authMethod',
43
+ type: 'options',
44
+ options: [
45
+ {
46
+ name: 'User Key (Secret Key)',
47
+ value: 'userKey',
48
+ description: 'Use your User Key (also called Secret Key) from MightyCall account settings',
49
+ },
50
+ {
51
+ name: 'Extension Number',
52
+ value: 'extension',
53
+ description: 'Use your extension number for authentication',
54
+ },
55
+ ],
56
+ default: 'userKey',
57
+ required: true,
58
+ description: 'Choose which authentication method to use with your API Key',
59
+ },
60
+ {
61
+ displayName: 'User Key',
62
+ name: 'userKey',
63
+ type: 'string',
64
+ typeOptions: {
65
+ password: true,
66
+ },
67
+ displayOptions: {
68
+ show: {
69
+ authMethod: ['userKey'],
70
+ },
71
+ },
72
+ default: '',
73
+ required: true,
74
+ description: 'Your MightyCall User Key (also called Secret Key). Used as client_secret for authentication.',
75
+ placeholder: 'your-user-key-here',
76
+ },
77
+ {
78
+ displayName: 'Extension Number',
79
+ name: 'extension',
80
+ type: 'string',
81
+ displayOptions: {
82
+ show: {
83
+ authMethod: ['extension'],
84
+ },
85
+ },
86
+ default: '',
87
+ required: true,
88
+ description: 'Your MightyCall extension number. Used as client_secret for authentication.',
89
+ placeholder: '1001',
90
+ },
91
+ ];
92
+ }
93
+ }
94
+ exports.MightyCallApi = MightyCallApi;
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <!-- Creator: CorelDRAW -->
4
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="1.66666in" height="1.66666in" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
5
+ viewBox="0 0 1666.66 1666.66"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ xmlns:xodm="http://www.corel.com/coreldraw/odm/2003"
8
+ baseProfile="tiny">
9
+ <defs>
10
+ <style type="text/css">
11
+ <![CDATA[
12
+ .fil0 {fill:#4B75E6;fill-rule:nonzero}
13
+ ]]>
14
+ </style>
15
+ </defs>
16
+ <g id="Layer_x0020_1">
17
+ <metadata id="CorelCorpID_0Corel-Layer"/>
18
+ <path class="fil0" d="M1233.85 912.87l-210.21 -210.21c-0.67,-0.66 -1.04,-1.56 -1.04,-2.5l0 -70.73c-0,-0.94 -0.38,-1.84 -1.04,-2.5l-255 -255c-0.66,-0.66 -1.04,-1.56 -1.04,-2.5l-0 -64.17c0.01,-1.95 1.59,-3.54 3.55,-3.54 0.94,0 1.84,0.37 2.5,1.03l301.14 301.26c0.67,0.66 1.04,1.56 1.04,2.5l0 70.41c0,0.94 0.37,1.84 1.04,2.5l236.98 236.87c0.67,0.66 1.04,1.56 1.04,2.5l-0 71.57c0,0.93 -0.37,1.83 -1.04,2.5l-272.08 271.98c-0.67,0.67 -1.57,1.04 -2.51,1.04 -0.5,0 -1,-0.11 -1.45,-0.31l-113.33 -51.46c-1.27,-0.57 -2.09,-1.84 -2.09,-3.23 0,0 0,0 0,0l0 -48.33c0,-0 0,-0 0,-0 0,-1.39 -0.81,-2.66 -2.08,-3.23l-96.15 -43.64c-0.46,-0.21 -0.95,-0.32 -1.46,-0.32 -1.96,0 -3.54,1.59 -3.54,3.54 0,0 0,0 0,0l0 176.78c0,1.95 -1.59,3.53 -3.54,3.53 -0.94,0 -1.84,-0.37 -2.5,-1.03l-142.4 -142.4c-0.66,-0.67 -1.56,-1.04 -2.5,-1.04 -1.95,0 -3.54,1.58 -3.54,3.54l0 203.13c0,1.95 -1.59,3.53 -3.54,3.53 -0.94,0 -1.84,-0.37 -2.5,-1.03l-301.67 -301.56c-0.66,-0.67 -1.04,-1.56 -1.04,-2.5l-0 -63.43c0.01,-1.96 1.59,-3.54 3.55,-3.54 0.94,0 1.84,0.37 2.5,1.03l245.2 245.11c0.67,0.66 1.57,1.03 2.5,1.03 1.95,0 3.54,-1.58 3.54,-3.54l-0.01 -136.76c0,-0.94 -0.37,-1.84 -1.04,-2.51l-254.9 -254.78c-0.66,-0.67 -1.04,-1.56 -1.04,-2.5l-0 -63.54c0.01,-1.95 1.59,-3.54 3.55,-3.54 0.94,0 1.84,0.37 2.5,1.03l399.06 399.07c0.67,0.66 1.57,1.03 2.5,1.03 1.95,0 3.54,-1.58 3.54,-3.54l-0.01 -137.19c0,-0.94 -0.37,-1.84 -1.04,-2.5l-409.38 -409.37c-0.66,-0.66 -1.04,-1.56 -1.04,-2.5l-0 -63.13c0.01,-1.95 1.59,-3.53 3.55,-3.53 0.94,0 1.84,0.37 2.5,1.03l347.81 347.81c0.67,0.66 1.57,1.03 2.5,1.03 1.95,0 3.54,-1.58 3.54,-3.54l-0 -136.46c0,-0.94 -0.37,-1.83 -1.04,-2.5l-357.61 -357.5c-0.66,-0.66 -1.04,-1.56 -1.04,-2.5l-0 -64.69c0.01,-1.95 1.59,-3.54 3.55,-3.54 0.94,0 1.84,0.37 2.5,1.03l296.35 296.25c0.67,0.67 1.57,1.04 2.51,1.04 1.95,0 3.54,-1.58 3.54,-3.54l-0.01 -136.56c0,-0.94 -0.37,-1.83 -1.04,-2.5l-100.21 -100.21c-0.66,-0.66 -1.04,-1.56 -1.04,-2.5l-0 -62.6c0.01,-1.95 1.59,-3.54 3.55,-3.54 0.94,0 1.84,0.37 2.5,1.03l147.39 147.4c0.67,0.66 1.04,1.56 1.05,2.5l-0 216.15c0,0.94 0.38,1.83 1.04,2.5l48.75 48.75c0.67,0.66 1.04,1.56 1.05,2.5l-0.01 218.02c0.01,0.94 0.38,1.83 1.05,2.5l49.37 49.48c0.67,0.66 1.04,1.56 1.04,2.5l0 47.4c-0,-0 -0,-0 -0,-0 0,1.39 0.81,2.66 2.08,3.23l150 68.13c1.27,0.56 2.09,1.83 2.09,3.22 0,0 0,0 0,0l-0 49.38c0,0 0,0 0,0 0,1.39 0.81,2.66 2.08,3.23l46.88 21.25c0.45,0.2 0.95,0.31 1.45,0.31 0.94,0 1.84,-0.37 2.51,-1.04l212.4 -212.39c0.66,-0.67 1.03,-1.57 1.03,-2.5 0,-0.94 -0.37,-1.84 -1.03,-2.5l-64.48 -64.37c-0.67,-0.67 -1.04,-1.57 -1.04,-2.5 0,-1.95 1.58,-3.54 3.54,-3.54l56.87 0c1.95,-0 3.54,-1.59 3.54,-3.54 0,-0.94 -0.37,-1.84 -1.03,-2.5l-0 0zm-282.39 -135l-125.83 -125.83c-0.61,-0.61 -0.95,-1.43 -0.95,-2.29 0,-1.78 1.44,-3.23 3.23,-3.23 0,0 0.01,0 0.02,0l140.1 0c1.78,0 3.23,1.44 3.23,3.23l0 72.19c0,0.01 0,0.02 0,0.02 0,0.85 0.34,1.67 0.94,2.28l49.06 49.06c0.61,0.61 0.95,1.44 0.95,2.3 0,1.78 -1.44,3.23 -3.23,3.23 -0,0 -0.01,0 -0.02,0l-65.21 0c-0.01,0 -0.02,0 -0.02,0 -0.85,0 -1.67,-0.34 -2.28,-0.94l0 0z"/>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class MightyCall implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }