alula-ruby 2.19.0 → 2.20.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: 568a1f5d12c0128c0500c8118101d3b6097a99fb002a5447573e6c6cf70c9d15
4
- data.tar.gz: 0c9bc687faf0e26e111627213bbf51a244475c424de5839cc227a11c9bc33aaa
3
+ metadata.gz: 91928304c0ae5bf4b3314ee3c76f88e7ce0fd8f533472391b13be7166f74b86a
4
+ data.tar.gz: 96c3c4b1ca210019151d2faf64bd327befe6ada7a05b9980eebfbe3bbf7d0195
5
5
  SHA512:
6
- metadata.gz: f2c39a552fedb91a92e1bdc5ad4333437e6c1087865a440146efd6728ff88f3ae4e5998ba737fc42204dd6ced0f52f56ba8c486dcbb0753d7da22e63f080b7fd
7
- data.tar.gz: f3f9f9445ec96ff64a2d1921189daeaeea616d6253852d8f343d4affbf99eb0eb1ea2e8d1e5296716f0d3179ebf78fb6dceadaf046e3f96d531cc3550a02c86e
6
+ metadata.gz: d2b1c52667420e81bbb29b3424aa44e45b522eb7ec8003a5a0c614d1413d0ae2c8772ff3dcbf968952addcbdea61c17451030755740b962dfac1ae8e51e9c9de
7
+ data.tar.gz: 4705740e6065e11a0aab3c3d46989aba60f777616a765611ccc42b4d5332fdd7d60495ae1fc3a25863ed5090afc2c6b8f428f65495786bed09b9f1593a860ecd
data/VERSION.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.20.0 | 2025-07-07 | Add NFC Tags |
5
6
  | v2.19.0 | 2025-07-03 | Add line_num_alphanumeric to Receiver model |
6
7
  | v2.18.0 | 2025-07-02 | Add remote_central_station_id to Receiver model |
7
8
  | v2.17.0 | 2025-07-01 | Add force logic to API resource creation |
@@ -41,6 +41,7 @@ module Alula
41
41
  relationship :video_verification_cameras, type: 'video-verification-cameras', cardinality: 'To-many'
42
42
  relationship :users, type: 'devices-users', cardinality: 'To-many'
43
43
  relationship :features_prices, type: 'devices-features-prices', cardinality: 'To-one'
44
+ relationship :tags, type: 'tags', cardinality: 'To-many'
44
45
  # relationship :features_supported, type: 'devices-features-supported', cardinality: 'To-one'
45
46
  # relationship :features_disabled, type: 'devices-features-disabled', cardinality: 'To-one'
46
47
 
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alula
4
+ class NfcTag < Alula::RestResource
5
+ extend Alula::ResourceAttributes
6
+ extend Alula::RelationshipAttributes
7
+ extend Alula::ApiOperations::Request
8
+ extend Alula::ApiOperations::List
9
+
10
+ resource_path 'tags'
11
+ type 'tags'
12
+
13
+ relationship :device, type: 'devices', cardinality: 'To-one'
14
+
15
+ class NfcTagParams < Alula::ObjectField
16
+ # unknown other fields for now
17
+ field :partition_index, type: :number
18
+ end
19
+
20
+ field :id,
21
+ type: :string,
22
+ sortable: false,
23
+ filterable: true,
24
+ creatable_by: [],
25
+ patchable_by: []
26
+
27
+ field :name,
28
+ type: :string,
29
+ sortable: true,
30
+ filterable: true,
31
+ creatable_by: [],
32
+ patchable_by: []
33
+
34
+ field :device_id,
35
+ type: :string,
36
+ sortable: false,
37
+ filterable: true,
38
+ creatable_by: [],
39
+ patchable_by: []
40
+
41
+ field :action,
42
+ type: :string,
43
+ sortable: false,
44
+ filterable: false,
45
+ creatable_by: [],
46
+ patchable_by: []
47
+
48
+ field :params,
49
+ type: :object,
50
+ use: NfcTagParams,
51
+ sortable: false,
52
+ filterable: false,
53
+ creatable_by: [],
54
+ patchable_by: []
55
+ end
56
+ 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 = '2.19.0'
4
+ VERSION = '2.20.0'
5
5
  end
data/lib/alula.rb CHANGED
@@ -144,10 +144,11 @@ require_relative 'alula/resources/feature_plan'
144
144
  require_relative 'alula/resources/feature_planvideo'
145
145
  require_relative 'alula/resources/feature_price'
146
146
  require_relative 'alula/resources/feature_bysubject'
147
-
147
+ require_relative 'alula/resources/nfc_tag'
148
148
  require_relative 'alula/resources/dcp/config/synchronize'
149
149
  require_relative 'alula/resources/video/base_resource'
150
150
  require_relative 'alula/resources/video/device'
151
+
151
152
  require_relative 'alula/procedures/device_cellular_history_proc'
152
153
  require_relative 'alula/procedures/device_rateplan_get_proc'
153
154
  require_relative 'alula/procedures/device_register_proc'
@@ -223,6 +224,7 @@ module Alula
223
224
  Alula::FeaturePlanVideo,
224
225
  Alula::FeaturePrice,
225
226
  Alula::HelixUser,
227
+ Alula::NfcTag,
226
228
  Alula::OAuthClient,
227
229
  Alula::ReceiverGroup,
228
230
  Alula::ReceiverDisabled,
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.19.0
4
+ version: 2.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-07 00:00:00.000000000 Z
11
+ date: 2025-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -340,6 +340,7 @@ files:
340
340
  - lib/alula/resources/feature_planvideo.rb
341
341
  - lib/alula/resources/feature_price.rb
342
342
  - lib/alula/resources/helix_user.rb
343
+ - lib/alula/resources/nfc_tag.rb
343
344
  - lib/alula/resources/oauth_client.rb
344
345
  - lib/alula/resources/receiver.rb
345
346
  - lib/alula/resources/receiver_bind.rb