n8n-nodes-olivetin 0.1.0 → 0.4.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/README.md +5 -43
- package/dist/credentials/OliveTinApi.credentials.d.ts +2 -1
- package/dist/credentials/OliveTinApi.credentials.js +15 -15
- package/dist/credentials/OliveTinApi.credentials.js.map +1 -1
- package/dist/nodes/OliveTin/Olivetin.node.d.ts +5 -0
- package/dist/nodes/OliveTin/Olivetin.node.js +64 -0
- package/dist/nodes/OliveTin/Olivetin.node.js.map +1 -0
- package/dist/nodes/OliveTin/Olivetin.node.json +18 -0
- package/dist/package.json +4 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -6
- package/dist/nodes/StartNode/OliveTinLogo.svg +0 -109
- package/dist/nodes/StartNode/StartNode.node.d.ts +0 -5
- package/dist/nodes/StartNode/StartNode.node.js +0 -68
- package/dist/nodes/StartNode/StartNode.node.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-olivetin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A n8n plugin for OliveTin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/OliveTin/
|
|
16
|
+
"url": "https://github.com/OliveTin/n8n-nodes-OliveTin.git"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=20.15"
|
|
@@ -33,12 +33,10 @@
|
|
|
33
33
|
"n8n": {
|
|
34
34
|
"n8nNodesApiVersion": 1,
|
|
35
35
|
"credentials": [
|
|
36
|
-
"dist/credentials/
|
|
37
|
-
"dist/credentials/HttpBinApi.credentials.js"
|
|
36
|
+
"dist/credentials/OliveTinApi.credentials.js"
|
|
38
37
|
],
|
|
39
38
|
"nodes": [
|
|
40
|
-
"dist/nodes/
|
|
41
|
-
"dist/nodes/HttpBin/HttpBin.node.js"
|
|
39
|
+
"dist/nodes/OliveTin/Olivetin.node.js"
|
|
42
40
|
]
|
|
43
41
|
},
|
|
44
42
|
"devDependencies": {
|
|
@@ -1,109 +0,0 @@
|
|
|
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>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class StartNode implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
4
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartNode = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class StartNode {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Start Action',
|
|
9
|
-
name: 'startNode',
|
|
10
|
-
group: ['transform'],
|
|
11
|
-
version: 1,
|
|
12
|
-
icon: { light: 'file:OliveTinLogo.svg', dark: 'file:OliveTinLogo.svg' },
|
|
13
|
-
description: 'Starts and OliveTin action',
|
|
14
|
-
defaults: {
|
|
15
|
-
name: 'Action1',
|
|
16
|
-
},
|
|
17
|
-
inputs: ["main"],
|
|
18
|
-
outputs: ["main"],
|
|
19
|
-
usableAsTool: true,
|
|
20
|
-
credentials: [
|
|
21
|
-
{
|
|
22
|
-
name: 'oliveTinApi',
|
|
23
|
-
required: true,
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
properties: [
|
|
27
|
-
{
|
|
28
|
-
displayName: 'Action ID',
|
|
29
|
-
name: 'actionId',
|
|
30
|
-
type: 'string',
|
|
31
|
-
default: '',
|
|
32
|
-
placeholder: 'date',
|
|
33
|
-
description: 'This is the value of the "ID:" field for your action. It is *not* the Action tittle.',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
async execute() {
|
|
39
|
-
const items = this.getInputData();
|
|
40
|
-
let item;
|
|
41
|
-
let actionId;
|
|
42
|
-
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
43
|
-
try {
|
|
44
|
-
actionId = this.getNodeParameter('actionId', itemIndex, '');
|
|
45
|
-
item = items[itemIndex];
|
|
46
|
-
item.json.actionId = actionId;
|
|
47
|
-
item.json.success = false;
|
|
48
|
-
}
|
|
49
|
-
catch (error) {
|
|
50
|
-
if (this.continueOnFail()) {
|
|
51
|
-
items.push({ json: this.getInputData(itemIndex)[0].json, error, pairedItem: itemIndex });
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
if (error.context) {
|
|
55
|
-
error.context.itemIndex = itemIndex;
|
|
56
|
-
throw error;
|
|
57
|
-
}
|
|
58
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
59
|
-
itemIndex,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return [items];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.StartNode = StartNode;
|
|
68
|
-
//# sourceMappingURL=StartNode.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StartNode.node.js","sourceRoot":"","sources":["../../../nodes/StartNode/StartNode.node.ts"],"names":[],"mappings":";;;AAMA,+CAAkD;AAElD,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACvE,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,aAAa;oBACnB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBAGX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,MAAM;oBACnB,WAAW,EAAE,sFAAsF;iBACnG;aACD;SACD,CAAC;IA4CH,CAAC;IAtCA,KAAK,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAElC,IAAI,IAAwB,CAAC;QAC7B,IAAI,QAAgB,CAAC;QAKrB,KAAK,IAAI,SAAS,GAAG,C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