n8n-nodes-n8ndesigner-salla-n8nai 0.3.158
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 +37 -0
- package/assets/salla-logo.svg +7 -0
- package/dist/credentials/SallaActionsApi.credentials.d.ts +19 -0
- package/dist/credentials/SallaActionsApi.credentials.js +80 -0
- package/dist/data/salla_actions_map.json +9304 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +317 -0
- package/dist/nodes/Actions/SallaActions.node.d.ts +14 -0
- package/dist/nodes/Actions/SallaActions.node.js +7992 -0
- package/dist/nodes/Actions/assets/salla-logo.svg +7 -0
- package/dist/nodes/Customers/DeleteCustomer.node.d.ts +8 -0
- package/dist/nodes/Customers/DeleteCustomer.node.js +304 -0
- package/dist/nodes/Customers/assets/salla-logo.svg +7 -0
- package/dist/nodes/Orders/UpdateOrderStatus.node.d.ts +8 -0
- package/dist/nodes/Orders/UpdateOrderStatus.node.js +359 -0
- package/dist/nodes/Orders/assets/salla-logo.svg +7 -0
- package/dist/nodes/Triggers/CustomerCreatedTrigger.node.d.ts +8 -0
- package/dist/nodes/Triggers/CustomerCreatedTrigger.node.js +150 -0
- package/dist/nodes/Triggers/OrderStatusUpdatedTrigger.node.d.ts +8 -0
- package/dist/nodes/Triggers/OrderStatusUpdatedTrigger.node.js +150 -0
- package/dist/nodes/Triggers/SallaTrigger.node.d.ts +3 -0
- package/dist/nodes/Triggers/SallaTrigger.node.js +30 -0
- package/dist/nodes/Triggers/SallaTriggers.node.d.ts +8 -0
- package/dist/nodes/Triggers/SallaTriggers.node.js +267 -0
- package/dist/nodes/Triggers/assets/salla-logo.svg +7 -0
- package/dist/shared/constants.d.ts +5 -0
- package/dist/shared/constants.js +36 -0
- package/dist/shared/eventStore.d.ts +4 -0
- package/dist/shared/eventStore.js +57 -0
- package/dist/shared/httpClient.d.ts +33 -0
- package/dist/shared/httpClient.js +439 -0
- package/dist/shared/sallaActionsMap.js +28 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 n8n Designer
|
|
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,37 @@
|
|
|
1
|
+
# n8n-nodes-n8ndesigner-salla-n8nai
|
|
2
|
+
|
|
3
|
+
This package provides a set of n8n community nodes that make it easier to receive and process Salla webhook events via N8N Designer. It supports multi-endpoint workflows and event-based routing so you can connect Salla to your automations with minimal setup.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Receive Salla webhook events routed through N8N Designer.
|
|
8
|
+
- Handle events (orders, customers, products, and more) in your n8n workflows.
|
|
9
|
+
- Support for multi-endpoint workflows and event-based routing.
|
|
10
|
+
- Works as a standard n8n community node package.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Install via npm in your n8n custom extension folder:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install n8n-nodes-n8ndesigner-salla-n8nai
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Restart n8n and enable the community node if required.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
- Add the Salla node to your workflow in n8n.
|
|
25
|
+
- Connect it to your own logic (notifications, CRM sync, analytics logging, and more).
|
|
26
|
+
- Route events from N8N Designer into this node to trigger automations.
|
|
27
|
+
|
|
28
|
+
## Support & Contact
|
|
29
|
+
|
|
30
|
+
- Website: https://n8ndesigner.com/
|
|
31
|
+
- Email: support@n8ndesigner.com
|
|
32
|
+
- Telegram Community: t.me/+nrnxntkvDn1kNTBk
|
|
33
|
+
- News Channel: t.me/+QPFFnJNnnrM5NmVk
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
This project is licensed under the MIT License – see the [LICENSE](./LICENSE) file for details.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="60" height="60">
|
|
3
|
+
<path d="M0 0 C19.8 0 39.6 0 60 0 C60 19.8 60 39.6 60 60 C40.2 60 20.4 60 0 60 C0 40.2 0 20.4 0 0 Z " fill="#F7F9F9" transform="translate(0,0)"/>
|
|
4
|
+
<path d="M0 0 C19.8 0 39.6 0 60 0 C60 19.8 60 39.6 60 60 C40.2 60 20.4 60 0 60 C0 40.2 0 20.4 0 0 Z M5.19921875 12.25390625 C3.66791981 15.76043117 3.18095818 19.16739851 2.8125 22.9375 C2.73499512 23.68169189 2.65749023 24.42588379 2.57763672 25.19262695 C0.72052858 37.88413585 0.72052858 37.88413585 3.75 49.75 C8.29760854 54.29760854 12.43722773 54.31880575 18.67578125 54.3359375 C19.94085762 54.3459227 19.94085762 54.3459227 21.23149109 54.35610962 C23.01424992 54.36622225 24.7970465 54.37092707 26.57983398 54.37060547 C29.29279831 54.37496832 32.00412133 54.41127234 34.71679688 54.44921875 C36.45311947 54.45508948 38.18944975 54.45905716 39.92578125 54.4609375 C40.73018143 54.47530853 41.5345816 54.48967957 42.36335754 54.50448608 C48.02701569 54.45907127 51.38770916 53.35030915 56 50 C58.27309322 46.96211691 58.20594951 44.39689614 58.046875 40.67578125 C58.00433594 39.64646484 57.96179687 38.61714844 57.91796875 37.55664062 C57.86253906 36.48607422 57.80710938 35.41550781 57.75 34.3125 C57.69005859 32.7356543 57.69005859 32.7356543 57.62890625 31.12695312 C57.28476265 18.44905311 57.28476265 18.44905311 51 8 C45.02188736 4.94531301 38.39660875 5.62798691 31.85327148 5.62939453 C29.57264616 5.62501946 27.29395559 5.5886589 25.01367188 5.55078125 C23.5520899 5.54491237 22.0904988 5.54094345 20.62890625 5.5390625 C19.30963135 5.53084473 17.99035645 5.52262695 16.63110352 5.51416016 C11.5459631 6.19454941 8.38265208 8.26943547 5.19921875 12.25390625 Z " fill="#F8FAFA" transform="translate(0,0)"/>
|
|
5
|
+
<path d="M0 0 C0.7111647 -0.00287018 1.42232941 -0.00574036 2.15504456 -0.00869751 C3.65358276 -0.01073157 5.15214792 -0.00524779 6.65063477 0.00732422 C8.93111251 0.02336509 11.20981188 0.0074672 13.49023438 -0.01171875 C14.95182679 -0.00973573 16.41341811 -0.00589085 17.875 0 C19.85391235 0.00507568 19.85391235 0.00507568 21.87280273 0.01025391 C27.02001927 0.56051776 30.28688423 2.08620628 33.80078125 5.875 C36.1768804 10.79069135 36.42330613 15.37363551 36.75390625 20.7734375 C36.83125 21.77632812 36.90859375 22.77921875 36.98828125 23.8125 C38.25013816 41.0278336 38.25013816 41.0278336 34.50390625 45.3984375 C29.46419289 48.56651818 25.36131438 48.85309472 19.59765625 48.83203125 C18.75473022 48.8372731 17.9118042 48.84251495 17.04333496 48.84791565 C15.26832171 48.85431426 13.49326594 48.85302695 11.71826172 48.84448242 C9.01192408 48.83596274 6.30769252 48.86477767 3.6015625 48.89648438 C1.87109438 48.89809645 0.14062254 48.89751873 -1.58984375 48.89453125 C-2.3931311 48.90576523 -3.19641846 48.91699921 -4.02404785 48.92857361 C-9.30418782 48.86348375 -12.289659 47.86805566 -16.49609375 44.3984375 C-21.3486439 37.74709721 -18.53928151 25.26421612 -17.74609375 17.3984375 C-17.65376465 16.34039917 -17.65376465 16.34039917 -17.55957031 15.26098633 C-16.99558708 10.34836472 -15.65074794 7.19284673 -12.49609375 3.3984375 C-8.34160684 0.25442571 -5.1469839 0.01321272 0 0 Z M-8.89746094 8.20117188 C-11.20461843 11.37228022 -11.42615646 14.60028293 -11.74609375 18.3984375 C-11.81981201 19.15012207 -11.89353027 19.90180664 -11.96948242 20.67626953 C-13.64550707 31.20503024 -13.64550707 31.20503024 -11.48876953 41.01855469 C-8.33657754 43.20137619 -4.95082506 42.82563993 -1.25 42.796875 C-0.44247787 42.79974518 0.36504425 42.80261536 1.19703674 42.80557251 C2.9042328 42.80761314 4.61145224 42.80208328 6.31860352 42.78955078 C8.92843118 42.77351721 11.53670536 42.7893879 14.14648438 42.80859375 C15.805993 42.80661091 17.46550065 42.80276638 19.125 42.796875 C19.90427353 42.80294769 20.68354706 42.80902039 21.48643494 42.8152771 C24.75633902 42.77296385 27.10926658 42.61670772 29.9987793 41.01855469 C32.71445441 38.09540464 31.90070638 34.86785451 31.76171875 31.078125 C31.67664062 29.86382812 31.5915625 28.64953125 31.50390625 27.3984375 C31.45459961 26.6859082 31.40529297 25.97337891 31.35449219 25.23925781 C31.18259658 22.95550188 30.97525617 20.67790186 30.75390625 18.3984375 C30.69251465 17.66866699 30.63112305 16.93889648 30.56787109 16.18701172 C30.21468237 13.04048779 29.78396565 10.78336947 27.90527344 8.20117188 C24.60710244 5.72519641 22.35148245 5.88147188 18.25390625 5.8671875 C17.21121582 5.86144714 17.21121582 5.86144714 16.14746094 5.85559082 C14.68162584 5.8528757 13.21574197 5.86020915 11.75 5.87695312 C9.5106165 5.89837331 7.27444038 5.87714307 5.03515625 5.8515625 C3.60806586 5.85420585 2.18097746 5.859331 0.75390625 5.8671875 C-1.18742187 5.87395508 -1.18742187 5.87395508 -3.16796875 5.88085938 C-6.54167462 6.13832468 -6.54167462 6.13832468 -8.89746094 8.20117188 Z " fill="#0E525F" transform="translate(20.49609375,5.6015625)"/>
|
|
6
|
+
<path d="M0 0 C3.254796 -0.28718788 4.83672129 -0.08906111 7.75 1.5 C12.40623983 3.64903377 17.04658098 4.02573834 21.95703125 2.3203125 C23.63967317 1.55047633 25.31992388 0.77541975 27 0 C29.9375 -0.1875 29.9375 -0.1875 32 0 C32 1.65 32 3.3 32 5 C30.730447 5.64834654 29.45930294 6.29357815 28.1875 6.9375 C27.47980469 7.29714844 26.77210937 7.65679687 26.04296875 8.02734375 C20.27160233 10.77508799 14.2584407 10.98469362 8.15625 9.140625 C1.50178571 6.50178571 1.50178571 6.50178571 0 5 C-0.04063832 3.33382885 -0.042721 1.66611905 0 0 Z " fill="#0E535F" transform="translate(14,32)"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
|
|
3
|
+
declare class SallaActionsApi implements ICredentialType {
|
|
4
|
+
name: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
documentationUrl?: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: {
|
|
9
|
+
readonly type: "generic";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly headers: {
|
|
12
|
+
readonly Authorization: "={{'Bearer ' + $credentials.makKey}}";
|
|
13
|
+
readonly 'Content-Type': "application/json";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { SallaActionsApi };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// credentials/SallaActionsApi.credentials.ts
|
|
21
|
+
var SallaActionsApi_credentials_exports = {};
|
|
22
|
+
__export(SallaActionsApi_credentials_exports, {
|
|
23
|
+
SallaActionsApi: () => SallaActionsApi
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(SallaActionsApi_credentials_exports);
|
|
26
|
+
|
|
27
|
+
// shared/constants.ts
|
|
28
|
+
var SALLA_CREDENTIAL_NAME = "sallaActionsApi";
|
|
29
|
+
var DEFAULT_BASE_URL = "https://app.n8ndesigner.com";
|
|
30
|
+
|
|
31
|
+
// credentials/SallaActionsApi.credentials.ts
|
|
32
|
+
var SallaActionsApi = class {
|
|
33
|
+
constructor() {
|
|
34
|
+
this.name = SALLA_CREDENTIAL_NAME;
|
|
35
|
+
this.displayName = "Salla (N8NDesigner Actions)";
|
|
36
|
+
this.documentationUrl = void 0;
|
|
37
|
+
this.properties = [
|
|
38
|
+
{
|
|
39
|
+
displayName: "Base URL",
|
|
40
|
+
name: "baseUrl",
|
|
41
|
+
type: "string",
|
|
42
|
+
default: DEFAULT_BASE_URL,
|
|
43
|
+
placeholder: DEFAULT_BASE_URL,
|
|
44
|
+
description: "Root URL for the N8NDesigner Actions API. Leave as default unless instructed otherwise."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: "Salla Merchant ID",
|
|
48
|
+
name: "salla_merchant_id",
|
|
49
|
+
type: "string",
|
|
50
|
+
default: "",
|
|
51
|
+
required: true,
|
|
52
|
+
description: "Numeric merchant identifier from your Salla store configuration."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: "MAK Key",
|
|
56
|
+
name: "makKey",
|
|
57
|
+
type: "string",
|
|
58
|
+
typeOptions: {
|
|
59
|
+
password: true
|
|
60
|
+
},
|
|
61
|
+
default: "",
|
|
62
|
+
required: true,
|
|
63
|
+
description: "Backend-issued token that starts with mak_. Used for Bearer authentication."
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
this.authenticate = {
|
|
67
|
+
type: "generic",
|
|
68
|
+
properties: {
|
|
69
|
+
headers: {
|
|
70
|
+
Authorization: "={{'Bearer ' + $credentials.makKey}}",
|
|
71
|
+
"Content-Type": "application/json"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
SallaActionsApi
|
|
80
|
+
});
|