losant_rest 1.5.1 → 1.5.2
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 +640 -7
- data/docs/file.md +172 -0
- data/docs/files.md +94 -0
- data/lib/losant_rest.rb +2 -0
- data/lib/losant_rest/client.rb +10 -2
- data/lib/losant_rest/file.rb +224 -0
- data/lib/losant_rest/files.rb +142 -0
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/applicationApiTokenPost.json +8 -0
- data/schemas/changePassword.json +2 -1
- data/schemas/dataTableRowsExport.json +85 -1
- data/schemas/file.json +78 -0
- data/schemas/filePatch.json +24 -0
- data/schemas/filePost.json +40 -0
- data/schemas/fileUploadPostResp.json +109 -0
- data/schemas/files.json +116 -0
- data/schemas/mePatch.json +2 -1
- data/schemas/solutionUserPatch.json +2 -1
- data/schemas/solutionUserPost.json +2 -1
- data/schemas/timeSeriesData.json +2 -1
- data/schemas/timeSeriesQuery.json +2 -1
- metadata +11 -2
data/schemas/files.json
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"title": "File Schema",
|
9
|
+
"description": "Schema for a single file",
|
10
|
+
"type": "object",
|
11
|
+
"properties": {
|
12
|
+
"id": {
|
13
|
+
"type": "string",
|
14
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
15
|
+
},
|
16
|
+
"applicationId": {
|
17
|
+
"type": "string",
|
18
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
19
|
+
},
|
20
|
+
"creationDate": {
|
21
|
+
"type": "string",
|
22
|
+
"format": "date-time"
|
23
|
+
},
|
24
|
+
"lastUpdated": {
|
25
|
+
"type": "string",
|
26
|
+
"format": "date-time"
|
27
|
+
},
|
28
|
+
"authorId": {
|
29
|
+
"type": "string",
|
30
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
31
|
+
},
|
32
|
+
"authorType": {
|
33
|
+
"type": "string",
|
34
|
+
"enum": [
|
35
|
+
"flow",
|
36
|
+
"user",
|
37
|
+
"device",
|
38
|
+
"apiToken"
|
39
|
+
]
|
40
|
+
},
|
41
|
+
"status": {
|
42
|
+
"type": "string",
|
43
|
+
"enum": [
|
44
|
+
"pending",
|
45
|
+
"moving",
|
46
|
+
"deleting",
|
47
|
+
"completed"
|
48
|
+
]
|
49
|
+
},
|
50
|
+
"name": {
|
51
|
+
"type": "string",
|
52
|
+
"minLength": 1,
|
53
|
+
"maxLength": 2048
|
54
|
+
},
|
55
|
+
"parentDirectory": {
|
56
|
+
"type": "string",
|
57
|
+
"maxLength": 2048
|
58
|
+
},
|
59
|
+
"type": {
|
60
|
+
"type": "string",
|
61
|
+
"enum": [
|
62
|
+
"file",
|
63
|
+
"directory"
|
64
|
+
]
|
65
|
+
},
|
66
|
+
"fileSize": {
|
67
|
+
"type": "number"
|
68
|
+
},
|
69
|
+
"contentType": {
|
70
|
+
"type": "string",
|
71
|
+
"maxLength": 1024
|
72
|
+
},
|
73
|
+
"fileDimensions": {
|
74
|
+
"type": "object",
|
75
|
+
"properties": {
|
76
|
+
"width": {
|
77
|
+
"type": "number"
|
78
|
+
},
|
79
|
+
"height": {
|
80
|
+
"type": "number"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"count": {
|
88
|
+
"type": "integer"
|
89
|
+
},
|
90
|
+
"totalCount": {
|
91
|
+
"type": "integer"
|
92
|
+
},
|
93
|
+
"perPage": {
|
94
|
+
"type": "integer"
|
95
|
+
},
|
96
|
+
"page": {
|
97
|
+
"type": "integer"
|
98
|
+
},
|
99
|
+
"filter": {
|
100
|
+
"type": "string"
|
101
|
+
},
|
102
|
+
"filterField": {
|
103
|
+
"type": "string"
|
104
|
+
},
|
105
|
+
"sortField": {
|
106
|
+
"type": "string"
|
107
|
+
},
|
108
|
+
"sortDirection": {
|
109
|
+
"type": "string",
|
110
|
+
"enum": [
|
111
|
+
"asc",
|
112
|
+
"desc"
|
113
|
+
]
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
data/schemas/mePatch.json
CHANGED
data/schemas/timeSeriesData.json
CHANGED
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.5.
|
4
|
+
version: 1.5.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: 2018-
|
11
|
+
date: 2018-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -115,6 +115,8 @@ files:
|
|
115
115
|
- docs/experienceUsers.md
|
116
116
|
- docs/experienceView.md
|
117
117
|
- docs/experienceViews.md
|
118
|
+
- docs/file.md
|
119
|
+
- docs/files.md
|
118
120
|
- docs/flow.md
|
119
121
|
- docs/flowVersion.md
|
120
122
|
- docs/flowVersions.md
|
@@ -169,6 +171,8 @@ files:
|
|
169
171
|
- lib/losant_rest/experience_users.rb
|
170
172
|
- lib/losant_rest/experience_view.rb
|
171
173
|
- lib/losant_rest/experience_views.rb
|
174
|
+
- lib/losant_rest/file.rb
|
175
|
+
- lib/losant_rest/files.rb
|
172
176
|
- lib/losant_rest/flow.rb
|
173
177
|
- lib/losant_rest/flow_version.rb
|
174
178
|
- lib/losant_rest/flow_versions.rb
|
@@ -274,6 +278,11 @@ files:
|
|
274
278
|
- schemas/experienceViewPatch.json
|
275
279
|
- schemas/experienceViewPost.json
|
276
280
|
- schemas/experienceViews.json
|
281
|
+
- schemas/file.json
|
282
|
+
- schemas/filePatch.json
|
283
|
+
- schemas/filePost.json
|
284
|
+
- schemas/fileUploadPostResp.json
|
285
|
+
- schemas/files.json
|
277
286
|
- schemas/flow.json
|
278
287
|
- schemas/flowLog.json
|
279
288
|
- schemas/flowPatch.json
|