losant_rest 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -0
  3. data/docs/_schemas.md +1805 -267
  4. data/docs/auth.md +1 -1
  5. data/docs/experienceEndpoint.md +130 -0
  6. data/docs/experienceEndpoints.md +131 -0
  7. data/docs/experienceGroup.md +130 -0
  8. data/docs/experienceGroups.md +91 -0
  9. data/docs/experienceUser.md +130 -0
  10. data/docs/experienceUsers.md +92 -0
  11. data/docs/flows.md +1 -0
  12. data/lib/losant_rest/client.rb +26 -2
  13. data/lib/losant_rest/experience_endpoint.rb +174 -0
  14. data/lib/losant_rest/experience_endpoints.rb +186 -0
  15. data/lib/losant_rest/experience_group.rb +174 -0
  16. data/lib/losant_rest/experience_groups.rb +136 -0
  17. data/lib/losant_rest/experience_user.rb +174 -0
  18. data/lib/losant_rest/experience_users.rb +138 -0
  19. data/lib/losant_rest/flows.rb +2 -0
  20. data/lib/losant_rest/version.rb +1 -1
  21. data/lib/losant_rest.rb +6 -0
  22. data/schemas/application.json +30 -5
  23. data/schemas/applicationApiTokenPost.json +22 -0
  24. data/schemas/applicationKey.json +4 -2
  25. data/schemas/applicationKeyPost.json +4 -2
  26. data/schemas/applicationKeys.json +4 -2
  27. data/schemas/applicationPatch.json +13 -0
  28. data/schemas/applicationPost.json +13 -0
  29. data/schemas/applications.json +30 -5
  30. data/schemas/auditLog.json +3 -0
  31. data/schemas/auditLogFilter.json +3 -0
  32. data/schemas/auditLogs.json +3 -0
  33. data/schemas/authedDevice.json +1 -2
  34. data/schemas/dashboard.json +4 -2
  35. data/schemas/dashboardPatch.json +4 -2
  36. data/schemas/dashboardPost.json +4 -2
  37. data/schemas/dashboards.json +4 -2
  38. data/schemas/device.json +5 -4
  39. data/schemas/devicePatch.json +5 -4
  40. data/schemas/devicePost.json +5 -4
  41. data/schemas/deviceRecipe.json +5 -4
  42. data/schemas/deviceRecipePatch.json +5 -4
  43. data/schemas/deviceRecipePost.json +5 -4
  44. data/schemas/deviceRecipes.json +5 -4
  45. data/schemas/deviceTagFilter.json +2 -1
  46. data/schemas/devices.json +5 -4
  47. data/schemas/experienceEndpoint.json +74 -0
  48. data/schemas/experienceEndpointPatch.json +46 -0
  49. data/schemas/experienceEndpointPost.json +50 -0
  50. data/schemas/experienceEndpointStats.json +21 -0
  51. data/schemas/experienceEndpoints.json +45 -0
  52. data/schemas/experienceGroup.json +51 -0
  53. data/schemas/experienceGroupPatch.json +32 -0
  54. data/schemas/experienceGroupPost.json +35 -0
  55. data/schemas/experienceGroups.json +93 -0
  56. data/schemas/experienceUser.json +83 -0
  57. data/schemas/experienceUserPatch.json +48 -0
  58. data/schemas/experienceUserPost.json +52 -0
  59. data/schemas/experienceUsers.json +129 -0
  60. data/schemas/flow.json +34 -10
  61. data/schemas/flowLog.json +2 -19
  62. data/schemas/flowPatch.json +34 -10
  63. data/schemas/flowPost.json +34 -10
  64. data/schemas/flowTriggerFilter.json +19 -0
  65. data/schemas/flows.json +34 -10
  66. data/schemas/lastValueQuery.json +4 -2
  67. data/schemas/me.json +39 -7
  68. data/schemas/multiDeviceCommand.json +4 -2
  69. data/schemas/org.json +41 -9
  70. data/schemas/orgs.json +41 -9
  71. data/schemas/payloadCounts.json +8 -0
  72. data/schemas/resourceTransfer.json +6 -3
  73. data/schemas/solution.json +3 -1
  74. data/schemas/solutionUser.json +2 -1
  75. data/schemas/solutionUserPatch.json +2 -1
  76. data/schemas/solutionUserPost.json +2 -1
  77. data/schemas/solutionUsers.json +2 -1
  78. data/schemas/solutions.json +3 -1
  79. data/schemas/timeSeriesQuery.json +4 -2
  80. metadata +28 -2
