losant_rest 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +5644 -846
  3. data/docs/applicationApiTokens.md +1 -1
  4. data/docs/applicationKeys.md +1 -1
  5. data/docs/applications.md +1 -1
  6. data/docs/dataTables.md +1 -1
  7. data/docs/deviceRecipes.md +1 -1
  8. data/docs/devices.md +1 -1
  9. data/docs/experienceEndpoints.md +1 -1
  10. data/docs/experienceGroups.md +1 -1
  11. data/docs/experienceUsers.md +1 -1
  12. data/docs/flow.md +2 -0
  13. data/docs/flowVersion.md +6 -4
  14. data/docs/flowVersions.md +4 -2
  15. data/docs/flows.md +44 -2
  16. data/docs/integrations.md +1 -1
  17. data/docs/orgs.md +1 -1
  18. data/docs/solutionUsers.md +1 -1
  19. data/docs/solutions.md +1 -1
  20. data/docs/webhooks.md +1 -1
  21. data/lib/losant_rest/application_api_tokens.rb +1 -1
  22. data/lib/losant_rest/application_keys.rb +1 -1
  23. data/lib/losant_rest/applications.rb +1 -1
  24. data/lib/losant_rest/client.rb +2 -2
  25. data/lib/losant_rest/data_tables.rb +1 -1
  26. data/lib/losant_rest/device_recipes.rb +1 -1
  27. data/lib/losant_rest/devices.rb +1 -1
  28. data/lib/losant_rest/experience_endpoints.rb +1 -1
  29. data/lib/losant_rest/experience_groups.rb +1 -1
  30. data/lib/losant_rest/experience_users.rb +1 -1
  31. data/lib/losant_rest/flow.rb +4 -0
  32. data/lib/losant_rest/flow_version.rb +8 -4
  33. data/lib/losant_rest/flow_versions.rb +6 -2
  34. data/lib/losant_rest/flows.rb +53 -2
  35. data/lib/losant_rest/integrations.rb +1 -1
  36. data/lib/losant_rest/orgs.rb +1 -1
  37. data/lib/losant_rest/solution_users.rb +1 -1
  38. data/lib/losant_rest/solutions.rb +1 -1
  39. data/lib/losant_rest/version.rb +1 -1
  40. data/lib/losant_rest/webhooks.rb +1 -1
  41. data/schemas/applicationApiTokenPost.json +2 -0
  42. data/schemas/auditLog.json +1 -0
  43. data/schemas/auditLogFilter.json +1 -0
  44. data/schemas/auditLogs.json +1 -0
  45. data/schemas/dashboard.json +7 -0
  46. data/schemas/dashboardPatch.json +7 -0
  47. data/schemas/dashboardPost.json +7 -0
  48. data/schemas/dashboards.json +7 -0
  49. data/schemas/deviceState.json +54 -0
  50. data/schemas/flow.json +334 -1
  51. data/schemas/flowPatch.json +327 -0
  52. data/schemas/flowPost.json +338 -1
  53. data/schemas/flowVersion.json +315 -0
  54. data/schemas/flowVersionPost.json +315 -0
  55. data/schemas/flowVersions.json +315 -0
  56. data/schemas/flows.json +336 -2
  57. data/schemas/flowsImportPost.json +994 -0
  58. data/schemas/flowsImportResult.json +1048 -0
  59. data/schemas/org.json +59 -1
  60. data/schemas/orgInviteInfo.json +3 -1
  61. data/schemas/orgInvitePost.json +59 -1
  62. data/schemas/orgInvites.json +59 -1
  63. data/schemas/orgMemberPatch.json +60 -3
  64. data/schemas/orgs.json +59 -1
  65. metadata +5 -2
data/schemas/org.json CHANGED
@@ -63,8 +63,66 @@
63
63
  "enum": [
64
64
  "admin",
65
65
  "edit",
66
- "view"
66
+ "collaborate",
67
+ "view",
68
+ "none"
67
69
  ]
