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.
@@ -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
+ }
@@ -40,7 +40,8 @@
40
40
  "password": {
41
41
  "type": "string",
42
42
  "minLength": 8,
43
- "maxLength": 2048
43
+ "maxLength": 2048,
44
+ "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
44
45
  },
45
46
  "tokenCutoff": {
46
47
  "type": "string",
@@ -43,7 +43,8 @@
43
43
  "password": {
44
44
  "type": "string",
45
45
  "minLength": 8,
46
- "maxLength": 2048
46
+ "maxLength": 2048,
47
+ "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
47
48
  },
48
49
  "twoFactorAuthKey": {
49
50
  "type": "string",
@@ -43,7 +43,8 @@
43
43
  "password": {
44
44
  "type": "string",
45
45
  "minLength": 8,
46
- "maxLength": 2048
46
+ "maxLength": 2048,
47
+ "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
47
48
  },
48
49
  "twoFactorAuthKey": {
49
50
  "type": "string",
@@ -23,7 +23,8 @@
23
23
  "MIN",
24
24
  "MEDIAN",
25
25
  "MEAN",
26
- "SUM"
26
+ "SUM",
27
+ "NONE"
27
28
  ]
28
29
  },
29
30
  "devices": {
@@ -24,7 +24,8 @@
24
24
  "MIN",
25
25
  "MEDIAN",
26
26
  "MEAN",
27
- "SUM"
27
+ "SUM",
28
+ "NONE"
28
29
  ]
29
30
  },
30
31
  "attributes": {
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.1
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-03-29 00:00:00.000000000 Z
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