alula-ruby 1.9.2 → 1.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f73f0bf2cfadf5600972d1058d3f7fd5ba866ce2084be4bb0736f934a13ba5a
4
- data.tar.gz: 3fcbd88590ac2d9063e5ca3d5a2a6c9cdece48c224a3f0e57de6abb11358bab4
3
+ metadata.gz: 616eeec22053f3a741455858c9770437c00672a8ce391e637a307ad6cc2b6ad6
4
+ data.tar.gz: 62a5ea73aed37a1c3ad31a00f615372332a5b49cc3b6c30f6e210b2f28cdb2d1
5
5
  SHA512:
6
- metadata.gz: 625bc6433e7d44824b84dd94d1a7beffd70e3a0a609f0b276401004ea1eb070762c04bb4291064fa0e9ef0d987c120fa9be077bc4aac0ff094f598feb57e61ab
7
- data.tar.gz: 3a4861e7c50553ee487d10a17e769448028cb4da79943752d33b6c4853d684bdf65d4cda63f3a9924397d615cce30d0e397dcfc96bec9c47027a132e13fe042a
6
+ metadata.gz: 91d70db2056e1b7a64603893c68f4d872a60a03840f84a78fb091fc259365deed7f402fccf205aa476fae8c257cecb6dc664f988dc23a12b10ad28194e49310e
7
+ data.tar.gz: 9f4061bf81898c88ab0c3b2e63eb71c87ee15cbb91a8cfd76c870c9bf7f42230c4f5b4fd18ceeb5a09c518a3f4a14e09916fa139fe68b29bef79d247ae343a5f
data/VERSION.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | --------- | --------------------------------------------------------------------------- |
5
+ | v1.9.4 | 2024-07-15 | Add panel_downloading device feature |
6
+ | v1.9.3 | 2024-07-10 | Update video verification cameras relation and object |
5
7
  | v1.9.2 | 2024-07-04 | Fix devices-notifications type pluralization and sms notification pluralization |
6
8
  | v1.9.1 | 2024-07-03 | Add video and sms device features |
7
9
  | v1.9.0 | 2024-07-03 | Add DeviceNotification resource with relationships |
@@ -19,6 +19,8 @@ module Alula
19
19
  field :alula_messenger, type: :boolean
20
20
  field :video_verification, type: :boolean
21
21
  field :sms_notification, type: :boolean
22
+ field :panel_downloading, type: :boolean
23
+ # field :onvif_video_hub, type: :boolean # Set by the M2M portal, we don't want it for now
22
24
  end
23
25
 
24
26
  resource_path 'devices'
@@ -32,6 +34,7 @@ module Alula
32
34
  relationship :receiver_group, type: 'receivers-groups', cardinality: 'To-one'
33
35
  # relationship :helix_users, type: 'helix-user', cardinality: 'To-many'
34
36
  relationship :notifications, type: 'devices-notifications', cardinality: 'To-many'
37
+ relationship :video_verification_cameras, type: 'video-verification-cameras', cardinality: 'To-many'
35
38
  # relationship :users, type: 'devices-user', cardinality: 'To-many'
36
39
  # relationship :features_supported, type: 'devices-features-supported', cardinality: 'To-one'
37
40
  # relationship :features_disabled, type: 'devices-features-disabled', cardinality: 'To-one'
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alula
4
+ class VideoVerificationCamera < Alula::RestResource
5
+ extend Alula::ResourceAttributes
6
+ extend Alula::RelationshipAttributes
7
+ extend Alula::ApiOperations::Request
8
+ extend Alula::ApiOperations::List
9
+ extend Alula::ApiOperations::Save
10
+
11
+ resource_path 'video/verification/cameras'
12
+ type 'video-verification-cameras'
13
+
14
+ relationship :device, type: 'device', cardinality: 'To-one'
15
+ relationship :camera, type: 'camera', cardinality: 'To-one'
16
+
17
+ field :id,
18
+ type: :string,
19
+ sortable: false,
20
+ filterable: true,
21
+ creatable_by: %i[],
22
+ patchable_by: %i[]
23
+
24
+ field :camera_id,
25
+ type: :string,
26
+ sortable: false,
27
+ filterable: false,
28
+ creatable_by: %i[system dealer],
29
+ patchable_by: %i[system dealer]
30
+
31
+
32
+ field :device_id,
33
+ type: :string,
34
+ sortable: false,
35
+ filterable: true,
36
+ creatable_by: %i[system dealer],
37
+ creatable_by: %i[system dealer]
38
+
39
+
40
+
41
+ field :zone_index,
42
+ type: :string,
43
+ sortable: true,
44
+ filterable: true,
45
+ creatable_by: %i[system dealer],
46
+ patchable_by: %i[system dealer]
47
+
48
+ end
49
+ end
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.9.2'
4
+ VERSION = '1.9.4'
5
5
  end
data/lib/alula.rb CHANGED
@@ -61,6 +61,7 @@ require_relative 'alula/resources/station'
61
61
  require_relative 'alula/resources/oauth_client'
62
62
  require_relative 'alula/resources/device_alias'
63
63
  require_relative 'alula/resources/device_notification'
64
+ require_relative 'alula/resources/video_verification_camera'
64
65
 
65
66
  require_relative 'alula/resources/feature_plan'
66
67
  require_relative 'alula/resources/feature_planvideo'
@@ -118,6 +119,7 @@ module Alula
118
119
  Alula::DeviceCredit,
119
120
  Alula::DeviceEventLog,
120
121
  Alula::DeviceNotification,
122
+ Alula::VideoVerificationCamera,
121
123
  Alula::DeviceProgram,
122
124
  Alula::DealerAddress,
123
125
  Alula::DeviceCellularStatus,
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.9.2
4
+ version: 1.9.4
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-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -284,6 +284,7 @@ files:
284
284
  - lib/alula/resources/user_videoprofile.rb
285
285
  - lib/alula/resources/video/base_resource.rb
286
286
  - lib/alula/resources/video/device.rb
287
+ - lib/alula/resources/video_verification_camera.rb
287
288
  - lib/alula/rest_resource.rb
288
289
  - lib/alula/rpc_resource.rb
289
290
  - lib/alula/rpc_response.rb