70
+ },
71
+ "applicationRoles": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "resourceId": {
77
+ "type": "string",
78
+ "pattern": "^[A-Fa-f\\d]{24}$"
79
+ },
80
+ "role": {
81
+ "type": "string",
82
+ "enum": [
83
+ "admin",
84
+ "edit",
85
+ "collaborate",
86
+ "view",
87
+ "none"
88
+ ]
89
+ }
90
+ },
91
+ "required": [
92
+ "resourceId",
93
+ "role"
94
+ ],
95
+ "additionalProperties": false
96
+ },
97
+ "maxItems": 1000
98
+ },
99
+ "dashboardRoles": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "object",
103
+ "properties": {
104
+ "resourceId": {
105
+ "type": "string",
106
+ "pattern": "^[A-Fa-f\\d]{24}$"
107
+ },
108
+ "role": {
109
+ "type": "string",
110
+ "enum": [
111
+ "admin",
112
+ "edit",
113
+ "collaborate",
114
+ "view",
115
+ "none"
116
+ ]
117
+ }
118
+ },
119
+ "required": [
120
+ "resourceId",
121
+ "role"
122
+ ],
123
+ "additionalProperties": false
124
+ },
125
+ "maxItems": 1000
68
126
  }
69
127
  }
70
128
  }
@@ -17,7 +17,9 @@
17
17
  "enum": [
18
18
  "admin",
19
19
  "edit",
20
- "view"
20
+ "collaborate",
21
+ "view",
22
+ "none"
21
23
  ]
22
24
  },
23
25
  "inviteDate": {
@@ -12,8 +12,66 @@
12
12
  "enum": [
13
13
  "admin",
14
14
  "edit",
15
- "view"
15
+ "collaborate",
16
+ "view",
17
+ "none"
16
18
  ]
19
+ },
20
+ "applicationRoles": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "object",
24
+ "properties": {
25
+ "resourceId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Fa-f\\d]{24}$"
28
+ },
29
+ "role": {
30
+ "type": "string",
31
+ "enum": [
32
+ "admin",
33
+ "edit",
34
+ "collaborate",
35
+ "view",
36
+ "none"
37
+ ]
38
+ }
39
+ },
40
+ "required": [
41
+ "resourceId",
42
+ "role"
43
+ ],
44
+ "additionalProperties": false
45
+ },
46
+ "maxItems": 1000
47
+ },
48
+ "dashboardRoles": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "resourceId": {
54
+ "type": "string",
55
+ "pattern": "^[A-Fa-f\\d]{24}$"
56
+ },
57
+ "role": {
58
+ "type": "string",
59
+ "enum": [
60
+ "admin",
61
+ "edit",
62
+ "collaborate",
63
+ "view",
64
+ "none"
65
+ ]
66
+ }
67
+ },
68
+ "required": [
69
+ "resourceId",
70
+ "role"
71
+ ],
72
+ "additionalProperties": false
73
+ },
74
+ "maxItems": 1000
17
75
  }
18
76
  },
19
77
  "additionalProperties": false,
@@ -18,9 +18,67 @@
18
18
  "enum": [
19
19
  "admin",
20
20
  "edit",
21
- "view"
21
+ "collaborate",
22
+ "view",
23
+ "none"
22
24
  ]
23
25
  },
