node-red-contrib-teamogy-api 0.0.2 → 0.0.6
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 +10 -2
- package/examples/examples.json +88 -0
- package/package.json +5 -4
- package/teamogy-client.html +815 -539
- package/teamogy-client.js +193 -50
package/README.md
CHANGED
|
@@ -31,8 +31,15 @@ You must configure a Connection before using this node.
|
|
|
31
31
|
| Limit | number | Optional | Limitation of the total number of records in the response (if not specified, the value 0 is used, the value 0 means no limit) |
|
|
32
32
|
| Paging | number | Optional | Division of responses into multiple parts with the number of records returned (if not specified, the value 1000 is used) |
|
|
33
33
|
| Offset | number | Optional | Determining from which records to return, e.g. if you have a total of 100 records and want to return records 50-100, set Offset to 50, if you want to return all records leave the option at 0 (if not specified, the value 0 is used) |
|
|
34
|
+
| Delay | number | Optional | Specifies the delay between requests, which is used for pagination (if not specified, the value 0 is used) |
|
|
35
|
+
| Req. repeat | number | Optional | Specifies the number of errors after which the request will be repeated (if not specified, the value 5 is used) |
|
|
36
|
+
| Req. delay (s) | number | Optional | Specifies the delay between requests, which is used when retrying a request in case of an error (if not specified, the value 30 is used) |
|
|
34
37
|
| Skip | boolean | Optional, in message only | Adding the msg.skip=true will allow the message to pass through to the output without processing |
|
|
35
|
-
|
|
38
|
+
| Connection | string | Optional, in message only | Replaces connection from configuration, use connection name |
|
|
39
|
+
| Unit | number | Optional, in message only | Replaces unit from connection configuration, use unit/agency id |
|
|
40
|
+
| Entity | string | Optional, in message only | Replaces entity from configuration, use v_entityName for views or r_entityName |
|
|
41
|
+
| Method | string | Optional, in message only | Replaces method from configuration, use the available method for the given entity |
|
|
42
|
+
|
|
36
43
|
## Examples
|
|
37
44
|
|
|
38
45
|
### Static Request Examples
|
|
@@ -89,8 +96,9 @@ msg.body.address = addresses // array of objects
|
|
|
89
96
|
|
|
90
97
|
| Property | Type | Description |
|
|
91
98
|
|----------|------|-------------|
|
|
92
|
-
| payload | string \| object | The standard output
|
|
99
|
+
| payload | string \| object | The standard output of the response |
|
|
93
100
|
| count | number | Number of records in the output |
|
|
101
|
+
| error | string | Error message |
|
|
94
102
|
| msg.* | string \| object | All properties of the input message |
|
|
95
103
|
|
|
96
104
|
## References
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "62054fac29909a02",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "Teamogy API",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": "",
|
|
8
|
+
"env": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "05bbee7aa38f796a",
|
|
12
|
+
"type": "inject",
|
|
13
|
+
"z": "62054fac29909a02",
|
|
14
|
+
"name": "start",
|
|
15
|
+
"props": [
|
|
16
|
+
{
|
|
17
|
+
"p": "payload"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"repeat": "",
|
|
21
|
+
"crontab": "",
|
|
22
|
+
"once": false,
|
|
23
|
+
"onceDelay": 0.1,
|
|
24
|
+
"topic": "",
|
|
25
|
+
"payload": "",
|
|
26
|
+
"payloadType": "date",
|
|
27
|
+
"x": 110,
|
|
28
|
+
"y": 80,
|
|
29
|
+
"wires": [
|
|
30
|
+
[
|
|
31
|
+
"25be0ae5bfcab80b"
|
|
32
|
+
]
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "7bf1dfbdafb4256d",
|
|
37
|
+
"type": "debug",
|
|
38
|
+
"z": "62054fac29909a02",
|
|
39
|
+
"name": "debug",
|
|
40
|
+
"active": true,
|
|
41
|
+
"tosidebar": true,
|
|
42
|
+
"console": false,
|
|
43
|
+
"tostatus": false,
|
|
44
|
+
"complete": "payload",
|
|
45
|
+
"targetType": "msg",
|
|
46
|
+
"statusVal": "",
|
|
47
|
+
"statusType": "auto",
|
|
48
|
+
"x": 450,
|
|
49
|
+
"y": 80,
|
|
50
|
+
"wires": []
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "25be0ae5bfcab80b",
|
|
54
|
+
"type": "teamogy-client",
|
|
55
|
+
"z": "62054fac29909a02",
|
|
56
|
+
"name": "",
|
|
57
|
+
"configuration": "",
|
|
58
|
+
"mode": true,
|
|
59
|
+
"method": "GET",
|
|
60
|
+
"entity": "v_users",
|
|
61
|
+
"source": "static",
|
|
62
|
+
"cparams": "",
|
|
63
|
+
"cbody": "",
|
|
64
|
+
"bodysource": "payload",
|
|
65
|
+
"merge": false,
|
|
66
|
+
"limit": "0",
|
|
67
|
+
"paging": "1000",
|
|
68
|
+
"offset": "0",
|
|
69
|
+
"delay": "0",
|
|
70
|
+
"repeat": "5",
|
|
71
|
+
"rdelay": "30",
|
|
72
|
+
"x": 280,
|
|
73
|
+
"y": 80,
|
|
74
|
+
"wires": [
|
|
75
|
+
[
|
|
76
|
+
"7bf1dfbdafb4256d"
|
|
77
|
+
]
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "b7904e06c3ec62bd",
|
|
82
|
+
"type": "global-config",
|
|
83
|
+
"env": [],
|
|
84
|
+
"modules": {
|
|
85
|
+
"node-red-contrib-teamogy-api": "0.0.4"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
]
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-teamogy-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
7
|
},
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=18.0.0"
|
|
10
|
+
},
|
|
8
11
|
"keywords": [
|
|
9
12
|
"node-red",
|
|
10
13
|
"teamogy",
|
|
@@ -17,11 +20,9 @@
|
|
|
17
20
|
"author": "",
|
|
18
21
|
"license": "",
|
|
19
22
|
"node-red": {
|
|
23
|
+
"version": ">=4.0.0",
|
|
20
24
|
"nodes": {
|
|
21
25
|
"teamogy-client": "teamogy-client.js"
|
|
22
26
|
}
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"node-fetch": "^3.3.2"
|
|
26
27
|
}
|
|
27
28
|
}
|