losant_rest 1.22.0 → 1.22.2
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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +8258 -5884
- data/docs/applicationJobLog.md +49 -0
- data/docs/applicationJobLogs.md +51 -0
- data/docs/data.md +1 -1
- data/docs/device.md +1 -0
- data/docs/events.md +3 -0
- data/lib/platform_rest/application_job_log.rb +81 -0
- data/lib/platform_rest/application_job_logs.rb +90 -0
- data/lib/platform_rest/client.rb +10 -2
- data/lib/platform_rest/data.rb +1 -1
- data/lib/platform_rest/device.rb +2 -0
- data/lib/platform_rest/events.rb +5 -0
- data/lib/platform_rest/version.rb +1 -1
- data/lib/platform_rest.rb +2 -0
- data/schemas/advancedApplicationJobLogQuery.json +855 -0
- data/schemas/apiTokenPost.json +5 -0
- data/schemas/application.json +4 -0
- data/schemas/applicationCreationByTemplateResult.json +4 -0
- data/schemas/applicationDashboardPost.json +120 -0
- data/schemas/applicationJobLog.json +250 -0
- data/schemas/applicationJobLogs.json +292 -0
- data/schemas/applicationPatch.json +4 -0
- data/schemas/applicationPost.json +4 -0
- data/schemas/applications.json +4 -0
- data/schemas/dashboard.json +120 -0
- data/schemas/dashboardPatch.json +120 -0
- data/schemas/dashboardPost.json +120 -0
- data/schemas/dashboards.json +120 -0
- data/schemas/dataExport.json +4 -0
- data/schemas/deviceDataExport.json +48 -0
- data/schemas/devicesDataExport.json +2116 -0
- data/schemas/devicesPatch.json +65 -0
- data/schemas/githubLogin.json +5 -0
- data/schemas/samlResponse.json +5 -0
- data/schemas/suggestFunctionPost.json +15 -0
- data/schemas/suggestFunctionResponse.json +37 -0
- data/schemas/userCredentials.json +5 -0
- data/schemas/userPost.json +5 -0
- metadata +13 -2
data/schemas/apiTokenPost.json
CHANGED
@@ -39,6 +39,8 @@
|
|
39
39
|
"applicationCertificateAuthorities.*",
|
40
40
|
"applicationDashboards.*",
|
41
41
|
"applicationDashboard.*",
|
42
|
+
"applicationJobLogs.*",
|
43
|
+
"applicationJobLog.*",
|
42
44
|
"applicationKey.*",
|
43
45
|
"applicationKeys.*",
|
44
46
|
"credential.*",
|
@@ -130,6 +132,8 @@
|
|
130
132
|
"applicationDashboard.delete",
|
131
133
|
"applicationDashboards.get",
|
132
134
|
"applicationDashboards.post",
|
135
|
+
"applicationJobLogs.get",
|
136
|
+
"applicationJobLog.get",
|
133
137
|
"applicationKey.delete",
|
134
138
|
"applicationKey.get",
|
135
139
|
"applicationKey.patch",
|
@@ -290,6 +294,7 @@
|
|
290
294
|
"flow.setStorageEntry",
|
291
295
|
"flow.getStorageEntriesMetadata",
|
292
296
|
"flow.stats",
|
297
|
+
"flow.suggestFunction",
|
293
298
|
"flows.get",
|
294
299
|
"flows.getByVersion",
|
295
300
|
"flows.import",
|
data/schemas/application.json
CHANGED
@@ -880,6 +880,45 @@
|
|
880
880
|
}
|
881
881
|
},
|
882
882
|
"additionalProperties": false
|
883
|
+
},
|
884
|
+
{
|
885
|
+
"type": "object",
|
886
|
+
"properties": {
|
887
|
+
"queryType": {
|
888
|
+
"type": "string",
|
889
|
+
"enum": [
|
890
|
+
"events"
|
891
|
+
]
|
892
|
+
},
|
893
|
+
"id": {
|
894
|
+
"type": "string",
|
895
|
+
"maxLength": 48
|
896
|
+
},
|
897
|
+
"sortField": {
|
898
|
+
"type": "string",
|
899
|
+
"maxLength": 255
|
900
|
+
},
|
901
|
+
"sortDirection": {
|
902
|
+
"type": "string",
|
903
|
+
"maxLength": 255
|
904
|
+
},
|
905
|
+
"page": {
|
906
|
+
"type": "string",
|
907
|
+
"maxLength": 255
|
908
|
+
},
|
909
|
+
"perPage": {
|
910
|
+
"type": "string",
|
911
|
+
"maxLength": 255
|
912
|
+
},
|
913
|
+
"query": {
|
914
|
+
"type": "string",
|
915
|
+
"maxLength": 32767
|
916
|
+
},
|
917
|
+
"includeExtendedEventInfo": {
|
918
|
+
"type": "boolean"
|
919
|
+
}
|
920
|
+
},
|
921
|
+
"additionalProperties": false
|
883
922
|
}
|
884
923
|
]
|
885
924
|
}
|
@@ -2553,6 +2592,18 @@
|
|
2553
2592
|
"format": {
|
2554
2593
|
"type": "string",
|
2555
2594
|
"maxLength": 255
|
2595
|
+
},
|
2596
|
+
"scale": {
|
2597
|
+
"type": "string",
|
2598
|
+
"enum": [
|
2599
|
+
"linear",
|
2600
|
+
"log",
|
2601
|
+
"sqrt"
|
2602
|
+
],
|
2603
|
+
"default": "linear"
|
2604
|
+
},
|
2605
|
+
"stacked": {
|
2606
|
+
"type": "boolean"
|
2556
2607
|
}
|
2557
2608
|
},
|
2558
2609
|
"additionalProperties": false,
|
@@ -2560,6 +2611,75 @@
|
|
2560
2611
|
"id"
|
2561
2612
|
]
|
2562
2613
|
}
|
2614
|
+
},
|
2615
|
+
"decorators": {
|
2616
|
+
"type": "array",
|
2617
|
+
"maxItems": 10,
|
2618
|
+
"items": {
|
2619
|
+
"type": "object",
|
2620
|
+
"properties": {
|
2621
|
+
"type": {
|
2622
|
+
"type": "string",
|
2623
|
+
"enum": [
|
2624
|
+
"line",
|
2625
|
+
"area"
|
2626
|
+
]
|
2627
|
+
},
|
2628
|
+
"yAxisId": {
|
2629
|
+
"type": "string",
|
2630
|
+
"maxLength": 48
|
2631
|
+
},
|
2632
|
+
"label": {
|
2633
|
+
"type": "string",
|
2634
|
+
"maxLength": 255
|
2635
|
+
},
|
2636
|
+
"color": {
|
2637
|
+
"type": "string",
|
2638
|
+
"maxLength": 64
|
2639
|
+
},
|
2640
|
+
"lineStyle": {
|
2641
|
+
"type": "string",
|
2642
|
+
"enum": [
|
2643
|
+
"solid",
|
2644
|
+
"dotted",
|
2645
|
+
"dashed"
|
2646
|
+
]
|
2647
|
+
},
|
2648
|
+
"lineWeight": {
|
2649
|
+
"type": "integer",
|
2650
|
+
"minimum": 0,
|
2651
|
+
"maximum": 5
|
2652
|
+
},
|
2653
|
+
"y1": {
|
2654
|
+
"oneOf": [
|
2655
|
+
{
|
2656
|
+
"type": "number"
|
2657
|
+
},
|
2658
|
+
{
|
2659
|
+
"type": "string",
|
2660
|
+
"maxLength": 128
|
2661
|
+
}
|
2662
|
+
]
|
2663
|
+
},
|
2664
|
+
"y2": {
|
2665
|
+
"oneOf": [
|
2666
|
+
{
|
2667
|
+
"type": "number"
|
2668
|
+
},
|
2669
|
+
{
|
2670
|
+
"type": "string",
|
2671
|
+
"maxLength": 128
|
2672
|
+
}
|
2673
|
+
]
|
2674
|
+
}
|
2675
|
+
},
|
2676
|
+
"required": [
|
2677
|
+
"type",
|
2678
|
+
"yAxisId",
|
2679
|
+
"y1"
|
2680
|
+
],
|
2681
|
+
"additionalProperties": false
|
2682
|
+
}
|
2563
2683
|
}
|
2564
2684
|
},
|
2565
2685
|
"additionalProperties": false
|
@@ -0,0 +1,250 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"id": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"jobId": {
|
10
|
+
"type": "string",
|
11
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
12
|
+
},
|
13
|
+
"jobExecutionId": {
|
14
|
+
"type": "string",
|
15
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
16
|
+
},
|
17
|
+
"name": {
|
18
|
+
"type": "string"
|
19
|
+
},
|
20
|
+
"applicationId": {
|
21
|
+
"type": "string",
|
22
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
23
|
+
},
|
24
|
+
"runQueuedAt": {
|
25
|
+
"type": "string",
|
26
|
+
"format": "date-time"
|
27
|
+
},
|
28
|
+
"runStartedAt": {
|
29
|
+
"type": "string",
|
30
|
+
"format": "date-time"
|
31
|
+
},
|
32
|
+
"runCompletedAt": {
|
33
|
+
"type": "string",
|
34
|
+
"format": "date-time"
|
35
|
+
},
|
36
|
+
"status": {
|
37
|
+
"type": "string",
|
38
|
+
"enum": [
|
39
|
+
"queued",
|
40
|
+
"inProgress",
|
41
|
+
"completed",
|
42
|
+
"errored",
|
43
|
+
"failed"
|
44
|
+
]
|
45
|
+
},
|
46
|
+
"requestedById": {
|
47
|
+
"type": "string",
|
48
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
49
|
+
},
|
50
|
+
"requestedByType": {
|
51
|
+
"type": "string",
|
52
|
+
"enum": [
|
53
|
+
"user",
|
54
|
+
"apiToken",
|
55
|
+
"flow",
|
56
|
+
"device",
|
57
|
+
"system"
|
58
|
+
]
|
59
|
+
},
|
60
|
+
"ownerType": {
|
61
|
+
"type": "string",
|
62
|
+
"enum": [
|
63
|
+
"application",
|
64
|
+
"user",
|
65
|
+
"organization"
|
66
|
+
]
|
67
|
+
},
|
68
|
+
"ownerId": {
|
69
|
+
"type": "string",
|
70
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
71
|
+
},
|
72
|
+
"resourceType": {
|
73
|
+
"type": "string",
|
74
|
+
"enum": [
|
75
|
+
"application",
|
76
|
+
"dashboard",
|
77
|
+
"datatable",
|
78
|
+
"event",
|
79
|
+
"device",
|
80
|
+
"notebook",
|
81
|
+
"deviceRecipe"
|
82
|
+
]
|
83
|
+
},
|
84
|
+
"resourceId": {
|
85
|
+
"type": "string",
|
86
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
87
|
+
},
|
88
|
+
"progress": {
|
89
|
+
"type": "object",
|
90
|
+
"properties": {
|
91
|
+
"completed": {
|
92
|
+
"type": "number"
|
93
|
+
},
|
94
|
+
"total": {
|
95
|
+
"type": "number"
|
96
|
+
},
|
97
|
+
"status": {
|
98
|
+
"type": "string"
|
99
|
+
}
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"error": {
|
103
|
+
"type": "object",
|
104
|
+
"properties": {
|
105
|
+
"name": {
|
106
|
+
"type": "string"
|
107
|
+
},
|
108
|
+
"message": {
|
109
|
+
"type": "string"
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"input": {
|
114
|
+
"callbackUrl": {
|
115
|
+
"type": "string",
|
116
|
+
"format": "uri",
|
117
|
+
"maxLength": 1024
|
118
|
+
},
|
119
|
+
"emails": {
|
120
|
+
"type": "array",
|
121
|
+
"items": {
|
122
|
+
"type": "string",
|
123
|
+
"format": "email",
|
124
|
+
"maxLength": 1024
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"start": {
|
128
|
+
"type": "number"
|
129
|
+
},
|
130
|
+
"end": {
|
131
|
+
"type": "number"
|
132
|
+
},
|
133
|
+
"gatewayId": {
|
134
|
+
"type": "string",
|
135
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
136
|
+
},
|
137
|
+
"parentId": {
|
138
|
+
"type": "string",
|
139
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
140
|
+
},
|
141
|
+
"query": {
|
142
|
+
"type": "string"
|
143
|
+
},
|
144
|
+
"ownerId": {
|
145
|
+
"type": "string",
|
146
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
147
|
+
},
|
148
|
+
"ownerType": {
|
149
|
+
"type": "string",
|
150
|
+
"enum": [
|
151
|
+
"user",
|
152
|
+
"organization"
|
153
|
+
]
|
154
|
+
},
|
155
|
+
"fileUrl": {
|
156
|
+
"type": "string",
|
157
|
+
"format": "uri",
|
158
|
+
"maxLength": 1024
|
159
|
+
},
|
160
|
+
"templateContext": {
|
161
|
+
"type": "string"
|
162
|
+
}
|
163
|
+
},
|
164
|
+
"output": {
|
165
|
+
"downloadUrls": {
|
166
|
+
"type": "array",
|
167
|
+
"items": {
|
168
|
+
"type": "string",
|
169
|
+
"format": "uri",
|
170
|
+
"maxLength": 1024
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"devicesDirectory": {
|
174
|
+
"type": "string"
|
175
|
+
},
|
176
|
+
"eventsDirectory": {
|
177
|
+
"type": "string"
|
178
|
+
},
|
179
|
+
"dataTablesDirectory": {
|
180
|
+
"type": "string"
|
181
|
+
},
|
182
|
+
"created": {
|
183
|
+
"type": "number"
|
184
|
+
},
|
185
|
+
"failed": {
|
186
|
+
"type": "number"
|
187
|
+
},
|
188
|
+
"removed": {
|
189
|
+
"type": "number"
|
190
|
+
},
|
191
|
+
"restored": {
|
192
|
+
"type": "number"
|
193
|
+
},
|
194
|
+
"repoUrl": {
|
195
|
+
"type": "string"
|
196
|
+
},
|
197
|
+
"commit": {
|
198
|
+
"type": "string"
|
199
|
+
},
|
200
|
+
"noChanges": {
|
201
|
+
"type": "boolean"
|
202
|
+
},
|
203
|
+
"applicationId": {
|
204
|
+
"type": "string",
|
205
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
206
|
+
},
|
207
|
+
"validationErrors": {
|
208
|
+
"type": "array",
|
209
|
+
"items": {
|
210
|
+
"type": "object",
|
211
|
+
"properties": {
|
212
|
+
"type": {
|
213
|
+
"type": "string"
|
214
|
+
},
|
215
|
+
"name": {
|
216
|
+
"type": "string"
|
217
|
+
},
|
218
|
+
"id": {
|
219
|
+
"type": "string"
|
220
|
+
},
|
221
|
+
"message": {
|
222
|
+
"type": "string"
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
},
|
227
|
+
"skippedDeviceNotFound": {
|
228
|
+
"type": "number"
|
229
|
+
},
|
230
|
+
"skippedDateTooOld": {
|
231
|
+
"type": "number"
|
232
|
+
},
|
233
|
+
"skippedDateInFuture": {
|
234
|
+
"type": "number"
|
235
|
+
},
|
236
|
+
"skippedInvalidDate": {
|
237
|
+
"type": "number"
|
238
|
+
},
|
239
|
+
"skippedNoValidAttributes": {
|
240
|
+
"type": "number"
|
241
|
+
},
|
242
|
+
"written": {
|
243
|
+
"type": "number"
|
244
|
+
},
|
245
|
+
"eeaBundleVersion": {
|
246
|
+
"type": "string"
|
247
|
+
}
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|