26
+ "applicationRoles": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "properties": {
31
+ "resourceId": {
32
+ "type": "string",
33
+ "pattern": "^[A-Fa-f\\d]{24}$"
34
+ },
35
+ "role": {
36
+ "type": "string",
37
+ "enum": [
38
+ "admin",
39
+ "edit",
40
+ "collaborate",
41
+ "view",
42
+ "none"
43
+ ]
44
+ }
45
+ },
46
+ "required": [
47
+ "resourceId",
48
+ "role"
49
+ ],
50
+ "additionalProperties": false
51
+ },
52
+ "maxItems": 1000
53
+ },
54
+ "dashboardRoles": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "object",
58
+ "properties": {
59
+ "resourceId": {
60
+ "type": "string",
61
+ "pattern": "^[A-Fa-f\\d]{24}$"
62
+ },
63
+ "role": {
64
+ "type": "string",
65
+ "enum": [
66
+ "admin",
67
+ "edit",
68
+ "collaborate",
69
+ "view",
70
+ "none"
71
+ ]
72
+ }
73
+ },
74
+ "required": [
75
+ "resourceId",
76
+ "role"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ "maxItems": 1000
81
+ },
24
82
  "inviteDate": {
25
83
  "type": "string",
26
84
  "format": "date-time"
@@ -11,13 +11,70 @@
11
11
  "enum": [
12
12
  "admin",
13
13
  "edit",
14
- "view"
14
+ "collaborate",
15
+ "view",
16
+ "none"
15
17
  ]
18
+ },
19
+ "applicationRoles": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "resourceId": {
25
+ "type": "string",
26
+ "pattern": "^[A-Fa-f\\d]{24}$"
27
+ },
28
+ "role": {
29
+ "type": "string",
30
+ "enum": [
31
+ "admin",
32
+ "edit",
33
+ "collaborate",
34
+ "view",
35
+ "none"
36
+ ]
37
+ }
38
+ },
39
+ "required": [
40
+ "resourceId",
41
+ "role"
42
+ ],
43
+ "additionalProperties": false
44
+ },
45
+ "maxItems": 1000
46
+ },
47
+ "dashboardRoles": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "object",
51
+ "properties": {
52
+ "resourceId": {
53
+ "type": "string",
54
+ "pattern": "^[A-Fa-f\\d]{24}$"
55
+ },
56
+ "role": {
57
+ "type": "string",
58
+ "enum": [
59
+ "admin",
60
+ "edit",
61
+ "collaborate",
62
+ "view",
63
+ "none"
64
+ ]
65
+ }
66
+ },
67
+ "required": [
68
+ "resourceId",
69
+ "role"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "maxItems": 1000
16
74
  }
17
75
  },
18
76
  "additionalProperties": false,
19
77
  "required": [
20
- "userId",
21
- "role"
78
+ "userId"
22
79
  ]
23
80
  }
data/schemas/orgs.json CHANGED
@@ -70,8 +70,66 @@
70
70
  "enum": [
71
71
  "admin",
72
72
  "edit",
73
- "view"
73
+ "collaborate",
74
+ "view",
75
+ "none"
74
76
  ]
77
+ },
78
+ "applicationRoles": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "object",
82
+ "properties": {
83
+ "resourceId": {
84
+ "type": "string",
85
+ "pattern": "^[A-Fa-f\\d]{24}$"
86
+ },
87
+ "role": {
88
+ "type": "string",
89
+ "enum": [
90
+ "admin",
91
+ "edit",
92
+ "collaborate",
93
+ "view",
94
+ "none"
95
+ ]
96
+ }
97
+ },
98
+ "required": [
99
+ "resourceId",
100
+ "role"
101
+ ],
102
+ "additionalProperties": false
103
+ },
104
+ "maxItems": 1000
105
+ },
106
+ "dashboardRoles": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "object",
110
+ "properties": {
111
+ "resourceId": {
112
+ "type": "string",
113
+ "pattern": "^[A-Fa-f\\d]{24}$"
114
+ },
115
+ "role": {
116
+ "type": "string",
117
+ "enum": [
118
+ "admin",
119
+ "edit",
120
+ "collaborate",
121
+ "view",
122
+ "none"
123
+ ]
124
+ }
125
+ },
126
+ "required": [
127
+ "resourceId",
128
+ "role"
129
+ ],
130
+ "additionalProperties": false
131
+ },
132
+ "maxItems": 1000
75
133
  }
76
134
  }
77
135
  }
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.6.0
4
+ version: 1.7.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: 2018-06-21 00:00:00.000000000 Z
11
+ date: 2018-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -242,6 +242,7 @@ files:
242
242
  - schemas/deviceRecipePatch.json
243
243
  - schemas/deviceRecipePost.json
244
244
  - schemas/deviceRecipes.json
245
+ - schemas/deviceState.json
245
246
  - schemas/deviceStateOrStates.json
246
247
  - schemas/deviceStates.json
247
248
  - schemas/deviceTagFilter.json
@@ -295,6 +296,8 @@ files:
295
296
  - schemas/flowVersionPost.json
296
297
  - schemas/flowVersions.json
297
298
  - schemas/flows.json
299
+ - schemas/flowsImportPost.json
300
+ - schemas/flowsImportResult.json
298
301
  - schemas/githubLogin.json
299
302
  - schemas/integration.json
300
303
  - schemas/integrationPatch.json