n8n-nodes-olivetin 0.5.0 → 0.7.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/dist/credentials/OliveTinApi.credentials.js +8 -1
- package/dist/credentials/OliveTinApi.credentials.js.map +1 -1
- package/dist/nodes/OliveTin/OliveTinLogo.svg +109 -0
- package/dist/nodes/OliveTin/Olivetin.node.js +5 -3
- package/dist/nodes/OliveTin/Olivetin.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ class OliveTinApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'olivetinApi';
|
|
7
7
|
this.displayName = 'OliveTin API';
|
|
8
|
-
this.icon = { light: 'file:../
|
|
8
|
+
this.icon = { light: 'file:../nodes/OliveTin/OliveTinLogo.svg', dark: 'file:../nodes/OliveTin/OliveTinLogo.svg' };
|
|
9
9
|
this.documentationUrl = 'https://docs.olivetin.app/integrations/n8n.html';
|
|
10
10
|
this.properties = [
|
|
11
11
|
{
|
|
@@ -20,6 +20,13 @@ class OliveTinApi {
|
|
|
20
20
|
name: 'serverAddress',
|
|
21
21
|
type: 'string',
|
|
22
22
|
default: 'http://olivetin.example.com'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Verify SSL',
|
|
26
|
+
name: 'sslVerify',
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
default: true,
|
|
29
|
+
description: 'Whether to verify SSL certificates',
|
|
23
30
|
}
|
|
24
31
|
];
|
|
25
32
|
this.authenticate = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OliveTinApi.credentials.js","sourceRoot":"","sources":["../../credentials/OliveTinApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QAErB,gBAAW,GAAG,cAAc,CAAC;QAE7B,SAAI,GAAS,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"OliveTinApi.credentials.js","sourceRoot":"","sources":["../../credentials/OliveTinApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QAErB,gBAAW,GAAG,cAAc,CAAC;QAE7B,SAAI,GAAS,EAAE,KAAK,EAAE,yCAAyC,EAAE,IAAI,EAAE,yCAAyC,EAAE,CAAC;QAEnH,qBAAgB,GACf,iDAAiD,CAAC;QAEnD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,6BAA6B;aACtC;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,oCAAoC;aACjD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,sCAAsC;iBACrD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uCAAuC;gBAChD,GAAG,EAAE,OAAO;gBACZ,MAAM,EAAE,MAAM;aACd;SACD,CAAC;IACH,CAAC;CAAA;AAjDD,kCAiDC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
4
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
5
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
6
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
9
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
10
|
+
width="100mm"
|
|
11
|
+
height="100mm"
|
|
12
|
+
viewBox="0 0 100 100"
|
|
13
|
+
version="1.1"
|
|
14
|
+
id="svg8"
|
|
15
|
+
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
|
|
16
|
+
sodipodi:docname="OliveTinLogo.svg"
|
|
17
|
+
inkscape:export-filename="/home/xconspirisist/sandbox/OliveTin/webui/OliveTinLogo.png"
|
|
18
|
+
inkscape:export-xdpi="96"
|
|
19
|
+
inkscape:export-ydpi="96">
|
|
20
|
+
<defs
|
|
21
|
+
id="defs2" />
|
|
22
|
+
<sodipodi:namedview
|
|
23
|
+
id="base"
|
|
24
|
+
pagecolor="#ffffff"
|
|
25
|
+
bordercolor="#666666"
|
|
26
|
+
borderopacity="1.0"
|
|
27
|
+
inkscape:pageopacity="0"
|
|
28
|
+
inkscape:pageshadow="2"
|
|
29
|
+
inkscape:zoom="1.979899"
|
|
30
|
+
inkscape:cx="219.78495"
|
|
31
|
+
inkscape:cy="104.46496"
|
|
32
|
+
inkscape:document-units="mm"
|
|
33
|
+
inkscape:current-layer="layer1"
|
|
34
|
+
inkscape:document-rotation="0"
|
|
35
|
+
showgrid="false"
|
|
36
|
+
inkscape:pagecheckerboard="true"
|
|
37
|
+
inkscape:window-width="1600"
|
|
38
|
+
inkscape:window-height="1200"
|
|
39
|
+
inkscape:window-x="3520"
|
|
40
|
+
inkscape:window-y="1080"
|
|
41
|
+
inkscape:window-maximized="1" />
|
|
42
|
+
<metadata
|
|
43
|
+
id="metadata5">
|
|
44
|
+
<rdf:RDF>
|
|
45
|
+
<cc:Work
|
|
46
|
+
rdf:about="">
|
|
47
|
+
<dc:format>image/svg+xml</dc:format>
|
|
48
|
+
<dc:type
|
|
49
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
50
|
+
<dc:title />
|
|
51
|
+
</cc:Work>
|
|
52
|
+
</rdf:RDF>
|
|
53
|
+
</metadata>
|
|
54
|
+
<g
|
|
55
|
+
inkscape:label="Layer 1"
|
|
56
|
+
inkscape:groupmode="layer"
|
|
57
|
+
id="layer1">
|
|
58
|
+
<path
|
|
59
|
+
id="rect1402"
|
|
60
|
+
style="fill:#faffff;fill-opacity:1;stroke:#000000;stroke-width:5.79097;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
61
|
+
d="m 24.325719,13.460641 h 53.884802 v 74.866538 c 0,0 -0.333558,7.417739 -26.071829,7.668294 -25.738271,0.250554 -27.812973,-7.668294 -27.812973,-7.668294 z"
|
|
62
|
+
sodipodi:nodetypes="ccczcc" />
|
|
63
|
+
<path
|
|
64
|
+
id="rect1469-6"
|
|
65
|
+
style="fill:#72b7f4;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
66
|
+
d="M 27.040421,58.263084 50.9643,61.8872 75.494083,58.263084 v 29.12149 c 0,0 -0.404835,6.088102 -24.431009,6.343392 -24.026173,0.25529 -24.022653,-6.343392 -24.022653,-6.343392 z"
|
|
67
|
+
sodipodi:nodetypes="cccczcc" />
|
|
68
|
+
<path
|
|
69
|
+
id="rect1469-7"
|
|
70
|
+
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
71
|
+
d="m 26.873646,41.794388 23.923879,2.635333 24.529783,-2.635333 v 21.176145 c 0,0 -0.404835,4.427058 -24.431009,4.612696 -24.026173,0.185639 -24.022653,-4.612696 -24.022653,-4.612696 z"
|
|
72
|
+
sodipodi:nodetypes="cccczcc" />
|
|
73
|
+
<path
|
|
74
|
+
id="rect1469"
|
|
75
|
+
style="fill:#72b7f4;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
76
|
+
d="m 26.873646,16.335179 23.923879,3.168352 24.529783,-3.168352 v 25.459209 c 0,0 -0.404835,5.32247 -24.431009,5.545655 -24.026173,0.223185 -24.022653,-5.545655 -24.022653,-5.545655 z"
|
|
77
|
+
sodipodi:nodetypes="cccczcc" />
|
|
78
|
+
<ellipse
|
|
79
|
+
style="fill:#588000;fill-opacity:1;stroke:#000000;stroke-width:4.00217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
80
|
+
id="path1436"
|
|
81
|
+
ry="19.291208"
|
|
82
|
+
rx="13.695867"
|
|
83
|
+
cy="28.679092"
|
|
84
|
+
cx="71.078308"
|
|
85
|
+
transform="rotate(25.917116)" />
|
|
86
|
+
<ellipse
|
|
87
|
+
style="fill:#aa0000;fill-opacity:1;stroke:#000000;stroke-width:1.84188;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
88
|
+
id="path1436-5"
|
|
89
|
+
ry="4.4607549"
|
|
90
|
+
rx="4.933064"
|
|
91
|
+
cy="35.115124"
|
|
92
|
+
cx="-50.609451"
|
|
93
|
+
transform="matrix(-0.49066507,-0.87134826,0.99928809,-0.03772683,0,0)" />
|
|
94
|
+
<ellipse
|
|
95
|
+
style="fill:#e6e6e6;fill-opacity:1;stroke:#000000;stroke-width:5.79097;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
96
|
+
id="path1440"
|
|
97
|
+
cx="51.2528"
|
|
98
|
+
cy="10.636649"
|
|
99
|
+
rx="26.897503"
|
|
100
|
+
ry="6.525641" />
|
|
101
|
+
<path
|
|
102
|
+
id="path1436-3"
|
|
103
|
+
style="fill:#e6e6e6;fill-opacity:1;stroke:#000000;stroke-width:0.574412;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
104
|
+
inkscape:transform-center-x="-1.1166908"
|
|
105
|
+
inkscape:transform-center-y="0.49206772"
|
|
106
|
+
d="m 36.494243,8.7784525 c 1.841786,-0.1158042 2.469235,0.5295096 2.656071,1.4191125 0.186835,0.889603 -0.0974,1.788639 -1.939188,1.904443 -0.848904,0.05338 -2.422996,-0.462298 -3.064668,-0.677573 -0.750505,-0.251787 -1.565122,-0.327933 -1.665841,-0.807506 -0.09913,-0.472029 0.614422,-0.7401021 1.22232,-1.0768269 0.537767,-0.2978804 1.926784,-0.7072919 2.791306,-0.7616496 z"
|
|
107
|
+
sodipodi:nodetypes="sssssss" />
|
|
108
|
+
</g>
|
|
109
|
+
</svg>
|
|
@@ -7,7 +7,7 @@ class Olivetin {
|
|
|
7
7
|
this.description = {
|
|
8
8
|
displayName: 'OliveTin ',
|
|
9
9
|
name: 'olivetin',
|
|
10
|
-
icon: { light: 'file
|
|
10
|
+
icon: { light: 'file:OliveTinLogo.svg', dark: 'file:OliveTinLogo.svg' },
|
|
11
11
|
group: ['input'],
|
|
12
12
|
version: 1,
|
|
13
13
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
@@ -51,16 +51,18 @@ class Olivetin {
|
|
|
51
51
|
const headers = {
|
|
52
52
|
'Content-Type': 'application/json',
|
|
53
53
|
};
|
|
54
|
-
const response = this.helpers.httpRequest({
|
|
54
|
+
const response = await this.helpers.httpRequest({
|
|
55
55
|
method: 'POST',
|
|
56
56
|
body: requestData,
|
|
57
57
|
url: `${credentials.serverAddress}/api/StartAction`,
|
|
58
58
|
headers,
|
|
59
|
+
skipSslCertificateValidation: credentials.sslVerify === false,
|
|
59
60
|
json: true
|
|
60
61
|
});
|
|
61
62
|
const item = {
|
|
62
63
|
json: {
|
|
63
|
-
response,
|
|
64
|
+
response: response,
|
|
65
|
+
server: credentials.serverAddress,
|
|
64
66
|
},
|
|
65
67
|
};
|
|
66
68
|
const ret = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Olivetin.node.js","sourceRoot":"","sources":["../../../nodes/OliveTin/Olivetin.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAatB,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Olivetin.node.js","sourceRoot":"","sources":["../../../nodes/OliveTin/Olivetin.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAatB,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACvE,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE;gBACT,IAAI,EAAE,UAAU;aAChB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,aAAa;oBACnB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,uCAAuC;gBAChD,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,qEAAqE;iBAClF;aACD;SACD,CAAC;IAwCH,CAAC;IAtCA,KAAK,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAG7D,MAAM,WAAW,GAAuB;YACvC,SAAS,EAAE,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW;SAC1D,CAAC;QAGF,MAAM,OAAO,GAA2B;YACvC,cAAc,EAAE,kBAAkB;SAClC,CAAA;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;YAC/C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,WAAW;YACjB,GAAG,EAAE,GAAG,WAAW,CAAC,aAAa,kBAAkB;YACnD,OAAO;YACL,4BAA4B,EAAE,WAAW,CAAC,SAAS,KAAK,KAAK;YAC/D,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAIH,MAAM,IAAI,GAAuB;YAChC,IAAI,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,MAAM,EAAE,WAAW,CAAC,aAAa;aACjC;SACD,CAAC;QAEF,MAAM,GAAG,GAA2B;YACnC,CAAC,IAAI,CAAC;SACN,CAAC;QAGF,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AA9ED,4BA8EC"}
|