@crono-one/n8n-nodes-crono-public-api 0.1.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.md +19 -0
- package/README.md +57 -0
- package/dist/credentials/CronoPublicApi.credentials.d.ts +10 -0
- package/dist/credentials/CronoPublicApi.credentials.js +52 -0
- package/dist/credentials/CronoPublicApi.credentials.js.map +1 -0
- package/dist/icons/crono.svg +1 -0
- package/dist/nodes/CronoPublicApi/CronoPublicApi.node.d.ts +5 -0
- package/dist/nodes/CronoPublicApi/CronoPublicApi.node.js +6665 -0
- package/dist/nodes/CronoPublicApi/CronoPublicApi.node.js.map +1 -0
- package/dist/nodes/CronoPublicApi/CronoPublicApi.node.json +18 -0
- package/dist/nodes/CronoPublicApi/crono.svg +1 -0
- package/dist/package.json +54 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +86 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2022 n8n
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# n8n-nodes-crono-public-api
|
|
2
|
+
|
|
3
|
+
This is an n8n community node. It lets you use Crono Public API in your n8n workflows.
|
|
4
|
+
|
|
5
|
+
Crono Public API gives programmatic access to Crono CRM data such as companies, contacts, deals, activities, and more.
|
|
6
|
+
|
|
7
|
+
[Installation](#installation)
|
|
8
|
+
[Operations](#operations)
|
|
9
|
+
[Credentials](#credentials)
|
|
10
|
+
[Compatibility](#compatibility)
|
|
11
|
+
[Resources](#resources)
|
|
12
|
+
[Version history](#version-history)
|
|
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
|
+
## Operations
|
|
19
|
+
|
|
20
|
+
- Activities: Get, Get Many, Search
|
|
21
|
+
- Companies: Create, Get, Get Many, Search, Update, Import
|
|
22
|
+
- Contacts: Create, Get, Get Many, Search, Update, Import
|
|
23
|
+
- Deals: Create, Get, Get Many, Search, Update
|
|
24
|
+
- External Properties: Search
|
|
25
|
+
- Imports: Get, Get Many
|
|
26
|
+
- Lists: Search
|
|
27
|
+
- Notes: Create, Get, Get Many, Search
|
|
28
|
+
- Pipelines: Get Many
|
|
29
|
+
- Strategies: Search, Search Details
|
|
30
|
+
- Tasks: Create, Search
|
|
31
|
+
- Users: Get, Get Many, Search
|
|
32
|
+
|
|
33
|
+
## Credentials
|
|
34
|
+
|
|
35
|
+
This node uses Crono Public API credentials.
|
|
36
|
+
|
|
37
|
+
You need:
|
|
38
|
+
- API Key
|
|
39
|
+
- API Secret
|
|
40
|
+
|
|
41
|
+
The node sends credentials via headers:
|
|
42
|
+
- `X-Api-Key`
|
|
43
|
+
- `X-Api-Secret`
|
|
44
|
+
|
|
45
|
+
## Compatibility
|
|
46
|
+
|
|
47
|
+
Minimum n8n version: 1.120.4
|
|
48
|
+
Tested against n8n version: 1.120.4
|
|
49
|
+
|
|
50
|
+
## Resources
|
|
51
|
+
|
|
52
|
+
* [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
|
|
53
|
+
* [Crono Public API documentation](https://ext.crono.one/docs/)
|
|
54
|
+
|
|
55
|
+
## Version history
|
|
56
|
+
|
|
57
|
+
- 0.1.0: Initial release
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class CronoPublicApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
documentationUrl: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
icon: Icon;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronoPublicApi = void 0;
|
|
4
|
+
class CronoPublicApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'cronoPublicApi';
|
|
7
|
+
this.documentationUrl = 'https://ext.crono.one/docs';
|
|
8
|
+
this.displayName = 'Crono Public API';
|
|
9
|
+
this.icon = 'file:../nodes/CronoPublicApi/crono.svg';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Base URL',
|
|
13
|
+
name: 'baseUrl',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
description: 'Optional override. Leave empty to use the default base URL.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'API Key',
|
|
20
|
+
name: 'apiKey',
|
|
21
|
+
type: 'string',
|
|
22
|
+
typeOptions: { password: true },
|
|
23
|
+
default: '',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'API Secret',
|
|
27
|
+
name: 'apiSecret',
|
|
28
|
+
type: 'string',
|
|
29
|
+
typeOptions: { password: true },
|
|
30
|
+
default: '',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
this.authenticate = {
|
|
34
|
+
type: 'generic',
|
|
35
|
+
properties: {
|
|
36
|
+
headers: {
|
|
37
|
+
'X-Api-Key': '={{$credentials.apiKey}}',
|
|
38
|
+
'X-Api-Secret': '={{$credentials.apiSecret}}',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
this.test = {
|
|
43
|
+
request: {
|
|
44
|
+
baseURL: '={{$credentials.baseUrl || "https://ext.crono.one"}}',
|
|
45
|
+
url: '/api/v1/Users',
|
|
46
|
+
method: 'GET',
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.CronoPublicApi = CronoPublicApi;
|
|
52
|
+
//# sourceMappingURL=CronoPublicApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CronoPublicApi.credentials.js","sourceRoot":"","sources":["../../credentials/CronoPublicApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QACxB,qBAAgB,GAAG,4BAA4B,CAAC;QAChD,gBAAW,GAAG,kBAAkB,CAAC;QAEjC,SAAI,GAAS,wCAAwC,CAAA;QAErD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6DAA6D;aAC1E;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;oBACvC,cAAc,EAAE,6BAA6B;iBAC7C;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,sDAAsD;gBAC/D,GAAG,EAAE,eAAe;gBACpB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAhDD,wCAgDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1293" height="375" viewBox="0 0 1293 375" fill="none"><g clip-path="url(#clip0_369_46016)"><path d="M1183.84 95.438C1197.65 95.438 1210.63 97.9707 1222.79 103.036C1235.07 108.102 1245.58 115.067 1254.32 123.931C1263.18 132.669 1270.15 143.243 1275.21 155.654C1280.41 167.938 1283 181.044 1283 194.975C1283 213.59 1278.63 230.496 1269.89 245.693C1261.28 260.889 1249.38 272.793 1234.18 281.404C1219.11 289.889 1202.33 294.131 1183.84 294.131C1155.6 294.131 1131.99 284.697 1112.99 265.828C1094 246.959 1084.5 223.341 1084.5 194.975C1084.5 166.608 1094 142.927 1112.99 123.931C1131.99 104.936 1155.6 95.438 1183.84 95.438ZM1183.84 147.866C1170.8 147.866 1159.91 152.361 1151.17 161.352C1142.56 170.217 1138.26 181.424 1138.26 194.975C1138.26 208.145 1142.56 219.225 1151.17 228.217C1159.91 237.208 1170.8 241.703 1183.84 241.703C1196.63 241.703 1207.4 237.208 1216.14 228.217C1224.87 219.225 1229.24 208.145 1229.24 194.975C1229.24 181.424 1224.87 170.217 1216.14 161.352C1207.53 152.361 1196.76 147.866 1183.84 147.866Z" fill="#07C8C0"></path><path d="M984.816 95.438C1008.88 95.438 1027.81 103.226 1041.61 118.802C1055.54 134.252 1062.51 155.4 1062.51 182.247V281.303C1062.51 286.29 1058.47 290.332 1053.48 290.332H1016.64C1011.65 290.332 1007.61 286.29 1007.61 281.303V191.555C1007.61 178.512 1004.32 168.317 997.733 160.973C991.148 153.628 982.157 149.955 970.76 149.955C963.161 149.955 955.88 151.918 948.915 155.844C942.707 159.343 937.706 163.899 933.912 169.511C933 170.859 932.579 172.469 932.579 174.097V281.303C932.579 286.29 928.536 290.332 923.55 290.332H886.711C881.724 290.332 877.682 286.29 877.682 281.303V108.266C877.682 103.28 881.724 99.2371 886.711 99.2371H923.55C928.536 99.2371 932.579 103.28 932.579 108.266V114.134C932.579 116.388 935.72 117.382 937.208 115.688C941.828 110.429 947.566 106.085 954.424 102.656C963.921 97.8441 974.052 95.438 984.816 95.438Z" fill="#07C8C0"></path><path d="M756.157 95.438C769.96 95.438 782.941 97.9707 795.098 103.036C807.382 108.102 817.893 115.067 826.63 123.931C835.495 132.669 842.46 143.243 847.526 155.654C852.718 167.938 855.314 181.044 855.314 194.975C855.314 213.59 850.945 230.496 842.207 245.693C833.595 260.889 821.692 272.793 806.495 281.404C791.425 289.889 774.646 294.131 756.157 294.131C727.917 294.131 704.299 284.697 685.304 265.828C666.308 246.959 656.811 223.341 656.811 194.975C656.811 166.608 666.308 142.927 685.304 123.931C704.299 104.936 727.917 95.438 756.157 95.438ZM756.157 147.866C743.113 147.866 732.223 152.361 723.485 161.352C714.874 170.217 710.568 181.424 710.568 194.975C710.568 208.145 714.874 219.225 723.485 228.217C732.223 237.208 743.113 241.703 756.157 241.703C768.947 241.703 779.712 237.208 788.449 228.217C797.187 219.225 801.556 208.145 801.556 194.975C801.556 181.424 797.187 170.217 788.449 161.352C779.838 152.361 769.074 147.866 756.157 147.866Z" fill="#07C8C0"></path><path d="M626.577 95.438C633.156 95.438 638.841 95.9567 643.633 96.9943C647.468 97.8247 649.775 101.514 649.529 105.431L647.465 138.338C647.088 144.34 641.04 148.28 635.128 147.172C630.839 146.368 626.532 145.966 622.208 145.966C611.797 145.966 601.521 151.021 593.388 158.285C583.065 167.504 580.608 182.037 580.608 195.877V281.303C580.608 286.29 576.566 290.332 571.579 290.332H534.74C529.753 290.332 525.711 286.29 525.711 281.303V108.266C525.711 103.28 529.753 99.2371 534.74 99.2371H571.579C576.566 99.2371 580.608 103.28 580.608 108.266V113.251C580.608 115.572 584.012 116.576 585.514 114.806C589.497 110.113 594.51 106.127 600.553 102.846C609.544 97.9074 618.219 95.438 626.577 95.438Z" fill="#07C8C0"></path><path d="M492.42 235.768C496.931 237.794 499.016 243.103 496.593 247.413C489.328 260.337 478.937 270.971 465.418 279.315C449.208 289.192 430.973 294.131 410.711 294.131C382.091 294.131 358.157 284.697 338.908 265.828C319.786 246.959 310.225 223.341 310.225 194.975C310.225 166.608 319.786 142.927 338.908 123.931C358.157 104.936 382.091 95.438 410.711 95.438C429.2 95.438 445.853 99.6803 460.669 108.165C472.914 115.118 482.736 124.069 490.134 135.019C492.874 139.074 491.283 144.477 487.031 146.899L456.357 164.373C451.951 166.883 446.419 165.163 443.006 161.412C440.18 158.308 436.824 155.692 432.936 153.564C426.351 149.765 418.942 147.866 410.711 147.866C397.161 147.866 385.953 152.361 377.089 161.352C368.351 170.344 363.982 181.551 363.982 194.975C363.982 208.271 368.351 219.415 377.089 228.407C385.953 237.271 397.161 241.703 410.711 241.703C419.955 241.703 428.187 239.614 435.405 235.435C440.146 232.656 444.122 229.191 447.333 225.04C450.324 221.173 455.481 219.174 459.94 221.177L492.42 235.768Z" fill="#07C8C0"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M246.243 170.668C246.243 173.174 245.554 175.679 244.166 177.925C208.219 236.355 177.419 279.04 130.535 335.438C126.043 340.832 119.836 341.194 115.525 339.738C111.202 338.282 106.496 334.23 106.202 327.232C104.932 297.407 104.354 267.59 104.733 237.748C104.797 232.663 100.683 228.502 95.5984 228.524C73.1766 228.618 50.7573 228.39 28.3377 228.003C23.2476 227.913 18.7443 225.193 16.3178 220.746C13.9025 216.333 14.0379 211.141 16.6789 206.852C52.6259 148.434 83.4263 105.738 130.31 49.3402C134.79 43.9453 141.009 43.5842 145.321 45.0401C149.632 46.496 154.35 50.5478 154.643 57.5454C155.913 87.3787 156.493 117.205 156.113 147.055C156.048 152.13 160.146 156.288 165.222 156.274C187.656 156.215 210.085 156.391 232.519 156.786C237.609 156.876 242.101 159.585 244.527 164.032C245.679 166.131 246.243 168.4 246.243 170.668Z" fill="#07C8C0"></path></g><defs><clipPath id="clip0_369_46016"><rect width="1293" height="375" fill="white"></rect></clipPath></defs></svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class CronoPublicApi implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|