@@ -40,7 +40,9 @@
40
40
  },
41
41
  "slug": {
42
42
  "type": "string",
43
- "pattern": "^[0-9a-z_-]{1,255}$"
43
+ "minLength": 4,
44
+ "maxLength": 255,
45
+ "pattern": "^[0-9a-z_-]*$"
44
46
  },
45
47
  "allowSelfDeletion": {
46
48
  "type": "boolean"
@@ -50,14 +50,16 @@
50
50
  }
51
51
  },
52
52
  "additionalProperties": false
53
- }
53
+ },
54
+ "maxItems": 100
54
55
  },
55
56
  "deviceIds": {
56
57
  "type": "array",
57
58
  "items": {
58
59
  "type": "string",
59
60
  "pattern": "^[A-Fa-f\\d]{24}$"
60
- }
61
+ },
62
+ "maxItems": 1000
61
63
  },
62
64
  "limit": {
63
65
  "type": "number"
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.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -99,6 +99,12 @@ files:
99
99
  - docs/devices.md
100
100
  - docs/event.md
101
101
  - docs/events.md
102
+ - docs/experienceEndpoint.md
103
+ - docs/experienceEndpoints.md
104
+ - docs/experienceGroup.md
105
+ - docs/experienceGroups.md
106
+ - docs/experienceUser.md
107
+ - docs/experienceUsers.md
102
108
  - docs/flow.md
103
109
  - docs/flows.md
104
110
  - docs/me.md
@@ -134,6 +140,12 @@ files:
134
140
  - lib/losant_rest/error.rb
135
141
  - lib/losant_rest/event.rb
136
142
  - lib/losant_rest/events.rb
143
+ - lib/losant_rest/experience_endpoint.rb
144
+ - lib/losant_rest/experience_endpoints.rb
145
+ - lib/losant_rest/experience_group.rb
146
+ - lib/losant_rest/experience_groups.rb
147
+ - lib/losant_rest/experience_user.rb
148
+ - lib/losant_rest/experience_users.rb
137
149
  - lib/losant_rest/flow.rb
138
150
  - lib/losant_rest/flows.rb
139
151
  - lib/losant_rest/me.rb
@@ -196,12 +208,26 @@ files:
196
208
  - schemas/eventPatch.json
197
209
  - schemas/eventPost.json
198
210
  - schemas/events.json
211
+ - schemas/experienceEndpoint.json
212
+ - schemas/experienceEndpointPatch.json
213
+ - schemas/experienceEndpointPost.json
214
+ - schemas/experienceEndpointStats.json
215
+ - schemas/experienceEndpoints.json
216
+ - schemas/experienceGroup.json
217
+ - schemas/experienceGroupPatch.json
218
+ - schemas/experienceGroupPost.json
219
+ - schemas/experienceGroups.json
220
+ - schemas/experienceUser.json
221
+ - schemas/experienceUserPatch.json
222
+ - schemas/experienceUserPost.json
223
+ - schemas/experienceUsers.json
199
224
  - schemas/flow.json
200
225
  - schemas/flowLog.json
201
226
  - schemas/flowPatch.json
202
227
  - schemas/flowPost.json
203
228
  - schemas/flowStorageEntries.json
204
229
  - schemas/flowStorageEntry.json
230
+ - schemas/flowTriggerFilter.json
205
231
  - schemas/flows.json
206
232
  - schemas/githubLogin.json
207
233
  - schemas/lastValueData.json