n8n-nodes-sallaflow 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SallaFlow
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,43 @@
1
+ # n8n-nodes-sallaflow
2
+
3
+ Connect your [Salla](https://salla.sa) store to [n8n](https://n8n.io) workflow automation.
4
+
5
+ ## Features
6
+
7
+ ### Actions (16 operations)
8
+ - **Order**: Get, Get Many, Create (JSON), Update Status, Cancel
9
+ - **Product**: Get, Get Many, Create, Update, Delete
10
+ - **Customer**: Get, Get Many, Create, Update
11
+ - **Coupon**: Get, Get Many, Create, Update, Delete
12
+
13
+ ### Triggers (25 webhook events)
14
+ Orders, products, customers, coupons, shipments, invoices, abandoned carts, reviews, and more.
15
+
16
+ ### Developer Experience
17
+ - **Dynamic dropdowns** for orders, products, customers, coupons, categories, and statuses
18
+ - **Detailed error messages** showing exactly which fields Salla rejected
19
+ - **Field hints & placeholders** on every field
20
+ - **Custom JSON override** for advanced use cases
21
+ - **Expression support** on all dropdown fields
22
+
23
+ ## Installation
24
+
25
+ 1. Go to **Settings > Community Nodes**
26
+ 2. Click **Install**
27
+ 3. Enter `n8n-nodes-sallaflow`
28
+ 4. Click **Install**
29
+
30
+ ## Setup
31
+
32
+ 1. Install the SallaFlow app on your Salla store
33
+ 2. Copy your API Key from the SallaFlow app settings
34
+ 3. In n8n, create a **SallaFlow** credential and paste your API key
35
+
36
+ ## Compatibility
37
+
38
+ - n8n v1.0+ (tested on v2.6.3)
39
+ - Node.js 18+
40
+
41
+ ## License
42
+
43
+ MIT
@@ -0,0 +1,13 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+
3
+ export class SallaFlowApi implements ICredentialType {
4
+ name = 'sallaFlowApi';
5
+ displayName = 'SallaFlow API';
6
+ documentationUrl = 'https://sallaflow.cloud/docs';
7
+ properties: INodeProperties[] = [
8
+ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true,
9
+ description: 'Your SallaFlow API key from the merchant dashboard.' },
10
+ ];
11
+ authenticate: IAuthenticateGeneric = { type: 'generic', properties: { headers: { 'X-SallaFlow-Key': '={{$credentials.apiKey}}' } } };
12
+ test: ICredentialTestRequest = { request: { baseURL: 'https://api.sallaflow.cloud', url: '/api/v1/me', method: 'GET' } };
13
+ }
@@ -0,0 +1,10 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class SallaFlowApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
10
+ //# sourceMappingURL=SallaFlowApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SallaFlowApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/SallaFlowApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE9G,qBAAa,YAAa,YAAW,eAAe;IAClD,IAAI,SAAkB;IACtB,WAAW,SAAmB;IAC9B,gBAAgB,SAAkC;IAClD,UAAU,EAAE,eAAe,EAAE,CAG3B;IACF,YAAY,EAAE,oBAAoB,CAAmG;IACrI,IAAI,EAAE,sBAAsB,CAA6F;CAC1H"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SallaFlowApi = void 0;
4
+ class SallaFlowApi {
5
+ constructor() {
6
+ this.name = 'sallaFlowApi';
7
+ this.displayName = 'SallaFlow API';
8
+ this.documentationUrl = 'https://sallaflow.cloud/docs';
9
+ this.properties = [
10
+ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true,
11
+ description: 'Your SallaFlow API key from the merchant dashboard.' },
12
+ ];
13
+ this.authenticate = { type: 'generic', properties: { headers: { 'X-SallaFlow-Key': '={{$credentials.apiKey}}' } } };
14
+ this.test = { request: { baseURL: 'https://api.sallaflow.cloud', url: '/api/v1/me', method: 'GET' } };
15
+ }
16
+ }
17
+ exports.SallaFlowApi = SallaFlowApi;
18
+ //# sourceMappingURL=SallaFlowApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SallaFlowApi.credentials.js","sourceRoot":"","sources":["../../credentials/SallaFlowApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAAzB;QACE,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAG,eAAe,CAAC;QAC9B,qBAAgB,GAAG,8BAA8B,CAAC;QAClD,eAAU,GAAsB;YAC9B,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI;gBACpH,WAAW,EAAE,qDAAqD,EAAE;SACvE,CAAC;QACF,iBAAY,GAAyB,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,EAAE,EAAE,CAAC;QACrI,SAAI,GAA2B,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;IAC3H,CAAC;CAAA;AAVD,oCAUC"}
@@ -0,0 +1,16 @@
1
+ import { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class SallaFlow implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getOrders(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
+ getProducts(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
8
+ getCustomers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
9
+ getCoupons(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
10
+ getOrderStatuses(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
11
+ getCategories(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
12
+ };
13
+ };
14
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
15
+ }
16
+ //# sourceMappingURL=SallaFlow.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SallaFlow.node.d.ts","sourceRoot":"","sources":["../../../nodes/SallaFlow/SallaFlow.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAsB,MAAM,cAAc,CAAC;AASvK,qBAAa,SAAU,YAAW,SAAS;IACzC,WAAW,EAAE,oBAAoB,CA6b/B;IAKF,OAAO;;4BAEmB,qBAAqB,GAAG,QAAQ,oBAAoB,EAAE,CAAC;8BAYrD,qBAAqB,GAAG,QAAQ,oBAAoB,EAAE,CAAC;+BAYtD,qBAAqB,GAAG,QAAQ,oBAAoB,EAAE,CAAC;6BAYzD,qBAAqB,GAAG,QAAQ,oBAAoB,EAAE,CAAC;mCAYjD,qBAAqB,GAAG,QAAQ,oBAAoB,EAAE,CAAC;gCAY1D,qBAAqB,GAAG,QAAQ,oBAAoB,EAAE,CAAC;;MAanF;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAwNxE"}