n8n-nodes-airprocess 0.1.21 → 0.1.23

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 CHANGED
@@ -6,7 +6,7 @@ Community n8n node for AirProcess.
6
6
 
7
7
  - One node: `AirProcess`
8
8
  - Route families grouped by HTTP method: `GET`, `POST`, `PATCH`, `DELETE`, `Custom`
9
- - Dynamic model and field dropdowns loaded from AirProcess (`/model`)
9
+ - Dynamic model, private-view, and field dropdowns loaded from AirProcess
10
10
 
11
11
  ## Supported operations
12
12
 
@@ -35,6 +35,10 @@ Community n8n node for AirProcess.
35
35
  - `skip`
36
36
  - `limit`
37
37
  - `filter` from fields or raw JSON (depending on selected mode)
38
+ - `Get Private View Data`: `POST /command/views/getViewData`
39
+ - Select the model, then a private view belonging to that model
40
+ - Optionally filter by a model field, choose fields to return, and send a sort object
41
+ - Uses the standard `skip` and `limit` options for paging
38
42
 
39
43
  ### PATCH
40
44
 
@@ -52,6 +56,22 @@ Community n8n node for AirProcess.
52
56
  - Optional custom headers (`Send Headers`)
53
57
  - Optional request body (`Send Body`)
54
58
 
59
+ ## Pagination
60
+
61
+ AirProcess supports offset paging through `skip` and `limit`. Add these number options from the node's **Options** menu:
62
+
63
+ - `Skip`: number of records to skip (default: `0`)
64
+ - `Limit`: maximum number of records to return (default: `50`)
65
+
66
+ The connector sends the values according to the route type:
67
+
68
+ - Native `GET` routes: as URL query parameters, for example `/{MODEL_ID}?skip=100&limit=50`
69
+ - `Find Records (Mongo)` and `Get Private View Data`: in the JSON body
70
+ - Custom `GET`: as URL query parameters
71
+ - Custom `POST` with JSON body: merged into the JSON body
72
+
73
+ For `Find Records (Mongo)`, values added in **Options** take precedence over the operation's existing `Skip` and `Limit` fields.
74
+
55
75
  ## Example: Find Records (Mongo)
56
76
 
57
77
  Example payload generated by the node:
@@ -73,6 +93,32 @@ You can build the same `filter` either:
73
93
  - with `Using Fields Below`
74
94
  - or with `Specify Filters = JSON`
75
95
 
96
+ ## Example: Get Private View Data
97
+
98
+ The `Get Private View Data` operation builds a request such as:
99
+
100
+ ```json
101
+ {
102
+ "modelId": "MODEL_ID",
103
+ "viewId": "PRIVATE_VIEW_ID",
104
+ "filter": {
105
+ "type": "filter",
106
+ "fieldId": "FIELD_ID",
107
+ "operator": "=",
108
+ "value": "Example"
109
+ },
110
+ "sort": [
111
+ {
112
+ "fieldId": "FIELD_ID",
113
+ "direction": "asc"
114
+ }
115
+ ],
116
+ "fields": ["FIELD_ID_1", "FIELD_ID_2"],
117
+ "skip": 0,
118
+ "limit": 50
119
+ }
120
+ ```
121
+
76
122
  ## Authentication
77
123
 
78
124
  The node uses the package credential `AirProcess API` (`airProcessApi`) with an API token (Bearer).
@@ -6,6 +6,8 @@ export declare class AirProcess implements INodeType {
6
6
  getModelFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
7
  getModelFieldsForFind(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
8
8
  getModelFieldsForUpdate(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
9
+ getModelViews(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
10
+ getModelFieldsForViewData(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
9
11
  };
10
12
  };
11
13
  description: INodeTypeDescription;