alula-ruby 2.2.0 → 2.4.0

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: 247c9119a14643882e61a122b637a87d235765849ae133f014c64e231bd02a9e
4
- data.tar.gz: a6ff54e27b1c51a5a0ea5b683e64e3e31a1165c89ba0bd8d12d545ab13f1415e
3
+ metadata.gz: d4292b6cc0112aa0e2eaf62194f6894e4ccef4071d35a0fee33b08cad35e05eb
4
+ data.tar.gz: b80a6aea89b8e23ff1bc113029f3622defcad05231471995f9b2b2ea65303638
5
5
  SHA512:
6
- metadata.gz: 04e0f8b86cf095f5d9365fce87560ec5748b95e09bbf5180aaa8bb299d72a291242e9456fa5939df5ef7e13f2197f19d7b35ec01e8ec004747042994113a1504
7
- data.tar.gz: 450925aacda921e9e0897134bbb8a734438b690d6e64025a7d8e83b882a2b57414790ade19b394ab6119c72a80a7eb3ceabbd19cf5bde32d04a10c037819bc28
6
+ metadata.gz: 813be7a704e54bcbaf514480f9d2554ce7e2243ee2a7d52fa59f63922fe963cdf6d44ff0da13628139cc6131e38a5b1e6f8f700c25cc4476586ce4498f1780bd
7
+ data.tar.gz: 974ef551d3fc09091ad2b4a6e1b319ff7bb1c69732a45a1075c9b3d0b58c623c84b2aa69d02ea64603a22ee4a07a94269b43a27624cc2c7192e0305e8dc333d6
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.3.6
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:3.3.5-alpine
1
+ FROM ruby:3.3.6-alpine
2
2
 
3
3
  RUN gem install bundler
4
4
 
data/VERSION.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.4.0 | 2024-12-19 | Add DeviceUser and HelixUser Revision relationships |
6
+ | v2.3.0 | 2024-12-17 | Add Video Register Proc |
5
7
  | v2.2.0 | 2024-12-10 | Add SMS Limit to Device model and the Device Feature Price model |
6
8
  | v2.1.2 | 2024-11-12 | Add CameraGetFirmwareVersionProc |
7
9
  | v2.1.1 | 2024-11-12 | Add device record attribute |
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ ##
4
+ # qrCode: string
5
+ # accountId: string
6
+ # customerId: string
7
+ # serialNumber: string
8
+ # verificationCode: string
9
+ # brand: string
10
+ # model: string
11
+ #
12
+ # Method: video.register
13
+ module Alula
14
+ class VideoRegisterProc < Alula::RpcResource
15
+ class Response < Alula::RpcResponse
16
+ end
17
+
18
+ def self.call(**kwargs)
19
+ payload = {
20
+ qrCode: kwargs[:qr_code],
21
+ accountId: kwargs[:account_id],
22
+ customerId: kwargs[:customer_id],
23
+ serialNumber: kwargs[:serial_number],
24
+ verificationCode: kwargs[:verification_code],
25
+ brand: kwargs[:brand],
26
+ model: kwargs[:model]
27
+ }
28
+
29
+ request(
30
+ http_method: :post,
31
+ path: '/rpc/v1/video/register',
32
+ payload:,
33
+ handler: Response
34
+ )
35
+ end
36
+ end
37
+ end
@@ -15,6 +15,7 @@ module Alula
15
15
  relationship :device, type: 'devices', cardinality: 'To-one'
16
16
  relationship :user, type: 'users', cardinality: 'To-one'
17
17
  relationship :helix_users, type: 'helix-users', cardinality: 'To-many'
18
+ relationship :revisions, type: 'revisions', cardinality: 'To-many'
18
19
  # unused relationships below
19
20
  # relationship :hybrid_panel_users, type: 'devices-partitions-users', cardinality: 'To-many'
20
21
 
@@ -15,6 +15,7 @@ module Alula
15
15
 
16
16
  relationship :device, type: 'devices', cardinality: 'To-one'
17
17
  relationship :user, type: 'users', cardinality: 'To-one'
18
+ relationship :revisions, type: 'revisions', cardinality: 'To-many'
18
19
 
19
20
  field :id,
20
21
  type: :string,
@@ -16,6 +16,8 @@ module Alula
16
16
  relationship :device_notification, type: 'devices-notifications', cardinality: 'To-one'
17
17
  relationship :user, type: 'users', cardinality: 'To-one'
18
18
  relationship :dealer, type: 'dealers', cardinality: 'To-one'
19
+ relationship :device_user, type: 'devices-users', cardinality: 'To-one'
20
+ relationship :helix_user, type: 'helix-users', cardinality: 'To-one'
19
21
 
20
22
  # Resource Fields
21
23
  # Not all params are used at the moment. See Alula::ResourceAttributes for details
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '2.2.0'
4
+ VERSION = '2.4.0'
5
5
  end
data/lib/alula.rb CHANGED
@@ -94,6 +94,7 @@ require_relative 'alula/procedures/user_plansvideo_price_get'
94
94
  require_relative 'alula/procedures/user_get_locked_proc'
95
95
  require_relative 'alula/procedures/user_unlock_proc'
96
96
  require_relative 'alula/procedures/user_password_reset_proc'
97
+ require_relative 'alula/procedures/video_register_proc'
97
98
  require_relative 'alula/procedures/video_unregister_proc'
98
99
  require_relative 'alula/procedures/camera_get_wifi_proc'
99
100
  require_relative 'alula/procedures/camera_get_sd_status_proc'
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: 2.2.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-11 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -252,6 +252,7 @@ files:
252
252
  - lib/alula/procedures/user_transfer_reject.rb
253
253
  - lib/alula/procedures/user_transfer_request.rb
254
254
  - lib/alula/procedures/user_unlock_proc.rb
255
+ - lib/alula/procedures/video_register_proc.rb
255
256
  - lib/alula/procedures/video_unregister_proc.rb
256
257
  - lib/alula/query_interface.rb
257
258
  - lib/alula/rate_limit.rb
@@ -309,10 +310,10 @@ files:
309
310
  - lib/parser.rb
310
311
  - utils/mariadb/conf/custom.cnf
311
312
  - utils/mongodb/init/00_users.sh
312
- homepage:
313
+ homepage:
313
314
  licenses: []
314
315
  metadata: {}
315
- post_install_message:
316
+ post_install_message:
316
317
  rdoc_options: []
317
318
  require_paths:
318
319
  - lib
@@ -328,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
329
  version: '0'
329
330
  requirements: []
330
331
  rubygems_version: 3.0.3.1
331
- signing_key:
332
+ signing_key:
332
333
  specification_version: 4
333
334
  summary: Ruby bindings for the Alula API
334
335
  test_files: []