alula-ruby 1.10.0 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION.md +2 -0
- data/lib/alula/procedures/camera_get_info_proc.rb +4 -1
- data/lib/alula/resources/user.rb +7 -7
- data/lib/alula/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20dfb92c4f24024d650790929e1d4b4ae5e7457be5b635cc0f50dc520637af4b
|
4
|
+
data.tar.gz: 4323a2e2afa604bb6efa50383af2ca174f08a3bdce6a59ebf47d6ebe17ab29ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64db8044f947e291a657583d0bc6f0fdd9a80a30904a43db39a6dc64acdcceb10a0d23aac9cc0a7461df8647374120e35cdd319e8f5526d180896c6b9382ad6c
|
7
|
+
data.tar.gz: 434dbb009f19c568438357dcd39a9b8350468488053221b89fda926908d852f164f9ab07ef57eb0217625d5ad58292fab917a2f4d7f5f9e7c18f6cb7844dcd3a
|
data/VERSION.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v1.10.2 | 2024-09-25 | Add custom filters to get_info_proc |
|
6
|
+
| v1.10.1 | 2024-09-20 | Update User model properties |
|
5
7
|
| v1.10.0 | 2024-09-18 | Add DeviceUser and HelixUser resources |
|
6
8
|
| v1.9.17 | 2024-09-17 | Bump HTTParty version |
|
7
9
|
| v1.9.16 | 2024-09-04 | Add get camera stats proc |
|
@@ -20,13 +20,15 @@ module Alula
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.call(device_id:, filter_online_offline:, page_size: 20, page_number: 1)
|
23
|
+
def self.call(device_id:, filter_online_offline:, page_size: 20, page_number: 1, filter: {})
|
24
24
|
query_params = {
|
25
25
|
'sort' => '-date',
|
26
26
|
'page[size]' => page_size,
|
27
27
|
'page[number]' => page_number
|
28
28
|
}
|
29
29
|
|
30
|
+
query_params.merge!(filter)
|
31
|
+
|
30
32
|
if filter_online_offline
|
31
33
|
query_params.merge!(
|
32
34
|
'filter[data.online.value][$not][0]' => 0,
|
@@ -46,3 +48,4 @@ module Alula
|
|
46
48
|
end
|
47
49
|
end
|
48
50
|
end
|
51
|
+
|
data/lib/alula/resources/user.rb
CHANGED
@@ -25,8 +25,8 @@ module Alula
|
|
25
25
|
# on how params are parsed,
|
26
26
|
field :id,
|
27
27
|
type: :string,
|
28
|
-
sortable:
|
29
|
-
filterable:
|
28
|
+
sortable: true,
|
29
|
+
filterable: true,
|
30
30
|
creatable_by: [],
|
31
31
|
patchable_by: []
|
32
32
|
|
@@ -142,7 +142,7 @@ module Alula
|
|
142
142
|
filterable: false,
|
143
143
|
creatable_by: [],
|
144
144
|
patchable_by: %i[system station dealer technician user sub_user]
|
145
|
-
|
145
|
+
|
146
146
|
field :language,
|
147
147
|
type: :string,
|
148
148
|
sortable: false,
|
@@ -166,10 +166,10 @@ module Alula
|
|
166
166
|
|
167
167
|
field :company_name,
|
168
168
|
type: :string,
|
169
|
-
sortable:
|
170
|
-
filterable:
|
171
|
-
creatable_by: [],
|
172
|
-
patchable_by: []
|
169
|
+
sortable: true,
|
170
|
+
filterable: true,
|
171
|
+
creatable_by: %i[system station dealer technician user],
|
172
|
+
patchable_by: %i[system station dealer technician user sub_user]
|
173
173
|
|
174
174
|
field :name_first,
|
175
175
|
type: :string,
|
data/lib/alula/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alula-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|