alula-ruby 1.9.2 → 1.9.4
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/resources/device.rb +3 -0
- data/lib/alula/resources/video_verification_camera.rb +49 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 616eeec22053f3a741455858c9770437c00672a8ce391e637a307ad6cc2b6ad6
|
4
|
+
data.tar.gz: 62a5ea73aed37a1c3ad31a00f615372332a5b49cc3b6c30f6e210b2f28cdb2d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
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
|