losant_rest 1.10.0 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +8112 -2160
  3. data/docs/application.md +43 -0
  4. data/docs/device.md +1 -0
  5. data/lib/losant_rest/client.rb +2 -2
  6. data/lib/losant_rest/device.rb +2 -0
  7. data/lib/losant_rest/version.rb +1 -1
  8. data/schemas/application.json +5 -0
  9. data/schemas/applicationApiTokenPost.json +1 -0
  10. data/schemas/applicationCreationByTemplateResult.json +5 -0
  11. data/schemas/applicationPatch.json +5 -0
  12. data/schemas/applicationPost.json +5 -0
  13. data/schemas/applications.json +5 -0
  14. data/schemas/dashboard.json +1140 -144
  15. data/schemas/dashboardPatch.json +1140 -144
  16. data/schemas/dashboardPost.json +1140 -144
  17. data/schemas/dashboards.json +1140 -144
  18. data/schemas/device.json +16 -3
  19. data/schemas/devicePatch.json +16 -3
  20. data/schemas/devicePost.json +16 -3
  21. data/schemas/deviceRecipe.json +16 -3
  22. data/schemas/deviceRecipePatch.json +16 -3
  23. data/schemas/deviceRecipePost.json +16 -3
  24. data/schemas/deviceRecipes.json +16 -3
  25. data/schemas/devices.json +16 -3
  26. data/schemas/devicesPatch.json +16 -3
  27. data/schemas/experienceLinkedResources.json +309 -3
  28. data/schemas/flow.json +103 -1
  29. data/schemas/flowPatch.json +103 -1
  30. data/schemas/flowPost.json +103 -1
  31. data/schemas/flowVersion.json +206 -2
  32. data/schemas/flowVersionPost.json +103 -1
  33. data/schemas/flowVersions.json +206 -2
  34. data/schemas/flows.json +103 -1
  35. data/schemas/flowsImportPost.json +206 -2
  36. data/schemas/flowsImportResult.json +309 -3
  37. data/schemas/githubLogin.json +1 -0
  38. data/schemas/timeSeriesData.json +91 -12
  39. data/schemas/timeSeriesQuery.json +21 -12
  40. data/schemas/userCredentials.json +1 -0
  41. data/schemas/userPost.json +1 -0
  42. metadata +2 -2
@@ -72,6 +72,7 @@
72
72
  "application.backfillArchiveData",
73
73
  "application.clone",
74
74
  "application.export",
75
+ "application.import",
75
76
  "application.fullEventsArchive",
76
77
  "application.fullDataTablesArchive",
77
78
  "application.debug",
@@ -14,18 +14,97 @@
14
14
  "type": "number"
15
15
  },
16
16
  "aggregation": {
17
- "type": "string",
18
- "enum": [
19
- "FIRST",
20
- "LAST",
21
- "COUNT",
22
- "MAX",
23
- "MIN",
24
- "MEDIAN",
25
- "MEAN",
26
- "SUM",
27
- "STD_DEV",
28
- "NONE"
17
+ "oneOf": [
18
+ {
19
+ "oneOf": [
20
+ {
21
+ "type": "string",
22
+ "enum": [
23
+ "FIRST",
24
+ "LAST",
25
+ "COUNT",
26
+ "MAX",
27
+ "MIN",
28
+ "MEDIAN",
29
+ "MEAN",
30
+ "SUM",
31
+ "STD_DEV"
32
+ ]
33
+ },
34
+ {
35
+ "type": "string",
36
+ "enum": [
37
+ "NONE"
38
+ ]
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "type": "object",
44
+ "properties": {
45
+ "type": {
46
+ "oneOf": [
47
+ {
48
+ "type": "string",
49
+ "enum": [
50
+ "FIRST",
51
+ "LAST",
52
+ "COUNT",
53
+ "MAX",
54
+ "MIN",
55
+ "MEDIAN",
56
+ "MEAN",
57
+ "SUM",
58
+ "STD_DEV"
59
+ ]
60
+ },
61
+ {
62
+ "type": "string",
63
+ "enum": [
64
+ "NONE"
65
+ ]
66
+ }
67
+ ]
68
+ },
69
+ "options": {
70
+ "type": "object",
71
+ "additionalProperties": false
72
+ }
73
+ },
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "type"
77
+ ]
78
+ },
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "type": {
83
+ "type": "string",
84
+ "enum": [
85
+ "TIMEATVALUE"
86
+ ]
87
+ },
88
+ "options": {
89
+ "type": "object",
90
+ "properties": {
91
+ "value": {
92
+ "type": "string",
93
+ "maxLength": 255
94
+ }
95
+ },
96
+ "additionalProperties": false,
97
+ "required": [
98
+ "value"
99
+ ]
100
+ }
101
+ },
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "type",
105
+ "options"
106
+ ]
107
+ }
29
108
  ]
30
109
  },
31
110
  "devices": {
@@ -15,18 +15,27 @@
15
15
  "type": "number"
16
16
  },
17
17
  "aggregation": {
18
- "type": "string",
19
- "enum": [
20
- "FIRST",
21
- "LAST",
22
- "COUNT",
23
- "MAX",
24
- "MIN",
25
- "MEDIAN",
26
- "MEAN",
27
- "SUM",
28
- "STD_DEV",
29
- "NONE"
18
+ "oneOf": [
19
+ {
20
+ "type": "string",
21
+ "enum": [
22
+ "FIRST",
23
+ "LAST",
24
+ "COUNT",
25
+ "MAX",
26
+ "MIN",
27
+ "MEDIAN",
28
+ "MEAN",
29
+ "SUM",
30
+ "STD_DEV"
31
+ ]
32
+ },
33
+ {
34
+ "type": "string",
35
+ "enum": [
36
+ "NONE"
37
+ ]
38
+ }
30
39
  ]
31
40
  },
32
41
  "attributes": {
@@ -82,6 +82,7 @@
82
82
  "application.backfillArchiveData",
83
83
  "application.clone",
84
84
  "application.export",
85
+ "application.import",
85
86
  "application.fullEventsArchive",
86
87
  "application.fullDataTablesArchive",
87
88
  "application.debug",
@@ -137,6 +137,7 @@
137
137
  "application.backfillArchiveData",
138
138
  "application.clone",
139
139
  "application.export",
140
+ "application.import",
140
141
  "application.fullEventsArchive",
141
142
  "application.fullDataTablesArchive",
142
143
  "application.debug",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: losant_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-18 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty