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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a1e7ffa073f707398977ddeda42b71e4d53d0e85ec7dc43706ed54b2d5f2c97
4
- data.tar.gz: 0cd33559f523abf10bd6288f5b51b5fc9e80829292e10dac8735a1accfee3ef8
3
+ metadata.gz: 20dfb92c4f24024d650790929e1d4b4ae5e7457be5b635cc0f50dc520637af4b
4
+ data.tar.gz: 4323a2e2afa604bb6efa50383af2ca174f08a3bdce6a59ebf47d6ebe17ab29ac
5
5
  SHA512:
6
- metadata.gz: 2625ebca239b0856ff1b48f48431d619a728392137d247f5880fe60a2a6b436c6ddd6aaae3c3c9b75138e40a8d6fe0b5f6968bac2325ed6720e0088e443219bb
7
- data.tar.gz: cdc90a0521b929a9b583a0d8a88dca8202f7a31a4c866724375e222768d7ad913e60622e94a3cc69ab8dc06238a3ce466618ad902e7a4d3c525fe900c8864e22
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
+
@@ -25,8 +25,8 @@ module Alula
25
25
  # on how params are parsed,
26
26
  field :id,
27
27
  type: :string,
28
- sortable: false,
29
- filterable: false,
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: false,
170
- filterable: false,
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '1.10.0'
4
+ VERSION = '1.10.2'
5
5
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2024-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty