losant_rest 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/docs/_schemas.md +928 -111
- data/docs/flow.md +1 -1
- data/docs/flowVersion.md +180 -0
- data/docs/flowVersions.md +97 -0
- data/docs/flows.md +1 -1
- data/lib/losant_rest.rb +2 -0
- data/lib/losant_rest/client.rb +10 -2
- data/lib/losant_rest/flow.rb +1 -1
- data/lib/losant_rest/flow_version.rb +232 -0
- data/lib/losant_rest/flow_versions.rb +142 -0
- data/lib/losant_rest/flows.rb +1 -1
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/applicationApiTokenPost.json +8 -0
- data/schemas/dashboard.json +4 -4
- data/schemas/dashboardPatch.json +4 -4
- data/schemas/dashboardPost.json +4 -4
- data/schemas/dashboards.json +4 -4
- data/schemas/deviceStateOrStates.json +10 -0
- data/schemas/deviceStates.json +5 -0
- data/schemas/flow.json +20 -0
- data/schemas/flowLog.json +3 -0
- data/schemas/flowPatch.json +11 -0
- data/schemas/flowVersion.json +154 -0
- data/schemas/flowVersionPatch.json +14 -0
- data/schemas/flowVersionPost.json +134 -0
- data/schemas/flowVersions.json +200 -0
- data/schemas/flows.json +20 -0
- data/schemas/integration.json +31 -1
- data/schemas/integrationPatch.json +31 -1
- data/schemas/integrationPost.json +31 -1
- data/schemas/integrations.json +31 -1
- data/schemas/virtualButtonPress.json +6 -1
- metadata +10 -2
@@ -11,7 +11,8 @@
|
|
11
11
|
"type": "string",
|
12
12
|
"enum": [
|
13
13
|
"mqtt",
|
14
|
-
"googlePubSub"
|
14
|
+
"googlePubSub",
|
15
|
+
"particle"
|
15
16
|
]
|
16
17
|
},
|
17
18
|
"enabled": {
|
@@ -107,6 +108,35 @@
|
|
107
108
|
"protocol",
|
108
109
|
"host"
|
109
110
|
]
|
111
|
+
},
|
112
|
+
"particleConfig": {
|
113
|
+
"type": "object",
|
114
|
+
"properties": {
|
115
|
+
"accessToken": {
|
116
|
+
"type": "string",
|
117
|
+
"maxLength": 1024,
|
118
|
+
"minLength": 1
|
119
|
+
},
|
120
|
+
"productSlugOrId": {
|
121
|
+
"type": "string",
|
122
|
+
"maxLength": 1024,
|
123
|
+
"minLength": 1
|
124
|
+
},
|
125
|
+
"orgSlugOrId": {
|
126
|
+
"type": "string",
|
127
|
+
"maxLength": 1024,
|
128
|
+
"minLength": 1
|
129
|
+
},
|
130
|
+
"deviceNameOrId": {
|
131
|
+
"type": "string",
|
132
|
+
"maxLength": 1024,
|
133
|
+
"minLength": 1
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"additionalProperties": false,
|
137
|
+
"required": [
|
138
|
+
"accessToken"
|
139
|
+
]
|
110
140
|
}
|
111
141
|
},
|
112
142
|
"additionalProperties": false,
|
data/schemas/integrations.json
CHANGED
@@ -38,7 +38,8 @@
|
|
38
38
|
"type": "string",
|
39
39
|
"enum": [
|
40
40
|
"mqtt",
|
41
|
-
"googlePubSub"
|
41
|
+
"googlePubSub",
|
42
|
+
"particle"
|
42
43
|
]
|
43
44
|
},
|
44
45
|
"enabled": {
|
@@ -135,6 +136,35 @@
|
|
135
136
|
"host"
|
136
137
|
]
|
137
138
|
},
|
139
|
+
"particleConfig": {
|
140
|
+
"type": "object",
|
141
|
+
"properties": {
|
142
|
+
"accessToken": {
|
143
|
+
"type": "string",
|
144
|
+
"maxLength": 1024,
|
145
|
+
"minLength": 1
|
146
|
+
},
|
147
|
+
"productSlugOrId": {
|
148
|
+
"type": "string",
|
149
|
+
"maxLength": 1024,
|
150
|
+
"minLength": 1
|
151
|
+
},
|
152
|
+
"orgSlugOrId": {
|
153
|
+
"type": "string",
|
154
|
+
"maxLength": 1024,
|
155
|
+
"minLength": 1
|
156
|
+
},
|
157
|
+
"deviceNameOrId": {
|
158
|
+
"type": "string",
|
159
|
+
"maxLength": 1024,
|
160
|
+
"minLength": 1
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"additionalProperties": false,
|
164
|
+
"required": [
|
165
|
+
"accessToken"
|
166
|
+
]
|
167
|
+
},
|
138
168
|
"status": {
|
139
169
|
"lastKeepAlive": {
|
140
170
|
"type": [
|
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.2.
|
4
|
+
version: 1.2.2
|
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-
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -106,6 +106,8 @@ files:
|
|
106
106
|
- docs/experienceUser.md
|
107
107
|
- docs/experienceUsers.md
|
108
108
|
- docs/flow.md
|
109
|
+
- docs/flowVersion.md
|
110
|
+
- docs/flowVersions.md
|
109
111
|
- docs/flows.md
|
110
112
|
- docs/integration.md
|
111
113
|
- docs/integrations.md
|
@@ -149,6 +151,8 @@ files:
|
|
149
151
|
- lib/losant_rest/experience_user.rb
|
150
152
|
- lib/losant_rest/experience_users.rb
|
151
153
|
- lib/losant_rest/flow.rb
|
154
|
+
- lib/losant_rest/flow_version.rb
|
155
|
+
- lib/losant_rest/flow_versions.rb
|
152
156
|
- lib/losant_rest/flows.rb
|
153
157
|
- lib/losant_rest/integration.rb
|
154
158
|
- lib/losant_rest/integrations.rb
|
@@ -232,6 +236,10 @@ files:
|
|
232
236
|
- schemas/flowStorageEntries.json
|
233
237
|
- schemas/flowStorageEntry.json
|
234
238
|
- schemas/flowTriggerFilter.json
|
239
|
+
- schemas/flowVersion.json
|
240
|
+
- schemas/flowVersionPatch.json
|
241
|
+
- schemas/flowVersionPost.json
|
242
|
+
- schemas/flowVersions.json
|
235
243
|
- schemas/flows.json
|
236
244
|
- schemas/githubLogin.json
|
237
245
|
- schemas/integration.json
|