losant_rest 1.10.3 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +1375 -139
- data/docs/application.md +42 -0
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applicationTemplate.md +46 -0
- data/docs/applicationTemplates.md +76 -1
- data/docs/device.md +6 -3
- data/docs/me.md +0 -36
- data/lib/losant_rest.rb +1 -0
- data/lib/losant_rest/application.rb +48 -0
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/application_template.rb +79 -0
- data/lib/losant_rest/application_templates.rb +89 -1
- data/lib/losant_rest/client.rb +6 -2
- data/lib/losant_rest/device.rb +9 -3
- data/lib/losant_rest/me.rb +0 -41
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +8 -0
- data/schemas/applicationApiTokenPost.json +1 -0
- data/schemas/applicationApplyTemplatePatch.json +19 -0
- data/schemas/applicationCreationByTemplateResult.json +8 -0
- data/schemas/applicationPost.json +8 -0
- data/schemas/applicationTemplate.json +20 -0
- data/schemas/applicationTemplateCategories.json +43 -0
- data/schemas/applicationTemplateCategory.json +23 -0
- data/schemas/applicationTemplates.json +32 -0
- data/schemas/applications.json +8 -0
- data/schemas/changePassword.json +2 -2
- data/schemas/dashboard.json +145 -25
- data/schemas/dashboardPatch.json +145 -25
- data/schemas/dashboardPost.json +145 -25
- data/schemas/dashboards.json +145 -25
- data/schemas/dataExport.json +132 -1
- data/schemas/experienceLinkedResources.json +39 -0
- data/schemas/flow.json +13 -0
- data/schemas/flowPatch.json +13 -0
- data/schemas/flowPost.json +13 -0
- data/schemas/flowVersion.json +26 -0
- data/schemas/flowVersionPost.json +13 -0
- data/schemas/flowVersions.json +26 -0
- data/schemas/flows.json +13 -0
- data/schemas/flowsImportPost.json +26 -0
- data/schemas/flowsImportResult.json +39 -0
- data/schemas/githubLogin.json +7 -3
- data/schemas/me.json +0 -3
- data/schemas/mePatch.json +2 -2
- data/schemas/orgInviteInfo.json +3 -0
- data/schemas/orgInvitePost.json +3 -0
- data/schemas/orgInvites.json +3 -0
- data/schemas/passwordResetFinish.json +2 -2
- data/schemas/templateKeywords.json +14 -0
- data/schemas/timeSeriesData.json +12 -2
- data/schemas/timeSeriesQuery.json +94 -14
- data/schemas/userCredentials.json +5 -2
- data/schemas/userPost.json +13 -6
- metadata +11 -5
data/schemas/dashboards.json
CHANGED
@@ -356,8 +356,18 @@
|
|
356
356
|
"type": "object",
|
357
357
|
"properties": {
|
358
358
|
"value": {
|
359
|
-
"
|
360
|
-
|
359
|
+
"oneOf": [
|
360
|
+
{
|
361
|
+
"type": "string",
|
362
|
+
"maxLength": 255
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"type": "number"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"type": "boolean"
|
369
|
+
}
|
370
|
+
]
|
361
371
|
}
|
362
372
|
},
|
363
373
|
"additionalProperties": false,
|
@@ -610,8 +620,18 @@
|
|
610
620
|
"type": "object",
|
611
621
|
"properties": {
|
612
622
|
"value": {
|
613
|
-
"
|
614
|
-
|
623
|
+
"oneOf": [
|
624
|
+
{
|
625
|
+
"type": "string",
|
626
|
+
"maxLength": 255
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"type": "number"
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"type": "boolean"
|
633
|
+
}
|
634
|
+
]
|
615
635
|
}
|
616
636
|
},
|
617
637
|
"additionalProperties": false,
|
@@ -773,8 +793,18 @@
|
|
773
793
|
"type": "object",
|
774
794
|
"properties": {
|
775
795
|
"value": {
|
776
|
-
"
|
777
|
-
|
796
|
+
"oneOf": [
|
797
|
+
{
|
798
|
+
"type": "string",
|
799
|
+
"maxLength": 255
|
800
|
+
},
|
801
|
+
{
|
802
|
+
"type": "number"
|
803
|
+
},
|
804
|
+
{
|
805
|
+
"type": "boolean"
|
806
|
+
}
|
807
|
+
]
|
778
808
|
}
|
779
809
|
},
|
780
810
|
"additionalProperties": false,
|
@@ -1755,8 +1785,18 @@
|
|
1755
1785
|
"type": "object",
|
1756
1786
|
"properties": {
|
1757
1787
|
"value": {
|
1758
|
-
"
|
1759
|
-
|
1788
|
+
"oneOf": [
|
1789
|
+
{
|
1790
|
+
"type": "string",
|
1791
|
+
"maxLength": 255
|
1792
|
+
},
|
1793
|
+
{
|
1794
|
+
"type": "number"
|
1795
|
+
},
|
1796
|
+
{
|
1797
|
+
"type": "boolean"
|
1798
|
+
}
|
1799
|
+
]
|
1760
1800
|
}
|
1761
1801
|
},
|
1762
1802
|
"additionalProperties": false,
|
@@ -2045,8 +2085,18 @@
|
|
2045
2085
|
"type": "object",
|
2046
2086
|
"properties": {
|
2047
2087
|
"value": {
|
2048
|
-
"
|
2049
|
-
|
2088
|
+
"oneOf": [
|
2089
|
+
{
|
2090
|
+
"type": "string",
|
2091
|
+
"maxLength": 255
|
2092
|
+
},
|
2093
|
+
{
|
2094
|
+
"type": "number"
|
2095
|
+
},
|
2096
|
+
{
|
2097
|
+
"type": "boolean"
|
2098
|
+
}
|
2099
|
+
]
|
2050
2100
|
}
|
2051
2101
|
},
|
2052
2102
|
"additionalProperties": false,
|
@@ -2531,7 +2581,7 @@
|
|
2531
2581
|
},
|
2532
2582
|
"segments": {
|
2533
2583
|
"type": "array",
|
2534
|
-
"maxItems":
|
2584
|
+
"maxItems": 300,
|
2535
2585
|
"items": {
|
2536
2586
|
"oneOf": [
|
2537
2587
|
{
|
@@ -2627,8 +2677,18 @@
|
|
2627
2677
|
"type": "object",
|
2628
2678
|
"properties": {
|
2629
2679
|
"value": {
|
2630
|
-
"
|
2631
|
-
|
2680
|
+
"oneOf": [
|
2681
|
+
{
|
2682
|
+
"type": "string",
|
2683
|
+
"maxLength": 255
|
2684
|
+
},
|
2685
|
+
{
|
2686
|
+
"type": "number"
|
2687
|
+
},
|
2688
|
+
{
|
2689
|
+
"type": "boolean"
|
2690
|
+
}
|
2691
|
+
]
|
2632
2692
|
}
|
2633
2693
|
},
|
2634
2694
|
"additionalProperties": false,
|
@@ -3221,8 +3281,18 @@
|
|
3221
3281
|
"type": "object",
|
3222
3282
|
"properties": {
|
3223
3283
|
"value": {
|
3224
|
-
"
|
3225
|
-
|
3284
|
+
"oneOf": [
|
3285
|
+
{
|
3286
|
+
"type": "string",
|
3287
|
+
"maxLength": 255
|
3288
|
+
},
|
3289
|
+
{
|
3290
|
+
"type": "number"
|
3291
|
+
},
|
3292
|
+
{
|
3293
|
+
"type": "boolean"
|
3294
|
+
}
|
3295
|
+
]
|
3226
3296
|
}
|
3227
3297
|
},
|
3228
3298
|
"additionalProperties": false,
|
@@ -3568,8 +3638,18 @@
|
|
3568
3638
|
"type": "object",
|
3569
3639
|
"properties": {
|
3570
3640
|
"value": {
|
3571
|
-
"
|
3572
|
-
|
3641
|
+
"oneOf": [
|
3642
|
+
{
|
3643
|
+
"type": "string",
|
3644
|
+
"maxLength": 255
|
3645
|
+
},
|
3646
|
+
{
|
3647
|
+
"type": "number"
|
3648
|
+
},
|
3649
|
+
{
|
3650
|
+
"type": "boolean"
|
3651
|
+
}
|
3652
|
+
]
|
3573
3653
|
}
|
3574
3654
|
},
|
3575
3655
|
"additionalProperties": false,
|
@@ -3792,8 +3872,18 @@
|
|
3792
3872
|
"type": "object",
|
3793
3873
|
"properties": {
|
3794
3874
|
"value": {
|
3795
|
-
"
|
3796
|
-
|
3875
|
+
"oneOf": [
|
3876
|
+
{
|
3877
|
+
"type": "string",
|
3878
|
+
"maxLength": 255
|
3879
|
+
},
|
3880
|
+
{
|
3881
|
+
"type": "number"
|
3882
|
+
},
|
3883
|
+
{
|
3884
|
+
"type": "boolean"
|
3885
|
+
}
|
3886
|
+
]
|
3797
3887
|
}
|
3798
3888
|
},
|
3799
3889
|
"additionalProperties": false,
|
@@ -3971,8 +4061,18 @@
|
|
3971
4061
|
"type": "object",
|
3972
4062
|
"properties": {
|
3973
4063
|
"value": {
|
3974
|
-
"
|
3975
|
-
|
4064
|
+
"oneOf": [
|
4065
|
+
{
|
4066
|
+
"type": "string",
|
4067
|
+
"maxLength": 255
|
4068
|
+
},
|
4069
|
+
{
|
4070
|
+
"type": "number"
|
4071
|
+
},
|
4072
|
+
{
|
4073
|
+
"type": "boolean"
|
4074
|
+
}
|
4075
|
+
]
|
3976
4076
|
}
|
3977
4077
|
},
|
3978
4078
|
"additionalProperties": false,
|
@@ -4151,8 +4251,18 @@
|
|
4151
4251
|
"type": "object",
|
4152
4252
|
"properties": {
|
4153
4253
|
"value": {
|
4154
|
-
"
|
4155
|
-
|
4254
|
+
"oneOf": [
|
4255
|
+
{
|
4256
|
+
"type": "string",
|
4257
|
+
"maxLength": 255
|
4258
|
+
},
|
4259
|
+
{
|
4260
|
+
"type": "number"
|
4261
|
+
},
|
4262
|
+
{
|
4263
|
+
"type": "boolean"
|
4264
|
+
}
|
4265
|
+
]
|
4156
4266
|
}
|
4157
4267
|
},
|
4158
4268
|
"additionalProperties": false,
|
@@ -4801,8 +4911,18 @@
|
|
4801
4911
|
"type": "object",
|
4802
4912
|
"properties": {
|
4803
4913
|
"value": {
|
4804
|
-
"
|
4805
|
-
|
4914
|
+
"oneOf": [
|
4915
|
+
{
|
4916
|
+
"type": "string",
|
4917
|
+
"maxLength": 255
|
4918
|
+
},
|
4919
|
+
{
|
4920
|
+
"type": "number"
|
4921
|
+
},
|
4922
|
+
{
|
4923
|
+
"type": "boolean"
|
4924
|
+
}
|
4925
|
+
]
|
4806
4926
|
}
|
4807
4927
|
},
|
4808
4928
|
"additionalProperties": false,
|
data/schemas/dataExport.json
CHANGED
@@ -39,7 +39,138 @@
|
|
39
39
|
"maxItems": 100
|
40
40
|
},
|
41
41
|
"deviceQuery": {
|
42
|
-
"
|
42
|
+
"title": "Advanced Query",
|
43
|
+
"description": "Schema for advanced filters and queries",
|
44
|
+
"type": "object",
|
45
|
+
"properties": {
|
46
|
+
"$and": {
|
47
|
+
"type": "array",
|
48
|
+
"items": {
|
49
|
+
"$ref": "#/definitions/advancedQuery"
|
50
|
+
},
|
51
|
+
"maxItems": 100
|
52
|
+
},
|
53
|
+
"$or": {
|
54
|
+
"type": "array",
|
55
|
+
"items": {
|
56
|
+
"$ref": "#/definitions/advancedQuery"
|
57
|
+
},
|
58
|
+
"maxItems": 100
|
59
|
+
},
|
60
|
+
"$nor": {
|
61
|
+
"type": "array",
|
62
|
+
"items": {
|
63
|
+
"$ref": "#/definitions/advancedQuery"
|
64
|
+
},
|
65
|
+
"maxItems": 100
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"patternProperties": {
|
69
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
70
|
+
"oneOf": [
|
71
|
+
{
|
72
|
+
"type": [
|
73
|
+
"string",
|
74
|
+
"number",
|
75
|
+
"boolean",
|
76
|
+
"null"
|
77
|
+
]
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"type": "object",
|
81
|
+
"properties": {
|
82
|
+
"$eq": {
|
83
|
+
"type": [
|
84
|
+
"string",
|
85
|
+
"number",
|
86
|
+
"boolean",
|
87
|
+
"null"
|
88
|
+
]
|
89
|
+
},
|
90
|
+
"$ne": {
|
91
|
+
"type": [
|
92
|
+
"string",
|
93
|
+
"number",
|
94
|
+
"boolean",
|
95
|
+
"null"
|
96
|
+
]
|
97
|
+
},
|
98
|
+
"$gt": {
|
99
|
+
"type": [
|
100
|
+
"string",
|
101
|
+
"number",
|
102
|
+
"boolean",
|
103
|
+
"null"
|
104
|
+
]
|
105
|
+
},
|
106
|
+
"$lt": {
|
107
|
+
"type": [
|
108
|
+
"string",
|
109
|
+
"number",
|
110
|
+
"boolean",
|
111
|
+
"null"
|
112
|
+
]
|
113
|
+
},
|
114
|
+
"$gte": {
|
115
|
+
"type": [
|
116
|
+
"string",
|
117
|
+
"number",
|
118
|
+
"boolean",
|
119
|
+
"null"
|
120
|
+
]
|
121
|
+
},
|
122
|
+
"$lte": {
|
123
|
+
"type": [
|
124
|
+
"string",
|
125
|
+
"number",
|
126
|
+
"boolean",
|
127
|
+
"null"
|
128
|
+
]
|
129
|
+
},
|
130
|
+
"$startsWith": {
|
131
|
+
"type": "string",
|
132
|
+
"minLength": 1
|
133
|
+
},
|
134
|
+
"$endsWith": {
|
135
|
+
"type": "string",
|
136
|
+
"minLength": 1
|
137
|
+
},
|
138
|
+
"$contains": {
|
139
|
+
"type": "string",
|
140
|
+
"minLength": 1
|
141
|
+
},
|
142
|
+
"$ci": {
|
143
|
+
"type": "boolean"
|
144
|
+
},
|
145
|
+
"$in": {
|
146
|
+
"type": "array",
|
147
|
+
"maxItems": 100,
|
148
|
+
"items": {
|
149
|
+
"type": [
|
150
|
+
"string",
|
151
|
+
"number",
|
152
|
+
"boolean"
|
153
|
+
]
|
154
|
+
}
|
155
|
+
},
|
156
|
+
"$nin": {
|
157
|
+
"type": "array",
|
158
|
+
"maxItems": 100,
|
159
|
+
"items": {
|
160
|
+
"type": [
|
161
|
+
"string",
|
162
|
+
"number",
|
163
|
+
"boolean"
|
164
|
+
]
|
165
|
+
}
|
166
|
+
}
|
167
|
+
},
|
168
|
+
"additionalProperties": false
|
169
|
+
}
|
170
|
+
]
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"additionalProperties": false
|
43
174
|
},
|
44
175
|
"attributes": {
|
45
176
|
"type": "array",
|
@@ -1794,6 +1794,19 @@
|
|
1794
1794
|
"baudRate": {
|
1795
1795
|
"type": "number"
|
1796
1796
|
},
|
1797
|
+
"dataBits": {
|
1798
|
+
"type": "number"
|
1799
|
+
},
|
1800
|
+
"stopBits": {
|
1801
|
+
"type": "number"
|
1802
|
+
},
|
1803
|
+
"parity": {
|
1804
|
+
"type": "string",
|
1805
|
+
"maxLength": 8
|
1806
|
+
},
|
1807
|
+
"rtscts": {
|
1808
|
+
"type": "boolean"
|
1809
|
+
},
|
1797
1810
|
"encoding": {
|
1798
1811
|
"type": "string",
|
1799
1812
|
"maxLength": 48
|
@@ -4010,6 +4023,19 @@
|
|
4010
4023
|
"baudRate": {
|
4011
4024
|
"type": "number"
|
4012
4025
|
},
|
4026
|
+
"dataBits": {
|
4027
|
+
"type": "number"
|
4028
|
+
},
|
4029
|
+
"stopBits": {
|
4030
|
+
"type": "number"
|
4031
|
+
},
|
4032
|
+
"parity": {
|
4033
|
+
"type": "string",
|
4034
|
+
"maxLength": 8
|
4035
|
+
},
|
4036
|
+
"rtscts": {
|
4037
|
+
"type": "boolean"
|
4038
|
+
},
|
4013
4039
|
"encoding": {
|
4014
4040
|
"type": "string",
|
4015
4041
|
"maxLength": 48
|
@@ -6176,6 +6202,19 @@
|
|
6176
6202
|
"baudRate": {
|
6177
6203
|
"type": "number"
|
6178
6204
|
},
|
6205
|
+
"dataBits": {
|
6206
|
+
"type": "number"
|
6207
|
+
},
|
6208
|
+
"stopBits": {
|
6209
|
+
"type": "number"
|
6210
|
+
},
|
6211
|
+
"parity": {
|
6212
|
+
"type": "string",
|
6213
|
+
"maxLength": 8
|
6214
|
+
},
|
6215
|
+
"rtscts": {
|
6216
|
+
"type": "boolean"
|
6217
|
+
},
|
6179
6218
|
"encoding": {
|
6180
6219
|
"type": "string",
|
6181
6220
|
"maxLength": 48
|